From: vsr Date: Tue, 8 Feb 2011 09:25:55 +0000 (+0000) Subject: Improve performance on sphere display in VTK viewer X-Git-Tag: Start_BR_19998_21191~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=335b22d949043a731de18eb3198e2ce1f80ffd65;p=modules%2Fgeom.git Improve performance on sphere display in VTK viewer --- 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)) {