Skip to content

Commit bf2253c

Browse files
committed
added tolerance to CreatePlanarBreps
1 parent 71b0100 commit bf2253c

File tree

1 file changed

+2
-2
lines changed
  • src/compas_rhino/geometry/brep

1 file changed

+2
-2
lines changed

src/compas_rhino/geometry/brep/brep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ def from_curves(cls, curves):
324324
rhino_curve = polyline_to_rhino_curve(curve)
325325
else:
326326
rhino_curve = curve_to_rhino(curve)
327-
face = Rhino.Geometry.Brep.CreatePlanarBreps(rhino_curve)
327+
face = Rhino.Geometry.Brep.CreatePlanarBreps(rhino_curve, TOL.absolute)
328328
if face is None:
329329
raise BrepError("Failed to create face from curve: {} ".format(curve))
330-
if isinstance(face, list) and len(face) > 1:
330+
if len(face) > 1:
331331
raise BrepError("Failed to create single face from curve: {} ".format(curve))
332332
faces.append(face[0])
333333
rhino_brep = Rhino.Geometry.Brep.JoinBreps(faces, TOL.absolute)

0 commit comments

Comments
 (0)