From 335b22d949043a731de18eb3198e2ce1f80ffd65 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 8 Feb 2011 09:25:55 +0000 Subject: [PATCH] Improve performance on sphere display in VTK viewer --- src/GEOMGUI/GEOM_Displayer.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 69e82d6a7..bafcf02ae 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -987,7 +987,7 @@ void GEOM_Displayer::Update( SALOME_VTKPrs* prs ) if(useStudy){ aPropMap = aStudy->getObjectPropMap(aMgrId,anEntry); - PropMap aDefPropMap = getDefaultPropepryMap(SOCC_Viewer::Type()); + PropMap aDefPropMap = getDefaultPropepryMap(SVTK_Viewer::Type()); bool isDiff = MergePropertyMaps(aPropMap, aDefPropMap); if(isDiff) aStudy->setObjectPropMap(aMgrId,anEntry,aPropMap); @@ -1045,7 +1045,8 @@ void GEOM_Displayer::Update( SALOME_VTKPrs* prs ) aGeomGActor->SetOpacity(1.0 - aPropMap.value(TRANSPARENCY_PROP).toDouble()); aGeomGActor->SetVectorMode(aPropMap.value(VECTOR_MODE_PROP).toInt()); aGeomGActor->setDisplayMode(aPropMap.value(DISPLAY_MODE_PROP).toInt()); - aGeomGActor->SetDeflection(aPropMap.value(DEFLECTION_COEFF_PROP).toDouble(), aGeomGActor->GetIsRelative()); + //VSR: do not set deflection until OCC2VTK algo is not improved (to keep performance) + //aGeomGActor->SetDeflection(aPropMap.value(DEFLECTION_COEFF_PROP).toDouble(), aGeomGActor->GetIsRelative()); vtkFloatingPointType aColor[3] = {1.,0.,0.}; if(aPropMap.contains(COLOR_PROP)) { -- 2.39.2