From f4b1a1d72eb39adefc1c8c1b96bed1cff2898dda Mon Sep 17 00:00:00 2001 From: gdd Date: Tue, 11 Oct 2011 15:52:03 +0000 Subject: [PATCH] rnc : added code depending on an environmebnt variable to test parallel visualisation in cascade with tbb --- src/GEOMGUI/GEOM_Displayer.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 21cc4e27a..55cbc43bb 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -87,6 +87,8 @@ #include #include +#include + // VTK Includes #include #include @@ -318,6 +320,12 @@ GEOM_Displayer::GEOM_Displayer( SalomeApp_Study* st ) myToActivate = true; // This parameter is used for activisation/deactivisation of objects to be displayed + + // Activate parallel vizualisation only for testiong purpose + // and if the corresponding env variable is set to 1 + char* parallel_visu = getenv("PARALLEL_VISU"); + if (parallel_visu && atoi(parallel_visu)) + BRepMesh_IncrementalMesh::SetParallelDefault(Standard_True); myViewFrame = 0; } -- 2.39.2