]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
21854: Add persistent dimensions
authorapl <apl@opencascade.com>
Tue, 21 Jan 2014 15:27:30 +0000 (15:27 +0000)
committerapl <apl@opencascade.com>
Tue, 21 Jan 2014 15:27:30 +0000 (15:27 +0000)
- Minor fixes for diameter dimensions construction; images for documentation.

doc/salome/gui/GEOM/images/interact_with_dimensions.png [new file with mode: 0644]
doc/salome/gui/GEOM/images/manage_dimensions.png [new file with mode: 0644]
src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx

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 (file)
index 0000000..5403468
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 (file)
index 0000000..df70ea4
Binary files /dev/null and b/doc/salome/gui/GEOM/images/manage_dimensions.png differ
index 9b3379f9177c05a43ad5cce6af708a8cb1c5a3b4..38b7c98b9b8d23571e464cc4cebbf04f055d8452 100644 (file)
@@ -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 ) ) )
         {