From 6ccbdda32bc809ca5d96a4b835e0163941c186aa Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 29 Jul 2005 08:45:33 +0000 Subject: [PATCH] Improve Actors auto-arrangement --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.39.2