mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Fix z-fighting
This commit is contained in:
parent
2c5a4de264
commit
70bc8d8889
1 changed files with 3 additions and 3 deletions
|
@ -219,14 +219,14 @@ class BuildVolume(SceneNode):
|
||||||
# Bottom and top 'ellipse' of the build volume
|
# Bottom and top 'ellipse' of the build volume
|
||||||
mb = MeshBuilder()
|
mb = MeshBuilder()
|
||||||
mb.addArc(max_w, Vector.Unit_Y, center = (0, min_h - 0.2, 0), color = self.VolumeOutlineColor)
|
mb.addArc(max_w, Vector.Unit_Y, center = (0, min_h - 0.2, 0), color = self.VolumeOutlineColor)
|
||||||
mb.addArc(max_w, Vector.Unit_Y, center = (0, max_h, 0), color = self.VolumeOutlineColor)
|
mb.addArc(max_w, Vector.Unit_Y, center = (0, max_h, 0), color = self.VolumeOutlineColor)
|
||||||
self.setMeshData(mb.build())
|
self.setMeshData(mb.build())
|
||||||
|
|
||||||
# Build plate grid mesh
|
# Build plate grid mesh
|
||||||
mb = MeshBuilder()
|
mb = MeshBuilder()
|
||||||
mb.addArc(max_w, Vector.Unit_Y)
|
mb.addArc(max_w, Vector.Unit_Y, center = Vector(0, min_h - 0.2, 0))
|
||||||
sections = mb.getVertexCount()
|
sections = mb.getVertexCount()
|
||||||
mb.addVertex(0, 0, 0)
|
mb.addVertex(0, min_h - 0.2, 0)
|
||||||
for n in range(0, sections-1):
|
for n in range(0, sections-1):
|
||||||
mb.addIndices([sections, n + 1, n])
|
mb.addIndices([sections, n + 1, n])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue