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 6855ec0 commit a96ff37Copy full SHA for a96ff37
src/compas_occ/brep/brep.py
@@ -872,9 +872,12 @@ def to_tesselation(self, linear_deflection: float = 1e-3) -> Mesh:
872
for face in self.faces:
873
location = TopLoc_Location()
874
triangulation = bt.Triangulation(face.occ_face, location)
875
+ if triangulation is None:
876
+ continue
877
nodes = []
878
+ trsf = location.Transformation()
879
for i in range(1, triangulation.NbNodes() + 1):
- nodes.append(triangulation.Node(i))
880
+ nodes.append(triangulation.Node(i).Transformed(trsf))
881
vertices = points1_from_array1(nodes)
882
faces = []
883
triangles = triangulation.Triangles()
0 commit comments