From: gdd Date: Tue, 11 Oct 2011 15:52:03 +0000 (+0000) Subject: rnc : added code depending on an environmebnt variable to test parallel visualisation... X-Git-Tag: V6_4_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4b1a1d72eb39adefc1c8c1b96bed1cff2898dda;p=modules%2Fgeom.git rnc : added code depending on an environmebnt variable to test parallel visualisation in cascade with tbb --- 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; }