Fix z-fighting

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

View file

@ -224,9 +224,9 @@ class BuildVolume(SceneNode):
# Build plate grid mesh
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()
mb.addVertex(0, 0, 0)
mb.addVertex(0, min_h - 0.2, 0)
for n in range(0, sections-1):
mb.addIndices([sections, n + 1, n])