From a7a1edbc6431e523c10b33f749010c6f2f48872b Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 26 Aug 2015 13:44:01 +0200 Subject: [PATCH] + restore old axonometric behaviour --- src/Gui/View3DPy.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Gui/View3DPy.cpp b/src/Gui/View3DPy.cpp index 59682ec72..0dae3aef8 100644 --- a/src/Gui/View3DPy.cpp +++ b/src/Gui/View3DPy.cpp @@ -429,8 +429,17 @@ Py::Object View3DInventorPy::viewAxonometric(const Py::Tuple& args) //p1=App.Rotation(App.Vector(1,0,0),45) //p2=App.Rotation(App.Vector(0,0,1),-45) //p3=p2.multiply(p1) + //_view->getViewer()->setCameraOrientation(SbRotation + // (0.353553f, -0.146447f, -0.353553f, 0.853553f)); + + //from math import sqrt, degrees, asin + //p1=App.Rotation(App.Vector(1,0,0),90) + //p2=App.Rotation(App.Vector(0,0,1),45) + //p3=App.Rotation(App.Vector(1,1,0),45) + //p3=App.Rotation(App.Vector(1,1,0),degrees(asin(-sqrt(1.0/3.0)))) + //p4=p3.multiply(p2).multiply(p1) _view->getViewer()->setCameraOrientation(SbRotation - (0.353553f, -0.146447f, -0.353553f, 0.853553f)); + (0.424708f, 0.17592f, 0.339851f, 0.820473f)); } catch (const Base::Exception& e) { throw Py::Exception(e.what());