Fix Path.Length calculation.
This commit is contained in:
@@ -129,7 +129,7 @@ double Toolpath::getLength()
|
||||
Vector3d next;
|
||||
for(std::vector<Command*>::const_iterator it = vpcCommands.begin();it!=vpcCommands.end();++it) {
|
||||
std::string name = (*it)->Name;
|
||||
next = (*it)->getPlacement().getPosition();
|
||||
next = (*it)->getPlacement(last).getPosition();
|
||||
if ( (name == "G0") || (name == "G00") || (name == "G1") || (name == "G01") ) {
|
||||
// straight line
|
||||
l += (next - last).Length();
|
||||
|
||||
Reference in New Issue
Block a user