FreeCAD: master 95fcaccf

Author Committer Branch Timestamp Parent
abdullah abdullah master 2021-02-13 14:12:28 master 2b881ccc
Changeset Sketcher: Fix external geometry ellipse projection in parallel plane

====================================================================

When the ellipse to be projected and the sketch plane are parallel, the original code
by shermelin provided for a translation of the original ellipse, which would be the best solution
if it weren't because the Sketcher, internally, works under the assumption of a normal vector to the
sketcher plane being (0,0,1). If the original ellipse is parallel to the sketch plane, but the sketch
plane is not the XY plane, the copy and translation would result in a ellipse not in the XY plane of the
Sketcher. Then the sketcher internals will not properly consider its dimensions.

The solution applied here is to default to the general method for non-parallel planes.

It solves:
https://forum.freecadweb.org/viewtopic.php?f=3&t=55284#p477522
mod - src/Mod/Sketcher/App/SketchObject.cpp Diff File