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 81958ea commit 510bb43Copy full SHA for 510bb43
src/compas/datastructures/assembly/part.py
@@ -145,12 +145,10 @@ def geometry(self):
145
# TODO: this is a temp solution
146
# TODO: add memoization or some other kind of caching
147
if self.features:
148
- A = Mesh.from_shape(self.shape)
+ A = self.shape.to_vertices_and_faces(triangulated=True)
149
for shape, operation in self.features:
150
- A.quads_to_triangles()
151
- B = Mesh.from_shape(shape)
152
- B.quads_to_triangles()
153
- A = Part.operations[operation](A.to_vertices_and_faces(), B.to_vertices_and_faces())
+ B = shape.to_vertices_and_faces(triangulated=True)
+ A = Part.operations[operation](A, B)
154
geometry = Shape(*A)
155
else:
156
geometry = Shape(*self.shape.to_vertices_and_faces())
0 commit comments