Fix z-fighting

This commit is contained in:
fieldOfView 2016-11-28 22:15:47 +01:00
parent 2c5a4de264
commit 70bc8d8889

View file

@ -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])