Skip to content

Commit

Permalink
drawMultipointPath draws straight edges instead of curves
Browse files Browse the repository at this point in the history
  • Loading branch information
benptc committed Jun 27, 2024
1 parent 40fbc01 commit ffb2bb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/spatialDraw/DrawingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,12 @@ class DrawingManager {
if (i === 0) {
this.tool.startDraw(this.drawingGroup, targetLocalPosition_start, this.cursor.getNormal());
} else {
let prevPoint = points[i - 1];
let prevPointVec3 = this.convertToVec3(prevPoint);
const targetLocalPosition_prev = this.convertWorldToTool(prevPointVec3);
this.tool.startDraw(this.drawingGroup, targetLocalPosition_prev, this.cursor.getNormal());
this.tool.moveDraw(this.drawingGroup, targetLocalPosition_start, this.cursor.getNormal());
this.tool.endDraw();
}

// this.tool.startDraw(this.drawingGroup, this.convertToVec3(startPoint), this.cursor.getNormal());
Expand All @@ -401,7 +406,7 @@ class DrawingManager {
}
}

this.tool.endDraw();
// this.tool.endDraw();
}

updateCoordinateSystems(toolOrigin, worldOrigin) {
Expand Down

0 comments on commit ffb2bb0

Please sign in to comment.