mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Updated the cura code for removal of MeshBuilder.getMesh().
Contributes to CURA-1504
This commit is contained in:
parent
d7127b800c
commit
be145d02b3
1 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ class BuildVolume(SceneNode):
|
||||||
mb.addLine(Vector(min_w, max_h, min_d), Vector(min_w, max_h, max_d), color = self.VolumeOutlineColor)
|
mb.addLine(Vector(min_w, max_h, min_d), Vector(min_w, max_h, max_d), color = self.VolumeOutlineColor)
|
||||||
mb.addLine(Vector(max_w, max_h, min_d), Vector(max_w, max_h, max_d), color = self.VolumeOutlineColor)
|
mb.addLine(Vector(max_w, max_h, min_d), Vector(max_w, max_h, max_d), color = self.VolumeOutlineColor)
|
||||||
|
|
||||||
self.setMeshData(mb.getData())
|
self.setMeshData(mb.build())
|
||||||
|
|
||||||
mb = MeshBuilder()
|
mb = MeshBuilder()
|
||||||
mb.addQuad(
|
mb.addQuad(
|
||||||
|
@ -116,7 +116,7 @@ class BuildVolume(SceneNode):
|
||||||
for n in range(0, 6):
|
for n in range(0, 6):
|
||||||
v = mb.getVertex(n)
|
v = mb.getVertex(n)
|
||||||
mb.setVertexUVCoordinates(n, v[0], v[2])
|
mb.setVertexUVCoordinates(n, v[0], v[2])
|
||||||
self._grid_mesh = mb.getData()
|
self._grid_mesh = mb.build()
|
||||||
|
|
||||||
disallowed_area_height = 0.1
|
disallowed_area_height = 0.1
|
||||||
disallowed_area_size = 0
|
disallowed_area_size = 0
|
||||||
|
@ -141,7 +141,7 @@ class BuildVolume(SceneNode):
|
||||||
size = 0
|
size = 0
|
||||||
disallowed_area_size = max(size, disallowed_area_size)
|
disallowed_area_size = max(size, disallowed_area_size)
|
||||||
|
|
||||||
self._disallowed_area_mesh = mb.getData()
|
self._disallowed_area_mesh = mb.build()
|
||||||
else:
|
else:
|
||||||
self._disallowed_area_mesh = None
|
self._disallowed_area_mesh = None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue