We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b0100 commit bf2253cCopy full SHA for bf2253c
src/compas_rhino/geometry/brep/brep.py
@@ -324,10 +324,10 @@ def from_curves(cls, curves):
324
rhino_curve = polyline_to_rhino_curve(curve)
325
else:
326
rhino_curve = curve_to_rhino(curve)
327
- face = Rhino.Geometry.Brep.CreatePlanarBreps(rhino_curve)
+ face = Rhino.Geometry.Brep.CreatePlanarBreps(rhino_curve, TOL.absolute)
328
if face is None:
329
raise BrepError("Failed to create face from curve: {} ".format(curve))
330
- if isinstance(face, list) and len(face) > 1:
+ if len(face) > 1:
331
raise BrepError("Failed to create single face from curve: {} ".format(curve))
332
faces.append(face[0])
333
rhino_brep = Rhino.Geometry.Brep.JoinBreps(faces, TOL.absolute)
0 commit comments