From 6274f42fb0d4eee7d1ff824d404c70c1e27f4147 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 18 Oct 2013 13:59:57 +0000 Subject: [PATCH] Task: "XAO format: fields on geometry". Sub-task: "GUI/visualization - OCC viewer". --- src/OCCViewer/OCCViewer_ViewModel.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 96809de49..bb5d8df07 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -99,11 +99,13 @@ OCCViewer_Viewer::OCCViewer_Viewer( bool DisplayTrihedron) { // init CasCade viewers myV3dViewer = OCCViewer_VService::CreateViewer( TCollection_ExtendedString("Viewer3d").ToExtString() ); - myV3dViewer->Init(); + //myV3dViewer->Init(); // to avoid creation of the useless perspective view (see OCCT issue 0024267) + myV3dViewer->SetDefaultLights(); #if OCC_VERSION_LARGE <= 0x06060000 // Porting to OCCT higher 6.6.0 version myV3dCollector = OCCViewer_VService::CreateViewer( TCollection_ExtendedString("Collector3d").ToExtString() ); - myV3dCollector->Init(); + //myV3dCollector->Init(); // to avoid creation of the useless perspective view (see OCCT issue 0024267) + myV3dCollector->SetDefaultLights(); #endif // init selector -- 2.39.2