From 48e231fe014f5791a1247472551153d2e689f2bc Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 27 Nov 2011 16:54:35 +0000 Subject: [PATCH] + axonometric view git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5194 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Gui/View3DPy.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Gui/View3DPy.cpp b/src/Gui/View3DPy.cpp index 2be967c5d..80f3ee4df 100644 --- a/src/Gui/View3DPy.cpp +++ b/src/Gui/View3DPy.cpp @@ -384,8 +384,14 @@ Py::Object View3DInventorPy::viewAxometric(const Py::Tuple& args) throw Py::Exception(); try { + //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.820473f, 0.339851f, 0.17592f, 0.424708f)); } catch (const Base::Exception& e) { throw Py::Exception(e.what());