Skip to content

Commit b7cd47d

Browse files
committed
FIX: DFFace to mesh method added
1 parent 6701304 commit b7cd47d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/gh/diffCheck/diffCheck/df_geometries.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from xml.dom.minidom import parseString
1414

1515
import diffCheck.df_joint_detector
16+
import diffCheck.df_util
1617

1718

1819
@dataclass
@@ -173,14 +174,15 @@ def to_mesh(self):
173174
:return mesh: The Rhino Mesh object
174175
"""
175176
mesh = Rhino.Geometry.Mesh()
177+
176178
mesh_parts = Rhino.Geometry.Mesh.CreateFromBrep(
177-
self.to_brep_face().ToBrep(),
179+
self.to_brep_face().DuplicateFace(True),
178180
Rhino.Geometry.MeshingParameters.Coarse)
179-
for mesh_part in mesh_parts: mesh.Append(mesh_part)
180-
mesh.Compact()
181+
for mesh_part in mesh_parts:
182+
mesh.Append(mesh_part)
181183

184+
mesh.Compact()
182185

183-
# mesh = rg.Mesh.CreateFromBrep(self.to_brep_face())[0]
184186
return mesh
185187

186188
@property

0 commit comments

Comments
 (0)