View Issue Details

IDProjectCategoryView StatusLast Update
0004199Path[FreeCAD] Bugpublic2019-11-26 20:38
Reportermlampert Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version[FreeCAD] 0.19 
Target VersionFixed in Version 
Summary0004199: Path.Length reports wrong length
DescriptionSome experiments with Path.Length revealed that the calculation is incorrect. As it turns out the implementation relies on all coordinates set - any not set coordinates are filled with 0 which does not result in the correct length.
Steps To Reproduce
>>> Path.Path([Path.Command('G0', {'X':1}), Path.Command('G0', {'Y':1})]).Length
2.414213562373095
>>>

The result should be 2, but because the second command's X value gets reset to 0 it's length is calculated as 1.414


Tags#post-to-forum
FreeCAD Informationaffects all versions

Activities

openBrain

2019-11-22 16:42

developer   ~0013828

@mlampert : according guidelines, could you please open a forum thread and crosslink it with this ticket (in both directions). Thx

Issue History

Date Modified Username Field Change
2019-11-21 02:27 mlampert New Issue
2019-11-22 16:41 openBrain Tag Attached: #post-to-forum
2019-11-22 16:42 openBrain Note Added: 0013828
2019-11-26 20:38 Kunda1 Steps to Reproduce Updated View Revisions