mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 18:18:35 +05:00
rnc : added code depending on an environmebnt variable to test parallel visualisation in cascade with tbb
This commit is contained in:
parent
92fe1b6a78
commit
f4b1a1d72e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user