21854: Add persistent dimensions

- Minor fixes for diameter dimensions construction; images for documentation.
This commit is contained in:
apl 2014-01-21 15:27:30 +00:00
parent 2ed15de5a1
commit f7284cdba3
3 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View 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 ) ) )
{