From: jfa Date: Fri, 29 Jul 2005 08:45:33 +0000 (+0000) Subject: Improve Actors auto-arrangement X-Git-Tag: T_3_0_2a1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ccbdda32bc809ca5d96a4b835e0163941c186aa;p=modules%2Fvisu.git Improve Actors auto-arrangement --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 3f9c440b..93987d24 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -354,6 +354,12 @@ void ArrangeDlg::acceptViewWindow() VISU::Prs3d_i* aPrs = it.key(); if (VISU_Actor* aActor = VISU::GetActor(aPrs, myViewWindow)) { int aAxis = getAxis(); + + float aZeroOffset[3]; + aZeroOffset[0] = aZeroOffset[1] = aZeroOffset[2] = 0; + aActor->SetPosition(aZeroOffset); + aActor->GetMapper()->Update(); + float aBounds[6]; aActor->GetBounds(aBounds); switch (aAxis) {