Remove normals for ConvexHullNode

They are rendered flat, so no need to store the normals

CURA-7106
This commit is contained in:
Jaime van Kessel 2020-06-30 13:22:45 +02:00
parent 5055b53063
commit ccd9a17be4
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -61,6 +61,7 @@ class ConvexHullNode(SceneNode):
if hull_mesh_builder.addConvexPolygon( if hull_mesh_builder.addConvexPolygon(
self._hull.getPoints()[::], # bottom layer is reversed self._hull.getPoints()[::], # bottom layer is reversed
self._mesh_height, color = self._color): self._mesh_height, color = self._color):
hull_mesh_builder.resetNormals()
hull_mesh = hull_mesh_builder.build() hull_mesh = hull_mesh_builder.build()
self.setMeshData(hull_mesh) self.setMeshData(hull_mesh)
@ -68,7 +69,7 @@ class ConvexHullNode(SceneNode):
if hull_mesh_builder.addConvexPolygonExtrusion( if hull_mesh_builder.addConvexPolygonExtrusion(
self._hull.getPoints()[::-1], # bottom layer is reversed self._hull.getPoints()[::-1], # bottom layer is reversed
self._mesh_height - thickness, self._mesh_height, color = self._color): self._mesh_height - thickness, self._mesh_height, color = self._color):
hull_mesh_builder.resetNormals()
hull_mesh = hull_mesh_builder.build() hull_mesh = hull_mesh_builder.build()
self.setMeshData(hull_mesh) self.setMeshData(hull_mesh)