X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMeasureGUI%2FMeasureGUI_DimensionCreateTool.cxx;h=a03a0f4e865bc75a7ef3ebb294041e8346327bb0;hb=a9fe5759c52e7f225c6b1403bf93fc97c10874b9;hp=b571b61c776f726e4a190372c7033a7e01ebee3f;hpb=c9850e02d39ea6c83c02af1d317f7af26cb2f843;p=modules%2Fgeom.git diff --git a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx index b571b61c7..a03a0f4e8 100644 --- a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx +++ b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -76,7 +76,6 @@ #include #include - // plane associated with custom data struct PlaneAndSegment { @@ -688,7 +687,7 @@ Handle(AIS_DiameterDimension) MeasureGUI_DimensionCreateTool::Diameter( const GE Handle(AIS_DiameterDimension) aDimension = new AIS_DiameterDimension( aRuledCirc, aPln ); // if flyout is extended in tangent direction to circle, the default flyout value is used - // if flyout is extended in plane of circle, the zero flyout value is choosen initially + // if flyout is extended in plane of circle, the zero flyout value is chosen initially Standard_Real aFlyout = aCircN.IsParallel( aPln.Axis().Direction(), Precision::Angular() ) ? 0.0 : Settings.DefaultFlyout; aDimension->SetFlyout(aFlyout); @@ -930,7 +929,7 @@ void MeasureGUI_DimensionCreateTool::PositionLength( const Bnd_Box& theBnd, // flyout plane to best match the current view projection (if any) // The points are aligned to XOY, YOZ, ZOX planes. // The flyout takes into account bounding box of main shape of face normal -// vector. The flyouts tangetial to the circle plane are directed in +// vector. The flyouts tangential to the circle plane are directed in // accordance with the face normal (if not-null), otherwise the flyouts // are turned to direct to the closest border of bounding box. //================================================================================= @@ -1077,7 +1076,7 @@ void MeasureGUI_DimensionCreateTool::ChooseLengthFlyoutsFromBnd( SeqOfDirs& theD { const gp_Pln& aPlane = aPlaneIt.Value(); - // transform bounding box to orthogonal coordiantes relative to + // transform bounding box to orthogonal coordinates relative to // dimension points P1, P2 (x-axis) and plane direction (z-axis), // where y coordinates will correspond to flyout direction against // the dimension point line @@ -1147,8 +1146,8 @@ template TPlane MeasureGUI_DimensionCreateTool::SelectPlaneForProjection( const NCollection_Sequence& thePlanes, const Handle(V3d_View)& theView ) const { - Quantity_Parameter U[3]; - Quantity_Parameter N[3]; + Standard_Real U[3]; + Standard_Real N[3]; theView->Up( U[0], U[1], U[2] ); theView->Proj( N[0], N[1], N[2] );