Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psauvan committed Dec 19, 2024
1 parent 96965cc commit 682ca51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/geouned/GEOUNED/decompose/decom_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +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
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 682ca51

Please sign in to comment.