Skip to content

Commit

Permalink
fix(face): Fix bug in split face with line segment
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jun 22, 2024
1 parent 97156a3 commit 58a678d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ladybug_geometry/geometry3d/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def split_with_line(self, line, tolerance):
return None

# get BooleanPolygons of the polygon and the line segment
move_vec = line_2d.v.rotate(math.pi / 2) * (tolerance / 10)
move_vec = line_2d.v.rotate(math.pi / 2).normalize() * (tolerance / 10)
line_verts = (line_2d.p1, line_2d.p2, line_2d.p2.move(move_vec),
line_2d.p1.move(move_vec))
line_poly = [(pb.BooleanPoint(pt.x, pt.y) for pt in line_verts)]
Expand Down

0 comments on commit 58a678d

Please sign in to comment.