From: vsr Date: Fri, 7 Nov 2014 15:37:50 +0000 (+0300) Subject: 0022670: [CEA 1095] Deflection coefficient has no influence on a shape displayed... X-Git-Tag: V7_5_0rc1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5b72670f01a7d49a72f8c89e9393381d219b6149;p=modules%2Fgeom.git 0022670: [CEA 1095] Deflection coefficient has no influence on a shape displayed in the VTK View --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index b13c93211..f9c14313c 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -133,6 +133,9 @@ // Hard-coded value of shape deflection coefficient for VTK viewer const double VTK_MIN_DEFLECTION = 0.001; +// If the next macro is defined, the deflection coefficient for VTK presentation +// is limited by VTK_MIN_DEFLECTION +//#define LIMIT_DEFLECTION_FOR_VTK // Pixmap caching support namespace @@ -1042,7 +1045,11 @@ void GEOM_Displayer::updateActorProperties( GEOM_Actor* actor, bool create ) // actor->SetShape(myShape,aDefPropMap.value(GEOM::propertyName( GEOM::Deflection )).toDouble(),myType == GEOM_VECTOR); ///////////////////////////////////////////////////////////////////////// if ( !actor->getTopo().IsSame( myShape ) ) +#ifdef LIMIT_DEFLECTION_FOR_VTK actor->SetShape( myShape, VTK_MIN_DEFLECTION, myType == GEOM_VECTOR ); +#else + actor->SetShape( myShape, qMax( propMap.value( GEOM::propertyName( GEOM::Deflection ) ).toDouble(), GEOM::minDeflection() ), myType == GEOM_VECTOR ); +#endif // set material Material_Model material;