File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/gh/diffCheck/diffCheck Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1313from xml .dom .minidom import parseString
1414
1515import 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
You can’t perform that action at this time.
0 commit comments