From: jfa Date: Tue, 24 Apr 2018 11:56:56 +0000 (+0300) Subject: 0023271: [CEA 1823] Deflection Coefficient not taken into account in wireframe X-Git-Tag: SHAPER_V9_1_0RC1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2b7625a1197e2f051be27c295e7486625a071be0;p=modules%2Fgeom.git 0023271: [CEA 1823] Deflection Coefficient not taken into account in wireframe --- diff --git a/src/OBJECT/GEOM_AISShape.cxx b/src/OBJECT/GEOM_AISShape.cxx index d2cbff7b4..09a544781 100644 --- a/src/OBJECT/GEOM_AISShape.cxx +++ b/src/OBJECT/GEOM_AISShape.cxx @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -49,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -227,6 +229,15 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent bool isTopLev = isTopLevel() && switchTopLevel(); switch (aMode) { case Wireframe: + // Begin 0023271: [CEA 1823] Deflection Coefficient not taken into account in wireframe + { + StdPrs_ToolTriangulatedShape::ClearOnOwnDeflectionChange (myshape, myDrawer, Standard_True); + + // After this call if type of deflection is relative + // computed deflection coefficient is stored as absolute. + Prs3d::GetDeflection (myshape, myDrawer); + } + // End 0023271 case CustomHighlight: { if(isTopLev) {