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.
This commit is contained in:
Abdullah Tahiri 2014-12-31 13:05:42 +01:00 committed by wmayer
parent c3af4232a4
commit 0b081876e5

View File

@ -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);