Use intersection instead of convex hull intersection

CURA-11293
This commit is contained in:
Erwan MATHIEU 2023-11-09 16:22:52 +01:00
parent b8e8f2ac0e
commit 4982680dfc

View file

@ -494,7 +494,7 @@ class BuildVolume(SceneNode):
mb = MeshBuilder()
color = self._disallowed_area_color
for polygon in self._disallowed_areas:
intersection = polygon.intersectionConvexHulls(bounding_box)
intersection = polygon.intersection(bounding_box)
points = numpy.fliplr(intersection.getPoints())
if len(points) < 3:
continue