From 2ce69b121ac3bd7dbeb20c95ed0efe7b58f374be Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 10 Apr 2006 12:41:23 +0000 Subject: [PATCH] Fix for Bug9756 TC: Mandrake porting: Local co-ordinate system created in OCC Viewer is invisible (it is necessary to update VTK pipeline before getting any information from it) --- src/VTKViewer/VTKViewer_Trihedron.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/VTKViewer/VTKViewer_Trihedron.cxx b/src/VTKViewer/VTKViewer_Trihedron.cxx index 38401e6d6..0a61d395e 100755 --- a/src/VTKViewer/VTKViewer_Trihedron.cxx +++ b/src/VTKViewer/VTKViewer_Trihedron.cxx @@ -74,6 +74,7 @@ void VTKViewer_UnScaledActor::Render(vtkRenderer *theRenderer) int* aSize = theRenderer->GetRenderWindow()->GetSize(); vtkFloatingPointType aWinDiag = sqrt(vtkFloatingPointType(aSize[0]*aSize[0]+aSize[1]*aSize[1])); vtkDataSet* aDataSet = GetMapper()->GetInput(); + aDataSet->Update(); vtkFloatingPointType aLength = aDataSet->GetLength(); vtkFloatingPointType aPrecision = 1.0E-3; vtkFloatingPointType anOldScale = GetScale()[0]; -- 2.39.2