浏览代码

segment stroke number is now computed before current vector normalization

jbousquie 10 年之前
父节点
当前提交
b69897b211
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Babylon/Mesh/babylon.mesh.vertexData.ts

+ 1 - 1
Babylon/Mesh/babylon.mesh.vertexData.ts

@@ -817,8 +817,8 @@
             dashshft = dashSize * shft / (dashSize + gapSize);
             for (i = 0; i < points.length - 1; i++) {
                 points[i + 1].subtractToRef(points[i], curvect);
-                curvect.normalize();
                 nb = Math.floor(curvect.length() / shft);
+                curvect.normalize();
                 for (var j = 0; j < nb; j++) {
                     curshft = shft * j;
                     positions.push(points[i].x + curshft * curvect.x, points[i].y + curshft * curvect.y, points[i].z + curshft * curvect.z);