From 3d26960f4a7acab90aee2755ae2842c59ca6e54c Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Wed, 31 Dec 2014 13:05:42 +0100 Subject: [PATCH] Ellipse: External geometry rotated fix This commit solves the problem that a ellipse appears rotated when added as external geometry, if the face having the elliptical shape has a direction vector in the -z axis. This solves the problem. However, the issue with CW and CCW shapes in the sketcher shall be further investigated in order to arrive to a general acceptable solution. --- src/Mod/Sketcher/App/SketchObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 4d7a8545da..17eeb9737a 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -1981,7 +1981,8 @@ void SketchObject::rebuildExternalGeometry(void) gp_Pnt P1 = projCurve.Value(projCurve.FirstParameter()); gp_Pnt P2 = projCurve.Value(projCurve.LastParameter()); - gp_Dir normal = e.Axis().Direction(); + //gp_Dir normal = e.Axis().Direction(); + gp_Dir normal = gp_Dir(0,0,1); gp_Dir xdir = e.XAxis().Direction(); gp_Ax2 xdirref(p, normal);