Skip to content

Commit

Permalink
Merge pull request #296 from GEOUNED-org/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
AlvaroCubi authored Dec 19, 2024
2 parents 6c41e53 + 366b73f commit a5948c1
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 a5948c1

Please sign in to comment.