You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moodyReport.vertices(zMultiplier).map(v=>[0.0]).flat(1)// "Union jack" colored lines have type "0.0"
886
-
.concat(triangulation.map(_=>[1.0,1.0,1.0]).flat(1))// Table vertices have type "1.0"
886
+
moodyReport.vertices(zMultiplier).map(()=>[0.0]).flat(1)// "Union jack" colored lines have type "0.0"
887
+
.concat(triangulation.map(()=>[1.0,1.0,1.0]).flat(1))// Table vertices have type "1.0"
887
888
.concat(0.0,0.0,0.0,0.0,0.0,0.0))// Axis vertices have type "0.0"
888
889
889
890
consttypeBuffer=gl.createBuffer()
@@ -900,7 +901,7 @@ function getColorBuffer(gl, moodyReport, triangleVertices) {
900
901
constminZ=Math.min(...triangleZValues)
901
902
constmaxZ=Math.max(...triangleZValues)
902
903
// In case all values are the same minZ = maxZ (i.e. it is a totally flat plate with zero deviation) so we must avoid division by zero - just set all values to 0.0.
0 commit comments