Skip to content

Commit

Permalink
Merge pull request #295 from psauvan/miror_torus
Browse files Browse the repository at this point in the history
Miror torus
  • Loading branch information
psauvan authored Dec 19, 2024
2 parents efc249b + 682ca51 commit 366b73f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/geouned/GEOUNED/decompose/decom_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def torus_bound_planes(solid, face, boundBox, tolerances):
def plane_spline_curve(edge, tolerances):

normal = edge.derivative1At(0).cross(edge.derivative1At(0.5))
if normal.Length == 0:
return None
normal.normalize()
curve_2d = True
for p in (0.25, 0.75, 1):
Expand Down

0 comments on commit 366b73f

Please sign in to comment.