rnc : added code depending on an environmebnt variable to test parallel visualisation in cascade with tbb

This commit is contained in:
gdd 2011-10-11 15:52:03 +00:00
parent 92fe1b6a78
commit f4b1a1d72e

View File

@ -87,6 +87,8 @@
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopoDS.hxx>
#include <BRepMesh_IncrementalMesh.hxx>
// VTK Includes
#include <vtkActorCollection.h>
#include <vtkProperty.h>
@ -319,6 +321,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;
}