View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004551||Path||Bug||public||2021-02-03 18:42||2021-02-06 06:33|
|Summary||0004551: PathGeom.edgeForCmd() function can't handle full-turn circles.|
|Description||PathGeom.edgeForCmd() function is intended to take a Path Command (pseudo gcode) and return a corresponding Part Edge.|
However, has an implicit assumption about the working plane. The assumption is set by setting a G17/18/19 command to select the XY, XZ, YZ plane in which an arc will exist. Arcs in other planes are not supported at all.
Since there are an infinte number of solutions to for a 360 degree arc that starts and ends on the same point and passes through another point at the midpoint, OCC throws an error.
|Additional Information||PathGeom.edgeForCmd() should take a named argument for plane which defaults to the XY plane.|
It should detect the full circle case and return a circular edge.
|Tags||No tags attached.|
COMPLETELY ERASE THIS AFTER PASTING YOUR
Help > About FreeCAD > Copy to clipboard
NOTE: just the snippet alone will do without anything else included.
The ticket will not be submitted without it.