From: apl Date: Tue, 21 Jan 2014 15:27:30 +0000 (+0000) Subject: 21854: Add persistent dimensions X-Git-Tag: V7_4_0a1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7284cdba3c078201e7a3af04eb592aabd91831b;p=modules%2Fgeom.git 21854: Add persistent dimensions - Minor fixes for diameter dimensions construction; images for documentation. --- diff --git a/doc/salome/gui/GEOM/images/interact_with_dimensions.png b/doc/salome/gui/GEOM/images/interact_with_dimensions.png new file mode 100644 index 000000000..54034687c Binary files /dev/null and b/doc/salome/gui/GEOM/images/interact_with_dimensions.png differ diff --git a/doc/salome/gui/GEOM/images/manage_dimensions.png b/doc/salome/gui/GEOM/images/manage_dimensions.png new file mode 100644 index 000000000..df70ea4ee Binary files /dev/null and b/doc/salome/gui/GEOM/images/manage_dimensions.png differ diff --git a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx index 9b3379f91..38b7c98b9 100644 --- a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx +++ b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx @@ -531,7 +531,10 @@ Handle(AIS_DiameterDimension) MeasureGUI_DimensionCreateTool::Diameter( const GE // get arguments of closed/opened cylinder if ( aSurf.GetType() == GeomAbs_Cylinder ) { - Handle(Geom_Curve) aCurve = aSurf.Surface().Surface()->VIso( (aVmax + aVmin) * 0.5 ); + Handle(Geom_Surface) aBasisSurface = Handle(Geom_Surface)::DownCast( + aSurf.Surface().Surface()->Transformed( aSurf.Trsf() ) ); + + Handle(Geom_Curve) aCurve = aBasisSurface->VIso( (aVmax + aVmin) * 0.5 ); if ( aCurve->IsKind( STANDARD_TYPE( Geom_Circle ) ) ) {