also consider the extruder position when doing maxlength.
This commit is contained in:
parent
e6c34a9eff
commit
83a56dfbdb
1 changed files with 2 additions and 2 deletions
|
|
@ -62,8 +62,8 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
{
|
||||
PrinterMove currentDestination = GetPosition(lineFromChild, lastDestination);
|
||||
PrinterMove deltaToDestination = currentDestination - lastDestination;
|
||||
deltaToDestination.feedRate = 0; // remove the changing of the federate (we'll set it initialy)
|
||||
double lengthSquared = deltaToDestination.LengthSquared;
|
||||
deltaToDestination.feedRate = 0; // remove the changing of the federate (we'll set it initially)
|
||||
double lengthSquared = Math.Max(deltaToDestination.LengthSquared, deltaToDestination.extrusion * deltaToDestination.extrusion);
|
||||
if (lengthSquared > MaxSegmentLength * MaxSegmentLength)
|
||||
{
|
||||
// create the line segments to send
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue