aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/shape-primitive.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/geom/shape-primitive.js')
-rw-r--r--js/lib/geom/shape-primitive.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/geom/shape-primitive.js b/js/lib/geom/shape-primitive.js
index acb03920..340d00d5 100644
--- a/js/lib/geom/shape-primitive.js
+++ b/js/lib/geom/shape-primitive.js
@@ -183,7 +183,7 @@ ShapePrimitive.refineMesh = function( verts, norms, uvs, indices, nVertices, pa
183 var x0 = verts[iPt0], y0 = verts[iPt0+1], z0 = verts[iPt0+2], 183 var x0 = verts[iPt0], y0 = verts[iPt0+1], z0 = verts[iPt0+2],
184 x1 = verts[iPt1], y1 = verts[iPt1+1], z1 = verts[iPt1+2], 184 x1 = verts[iPt1], y1 = verts[iPt1+1], z1 = verts[iPt1+2],
185 x2 = verts[iPt2], y2 = verts[iPt2+1], z2 = verts[iPt2+2]; 185 x2 = verts[iPt2], y2 = verts[iPt2+1], z2 = verts[iPt2+2];
186 186
187 // calculate the midpoints of the edges 187 // calculate the midpoints of the edges
188 var xA = (x0 + x1)/2.0, yA = (y0 + y1)/2.0, zA = (z0 + z1)/2.0, 188 var xA = (x0 + x1)/2.0, yA = (y0 + y1)/2.0, zA = (z0 + z1)/2.0,
189 xB = (x1 + x2)/2.0, yB = (y1 + y2)/2.0, zB = (z1 + z2)/2.0, 189 xB = (x1 + x2)/2.0, yB = (y1 + y2)/2.0, zB = (z1 + z2)/2.0,