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