Fix GCode line endcaps
This commit is contained in:
parent
d4ffe20d50
commit
068bfc2d9a
2 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ namespace MatterHackers.GCodeVisualizer
|
|||
colorVertexData.Add(new ColorVertexData(tubeEnd, tubeNormal, color));
|
||||
|
||||
// create cap verts
|
||||
Vector3 rotateAngle = Vector3.Cross(direction, startSweepDirection);
|
||||
Vector3 rotateAngle = Vector3.Cross(startSweepDirection, direction);
|
||||
Vector3 capStartNormal = Vector3.Transform(startSweepDirection, Matrix4X4.CreateRotation(rotateAngle, MathHelper.Tau / 8));
|
||||
capStartNormal = Vector3.Transform(capStartNormal, Matrix4X4.CreateRotation(direction, MathHelper.Tau / (steps * 2) + MathHelper.Tau / (steps) * i));
|
||||
capStartNormal = (capStartNormal * scale).GetNormal();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 5ee1bb2f7266419f7b1d0ac1a1232686ffb2113b
|
||||
Subproject commit 94f2628552321a634f70187d6088fd6b0530ec3d
|
||||
Loading…
Add table
Add a link
Reference in a new issue