Skip to content

Commit 495a0aa

Browse files
author
Andrea Mola
committed
fixed bug causing non stop loop due to CAD degenerated edges
1 parent d2c4f5f commit 495a0aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pygem/cad/cad_deformation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ def _bspline_curve_from_wire(self, wire):
206206
edge = topods_Edge(edge_explorer.Current())
207207

208208
# edge can be joined only if it is not degenerated (zero length)
209-
if BRep_Tool.Degenerated(edge): continue
209+
if BRep_Tool.Degenerated(edge):
210+
edge_explorer.Next()
211+
continue
210212

211213
# the edge must be converted to Nurbs edge
212214
nurbs_converter = BRepBuilderAPI_NurbsConvert(edge)

0 commit comments

Comments
 (0)