Skip to content

Commit a96ff37

Browse files
committed
fix tessellation face transformation
1 parent 6855ec0 commit a96ff37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compas_occ/brep/brep.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,12 @@ def to_tesselation(self, linear_deflection: float = 1e-3) -> Mesh:
872872
for face in self.faces:
873873
location = TopLoc_Location()
874874
triangulation = bt.Triangulation(face.occ_face, location)
875+
if triangulation is None:
876+
continue
875877
nodes = []
878+
trsf = location.Transformation()
876879
for i in range(1, triangulation.NbNodes() + 1):
877-
nodes.append(triangulation.Node(i))
880+
nodes.append(triangulation.Node(i).Transformed(trsf))
878881
vertices = points1_from_array1(nodes)
879882
faces = []
880883
triangles = triangulation.Triangles()

0 commit comments

Comments
 (0)