diff --git a/dox/samples/ocaf_func.md b/dox/samples/ocaf_func.md index bd77913ccf..12576ab2ba 100644 --- a/dox/samples/ocaf_func.md +++ b/dox/samples/ocaf_func.md @@ -180,7 +180,7 @@ drivers for a function driver table with the help of *TFunction_DriverTable* cl const TDF_LabelList& currentFunctions = iterator.Current(); //The list of current functions is iterated. - TDF_ListIteratorOfLabelList currentterator( currentFucntions ); + TDF_ListIteratorOfLabelList currentterator( currentFunctions ); for (; currentIterator.More(); currentIterator.Next()) { // An interface for the function is created. diff --git a/dox/user_guides/draw_test_harness/draw_test_harness.md b/dox/user_guides/draw_test_harness/draw_test_harness.md index 017bb27f24..ccc6625139 100644 --- a/dox/user_guides/draw_test_harness/draw_test_harness.md +++ b/dox/user_guides/draw_test_harness/draw_test_harness.md @@ -11004,9 +11004,9 @@ Converts a surface of linear extrusion, revolution and offset surfaces into BSpl **Example:** ~~~~~ -DT_ToBspl res sh -== error = 5.20375663162094e-08 spans = 10 -== Surface is aproximated with continuity 2 +DT_ToBspl res sh +== error = 5.20375663162094e-08 spans = 10 +== Surface is approximated with continuity 2 ~~~~~ @section occt_draw_10 Performance evaluation commands diff --git a/dox/user_guides/ocaf/ocaf.md b/dox/user_guides/ocaf/ocaf.md index ef75d9db41..42d2693f9d 100644 --- a/dox/user_guides/ocaf/ocaf.md +++ b/dox/user_guides/ocaf/ocaf.md @@ -1171,27 +1171,29 @@ It is possible to describe any model by means of standard OCAF attributes. @subsubsection occt_ocaf_6_2_3 Comparison and analysis of approaches - Below are described two different model implementations: - one is based on standard OCAF attributes and the other is based - on the creation of a new attribute possessing all data of the model. - + Below are described two different model implementations: + one is based on standard OCAF attributes and the other is based + on the creation of a new attribute possessing all data of the model. + A load is distributed through the shape. The measurements are taken at particular points defined by (x, y and z) coordinates. - The load is represented as a projection onto X, Y and Z axes of the local co-ordinate system at each point of measurement. - A matrix of transformation is needed to convert the local co-ordinate system to the global one, but this is optional. - - So, we have 15 double values at each point of measurement. - If the number of such points is 100 000, for example, it means - that we have to store 1 500 000 double values in the OCAF document. - - The first approach consists in using standard OCAF attributes. - Besides, there are several variants of how the standard attributes may be used: + The load is represented as a projection onto X, Y and Z axes of the local coordinate system at each point of measurement. + A matrix of transformation is needed to convert the local coordinate system to the global one, but this is optional. + + So, we have 15 double values at each point of measurement. + If the number of such points is 100 000, for example, it means + that we have to store 1 500 000 double values in the OCAF document. + + The first approach consists in using standard OCAF attributes. + Besides, there are several variants of how the standard attributes may be used: * Allocation of all 1 500 000 double values as one array of double values attached to one label; * Allocation of values of one measure of load (15 values) as one array of double values and attachment of one point of measure to one label; - * Allocation of each point of measure as an array of 3 double values attached to one label, the projection of load onto the local co-ordinate system axes as another array of 3 double values attached to a sub-label, and the matrix of projection (9 values) as the third array also attached to a sub-label. - - Certainly, other variants are also possible. - + * Allocation of each point of measure as an array of 3 double values attached to one label, + the projection of load onto the local coordinate system axes as another array of 3 double values attached to a sub-label, + and the matrix of projection (9 values) as the third array also attached to a sub-label. + + Certainly, other variants are also possible. + @figure{ocaf_tree_wp_image003.png,"Allocation of all data as one array of double values",350} The first approach to allocation of all data represented as one array of double values @@ -1560,43 +1562,45 @@ To automatically erase the nail from the viewer and the data tree it is enough ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cpp} - // The scope of functions is defined. - Handle(TFunction_Scope) scope = TFunction_Scope::Set( anyLabel ); - - // The information on modifications in the model is received. - TFunction_Logbook& log = scope-GetLogbook(); - - // The iterator is iInitialized by the scope of functions. - TFunction_Iterator iterator( anyLabel ); - Iterator.SetUsageOfExecutionOrder( true ); - - // The function is iterated,  its dependency is checked on the modified data and  executed if necessary. - for (; iterator.more(); iterator.Next()) - { - // The function iterator may return a list of current functions for execution. - // It might be useful for multi-threaded execution of functions. - const TDF_LabelList& currentFunctions = iterator.Current(); - - //The list of current functions is iterated. - TDF_ListIteratorOfLabelList currentterator( currentFucntions ); - for (; currentIterator.More(); currentIterator.Next()) - { - // An interface for the function is created. - TFunction_IFunction interface( currentIterator.Value() ); - - // The function driver is retrieved. - Handle(TFunction_Driver) driver = interface.GetDriver(); - - // The dependency of the function on the  modified data is checked. - If (driver-MustExecute( log )) - { - // The function is executed. - int ret = driver-Execute( log ); - if ( ret ) - return false; - } // end if check on modification - } // end of iteration of current functions - } // end of iteration of functions. +// The scope of functions is defined. +Handle(TFunction_Scope) aScope = TFunction_Scope::Set (anyLabel); + +// The information on modifications in the model is received. +TFunction_Logbook& aLog = aScope->GetLogbook(); + +// The iterator is iInitialized by the scope of functions. +TFunction_Iterator anIterator (anyLabel); +anIterator.SetUsageOfExecutionOrder (true); + +// The function is iterated,  its dependency is checked on the modified data and  executed if necessary. +for (; anIterator.more(); anIterator.Next()) +{ + // The function iterator may return a list of current functions for execution. + // It might be useful for multi-threaded execution of functions. + const TDF_LabelList& aCurrentFunctions = anIterator.Current(); + + // The list of current functions is iterated. + for (TDF_ListIteratorOfLabelList aCurrentIterator (aCurrentFunctions); + aCurrentIterator.More(); aCurrentIterator.Next()) + { + // An interface for the function is created. + TFunction_IFunction anInterface (aCurrentIterator.Value()); + + // The function driver is retrieved. + Handle(TFunction_Driver) aDriver = anInterface.GetDriver(); + + // The dependency of the function on the  modified data is checked. + if (aDriver->MustExecute (aLog)) + { + // The function is executed. + int aRes = aDriver->Execute (aLog); + if (aRes) + { + return false; + } + } + } +} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/samples/OCCTOverview/code/Viewer2d.xml b/samples/OCCTOverview/code/Viewer2d.xml index c6115bb921..3b890519ef 100644 --- a/samples/OCCTOverview/code/Viewer2d.xml +++ b/samples/OCCTOverview/code/Viewer2d.xml @@ -14,7 +14,7 @@ - + \ No newline at end of file diff --git a/src/AIS/AIS_InteractiveObject.hxx b/src/AIS/AIS_InteractiveObject.hxx index 6f6d8152ed..f73fc925b1 100644 --- a/src/AIS/AIS_InteractiveObject.hxx +++ b/src/AIS/AIS_InteractiveObject.hxx @@ -140,7 +140,7 @@ public: protected: //! The TypeOfPresention3d means that the interactive object - //! may have a presentation dependant of the view of Display. + //! may have a presentation dependent on the view of Display. Standard_EXPORT AIS_InteractiveObject(const PrsMgr_TypeOfPresentation3d aTypeOfPresentation3d = PrsMgr_TOP_AllView); //! Set presentation display status. diff --git a/src/AIS/AIS_Manipulator.hxx b/src/AIS/AIS_Manipulator.hxx index 8e928cbbe9..90dd33097f 100644 --- a/src/AIS/AIS_Manipulator.hxx +++ b/src/AIS/AIS_Manipulator.hxx @@ -196,7 +196,7 @@ public: Standard_EXPORT void StopTransform (const Standard_Boolean theToApply = Standard_True); //! Apply transformation made from mouse moving from start position - //! (save on the first Tranform() call and reset on DeactivateCurrentMode() call.) + //! (save on the first Transform() call and reset on DeactivateCurrentMode() call.) //! to the in/out mouse position (theX, theY) Standard_EXPORT gp_Trsf Transform (const Standard_Integer theX, const Standard_Integer theY, const Handle(V3d_View)& theView); @@ -361,7 +361,7 @@ protected: Standard_EXPORT void setTransformPersistence (const Handle(Graphic3d_TransformPers)& theTrsfPers); - //! Redefines local transformation management method to inform user of inproper use. + //! Redefines local transformation management method to inform user of improper use. //! @warning this interactive object does not support setting custom local transformation, //! this class solely uses this property to implement visual positioning of the manipulator //! without need for recomputing presentation. diff --git a/src/AIS/AIS_PointCloud.hxx b/src/AIS/AIS_PointCloud.hxx index cf69b13709..1efd2bc08e 100644 --- a/src/AIS/AIS_PointCloud.hxx +++ b/src/AIS/AIS_PointCloud.hxx @@ -31,7 +31,7 @@ class TColStd_HPackedMapOfInteger; //! The presentation supports two display modes: //! - Points. //! - Bounding box for highlighting. -//! Presentation provides selection by bouding box. +//! Presentation provides selection by bounding box. //! Selection and consequently highlighting can disabled by //! setting default selection mode to -1. There will be no way //! to select object from interactive view. Any calls to diff --git a/src/AIS/AIS_RubberBand.hxx b/src/AIS/AIS_RubberBand.hxx index 9372d757ae..a7a55dbda7 100644 --- a/src/AIS/AIS_RubberBand.hxx +++ b/src/AIS/AIS_RubberBand.hxx @@ -27,7 +27,7 @@ DEFINE_STANDARD_HANDLE(AIS_RubberBand, AIS_InteractiveObject) //! Presentation for drawing rubber band selection. //! It supports rectangle and polygonal selection. //! It is constructed in 2d overlay. -//! Default configaration is built without filling. +//! Default configuration is built without filling. //! For rectangle selection use SetRectangle() method. //! For polygonal selection use AddPoint() and GetPoints() methods. class AIS_RubberBand : public AIS_InteractiveObject diff --git a/src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx b/src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx index 707096dcef..a0dff90f24 100644 --- a/src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx +++ b/src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx @@ -148,8 +148,8 @@ static void CompareBounds(gp_Pnt2d& P1, static void Hunt(const TColStd_Array1OfReal& Arr, const Standard_Real Coord, Standard_Integer& Iloc) -{//Warning: Hunt is used to find number of knot which equals co-ordinate component, - // when co-ordinate component definitly equals a knot only. +{//Warning: Hunt is used to find number of knot which equals coordinate component, + // when coordinate component definitly equals a knot only. Standard_Real Tol=Precision::PConfusion()/10; Standard_Integer i=1; while((i <= Arr.Upper()) && (Abs(Coord - Arr(i)) > Tol)){ diff --git a/src/AdvApprox/AdvApprox_ApproxAFunction.cxx b/src/AdvApprox/AdvApprox_ApproxAFunction.cxx index 3327ffef82..ffbf4e23c4 100644 --- a/src/AdvApprox/AdvApprox_ApproxAFunction.cxx +++ b/src/AdvApprox/AdvApprox_ApproxAFunction.cxx @@ -752,7 +752,7 @@ void AdvApprox_ApproxAFunction::Perform(const Standard_Integer Num1DSS, index += 1 ; } // - // Ouput + // Output // Standard_Integer ErrorCode = 0, diff --git a/src/AppCont/AppCont_Function.hxx b/src/AppCont/AppCont_Function.hxx index 1ae4289f83..4a3f223ed4 100644 --- a/src/AppCont/AppCont_Function.hxx +++ b/src/AppCont/AppCont_Function.hxx @@ -22,7 +22,7 @@ #include #include -//! Class describing a continous 3d and/or function f(u). +//! Class describing a continuous 3d and/or function f(u). //! This class must be provided by the user to use the approximation algorithm FittingCurve. class AppCont_Function { diff --git a/src/Approx/Approx_ComputeCLine.gxx b/src/Approx/Approx_ComputeCLine.gxx index b6e1bfbda4..a788375de0 100644 --- a/src/Approx/Approx_ComputeCLine.gxx +++ b/src/Approx/Approx_ComputeCLine.gxx @@ -166,7 +166,7 @@ void Approx_ComputeCLine::Perform(const MultiLine& Line) } else { - // keep best decison + // keep best decision if ((thetol3d + thetol2d) < (KeptT3d + KeptT2d)) { KeptMultiCurve = TheMultiCurve; diff --git a/src/Approx/Approx_CurvilinearParameter.hxx b/src/Approx/Approx_CurvilinearParameter.hxx index 9c6e4cc2ed..bf014252db 100644 --- a/src/Approx/Approx_CurvilinearParameter.hxx +++ b/src/Approx/Approx_CurvilinearParameter.hxx @@ -22,13 +22,17 @@ #include #include -//! Approximation of a Curve to make its parameter be its -//! curvilinear abscissa +//! Approximation of a Curve to make its parameter be its curvilinear abscissa. //! If the curve is a curve on a surface S, C2D is the corresponding Pcurve, -//! we considere the curve is given by its representation S(C2D(u)) -//! If the curve is a curve on 2 surfaces S1 and S2 and C2D1 C2D2 are -//! the two corresponding Pcurve, we considere the curve is given -//! by its representation 1/2(S1(C2D1(u) + S2 (C2D2(u))) +//! we consider the curve is given by its representation +//! @code +//! S(C2D(u)) +//! @endcode +//! If the curve is a curve on 2 surfaces S1 and S2 and C2D1 C2D2 are the two corresponding Pcurve, +//! we consider the curve is given by its representation +//! @code +//! 1/2(S1(C2D1(u) + S2(C2D2(u))) +//! @endcode class Approx_CurvilinearParameter { public: @@ -72,20 +76,11 @@ public: //! print the maximum errors(s) Standard_EXPORT void Dump (Standard_OStream& o) const; - - - -protected: - - - - - private: - Standard_EXPORT static void ToleranceComputation (const Handle(Adaptor2d_Curve2d)& C2D, const Handle(Adaptor3d_Surface)& S, const Standard_Integer MaxNumber, const Standard_Real Tol, Standard_Real& TolV, Standard_Real& TolW); +private: Standard_Integer myCase; Standard_Boolean myDone; @@ -97,13 +92,6 @@ private: Handle(Geom2d_BSplineCurve) myCurve2d2; Standard_Real myMaxError2d2; - }; - - - - - - #endif // _Approx_CurvilinearParameter_HeaderFile diff --git a/src/ApproxInt/ApproxInt_KnotTools.cxx b/src/ApproxInt/ApproxInt_KnotTools.cxx index afc21266fa..5128529e42 100644 --- a/src/ApproxInt/ApproxInt_KnotTools.cxx +++ b/src/ApproxInt/ApproxInt_KnotTools.cxx @@ -349,7 +349,7 @@ void ApproxInt_KnotTools::FilterKnots(NCollection_Sequence& th } } - // II: Filter poins with too small amount of points per knot interval. + // II: Filter points with too small amount of points per knot interval. i = 1; theLKnots.Append(theInds(i)); Standard_Integer anIndsPrev = theInds(i); diff --git a/src/ApproxInt/ApproxInt_KnotTools.hxx b/src/ApproxInt/ApproxInt_KnotTools.hxx index d80b1aad40..84291b8ce8 100644 --- a/src/ApproxInt/ApproxInt_KnotTools.hxx +++ b/src/ApproxInt/ApproxInt_KnotTools.hxx @@ -68,7 +68,7 @@ public: //! @param thePntsXYZ - Set of 3d points. //! @param thePntsU1V1 - Set of 2d points. //! @param thePntsU2V2 - Set of 2d points. - //! @param thePars - Expected parameters assoiated with set. + //! @param thePars - Expected parameters associated with set. //! @param theApproxXYZ - Flag, existence of 3d set. //! @param theApproxU1V1 - Flag existence of first 2d set. //! @param theApproxU2V2 - Flag existence of second 2d set. @@ -121,7 +121,7 @@ private: //! //! I: Filter too big number of points per knot interval. //! - //! II: Filter poins with too small amount of points per knot interval. + //! II: Filter points with too small amount of points per knot interval. //! //! III: Fill Last Knot. static void FilterKnots(NCollection_Sequence& theInds, diff --git a/src/Aspect/Aspect_Display.hxx b/src/Aspect/Aspect_Display.hxx index aba21fb0a9..453914be5f 100644 --- a/src/Aspect/Aspect_Display.hxx +++ b/src/Aspect/Aspect_Display.hxx @@ -12,7 +12,7 @@ // commercial license or contractual agreement. /*============================================================================*/ -/*==== Titre: Aspect_Display.hxx */ +/*==== Title: Aspect_Display.hxx */ /*==== Role : The header file of primitive type "Display" from package */ /*==== "V3d" */ /*==== Implementation: This is a primitive type implemented with typedef */ diff --git a/src/Aspect/Aspect_Drawable.hxx b/src/Aspect/Aspect_Drawable.hxx index eadfb13992..0af992e169 100644 --- a/src/Aspect/Aspect_Drawable.hxx +++ b/src/Aspect/Aspect_Drawable.hxx @@ -12,7 +12,7 @@ // commercial license or contractual agreement. /*============================================================================*/ -/*==== Titre: Aspect_Drawable.hxx */ +/*==== Title: Aspect_Drawable.hxx */ /*==== Role : The header file of primitive type "Handle" from packages */ /*==== "Xw" & "WNT" */ /*==== Implementation: This is a primitive type implemented with typedef */ diff --git a/src/Aspect/Aspect_Handle.hxx b/src/Aspect/Aspect_Handle.hxx index 660f25376a..02d5d3bf20 100644 --- a/src/Aspect/Aspect_Handle.hxx +++ b/src/Aspect/Aspect_Handle.hxx @@ -12,7 +12,7 @@ // commercial license or contractual agreement. /*============================================================================*/ -/*==== Titre: Aspect_Handle.hxx */ +/*==== Title: Aspect_Handle.hxx */ /*==== Role : The header file of primitive type "Handle" from packages */ /*==== "Xw" & "WNT" */ /*==== Implementation: This is a primitive type implemented with typedef */ diff --git a/src/Aspect/Aspect_RenderingContext.hxx b/src/Aspect/Aspect_RenderingContext.hxx index 7eb0a65f83..112c6feb82 100644 --- a/src/Aspect/Aspect_RenderingContext.hxx +++ b/src/Aspect/Aspect_RenderingContext.hxx @@ -12,9 +12,9 @@ // commercial license or contractual agreement. /*============================================================================*/ -/*==== Titre: Aspect_RenderingContext.hxx */ -/*==== Role : The header file of primitive type "RenderingContext" from package */ -/*==== "V3d" */ +/*==== Title: Aspect_RenderingContext.hxx */ +/*==== Role: The header file of primitive type "RenderingContext" from package*/ +/*==== "V3d" */ /*==== Implementation: This is a primitive type implemented with typedef */ /*============================================================================*/ // To manage 2D or 3D graphic context diff --git a/src/BOPTest/BOPTest_OptionCommands.cxx b/src/BOPTest/BOPTest_OptionCommands.cxx index ffa474b8b5..63ea864060 100644 --- a/src/BOPTest/BOPTest_OptionCommands.cxx +++ b/src/BOPTest/BOPTest_OptionCommands.cxx @@ -64,7 +64,7 @@ void BOPTest::OptionCommands(Draw_Interpretor& theCommands) "\t\tUsage: bglue [0 (off) / 1 (shift) / 2 (full)]", __FILE__, bGlue, g); - theCommands.Add("bdrawwarnshapes", "Enables/Disables drawing of waring shapes of BOP algorithms.\n" + theCommands.Add("bdrawwarnshapes", "Enables/Disables drawing of warning shapes of BOP algorithms.\n" "\t\tUsage: bdrawwarnshapes 0 (do not draw) / 1 (draw warning shapes)", __FILE__, bdrawwarnshapes, g); diff --git a/src/BOPTools/BOPTools_AlgoTools2D.hxx b/src/BOPTools/BOPTools_AlgoTools2D.hxx index 8db49a549d..73ac6c50d9 100644 --- a/src/BOPTools/BOPTools_AlgoTools2D.hxx +++ b/src/BOPTools/BOPTools_AlgoTools2D.hxx @@ -189,14 +189,15 @@ public: //! Checks if CurveOnSurface of theE on theF matches with isoline of theF surface. //! Sets corresponding values for isTheUIso and isTheVIso variables. + //! //! ATTENTION!!! - //! This method is based on comparation between direction of - //! surface (which theF is based on) iso-lines and the direction - //! of the edge p-curve (on theF) in middle-point of the p-curve. - //! This method should be used carefully - //! (e.g. BRep_Tool::IsClosed(...) together) in order to - //! avoid false classification some p-curves as isoline (e.g. circle - //! on a plane). + //! This method is based on the comparison between direction of + //! surface (which theF is based on) iso-lines and the direction + //! of the edge p-curve (on theF) in middle-point of the p-curve. + //! + //! This method should be used carefully + //! (e.g. BRep_Tool::IsClosed(...) together) in order to avoid + //! false classification some p-curves as isoline (e.g. circle on a plane). Standard_EXPORT static void IsEdgeIsoline(const TopoDS_Edge& theE, const TopoDS_Face& theF, Standard_Boolean& isTheUIso, diff --git a/src/BRepAlgo/BRepAlgo.hxx b/src/BRepAlgo/BRepAlgo.hxx index 37c8a7d94d..1f0c8164b5 100644 --- a/src/BRepAlgo/BRepAlgo.hxx +++ b/src/BRepAlgo/BRepAlgo.hxx @@ -80,11 +80,10 @@ public: //! auto-intersection of new wires are not searched. Standard_EXPORT static Standard_Boolean IsValid (const TopTools_ListOfShape& theArgs, const TopoDS_Shape& theResult, const Standard_Boolean closedSolid = Standard_False, const Standard_Boolean GeomCtrl = Standard_True); - //! Checks if the shape is "correct". If not, returns - //! , else returns . - //! This method differs from the previous one in the - //! fact that no geometric contols (intersection of - //! wires, pcurve validity) are performed. + //! Checks if the shape is "correct". + //! If not, returns FALSE, else returns TRUE. + //! This method differs from the previous one in the fact that no geometric controls + //! (intersection of wires, pcurve validity) are performed. Standard_EXPORT static Standard_Boolean IsTopologicallyValid (const TopoDS_Shape& S); diff --git a/src/BRepAlgo/BRepAlgo_AsDes.hxx b/src/BRepAlgo/BRepAlgo_AsDes.hxx index a97bb80613..9241dd18e8 100644 --- a/src/BRepAlgo/BRepAlgo_AsDes.hxx +++ b/src/BRepAlgo/BRepAlgo_AsDes.hxx @@ -37,7 +37,6 @@ class BRepAlgo_AsDes : public Standard_Transient public: - //! Creates an empty AsDes. Standard_EXPORT BRepAlgo_AsDes(); @@ -61,45 +60,34 @@ public: //! Returns futur subhapes of . Standard_EXPORT TopTools_ListOfShape& ChangeDescendant (const TopoDS_Shape& S); - - //! Replace by . - //! disapear from . - Standard_EXPORT void Replace (const TopoDS_Shape& OldS, const TopoDS_Shape& NewS); - - //! Remove from me. - Standard_EXPORT void Remove (const TopoDS_Shape& S); - + + //! Replace theOldS by theNewS. + //! theOldS disappear from this. + Standard_EXPORT void Replace (const TopoDS_Shape& theOldS, const TopoDS_Shape& theNewS); + + //! Remove theS from me. + Standard_EXPORT void Remove (const TopoDS_Shape& theS); + //! Returns True if (S1> and has common //! Descendants. Stores in the Commons Descendants. Standard_EXPORT Standard_Boolean HasCommonDescendant (const TopoDS_Shape& S1, const TopoDS_Shape& S2, TopTools_ListOfShape& LC) const; - - - DEFINE_STANDARD_RTTIEXT(BRepAlgo_AsDes,Standard_Transient) -protected: - - - - private: - - //! Replace by . - //! disapear from . - Standard_EXPORT void BackReplace (const TopoDS_Shape& OldS, const TopoDS_Shape& NewS, const TopTools_ListOfShape& L, const Standard_Boolean InUp); + //! Replace theOldS by theNewS. + //! theOldS disappear from this. + Standard_EXPORT void BackReplace (const TopoDS_Shape& theOldS, + const TopoDS_Shape& theNewS, + const TopTools_ListOfShape& theL, + const Standard_Boolean theInUp); + +private: TopTools_DataMapOfShapeListOfShape up; TopTools_DataMapOfShapeListOfShape down; - }; - - - - - - #endif // _BRepAlgo_AsDes_HeaderFile diff --git a/src/BRepBuilderAPI/BRepBuilderAPI_FastSewing.hxx b/src/BRepBuilderAPI/BRepBuilderAPI_FastSewing.hxx index 0421877e01..5d9e548a61 100644 --- a/src/BRepBuilderAPI/BRepBuilderAPI_FastSewing.hxx +++ b/src/BRepBuilderAPI/BRepBuilderAPI_FastSewing.hxx @@ -151,7 +151,7 @@ protected: NCollection_List myFaces; NCollection_List myEdges; - //! Indentifies the place of this Vertex in + //! Identifies the place of this Vertex in //! BRepBuilderAPI_FastSewing::myVertexVec list Standard_Integer myID; }; @@ -201,7 +201,7 @@ protected: //! myVertices[i] is Start point of myEdges[i] Standard_Integer myVertices[4]; - //! Indentifies the place of this Face in + //! Identifies the place of this Face in //! BRepBuilderAPI_FastSewing::myFaceVec list Standard_Integer myID; }; @@ -245,7 +245,7 @@ protected: //! Value is the index of this shape in myFaceVec array NCollection_Sequence myFaces; - //! Indentifies the place of this Edge in + //! Identifies the place of this Edge in //! BRepBuilderAPI_FastSewing::myEdgeVec list Standard_Integer myID; diff --git a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.hxx b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.hxx index d11c93680c..ff67eae28f 100644 --- a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.hxx +++ b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.hxx @@ -235,7 +235,7 @@ public: //! Gets mode for non-manifold sewing. //! - //! INTERNAL FUCTIONS --- + //! INTERNAL FUNCTIONS --- Standard_Boolean NonManifoldMode() const; diff --git a/src/BRepCheck/BRepCheck_Face.cxx b/src/BRepCheck/BRepCheck_Face.cxx index 11485b5a35..6de003ef5b 100644 --- a/src/BRepCheck/BRepCheck_Face.cxx +++ b/src/BRepCheck/BRepCheck_Face.cxx @@ -473,7 +473,7 @@ BRepCheck_Status BRepCheck_Face::OrientationOfWires } } } - // quit withour error + // quit without error if (Update) { BRepCheck::Add(myMap(myShape),myOrires); } diff --git a/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx b/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx index c3040472ec..3812de0f4d 100644 --- a/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx +++ b/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx @@ -110,10 +110,10 @@ class BRepExtrema_DistShapeShape //! This support can be a Vertex, an Edge or a Face.
Standard_EXPORT TopoDS_Shape SupportOnShape2(const Standard_Integer N) const; //! gives the corresponding parameter t if the Nth solution
- //! is situated on an Egde of the first shape
+ //! is situated on an Edge of the first shape
Standard_EXPORT void ParOnEdgeS1(const Standard_Integer N,Standard_Real& t) const; //! gives the corresponding parameter t if the Nth solution
- //! is situated on an Egde of the first shape
+ //! is situated on an Edge of the first shape
Standard_EXPORT void ParOnEdgeS2(const Standard_Integer N,Standard_Real& t) const; //! gives the corresponding parameters (U,V) if the Nth solution
//! is situated on an face of the first shape
diff --git a/src/BRepFill/BRepFill_ApproxSeewing.hxx b/src/BRepFill/BRepFill_ApproxSeewing.hxx index 0bb51cee0b..feb7ce2405 100644 --- a/src/BRepFill/BRepFill_ApproxSeewing.hxx +++ b/src/BRepFill/BRepFill_ApproxSeewing.hxx @@ -28,18 +28,15 @@ class Geom2d_Curve; class StdFail_NotDone; -//! Evaluate the 3dCurve and the PCurves described in -//! a MultiLine from BRepFill. The parametrization of -//! those curves is not imposed by the Bissectrice. -//! The parametrization is given approximatively by -//! the abscissa of the curve3d. -class BRepFill_ApproxSeewing +//! Evaluate the 3dCurve and the PCurves described in a MultiLine from BRepFill. +//! The parametrization of those curves is not imposed by the Bissectrice. +//! The parametrization is given approximately by the abscissa of the curve3d. +class BRepFill_ApproxSeewing { public: DEFINE_STANDARD_ALLOC - Standard_EXPORT BRepFill_ApproxSeewing(); Standard_EXPORT BRepFill_ApproxSeewing(const BRepFill_MultiLine& ML); @@ -59,32 +56,14 @@ public: //! first face of the MultiLine Standard_EXPORT const Handle(Geom2d_Curve)& CurveOnF2() const; - - - -protected: - - - - - private: - - BRepFill_MultiLine myML; Standard_Boolean myIsDone; Handle(Geom_Curve) myCurve; Handle(Geom2d_Curve) myPCurve1; Handle(Geom2d_Curve) myPCurve2; - }; - - - - - - #endif // _BRepFill_ApproxSeewing_HeaderFile diff --git a/src/BRepFill/BRepFill_PipeShell.hxx b/src/BRepFill/BRepFill_PipeShell.hxx index 08b2e5adfa..454ba457b0 100644 --- a/src/BRepFill/BRepFill_PipeShell.hxx +++ b/src/BRepFill/BRepFill_PipeShell.hxx @@ -129,7 +129,7 @@ public: //! - correspondence between profile, and section on the sweeped shape defined by a vertex of the spine Standard_EXPORT void SetForceApproxC1 (const Standard_Boolean ForceApproxC1); - //! Set an section. The correspondence with the spine, will be automaticaly performed. + //! Set an section. The correspondence with the spine, will be automatically performed. Standard_EXPORT void Add (const TopoDS_Shape& Profile, const Standard_Boolean WithContact = Standard_False, const Standard_Boolean WithCorrection = Standard_False); //! Set an section. The correspondence with the spine, is given by Location. diff --git a/src/BRepGProp/BRepGProp.hxx b/src/BRepGProp/BRepGProp.hxx index f13541d7a0..0cbbdfe016 100644 --- a/src/BRepGProp/BRepGProp.hxx +++ b/src/BRepGProp/BRepGProp.hxx @@ -146,7 +146,7 @@ public: const Standard_Boolean SkipShared = Standard_False, const Standard_Boolean UseTriangulation = Standard_False); - //! Updates with the shape , that contains its pricipal properties. + //! Updates with the shape , that contains its principal properties. //! The surface properties of all the faces in are computed. //! Adaptive 2D Gauss integration is used. //! Parameter Eps sets maximal relative error of computed mass (area) for each face. @@ -207,7 +207,7 @@ public: const Standard_Boolean SkipShared = Standard_False, const Standard_Boolean UseTriangulation = Standard_False); - //! Updates with the shape , that contains its pricipal properties. + //! Updates with the shape , that contains its principal properties. //! The volume properties of all the FORWARD and REVERSED faces in are computed. //! If OnlyClosed is True then computed faces must belong to closed Shells. //! Adaptive 2D Gauss integration is used. @@ -225,7 +225,7 @@ public: const Standard_Real Eps, const Standard_Boolean OnlyClosed = Standard_False, const Standard_Boolean SkipShared = Standard_False); - //! Updates with the shape , that contains its pricipal properties. + //! Updates with the shape , that contains its principal properties. //! The volume properties of all the FORWARD and REVERSED faces in are computed. //! If OnlyClosed is True then computed faces must belong to closed Shells. //! Adaptive 2D Gauss integration is used. diff --git a/src/BRepGProp/BRepGProp_Face.cxx b/src/BRepGProp/BRepGProp_Face.cxx index 4d594bc98d..f0ea770bc2 100644 --- a/src/BRepGProp/BRepGProp_Face.cxx +++ b/src/BRepGProp/BRepGProp_Face.cxx @@ -225,7 +225,7 @@ void BRepGProp_Face::Normal (const Standard_Real U, // APO 17.04.2002 (OCC104) // This is functions that calculate coeff. to optimize "integration order". -//They had been produced experementally for some hard example. +// They had been produced experimentally for some hard example. static Standard_Real AS = -0.15, AL = -0.50, B = 1.0, C = 0.75, D = 0.25; static inline Standard_Real SCoeff(const Standard_Real Eps){ return Eps < 0.1? AS*(B+Log10(Eps)) + C: C; diff --git a/src/BRepGProp/BRepGProp_Vinert.hxx b/src/BRepGProp/BRepGProp_Vinert.hxx index 3db4960d23..f762c62017 100644 --- a/src/BRepGProp/BRepGProp_Vinert.hxx +++ b/src/BRepGProp/BRepGProp_Vinert.hxx @@ -58,7 +58,7 @@ public: //! surfaces. //! Non-adaptive 2D Gauss integration with predefined numbers of Gauss points //! is used. Numbers of points depend on types of surfaces and curves. - //! Errror of the computation is not calculated. + //! Error of the computation is not calculated. Standard_EXPORT BRepGProp_Vinert(const BRepGProp_Face& S, const gp_Pnt& VLocation); @@ -117,7 +117,7 @@ public: //! surfaces. //! Non-adaptive 2D Gauss integration with predefined numbers of Gauss points //! is used. Numbers of points depend on types of surfaces and curves. - //! Errror of the computation is not calculated. + //! Error of the computation is not calculated. Standard_EXPORT BRepGProp_Vinert(BRepGProp_Face& S, BRepGProp_Domain& D, const gp_Pnt& VLocation); diff --git a/src/BRepTools/BRepTools_Modifier.cxx b/src/BRepTools/BRepTools_Modifier.cxx index 5022e4ee58..deeb1ee537 100644 --- a/src/BRepTools/BRepTools_Modifier.cxx +++ b/src/BRepTools/BRepTools_Modifier.cxx @@ -412,7 +412,7 @@ Standard_Boolean BRepTools_Modifier::Rebuild { // rem dub 16/09/97 : Make constant topology or not make at all. // Do not make if CopySurface = 1 - // Atention, TRUE sewing edges (ReallyClosed) + // Attention, TRUE sewing edges (ReallyClosed) // stay even if CopySurface is true. // check that edge contains two pcurves on this surface: diff --git a/src/BRepTools/BRepTools_ReShape.hxx b/src/BRepTools/BRepTools_ReShape.hxx index ae97312db3..80e0ad8c87 100644 --- a/src/BRepTools/BRepTools_ReShape.hxx +++ b/src/BRepTools/BRepTools_ReShape.hxx @@ -112,17 +112,16 @@ public: //! Applies the substitutions requests to a shape. //! - //! gives the level of type until which requests are taken - //! into account. For subshapes of the type no rebuild - //! and futher exploring are done. + //! theUntil gives the level of type until which requests are taken into account. + //! For subshapes of the type no rebuild and further exploring are done. //! //! NOTE: each subshape can be replaced by shape of the same type - //! or by shape containing only shapes of that type (for - //! example, TopoDS_Edge can be replaced by TopoDS_Edge, + //! or by shape containing only shapes of that type + //! (for example, TopoDS_Edge can be replaced by TopoDS_Edge, //! TopoDS_Wire or TopoDS_Compound containing TopoDS_Edges). - //! If incompatible shape type is encountered, it is ignored - //! and flag FAIL1 is set in Status. - Standard_EXPORT virtual TopoDS_Shape Apply (const TopoDS_Shape& shape, const TopAbs_ShapeEnum until = TopAbs_SHAPE); + //! If incompatible shape type is encountered, it is ignored and flag FAIL1 is set in Status. + Standard_EXPORT virtual TopoDS_Shape Apply (const TopoDS_Shape& theShape, + const TopAbs_ShapeEnum theUntil = TopAbs_SHAPE); //! Returns (modifiable) the flag which defines whether Location of shape take into account //! during replacing shapes. diff --git a/src/BRepTools/BRepTools_Substitution.cxx b/src/BRepTools/BRepTools_Substitution.cxx index 3c41836d30..a7e1c34fde 100644 --- a/src/BRepTools/BRepTools_Substitution.cxx +++ b/src/BRepTools/BRepTools_Substitution.cxx @@ -125,9 +125,9 @@ void BRepTools_Substitution::Build(const TopoDS_Shape& S) if (!HasSubShape) { if (NewS.ShapeType() == TopAbs_WIRE || NewS.ShapeType() == TopAbs_SHELL || NewS.ShapeType() == TopAbs_SOLID || NewS.ShapeType() == TopAbs_COMPOUND) - //---------------------------------------------------------------- - // Wire,Solid,Shell,Compound mut have subshape else they disapear - //--------------------------------------------------------------- + //----------------------------------------------------------------- + // Wire,Solid,Shell,Compound must have subshape else they disappear + //----------------------------------------------------------------- NewS.Nullify(); } } diff --git a/src/BSplCLib/BSplCLib.hxx b/src/BSplCLib/BSplCLib.hxx index 1d6dade1ac..e1e8c9d5fd 100644 --- a/src/BSplCLib/BSplCLib.hxx +++ b/src/BSplCLib/BSplCLib.hxx @@ -524,64 +524,67 @@ public: Standard_EXPORT static void IncreaseDegree (const Standard_Integer NewDegree, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal* Weights, TColgp_Array1OfPnt& NewPoles, TColStd_Array1OfReal* NewWeights); //! Increase the degree of a bspline (or bezier) curve - //! of dimension form to - //! . + //! of dimension theDimension form theDegree to theNewDegree. //! - //! The number of poles in the new curve is : + //! The number of poles in the new curve is: + //! @code + //! Poles.Length() + (NewDegree - Degree) * Number of spans + //! @endcode + //! Where the number of spans is: + //! @code + //! LastUKnotIndex(Mults) - FirstUKnotIndex(Mults) + 1 + //! @endcode + //! for a non-periodic curve, and + //! @code + //! Knots.Length() - 1 + //! @endcode + //! for a periodic curve. //! - //! Poles.Length() + (NewDegree - Degree) * Number of spans + //! The multiplicities of all knots are increased by the degree elevation. //! - //! Where the number of spans is : - //! - //! LastUKnotIndex(Mults) - FirstUKnotIndex(Mults) + 1 - //! - //! for a non-periodic curve - //! - //! And Knots.Length() - 1 for a periodic curve. - //! - //! The multiplicities of all knots are increased by - //! the degree elevation. - //! - //! The new knots are usually the same knots with the - //! exception of a non-periodic curve with the first + //! The new knots are usually the same knots with the + //! exception of a non-periodic curve with the first //! and last multiplicity not equal to Degree+1 where - //! knots are removed form the start and the bottom - //! untils the sum of the multiplicities is equal to - //! NewDegree+1 at the knots corresponding to the + //! knots are removed form the start and the bottom + //! until the sum of the multiplicities is equal to + //! NewDegree+1 at the knots corresponding to the //! first and last parameters of the curve. //! - //! Example : Suppose a curve of degree 3 starting - //! with following knots and multiplicities : + //! Example: Suppose a curve of degree 3 starting + //! with following knots and multiplicities: + //! @code + //! knot : 0. 1. 2. + //! mult : 1 2 1 + //! @endcode //! - //! knot : 0. 1. 2. - //! mult : 1 2 1 + //! The FirstUKnot is 2.0 because the sum of multiplicities is + //! @code + //! Degree+1 : 1 + 2 + 1 = 4 = 3 + 1 + //! @endcode + //! i.e. the first parameter of the curve is 2.0 and + //! will still be 2.0 after degree elevation. + //! Let raise this curve to degree 4. + //! The multiplicities are increased by 2. //! - //! The FirstUKnot is 2. because the sum of - //! multiplicities is Degree+1 : 1 + 2 + 1 = 4 = 3 + 1 + //! They become 2 3 2. + //! But we need a sum of multiplicities of 5 at knot 2. + //! So the first knot is removed and the new knots are: + //! @code + //! knot : 1. 2. + //! mult : 3 2 + //! @endcode + //! The multipicity of the first knot may also be reduced if the sum is still to big. //! - //! i.e. the first parameter of the curve is 2. and - //! will still be 2. after degree elevation. Let - //! raises this curve to degree 4. The multiplicities - //! are increased by 2. + //! In the most common situations (periodic curve or curve with first + //! and last multiplicities equals to Degree+1) the knots are knot changes. //! - //! They become 2 3 2. But we need a sum of - //! multiplicities of 5 at knot 2. So the first knot - //! is removed and the new knots are : - //! - //! knot : 1. 2. - //! mult : 3 2 - //! - //! The multipicity of the first knot may also be - //! reduced if the sum is still to big. - //! - //! In the most common situations (periodic curve or - //! curve with first and last multiplicities equals to - //! Degree+1) the knots are knot changes. - //! - //! The method IncreaseDegreeCountKnots can be used to - //! compute the new number of knots. - Standard_EXPORT static void IncreaseDegree (const Standard_Integer NewDegree, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal* Weights, TColgp_Array1OfPnt2d& NewPoles, TColStd_Array1OfReal* NewWeights); - + //! The method IncreaseDegreeCountKnots can be used to compute the new number of knots. + Standard_EXPORT static void IncreaseDegree (const Standard_Integer theNewDegree, + const TColgp_Array1OfPnt2d& thePoles, + const TColStd_Array1OfReal* theWeights, + TColgp_Array1OfPnt2d& theNewPoles, + TColStd_Array1OfReal* theNewWeights); + //! Set in and the number of Knots and //! Poles of the NotPeriodic Curve identical at the //! periodic curve with a degree , a diff --git a/src/Bisector/Bisector_Bisec.hxx b/src/Bisector/Bisector_Bisec.hxx index 87cf9df4b0..17fdd17dd7 100644 --- a/src/Bisector/Bisector_Bisec.hxx +++ b/src/Bisector/Bisector_Bisec.hxx @@ -31,11 +31,11 @@ class gp_Vec2d; class Geom2d_Point; -//! Bisec provides the bisecting line between two elements -//! This line is trimed by a point

and it's contained in the domain +//! Bisec provides the bisecting line between two elements +//! This line is trimmed by a point

and it's contained in the domain //! defined by the two vectors , and . //! -//! Definition of the domain: +//! Definition of the domain: //! if is true the bisecting line is contained in the sector //! defined by <-V1> and <-V2> in the sense indirect. //! if is false the bisecting line is contained in the sector @@ -47,7 +47,7 @@ class Geom2d_Point; //! corresponding to one of hyperbola's axes. //! if the bisector is a parabola on the focal length is smaller than //! , the bisector is replaced by a semi_line corresponding -//! to the axe of symetrie of the parabola. +//! to the axe of symmetry of the parabola. //! if the bisector is an ellipse and the minor radius is smaller than //! , the bisector is replaced by a segment corresponding //! to the great axe of the ellipse. diff --git a/src/Bisector/Bisector_Inter.cxx b/src/Bisector/Bisector_Inter.cxx index f563b7df18..2de350fe5d 100644 --- a/src/Bisector/Bisector_Inter.cxx +++ b/src/Bisector/Bisector_Inter.cxx @@ -49,7 +49,7 @@ static Standard_Integer nbint = 0; //=================================================================================== // function : -// putpose : +// purpose : //=================================================================================== Bisector_Inter::Bisector_Inter() { @@ -57,7 +57,7 @@ Bisector_Inter::Bisector_Inter() //=================================================================================== // function : -// putpose : +// purpose : //=================================================================================== Bisector_Inter::Bisector_Inter(const Bisector_Bisec& C1, const IntRes2d_Domain& D1, @@ -72,7 +72,7 @@ Bisector_Inter::Bisector_Inter(const Bisector_Bisec& C1, //=================================================================================== // function : ConstructSegment -// putpose : +// purpose : //=================================================================================== static Handle(Geom2d_Line) ConstructSegment(const gp_Pnt2d& PMin, const gp_Pnt2d& PMax, @@ -88,7 +88,7 @@ static Handle(Geom2d_Line) ConstructSegment(const gp_Pnt2d& PMin, //=================================================================================== // function : Perform -// putpose : +// purpose : //=================================================================================== void Bisector_Inter::Perform(const Bisector_Bisec& C1, const IntRes2d_Domain& D1, @@ -208,7 +208,7 @@ void Bisector_Inter::Perform(const Bisector_Bisec& C1, //=================================================================================== // function : SinglePerform -// putpose : +// purpose : //=================================================================================== void Bisector_Inter::SinglePerform(const Handle(Geom2d_Curve)& CBis1, const IntRes2d_Domain& D1, @@ -308,7 +308,7 @@ void Bisector_Inter::SinglePerform(const Handle(Geom2d_Curve)& CBis1, //=================================================================================== // function : NeighbourPerform -// putpose : Find the intersection of 2 neighbor bissectrices curve/curve +// purpose : Find the intersection of 2 neighbor bissectrices curve/curve // (ie Bis1 separates A and B and Bis2 separates B and C). // Bis1 is parameterized by B and Bis2 by C. // @@ -371,7 +371,7 @@ void Bisector_Inter::NeighbourPerform(const Handle(Bisector_BisecCC)& Bis1, //===================================================================================== // function : TestBound -// putpose : Test if the extremities of Bis2 are on the segment cooresponding to Bis1. +// purpose : Test if the extremities of Bis2 are on the segment corresponding to Bis1. //===================================================================================== void Bisector_Inter::TestBound (const Handle(Geom2d_Line)& Bis1, const IntRes2d_Domain& D1, diff --git a/src/CDF/CDF_Application.hxx b/src/CDF/CDF_Application.hxx index b4871f4251..82ca5a90ab 100644 --- a/src/CDF/CDF_Application.hxx +++ b/src/CDF/CDF_Application.hxx @@ -137,7 +137,7 @@ public: PCDM_ReaderStatus GetRetrieveStatus() const { return myRetrievableStatus; } //! Reads aDoc from standard SEEKABLE stream theIStream, - //! the stream should support SEEK fuctionality + //! the stream should support SEEK functionality Standard_EXPORT Handle(CDM_Document) Read (Standard_IStream& theIStream, const Message_ProgressRange& theRange = Message_ProgressRange()); diff --git a/src/ChFi3d/ChFi3d_Builder_6.cxx b/src/ChFi3d/ChFi3d_Builder_6.cxx index ca69c6f437..3bcd519a36 100644 --- a/src/ChFi3d/ChFi3d_Builder_6.cxx +++ b/src/ChFi3d/ChFi3d_Builder_6.cxx @@ -776,7 +776,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data, if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S1,tolC1,tolcheck)){ #ifdef OCCT_DEBUG - std::cout<<"aaproximate tolerance under-valued : "< //========================================================================= -// Creation d une translation 3d de Geom2d de vecteur de tanslation Vec. + +// Creation d une translation 3d de Geom2d de vecteur de translation Vec //========================================================================= GCE2d_MakeTranslation::GCE2d_MakeTranslation(const gp_Vec2d& Vec ) { TheTranslation = new Geom2d_Transformation(); TheTranslation->SetTranslation(Vec); } - + //========================================================================= -// Creation d une translation 3d de Geom2d de vecteur de tanslation le + +// Creation d une translation 3d de Geom2d de vecteur de translation le + // vecteur reliant Point1 a Point2. + //========================================================================= @@ -40,6 +40,6 @@ GCE2d_MakeTranslation::GCE2d_MakeTranslation(const gp_Pnt2d& Point1 , } const Handle(Geom2d_Transformation)& GCE2d_MakeTranslation::Value() const -{ +{ return TheTranslation; } diff --git a/src/Geom/Geom_ConicalSurface.hxx b/src/Geom/Geom_ConicalSurface.hxx index f8ee543ed4..50da8c3a60 100644 --- a/src/Geom/Geom_ConicalSurface.hxx +++ b/src/Geom/Geom_ConicalSurface.hxx @@ -63,9 +63,15 @@ DEFINE_STANDARD_HANDLE(Geom_ConicalSurface, Geom_ElementarySurface) //! - Its "main Direction" is the v parametric direction of the cone. //! - Its origin is the origin of the v parameter. //! The parametric range of the two parameters is: -//! - [ 0, 2.*Pi ] for u, and - ] -infinity, +infinity [ for v -//! The parametric equation of the cone is: P(u, v) = -//! O + (R + v*sin(Ang)) * (cos(u)*XDir + sin(u)*YDir) + v*cos(Ang)*ZDir where: +//! @code +//! - [ 0, 2.*Pi ] for u, and +//! - ] -infinity, +infinity [ for v +//! @endcode +//! The parametric equation of the cone is: +//! @code +//! P(u, v) = O + (R + v*sin(Ang)) * (cos(u)*XDir + sin(u)*YDir) + v*cos(Ang)*ZDir +//! @endcode +//! where: //! - O, XDir, YDir and ZDir are respectively //! the origin, the "X Direction", the "Y Direction" and //! the "Z Direction" of the cone's local coordinate system, @@ -96,21 +102,16 @@ public: Standard_EXPORT Geom_ConicalSurface(const gp_Ax3& A3, const Standard_Real Ang, const Standard_Real Radius); - //! Creates a ConicalSurface from a non transient Cone from - //! package gp. + //! Creates a ConicalSurface from a non transient gp_Cone. Standard_EXPORT Geom_ConicalSurface(const gp_Cone& C); - //! Set so that has the same geometric properties as C. Standard_EXPORT void SetCone (const gp_Cone& C); - - //! Changes the radius of the conical surface in the placement - //! plane (Z = 0, V = 0). The local coordinate system is not - //! modified. + //! Changes the radius of the conical surface in the placement plane (Z = 0, V = 0). + //! The local coordinate system is not modified. //! Raised if R < 0.0 Standard_EXPORT void SetRadius (const Standard_Real R); - //! Changes the semi angle of the conical surface. //! Semi-angle can be negative. Its absolute value @@ -118,86 +119,79 @@ public: //! Raises ConstructionError if Abs(Ang) < Resolution from gp or //! Abs(Ang) >= PI/2 - Resolution Standard_EXPORT void SetSemiAngle(const Standard_Real Ang); - - //! returns a non transient cone with the same geometric properties - //! as . + //! Returns a non transient cone with the same geometric properties as . Standard_EXPORT gp_Cone Cone() const; - - //! return 2.PI - U. + + //! Eeturn 2.PI - U. Standard_EXPORT Standard_Real UReversedParameter (const Standard_Real U) const Standard_OVERRIDE; - - //! Computes the u (or v) parameter on the modified - //! surface, when reversing its u (or v) parametric - //! direction, for any point of u parameter U (or of v - //! parameter V) on this cone. + + //! Computes the u (or v) parameter on the modified surface, + //! when reversing its u (or v) parametric direction, + //! for any point of u parameter U (or of v parameter V) on this cone. //! In the case of a cone, these functions return respectively: //! - 2.*Pi - U, -V. Standard_EXPORT Standard_Real VReversedParameter (const Standard_Real V) const Standard_OVERRIDE; - //! Changes the orientation of this cone in the v - //! parametric direction. The bounds of the surface are - //! not changed but the v parametric direction is reversed. + //! Changes the orientation of this cone in the v parametric direction. + //! The bounds of the surface are not changed but the v parametric direction is reversed. //! As a consequence, for a cone: //! - the "main Direction" of the local coordinate system //! is reversed, and //! - the half-angle at the apex is inverted. Standard_EXPORT virtual void VReverse() Standard_OVERRIDE; - - //! Computes the parameters on the transformed surface for + + //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! - //! me->TranformParameters(U,V,T) - //! - //! This methods multiplies V by T.ScaleFactor() + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method multiplies V by T.ScaleFactor() Standard_EXPORT virtual void TransformParameters (Standard_Real& U, Standard_Real& V, const gp_Trsf& T) const Standard_OVERRIDE; - - //! Returns a 2d transformation used to find the new + + //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! - //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! - //! me->ParametricTransformation(T) - //! - //! This methods returns a scale centered on the - //! U axis with T.ScaleFactor + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode + //! Where U',V' are obtained by transforming U,V with the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method returns a scale centered on the U axis with T.ScaleFactor Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const Standard_OVERRIDE; - + //! Computes the apex of this cone. It is on the negative //! side of the axis of revolution of this cone if the //! half-angle at the apex is positive, and on the positive //! side of the "main Axis" if the half-angle is negative. Standard_EXPORT gp_Pnt Apex() const; - //! The conical surface is infinite in the V direction so //! V1 = Realfirst from Standard and V2 = RealLast. //! U1 = 0 and U2 = 2*PI. Standard_EXPORT void Bounds (Standard_Real& U1, Standard_Real& U2, Standard_Real& V1, Standard_Real& V2) const Standard_OVERRIDE; - //! Returns the coefficients of the implicit equation of the //! quadric in the absolute cartesian coordinate system : //! These coefficients are normalized. - //! A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + - //! 2.(C1.X + C2.Y + C3.Z) + D = 0.0 + //! @code + //! A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + 2.(C1.X + C2.Y + C3.Z) + D = 0.0 + //! @endcode Standard_EXPORT void Coefficients (Standard_Real& A1, Standard_Real& A2, Standard_Real& A3, Standard_Real& B1, Standard_Real& B2, Standard_Real& B3, Standard_Real& C1, Standard_Real& C2, Standard_Real& C3, Standard_Real& D) const; - + //! Returns the reference radius of this cone. //! The reference radius is the radius of the circle formed //! by the intersection of this cone and its reference @@ -207,67 +201,60 @@ public: //! If the apex of this cone is on the origin of the local //! coordinate system of this cone, the returned value is 0. Standard_EXPORT Standard_Real RefRadius() const; - //! Returns the semi-angle at the apex of this cone. //! Attention! Semi-angle can be negative. Standard_EXPORT Standard_Real SemiAngle() const; - + //! returns True. Standard_EXPORT Standard_Boolean IsUClosed() const Standard_OVERRIDE; - + //! returns False. Standard_EXPORT Standard_Boolean IsVClosed() const Standard_OVERRIDE; - + //! Returns True. Standard_EXPORT Standard_Boolean IsUPeriodic() const Standard_OVERRIDE; - + //! Returns False. Standard_EXPORT Standard_Boolean IsVPeriodic() const Standard_OVERRIDE; - - //! Builds the U isoparametric line of this cone. The - //! origin of this line is on the reference plane of this - //! cone (i.e. the plane defined by the origin, "X Direction" + + //! Builds the U isoparametric line of this cone. + //! The origin of this line is on the reference plane of this cone + //! (i.e. the plane defined by the origin, "X Direction" //! and "Y Direction" of the local coordinate system of this cone). Standard_EXPORT Handle(Geom_Curve) UIso (const Standard_Real U) const Standard_OVERRIDE; - - //! Builds the V isoparametric circle of this cone. It is the - //! circle on this cone, located in the plane of Z - //! coordinate V*cos(Semi-Angle) in the local coordinate system of this - //! cone. The "Axis" of this circle is the axis of revolution - //! of this cone. Its starting point is defined by the "X - //! Direction" of this cone. + + //! Builds the V isoparametric circle of this cone. + //! It is the circle on this cone, located in the plane of Z + //! coordinate V*cos(Semi-Angle) in the local coordinate system of this cone. + //! The "Axis" of this circle is the axis of revolution of this cone. + //! Its starting point is defined by the "X Direction" of this cone. //! Warning //! If the V isoparametric circle is close to the apex of //! this cone, the radius of the circle becomes very small. //! It is possible to have a circle with radius equal to 0.0. Standard_EXPORT Handle(Geom_Curve) VIso (const Standard_Real V) const Standard_OVERRIDE; - - //! Computes the point P (U, V) on the surface. - //! P (U, V) = Loc + - //! (RefRadius + V * sin (Semi-Angle)) * (cos (U) * XDir + sin (U) * YDir) + - //! V * cos (Semi-Angle) * ZDir + //! Computes the point P (U, V) on the surface. + //! @code + //! P (U, V) = Loc + + //! (RefRadius + V * sin (Semi-Angle)) * (cos (U) * XDir + sin (U) * YDir) + + //! V * cos (Semi-Angle) * ZDir + //! @endcode //! where Loc is the origin of the placement plane (XAxis, YAxis) - //! XDir is the direction of the XAxis and YDir the direction of - //! the YAxis. + //! XDir is the direction of the XAxis and YDir the direction of the YAxis. Standard_EXPORT void D0 (const Standard_Real U, const Standard_Real V, gp_Pnt& P) const Standard_OVERRIDE; - - //! Computes the current point and the first derivatives in the - //! directions U and V. + //! Computes the current point and the first derivatives in the directions U and V. Standard_EXPORT void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const Standard_OVERRIDE; - - //! Computes the current point, the first and the second derivatives - //! in the directions U and V. + //! Computes the current point, the first and the second derivatives in the directions U and V. Standard_EXPORT void D2 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const Standard_OVERRIDE; - //! Computes the current point, the first,the second and the third //! derivatives in the directions U and V. Standard_EXPORT void D3 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const Standard_OVERRIDE; - + //! Computes the derivative of order Nu in the u //! parametric direction, and Nv in the v parametric //! direction at the point of parameters (U, V) of this cone. @@ -276,39 +263,22 @@ public: //! - Nu + Nv is less than 1, //! - Nu or Nv is negative. Standard_EXPORT gp_Vec DN (const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const Standard_OVERRIDE; - + //! Applies the transformation T to this cone. Standard_EXPORT void Transform (const gp_Trsf& T) Standard_OVERRIDE; - + //! Creates a new object which is a copy of this cone. Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE; - //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(Geom_ConicalSurface,Geom_ElementarySurface) -protected: - - - - private: - Standard_Real radius; Standard_Real semiAngle; - }; - - - - - - #endif // _Geom_ConicalSurface_HeaderFile diff --git a/src/Geom/Geom_CylindricalSurface.hxx b/src/Geom/Geom_CylindricalSurface.hxx index f26af99379..bcf432207a 100644 --- a/src/Geom/Geom_CylindricalSurface.hxx +++ b/src/Geom/Geom_CylindricalSurface.hxx @@ -42,7 +42,9 @@ DEFINE_STANDARD_HANDLE(Geom_CylindricalSurface, Geom_ElementarySurface) //! This class defines the infinite cylindrical surface. //! //! Every cylindrical surface is set by the following equation: -//! S(U,V) = Location + R*cos(U)*XAxis + R*sin(U)*YAxis + V*ZAxis, +//! @code +//! S(U,V) = Location + R*cos(U)*XAxis + R*sin(U)*YAxis + V*ZAxis, +//! @endcode //! where R is cylinder radius. //! //! The local coordinate system of the CylindricalSurface is defined @@ -52,7 +54,9 @@ DEFINE_STANDARD_HANDLE(Geom_CylindricalSurface, Geom_ElementarySurface) //! it gives the direction of increasing parametric value V. //! //! The parametrization range is : -//! U [0, 2*PI], V ]- infinite, + infinite[ +//! @code +//! U [0, 2*PI], V ]- infinite, + infinite[ +//! @endcode //! //! The "XAxis" and the "YAxis" define the placement plane of the //! surface (Z = 0, and parametric value V = 0) perpendicular to @@ -71,111 +75,109 @@ class Geom_CylindricalSurface : public Geom_ElementarySurface public: - - //! A3 defines the local coordinate system of the cylindrical surface. - //! The "ZDirection" of A3 defines the direction of the surface's - //! axis of symmetry. + //! The "ZDirection" of A3 defines the direction of the surface's axis of symmetry. //! At the creation the parametrization of the surface is defined //! such that the normal Vector (N = D1U ^ D1V) is oriented towards //! the "outside region" of the surface. - //! Warnings : + //! Warnings: //! It is not forbidden to create a cylindrical surface with //! Radius = 0.0 //! Raised if Radius < 0.0 Standard_EXPORT Geom_CylindricalSurface(const gp_Ax3& A3, const Standard_Real Radius); - - //! Creates a CylindricalSurface from a non transient Cylinder - //! from package gp. + //! Creates a CylindricalSurface from a non transient gp_Cylinder. Standard_EXPORT Geom_CylindricalSurface(const gp_Cylinder& C); - //! Set so that has the same geometric properties as C. Standard_EXPORT void SetCylinder (const gp_Cylinder& C); - + //! Changes the radius of the cylinder. //! Raised if R < 0.0 Standard_EXPORT void SetRadius (const Standard_Real R); - - //! returns a non transient cylinder with the same geometric - //! properties as . + //! returns a non transient cylinder with the same geometric properties as . Standard_EXPORT gp_Cylinder Cylinder() const; - + //! Return the parameter on the Ureversed surface for //! the point of parameter U on . //! Return 2.PI - U. Standard_EXPORT Standard_Real UReversedParameter (const Standard_Real U) const Standard_OVERRIDE; - + //! Return the parameter on the Vreversed surface for //! the point of parameter V on . //! Return -V Standard_EXPORT Standard_Real VReversedParameter (const Standard_Real V) const Standard_OVERRIDE; - + //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! me->Transformed(T)->Value(U',V') + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! me->Value(U,V).Transformed(T) + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! me->TranformParameters(U,V,T) - //! This methods multiplies V by T.ScaleFactor() + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method multiplies V by T.ScaleFactor() Standard_EXPORT virtual void TransformParameters (Standard_Real& U, Standard_Real& V, const gp_Trsf& T) const Standard_OVERRIDE; - - //! Returns a 2d transformation used to find the new + + //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! me->Transformed(T)->Value(U',V') + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! me->Value(U,V).Transformed(T) - //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! me->ParametricTransformation(T) - //! This methods returns a scale centered on the - //! U axis with T.ScaleFactor + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode + //! Where U',V' are obtained by transforming U,V with the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method returns a scale centered on the U axis with T.ScaleFactor Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const Standard_OVERRIDE; - //! The CylindricalSurface is infinite in the V direction so //! V1 = Realfirst, V2 = RealLast from package Standard. //! U1 = 0 and U2 = 2*PI. Standard_EXPORT void Bounds (Standard_Real& U1, Standard_Real& U2, Standard_Real& V1, Standard_Real& V2) const Standard_OVERRIDE; - //! Returns the coefficients of the implicit equation of the quadric //! in the absolute cartesian coordinate system : //! These coefficients are normalized. - //! A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + - //! 2.(C1.X + C2.Y + C3.Z) + D = 0.0 + //! @code + //! A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + 2.(C1.X + C2.Y + C3.Z) + D = 0.0 + //! @endcode Standard_EXPORT void Coefficients (Standard_Real& A1, Standard_Real& A2, Standard_Real& A3, Standard_Real& B1, Standard_Real& B2, Standard_Real& B3, Standard_Real& C1, Standard_Real& C2, Standard_Real& C3, Standard_Real& D) const; - + //! Returns the radius of this cylinder. Standard_EXPORT Standard_Real Radius() const; - + //! Returns True. Standard_EXPORT Standard_Boolean IsUClosed() const Standard_OVERRIDE; - + //! Returns False. Standard_EXPORT Standard_Boolean IsVClosed() const Standard_OVERRIDE; - + //! Returns True. Standard_EXPORT Standard_Boolean IsUPeriodic() const Standard_OVERRIDE; - + //! Returns False. Standard_EXPORT Standard_Boolean IsVPeriodic() const Standard_OVERRIDE; - //! The UIso curve is a Line. The location point of this line is //! on the placement plane (XAxis, YAxis) of the surface. //! This line is parallel to the axis of symmetry of the surface. Standard_EXPORT Handle(Geom_Curve) UIso (const Standard_Real U) const Standard_OVERRIDE; - //! The VIso curve is a circle. The start point of this circle //! (U = 0) is defined with the "XAxis" of the surface. //! The center of the circle is on the symmetry axis. Standard_EXPORT Handle(Geom_Curve) VIso (const Standard_Real V) const Standard_OVERRIDE; - //! Computes the point P (U, V) on the surface. //! P (U, V) = Loc + Radius * (cos (U) * XDir + sin (U) * YDir) + @@ -184,17 +186,14 @@ public: //! XDir is the direction of the XAxis and YDir the direction of //! the YAxis. Standard_EXPORT void D0 (const Standard_Real U, const Standard_Real V, gp_Pnt& P) const Standard_OVERRIDE; - //! Computes the current point and the first derivatives in the //! directions U and V. Standard_EXPORT void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const Standard_OVERRIDE; - //! Computes the current point, the first and the second derivatives //! in the directions U and V. Standard_EXPORT void D2 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const Standard_OVERRIDE; - //! Computes the current point, the first, the second and the //! third derivatives in the directions U and V. @@ -215,28 +214,12 @@ public: //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(Geom_CylindricalSurface,Geom_ElementarySurface) -protected: - - - - private: - Standard_Real radius; - }; - - - - - - #endif // _Geom_CylindricalSurface_HeaderFile diff --git a/src/Geom/Geom_OffsetSurface.hxx b/src/Geom/Geom_OffsetSurface.hxx index 9881fcb268..71cdeb9096 100644 --- a/src/Geom/Geom_OffsetSurface.hxx +++ b/src/Geom/Geom_OffsetSurface.hxx @@ -72,7 +72,6 @@ class Geom_OffsetSurface : public Geom_Surface public: - //! Constructs a surface offset from the basis surface //! S, where Offset is the distance between the offset //! surface and the basis surface at any point. @@ -98,7 +97,7 @@ public: //! No check is done to verify that a unique normal direction is //! defined at any point of the basis surface S. Standard_EXPORT Geom_OffsetSurface(const Handle(Geom_Surface)& S, const Standard_Real Offset, const Standard_Boolean isNotCheckC0 = Standard_False); - + //! Raised if S is not at least C1. //! Warnings : //! No check is done to verify that a unique normal direction is @@ -109,14 +108,14 @@ public: //! Standard_ConstructionError if the surface S is not //! at least "C1" continuous. Standard_EXPORT void SetBasisSurface (const Handle(Geom_Surface)& S, const Standard_Boolean isNotCheckC0 = Standard_False); - + //! Changes this offset surface by assigning D as the offset value. Standard_EXPORT void SetOffsetValue (const Standard_Real D); - + //! Returns the offset value of this offset surface. inline Standard_Real Offset() const { return offsetValue; } - + //! Returns the basis surface of this offset surface. //! Note: The basis surface can be an offset surface. inline const Handle(Geom_Surface) & BasisSurface() const @@ -125,35 +124,34 @@ public: //! Returns osculating surface if base surface is B-spline or Bezier inline const Handle(Geom_OsculatingSurface)& OsculatingSurface() const { return myOscSurf; } - + //! Changes the orientation of this offset surface in the u //! parametric direction. The bounds of the surface //! are not changed but the given parametric direction is reversed. Standard_EXPORT void UReverse() Standard_OVERRIDE; - + //! Computes the u parameter on the modified //! surface, produced by reversing the u //! parametric direction of this offset surface, for any //! point of u parameter U on this offset surface. Standard_EXPORT Standard_Real UReversedParameter (const Standard_Real U) const Standard_OVERRIDE; - + //! Changes the orientation of this offset surface in the v parametric direction. The bounds of the surface //! are not changed but the given parametric direction is reversed. Standard_EXPORT void VReverse() Standard_OVERRIDE; - + //! Computes the v parameter on the modified //! surface, produced by reversing the or v //! parametric direction of this offset surface, for any //! point of v parameter V on this offset surface. Standard_EXPORT Standard_Real VReversedParameter (const Standard_Real V) const Standard_OVERRIDE; - + //! Returns the parametric bounds U1, U2, V1 and V2 of //! this offset surface. //! If the surface is infinite, this function can return: //! - Standard_Real::RealFirst(), or //! - Standard_Real::RealLast(). Standard_EXPORT void Bounds (Standard_Real& U1, Standard_Real& U2, Standard_Real& V1, Standard_Real& V2) const Standard_OVERRIDE; - //! This method returns the continuity of the basis surface - 1. //! Continuity of the Offset surface : @@ -171,7 +169,6 @@ public: //! surface otherwise the effective continuity can be lower than //! the continuity of the basis surface - 1. Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE; - //! This method answer True if the continuity of the basis surface //! is N + 1 in the U parametric direction. We suppose in this @@ -179,7 +176,6 @@ public: //! surface. //! Raised if N <0. Standard_EXPORT Standard_Boolean IsCNu (const Standard_Integer N) const Standard_OVERRIDE; - //! This method answer True if the continuity of the basis surface //! is N + 1 in the V parametric direction. We suppose in this @@ -187,7 +183,7 @@ public: //! surface. //! Raised if N <0. Standard_EXPORT Standard_Boolean IsCNv (const Standard_Integer N) const Standard_OVERRIDE; - + //! Checks whether this offset surface is closed in the u //! parametric direction. //! Returns true if, taking uFirst and uLast as @@ -196,7 +192,7 @@ public: //! and P(uLast,v) is less than or equal to //! gp::Resolution() for each value of the parameter v. Standard_EXPORT Standard_Boolean IsUClosed() const Standard_OVERRIDE; - + //! Checks whether this offset surface is closed in the u //! or v parametric direction. Returns true if taking vFirst and vLast as the //! parametric bounds in the v parametric direction, the @@ -204,57 +200,58 @@ public: //! P(u,vLast) is less than or equal to //! gp::Resolution() for each value of the parameter u. Standard_EXPORT Standard_Boolean IsVClosed() const Standard_OVERRIDE; - //! Returns true if this offset surface is periodic in the u //! parametric direction, i.e. if the basis //! surface of this offset surface is periodic in this direction. Standard_EXPORT Standard_Boolean IsUPeriodic() const Standard_OVERRIDE; - + //! Returns the period of this offset surface in the u //! parametric direction respectively, i.e. the period of the //! basis surface of this offset surface in this parametric direction. //! raises if the surface is not uperiodic. Standard_EXPORT virtual Standard_Real UPeriod() const Standard_OVERRIDE; - //! Returns true if this offset surface is periodic in the v //! parametric direction, i.e. if the basis //! surface of this offset surface is periodic in this direction. Standard_EXPORT Standard_Boolean IsVPeriodic() const Standard_OVERRIDE; - + //! Returns the period of this offset surface in the v //! parametric direction respectively, i.e. the period of the //! basis surface of this offset surface in this parametric direction. //! raises if the surface is not vperiodic. Standard_EXPORT virtual Standard_Real VPeriod() const Standard_OVERRIDE; - + //! Computes the U isoparametric curve. Standard_EXPORT Handle(Geom_Curve) UIso (const Standard_Real U) const Standard_OVERRIDE; - + //! Computes the V isoparametric curve. //! //! The following methods compute value and derivatives. //! //! Warnings //! An exception is raised if a unique normal vector is - //! not defined on the basis surface for the parametric - //! value (U,V). + //! not defined on the basis surface for the parametric value (U,V). //! No check is done at the creation time and we suppose - //! in this package that the offset surface can be defined - //! at any point. + //! in this package that the offset surface can be defined at any point. Standard_EXPORT Handle(Geom_Curve) VIso (const Standard_Real V) const Standard_OVERRIDE; - - //! P (U, V) = Pbasis + Offset * Ndir where - //! Ndir = D1Ubasis ^ D1Vbasis / ||D1Ubasis ^ D1Vbasis|| is the - //! normal direction of the basis surface. Pbasis, D1Ubasis, - //! D1Vbasis are the point and the first derivatives on the basis - //! surface. + //! @code + //! P (U, V) = Pbasis + Offset * Ndir + //! @endcode + //! where + //! @code + //! Ndir = D1Ubasis ^ D1Vbasis / ||D1Ubasis ^ D1Vbasis|| + //! @endcode + //! is the normal direction of the basis surface. + //! Pbasis, D1Ubasis, D1Vbasis are the point and the first derivatives on the basis surface. //! If Ndir is undefined this method computes an approached normal - //! direction using the following limited development : - //! Ndir = N0 + DNdir/DU + DNdir/DV + Eps with Eps->0 which - //! requires to compute the second derivatives on the basis surface. + //! direction using the following limited development: + //! @code + //! Ndir = N0 + DNdir/DU + DNdir/DV + Eps + //! @endcode + //! with Eps->0 which requires to compute the second derivatives on the basis surface. //! If the normal direction cannot be approximate for this order //! of derivation the exception UndefinedValue is raised. //! @@ -262,23 +259,18 @@ public: //! Raised if the order of derivation required to compute the //! normal direction is greater than the second order. Standard_EXPORT void D0 (const Standard_Real U, const Standard_Real V, gp_Pnt& P) const Standard_OVERRIDE; - //! Raised if the continuity of the basis surface is not C2. Standard_EXPORT void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const Standard_OVERRIDE; - - //! ---Purpose ; + //! Raised if the continuity of the basis surface is not C3. Standard_EXPORT void D2 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const Standard_OVERRIDE; - //! Raised if the continuity of the basis surface is not C4. Standard_EXPORT void D3 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const Standard_OVERRIDE; - - //! Computes the derivative of order Nu in the direction u and Nv - //! in the direction v. - //! ---Purpose ; + //! Computes the derivative of order Nu in the direction u and Nv in the direction v. + //! //! Raised if the continuity of the basis surface is not CNu + 1 //! in the U direction and CNv + 1 in the V direction. //! Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0. @@ -289,70 +281,69 @@ public: //! The computation of the value and derivatives on the basis //! surface are used to evaluate the offset surface. //! - //! Warnings : + //! Warnings: //! The exception UndefinedValue or UndefinedDerivative is - //! raised if it is not possible to compute a unique offset - //! direction. + //! raised if it is not possible to compute a unique offset direction. Standard_EXPORT gp_Vec DN (const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const Standard_OVERRIDE; //! Applies the transformation T to this offset surface. //! Note: the basis surface is also modified. Standard_EXPORT void Transform (const gp_Trsf& T) Standard_OVERRIDE; - - //! Computes the parameters on the transformed surface for + + //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! + //! @code //! me->Value(U,V).Transformed(T) - //! + //! @endcode //! Where U',V' are the new values of U,V after calling - //! - //! me->TranformParameters(U,V,T) - //! This methods calls the basis surface method. + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method calls the basis surface method. Standard_EXPORT virtual void TransformParameters (Standard_Real& U, Standard_Real& V, const gp_Trsf& T) const Standard_OVERRIDE; - //! Returns a 2d transformation used to find the new + //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! - //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode + //! Where U',V' are obtained by transforming U,V with the 2d transformation returned by + //! @code //! me->ParametricTransformation(T) - //! - //! This methods calls the basis surface method. + //! @endcode + //! This method calls the basis surface method. Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const Standard_OVERRIDE; - + //! Creates a new object which is a copy of this offset surface. Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE; - + //! returns an equivalent surface of the offset surface //! when the basis surface is a canonic surface or a //! rectangular limited surface on canonic surface or if //! the offset is null. Standard_EXPORT Handle(Geom_Surface) Surface() const; - + //! if Standard_True, L is the local osculating surface //! along U at the point U,V. It means that DL/DU is //! collinear to DS/DU . If IsOpposite == Standard_True //! these vectors have opposite direction. Standard_EXPORT Standard_Boolean UOsculatingSurface (const Standard_Real U, const Standard_Real V, Standard_Boolean& IsOpposite, Handle(Geom_BSplineSurface)& UOsculSurf) const; - + //! if Standard_True, L is the local osculating surface //! along V at the point U,V. //! It means that DL/DV is //! collinear to DS/DV . If IsOpposite == Standard_True //! these vectors have opposite direction. Standard_EXPORT Standard_Boolean VOsculatingSurface (const Standard_Real U, const Standard_Real V, Standard_Boolean& IsOpposite, Handle(Geom_BSplineSurface)& VOsculSurf) const; - + //! Returns continuity of the basis surface. inline GeomAbs_Shape GetBasisSurfContinuity() const { return myBasisSurfContinuity; } diff --git a/src/Geom/Geom_Plane.hxx b/src/Geom/Geom_Plane.hxx index 690ebf497f..544d5c49a1 100644 --- a/src/Geom/Geom_Plane.hxx +++ b/src/Geom/Geom_Plane.hxx @@ -58,7 +58,9 @@ DEFINE_STANDARD_HANDLE(Geom_Plane, Geom_ElementarySurface) //! the "X Direction" and the "Y Direction" of its local //! coordinate system.) //! The parametric equation of the plane is: -//! P(u, v) = O + u*XDir + v*YDir +//! @code +//! P(u, v) = O + u*XDir + v*YDir +//! @endcode //! where O, XDir and YDir are respectively the //! origin, the "X Direction" and the "Y Direction" of the //! local coordinate system of the plane. @@ -69,152 +71,149 @@ class Geom_Plane : public Geom_ElementarySurface public: - - - //! Creates a plane located in 3D space with an axis placement - //! three axis. The "ZDirection" of "A3" is the direction normal - //! to the plane. The "Location" point of "A3" is the origin of - //! the plane. The "XDirection" and "YDirection" of "A3" define - //! the directions of the U isoparametric and V isoparametric - //! curves. + //! Creates a plane located in 3D space with an axis placement three axis. + //! The "ZDirection" of "A3" is the direction normal + //! to the plane. The "Location" point of "A3" is the origin of the plane. + //! The "XDirection" and "YDirection" of "A3" define + //! the directions of the U isoparametric and V isoparametric curves. Standard_EXPORT Geom_Plane(const gp_Ax3& A3); - + //! Creates a plane from a non transient plane from package gp. Standard_EXPORT Geom_Plane(const gp_Pln& Pl); - //! P is the "Location" point or origin of the plane. //! V is the direction normal to the plane. Standard_EXPORT Geom_Plane(const gp_Pnt& P, const gp_Dir& V); - - //! Creates a plane from its cartesian equation : - //! Ax + By + Cz + D = 0.0 - //! + //! Creates a plane from its cartesian equation: + //! @code + //! Ax + By + Cz + D = 0.0 + //! @endcode //! Raised if Sqrt (A*A + B*B + C*C) <= Resolution from gp Standard_EXPORT Geom_Plane(const Standard_Real A, const Standard_Real B, const Standard_Real C, const Standard_Real D); - + //! Set so that has the same geometric properties as Pl. Standard_EXPORT void SetPln (const gp_Pln& Pl); - + //! Converts this plane into a gp_Pln plane. Standard_EXPORT gp_Pln Pln() const; - - //! Changes the orientation of this plane in the u (or v) - //! parametric direction. The bounds of the plane are not - //! changed but the given parametric direction is - //! reversed. Hence the orientation of the surface is reversed. + //! Changes the orientation of this plane in the u (or v) parametric direction. + //! The bounds of the plane are not changed but the given parametric direction is reversed. + //! Hence the orientation of the surface is reversed. Standard_EXPORT virtual void UReverse() Standard_OVERRIDE; - - //! Computes the u parameter on the modified - //! plane, produced when reversing the u - //! parametric of this plane, for any point of u parameter U on this plane. + + //! Computes the u parameter on the modified plane, + //! produced when reversing the u parametric of this plane, + //! for any point of u parameter U on this plane. //! In the case of a plane, these methods return - -U. Standard_EXPORT Standard_Real UReversedParameter (const Standard_Real U) const Standard_OVERRIDE; - - //! Changes the orientation of this plane in the u (or v) - //! parametric direction. The bounds of the plane are not - //! changed but the given parametric direction is - //! reversed. Hence the orientation of the surface is reversed. + + //! Changes the orientation of this plane in the u (or v) parametric direction. + //! The bounds of the plane are not changed but the given parametric direction is reversed. + //! Hence the orientation of the surface is reversed. Standard_EXPORT virtual void VReverse() Standard_OVERRIDE; - - //! Computes the v parameter on the modified - //! plane, produced when reversing the v - //! parametric of this plane, for any point of v parameter V on this plane. + + //! Computes the v parameter on the modified plane, + //! produced when reversing the v parametric of this plane, + //! for any point of v parameter V on this plane. //! In the case of a plane, these methods return -V. Standard_EXPORT Standard_Real VReversedParameter (const Standard_Real V) const Standard_OVERRIDE; - - //! Computes the parameters on the transformed surface for + + //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! me->Transformed(T)->Value(U',V') + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! me->Value(U,V).Transformed(T) + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! me->TranformParameters(U,V,T) - //! This methods multiplies U and V by T.ScaleFactor() + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method multiplies U and V by T.ScaleFactor() Standard_EXPORT virtual void TransformParameters (Standard_Real& U, Standard_Real& V, const gp_Trsf& T) const Standard_OVERRIDE; - - //! Returns a 2d transformation used to find the new + + //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! me->Transformed(T)->Value(U',V') + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! me->Value(U,V).Transformed(T) - //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! me->ParametricTransformation(T) - //! This methods returns a scale centered on the - //! origin with T.ScaleFactor + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode + //! Where U',V' are obtained by transforming U,V with the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method returns a scale centered on the origin with T.ScaleFactor Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const Standard_OVERRIDE; - + //! Returns the parametric bounds U1, U2, V1 and V2 of this plane. //! Because a plane is an infinite surface, the following is always true: //! - U1 = V1 = Standard_Real::RealFirst() //! - U2 = V2 = Standard_Real::RealLast(). Standard_EXPORT void Bounds (Standard_Real& U1, Standard_Real& U2, Standard_Real& V1, Standard_Real& V2) const Standard_OVERRIDE; - - //! Computes the normalized coefficients of the plane's - //! cartesian equation : Ax + By + Cz + D = 0.0 + //! Computes the normalized coefficients of the plane's cartesian equation: + //! @code + //! Ax + By + Cz + D = 0.0 + //! @endcode Standard_EXPORT void Coefficients (Standard_Real& A, Standard_Real& B, Standard_Real& C, Standard_Real& D) const; - + //! return False Standard_EXPORT Standard_Boolean IsUClosed() const Standard_OVERRIDE; - + //! return False Standard_EXPORT Standard_Boolean IsVClosed() const Standard_OVERRIDE; - + //! return False. Standard_EXPORT Standard_Boolean IsUPeriodic() const Standard_OVERRIDE; - + //! return False. Standard_EXPORT Standard_Boolean IsVPeriodic() const Standard_OVERRIDE; - //! Computes the U isoparametric curve. //! This is a Line parallel to the YAxis of the plane. Standard_EXPORT Handle(Geom_Curve) UIso (const Standard_Real U) const Standard_OVERRIDE; - //! Computes the V isoparametric curve. //! This is a Line parallel to the XAxis of the plane. Standard_EXPORT Handle(Geom_Curve) VIso (const Standard_Real V) const Standard_OVERRIDE; - //! Computes the point P (U, V) on . - //! P = O + U * XDir + V * YDir. + //! @code + //! P = O + U * XDir + V * YDir. + //! @endcode //! where O is the "Location" point of the plane, XDir the - //! "XDirection" and YDir the "YDirection" of the plane's local - //! coordinate system. + //! "XDirection" and YDir the "YDirection" of the plane's local coordinate system. Standard_EXPORT void D0 (const Standard_Real U, const Standard_Real V, gp_Pnt& P) const Standard_OVERRIDE; - - //! Computes the current point and the first derivatives in the - //! directions U and V. + //! Computes the current point and the first derivatives in the directions U and V. Standard_EXPORT void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const Standard_OVERRIDE; - //! Computes the current point, the first and the second //! derivatives in the directions U and V. Standard_EXPORT void D2 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const Standard_OVERRIDE; - //! Computes the current point, the first,the second and the //! third derivatives in the directions U and V. Standard_EXPORT void D3 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const Standard_OVERRIDE; - //! Computes the derivative of order Nu in the direction u //! and Nv in the direction v. //! Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0. Standard_EXPORT gp_Vec DN (const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const Standard_OVERRIDE; - + //! Applies the transformation T to this plane. Standard_EXPORT void Transform (const gp_Trsf& T) Standard_OVERRIDE; - + //! Creates a new object which is a copy of this plane. Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE; @@ -222,26 +221,8 @@ public: Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; - - DEFINE_STANDARD_RTTIEXT(Geom_Plane,Geom_ElementarySurface) -protected: - - - - -private: - - - - }; - - - - - - #endif // _Geom_Plane_HeaderFile diff --git a/src/Geom/Geom_RectangularTrimmedSurface.hxx b/src/Geom/Geom_RectangularTrimmedSurface.hxx index 1d4bc3c3e8..2e06fdee78 100644 --- a/src/Geom/Geom_RectangularTrimmedSurface.hxx +++ b/src/Geom/Geom_RectangularTrimmedSurface.hxx @@ -66,8 +66,6 @@ class Geom_RectangularTrimmedSurface : public Geom_BoundedSurface public: - - //! The U parametric direction of the surface is oriented from U1 //! to U2. The V parametric direction of the surface is oriented //! from V1 to V2. @@ -85,7 +83,6 @@ public: //! bounds of S. //! U1 = U2 or V1 = V2 Standard_EXPORT Geom_RectangularTrimmedSurface(const Handle(Geom_Surface)& S, const Standard_Real U1, const Standard_Real U2, const Standard_Real V1, const Standard_Real V2, const Standard_Boolean USense = Standard_True, const Standard_Boolean VSense = Standard_True); - //! The basis surface S is only trim in one parametric direction. //! If UTrim = True the surface is trimmed in the U parametric @@ -109,7 +106,7 @@ public: //! Param1 or Param2 are out of the bounds of S. //! Param1 = Param2 Standard_EXPORT Geom_RectangularTrimmedSurface(const Handle(Geom_Surface)& S, const Standard_Real Param1, const Standard_Real Param2, const Standard_Boolean UTrim, const Standard_Boolean Sense = Standard_True); - + //! Modifies this patch by changing the trim values //! applied to the original surface //! The u parametric direction of @@ -128,7 +125,7 @@ public: //! are out of the bounds of the BasisSurface. //! U1 = U2 or V1 = V2 Standard_EXPORT void SetTrim (const Standard_Real U1, const Standard_Real U2, const Standard_Real V1, const Standard_Real V2, const Standard_Boolean USense = Standard_True, const Standard_Boolean VSense = Standard_True); - + //! Modifies this patch by changing the trim values //! applied to the original surface //! The basis surface is trimmed only in one parametric direction: if UTrim @@ -149,35 +146,34 @@ public: //! Param1 or Param2 are out of the bounds of the BasisSurface. //! Param1 = Param2 Standard_EXPORT void SetTrim (const Standard_Real Param1, const Standard_Real Param2, const Standard_Boolean UTrim, const Standard_Boolean Sense = Standard_True); - + //! Returns the Basis surface of . Standard_EXPORT Handle(Geom_Surface) BasisSurface() const; - + //! Changes the orientation of this patch in the u //! parametric direction. The bounds of the surface are //! not changed, but the given parametric direction is //! reversed. Hence the orientation of the surface is reversed. Standard_EXPORT void UReverse() Standard_OVERRIDE; - + //! Computes the u parameter on the modified //! surface, produced by when reversing its u //! parametric direction, for any point of u parameter U on this patch. Standard_EXPORT Standard_Real UReversedParameter (const Standard_Real U) const Standard_OVERRIDE; - + //! Changes the orientation of this patch in the v //! parametric direction. The bounds of the surface are //! not changed, but the given parametric direction is //! reversed. Hence the orientation of the surface is reversed. Standard_EXPORT void VReverse() Standard_OVERRIDE; - + //! Computes the v parameter on the modified //! surface, produced by when reversing its v //! parametric direction, for any point of v parameter V on this patch. Standard_EXPORT Standard_Real VReversedParameter (const Standard_Real V) const Standard_OVERRIDE; - + //! Returns the parametric bounds U1, U2, V1 and V2 of this patch. Standard_EXPORT void Bounds (Standard_Real& U1, Standard_Real& U2, Standard_Real& V1, Standard_Real& V2) const Standard_OVERRIDE; - //! Returns the continuity of the surface : //! C0 : only geometric continuity, @@ -186,75 +182,69 @@ public: //! C3 : continuity of the third derivative all along the Surface, //! CN : the order of continuity is infinite. Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE; - + //! Returns true if this patch is closed in the given parametric direction. Standard_EXPORT Standard_Boolean IsUClosed() const Standard_OVERRIDE; - + //! Returns true if this patch is closed in the given parametric direction. Standard_EXPORT Standard_Boolean IsVClosed() const Standard_OVERRIDE; - //! Returns true if the order of derivation in the U parametric //! direction is N. //! Raised if N < 0. Standard_EXPORT Standard_Boolean IsCNu (const Standard_Integer N) const Standard_OVERRIDE; - //! Returns true if the order of derivation in the V parametric //! direction is N. //! Raised if N < 0. Standard_EXPORT Standard_Boolean IsCNv (const Standard_Integer N) const Standard_OVERRIDE; - + //! Returns true if this patch is periodic and not trimmed in the given //! parametric direction. Standard_EXPORT Standard_Boolean IsUPeriodic() const Standard_OVERRIDE; - + //! Returns the period of this patch in the u //! parametric direction. //! raises if the surface is not uperiodic. Standard_EXPORT virtual Standard_Real UPeriod() const Standard_OVERRIDE; - //! Returns true if this patch is periodic and not trimmed in the given //! parametric direction. Standard_EXPORT Standard_Boolean IsVPeriodic() const Standard_OVERRIDE; - + //! Returns the period of this patch in the v //! parametric direction. //! raises if the surface is not vperiodic. //! value and derivatives Standard_EXPORT virtual Standard_Real VPeriod() const Standard_OVERRIDE; - + //! computes the U isoparametric curve. Standard_EXPORT Handle(Geom_Curve) UIso (const Standard_Real U) const Standard_OVERRIDE; - + //! Computes the V isoparametric curve. Standard_EXPORT Handle(Geom_Curve) VIso (const Standard_Real V) const Standard_OVERRIDE; - //! Can be raised if the basis surface is an OffsetSurface. Standard_EXPORT void D0 (const Standard_Real U, const Standard_Real V, gp_Pnt& P) const Standard_OVERRIDE; - //! The returned derivatives have the same orientation as the //! derivatives of the basis surface even if the trimmed surface //! has not the same parametric orientation. //! Warning! UndefinedDerivative raised if the continuity of the surface is not C1. Standard_EXPORT void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const Standard_OVERRIDE; - //! The returned derivatives have the same orientation as the //! derivatives of the basis surface even if the trimmed surface //! has not the same parametric orientation. //! Warning! UndefinedDerivative raised if the continuity of the surface is not C2. Standard_EXPORT void D2 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const Standard_OVERRIDE; - + //! The returned derivatives have the same orientation as the //! derivatives of the basis surface even if the trimmed surface //! has not the same parametric orientation. //! Warning UndefinedDerivative raised if the continuity of the surface is not C3. Standard_EXPORT void D3 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const Standard_OVERRIDE; - + //! The returned derivative has the same orientation as the //! derivative of the basis surface even if the trimmed surface //! has not the same parametric orientation. @@ -262,65 +252,56 @@ public: //! parametric direction and CNv in the V parametric direction. //! RangeError Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0. Standard_EXPORT gp_Vec DN (const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const Standard_OVERRIDE; - + //! Applies the transformation T to this patch. //! Warning //! As a consequence, the basis surface included in the //! data structure of this patch is also modified. Standard_EXPORT void Transform (const gp_Trsf& T) Standard_OVERRIDE; - + //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! - //! me->TranformParameters(U,V,T) - //! - //! This methods calls the basis surface method. + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method calls the basis surface method. Standard_EXPORT virtual void TransformParameters (Standard_Real& U, Standard_Real& V, const gp_Trsf& T) const Standard_OVERRIDE; - + //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! - //! me->ParametricTransformation(T) - //! - //! This methods calls the basis surface method. + //! the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method calls the basis surface method. Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const Standard_OVERRIDE; - + //! Creates a new object which is a copy of this patch. Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE; //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(Geom_RectangularTrimmedSurface,Geom_BoundedSurface) -protected: - - - - private: - //! General set trim, to implement constructors and //! others set trim. Standard_EXPORT void SetTrim (const Standard_Real U1, const Standard_Real U2, const Standard_Real V1, const Standard_Real V2, const Standard_Boolean UTrim, const Standard_Boolean VTrim, const Standard_Boolean USense, const Standard_Boolean VSense); @@ -333,13 +314,6 @@ private: Standard_Boolean isutrimmed; Standard_Boolean isvtrimmed; - }; - - - - - - #endif // _Geom_RectangularTrimmedSurface_HeaderFile diff --git a/src/Geom/Geom_Surface.hxx b/src/Geom/Geom_Surface.hxx index 657c1ce48c..05432d7e19 100644 --- a/src/Geom/Geom_Surface.hxx +++ b/src/Geom/Geom_Surface.hxx @@ -58,63 +58,60 @@ class Geom_Surface : public Geom_Geometry public: - - //! Reverses the U direction of parametrization of . //! The bounds of the surface are not modified. Standard_EXPORT virtual void UReverse() = 0; - //! Reverses the U direction of parametrization of . //! The bounds of the surface are not modified. //! A copy of is returned. Standard_NODISCARD Standard_EXPORT Handle(Geom_Surface) UReversed() const; - + //! Returns the parameter on the Ureversed surface for //! the point of parameter U on . - //! - //! me->UReversed()->Value(me->UReversedParameter(U),V) - //! + //! @code + //! me->UReversed()->Value(me->UReversedParameter(U),V) + //! @endcode //! is the same point as - //! - //! me->Value(U,V) + //! @code + //! me->Value(U,V) + //! @endcode Standard_EXPORT virtual Standard_Real UReversedParameter (const Standard_Real U) const = 0; - //! Reverses the V direction of parametrization of . //! The bounds of the surface are not modified. Standard_EXPORT virtual void VReverse() = 0; - //! Reverses the V direction of parametrization of . //! The bounds of the surface are not modified. //! A copy of is returned. Standard_NODISCARD Standard_EXPORT Handle(Geom_Surface) VReversed() const; - + //! Returns the parameter on the Vreversed surface for //! the point of parameter V on . - //! - //! me->VReversed()->Value(U,me->VReversedParameter(V)) - //! + //! @code + //! me->VReversed()->Value(U,me->VReversedParameter(V)) + //! @endcode //! is the same point as - //! - //! me->Value(U,V) + //! @code + //! me->Value(U,V) + //! @endcode Standard_EXPORT virtual Standard_Real VReversedParameter (const Standard_Real V) const = 0; - + //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! - //! me->TranformParameters(U,V,T) - //! - //! This methods does not change and + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method does not change and //! //! It can be redefined. For example on the Plane, //! Cylinder, Cone, Revolved and Extruded surfaces. @@ -122,29 +119,29 @@ public: //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! - //! me->ParametricTransformation(T) - //! - //! This methods returns an identity transformation + //! the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method returns an identity transformation //! //! It can be redefined. For example on the Plane, //! Cylinder, Cone, Revolved and Extruded surfaces. Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const; - + //! Returns the parametric bounds U1, U2, V1 and V2 of this surface. //! If the surface is infinite, this function can return a value //! equal to Precision::Infinite: instead of Standard_Real::LastReal. Standard_EXPORT virtual void Bounds (Standard_Real& U1, Standard_Real& U2, Standard_Real& V1, Standard_Real& V2) const = 0; - + //! Checks whether this surface is closed in the u //! parametric direction. //! Returns true if, in the u parametric direction: taking @@ -153,7 +150,7 @@ public: //! distance between the points P(uFirst, v) and //! P(uLast, v) is less than or equal to gp::Resolution(). Standard_EXPORT virtual Standard_Boolean IsUClosed() const = 0; - + //! Checks whether this surface is closed in the u //! parametric direction. //! Returns true if, in the v parametric @@ -163,7 +160,7 @@ public: //! P(u, vFirst) and P(u, vLast) is less than //! or equal to gp::Resolution(). Standard_EXPORT virtual Standard_Boolean IsVClosed() const = 0; - + //! Checks if this surface is periodic in the u //! parametric direction. Returns true if: //! - this surface is closed in the u parametric direction, and @@ -173,12 +170,12 @@ public: //! T)) is less than or equal to gp::Resolution(). //! Note: T is the parametric period in the u parametric direction. Standard_EXPORT virtual Standard_Boolean IsUPeriodic() const = 0; - + //! Returns the period of this surface in the u //! parametric direction. //! raises if the surface is not uperiodic. Standard_EXPORT virtual Standard_Real UPeriod() const; - + //! Checks if this surface is periodic in the v //! parametric direction. Returns true if: //! - this surface is closed in the v parametric direction, and @@ -188,17 +185,16 @@ public: //! T)) is less than or equal to gp::Resolution(). //! Note: T is the parametric period in the v parametric direction. Standard_EXPORT virtual Standard_Boolean IsVPeriodic() const = 0; - + //! Returns the period of this surface in the v parametric direction. //! raises if the surface is not vperiodic. Standard_EXPORT virtual Standard_Real VPeriod() const; - + //! Computes the U isoparametric curve. Standard_EXPORT virtual Handle(Geom_Curve) UIso (const Standard_Real U) const = 0; - + //! Computes the V isoparametric curve. Standard_EXPORT virtual Handle(Geom_Curve) VIso (const Standard_Real V) const = 0; - //! Returns the Global Continuity of the surface in direction U and V : //! C0 : only geometric continuity, @@ -212,41 +208,39 @@ public: //! If the surface is C1 in the V parametric direction and C2 //! in the U parametric direction Shape = C1. Standard_EXPORT virtual GeomAbs_Shape Continuity() const = 0; - + //! Returns the order of continuity of the surface in the //! U parametric direction. //! Raised if N < 0. Standard_EXPORT virtual Standard_Boolean IsCNu (const Standard_Integer N) const = 0; - + //! Returns the order of continuity of the surface in the //! V parametric direction. //! Raised if N < 0. Standard_EXPORT virtual Standard_Boolean IsCNv (const Standard_Integer N) const = 0; - + //! Computes the point of parameter U,V on the surface. //! //! Raised only for an "OffsetSurface" if it is not possible to //! compute the current point. Standard_EXPORT virtual void D0 (const Standard_Real U, const Standard_Real V, gp_Pnt& P) const = 0; - + //! Computes the point P and the first derivatives in the //! directions U and V at this point. //! Raised if the continuity of the surface is not C1. Standard_EXPORT virtual void D1 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const = 0; - //! Computes the point P, the first and the second derivatives in //! the directions U and V at this point. //! Raised if the continuity of the surface is not C2. Standard_EXPORT virtual void D2 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const = 0; - //! Computes the point P, the first,the second and the third //! derivatives in the directions U and V at this point. //! Raised if the continuity of the surface is not C2. Standard_EXPORT virtual void D3 (const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const = 0; - + //! ---Purpose ; //! Computes the derivative of order Nu in the direction U and Nv //! in the direction V at the point P(U, V). @@ -255,7 +249,6 @@ public: //! direction or not CNv in the V direction. //! Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0. Standard_EXPORT virtual gp_Vec DN (const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const = 0; - //! Computes the point of parameter U on the surface. //! @@ -268,27 +261,8 @@ public: //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; - - - DEFINE_STANDARD_RTTIEXT(Geom_Surface,Geom_Geometry) -protected: - - - - -private: - - - - }; - - - - - - #endif // _Geom_Surface_HeaderFile diff --git a/src/Geom/Geom_SurfaceOfLinearExtrusion.hxx b/src/Geom/Geom_SurfaceOfLinearExtrusion.hxx index f95db4bd74..3d975f4e2b 100644 --- a/src/Geom/Geom_SurfaceOfLinearExtrusion.hxx +++ b/src/Geom/Geom_SurfaceOfLinearExtrusion.hxx @@ -211,37 +211,37 @@ public: //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! - //! me->TranformParameters(U,V,T) - //! - //! This methods multiplies : + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method multiplies: //! U by BasisCurve()->ParametricTransformation(T) //! V by T.ScaleFactor() Standard_EXPORT virtual void TransformParameters (Standard_Real& U, Standard_Real& V, const gp_Trsf& T) const Standard_OVERRIDE; //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! - //! me->ParametricTransformation(T) - //! - //! This methods returns a scale + //! the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method returns a scale //! U by BasisCurve()->ParametricTransformation(T) //! V by T.ScaleFactor() Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const Standard_OVERRIDE; diff --git a/src/Geom/Geom_SurfaceOfRevolution.hxx b/src/Geom/Geom_SurfaceOfRevolution.hxx index b0370e6ebc..306e6b7eda 100644 --- a/src/Geom/Geom_SurfaceOfRevolution.hxx +++ b/src/Geom/Geom_SurfaceOfRevolution.hxx @@ -191,36 +191,35 @@ public: //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! - //! me->TranformParameters(U,V,T) - //! - //! This methods multiplies V by - //! BasisCurve()->ParametricTransformation(T) + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode + //! This method multiplies V by BasisCurve()->ParametricTransformation(T) Standard_EXPORT virtual void TransformParameters (Standard_Real& U, Standard_Real& V, const gp_Trsf& T) const Standard_OVERRIDE; //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! - //! me->ParametricTransformation(T) - //! - //! This methods returns a scale centered on the + //! the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method returns a scale centered on the //! U axis with BasisCurve()->ParametricTransformation(T) Standard_EXPORT virtual gp_GTrsf2d ParametricTransformation (const gp_Trsf& T) const Standard_OVERRIDE; diff --git a/src/GeomFill/GeomFill_SweepFunction.hxx b/src/GeomFill/GeomFill_SweepFunction.hxx index 58a6ff877a..6ca004037d 100644 --- a/src/GeomFill/GeomFill_SweepFunction.hxx +++ b/src/GeomFill/GeomFill_SweepFunction.hxx @@ -43,71 +43,71 @@ class GeomFill_SweepFunction; DEFINE_STANDARD_HANDLE(GeomFill_SweepFunction, Approx_SweepFunction) //! Function to approximate by SweepApproximation from -//! Approx. To bulid general sweep Surface. +//! Approx. To build general sweep Surface. class GeomFill_SweepFunction : public Approx_SweepFunction { public: - + Standard_EXPORT GeomFill_SweepFunction(const Handle(GeomFill_SectionLaw)& Section, const Handle(GeomFill_LocationLaw)& Location, const Standard_Real FirstParameter, const Standard_Real FirstParameterOnS, const Standard_Real RatioParameterOnS); //! compute the section for v = param Standard_EXPORT virtual Standard_Boolean D0 (const Standard_Real Param, const Standard_Real First, const Standard_Real Last, TColgp_Array1OfPnt& Poles, TColgp_Array1OfPnt2d& Poles2d, TColStd_Array1OfReal& Weigths) Standard_OVERRIDE; - - //! compute the first derivative in v direction of the - //! section for v = param + + //! compute the first derivative in v direction of the + //! section for v = param Standard_EXPORT virtual Standard_Boolean D1 (const Standard_Real Param, const Standard_Real First, const Standard_Real Last, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColgp_Array1OfPnt2d& Poles2d, TColgp_Array1OfVec2d& DPoles2d, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths) Standard_OVERRIDE; - + //! compute the second derivative in v direction of the - //! section for v = param + //! section for v = param Standard_EXPORT virtual Standard_Boolean D2 (const Standard_Real Param, const Standard_Real First, const Standard_Real Last, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColgp_Array1OfVec& D2Poles, TColgp_Array1OfPnt2d& Poles2d, TColgp_Array1OfVec2d& DPoles2d, TColgp_Array1OfVec2d& D2Poles2d, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths, TColStd_Array1OfReal& D2Weigths) Standard_OVERRIDE; - //! get the number of 2d curves to approximate. + //! get the number of 2d curves to approximate. Standard_EXPORT virtual Standard_Integer Nb2dCurves() const Standard_OVERRIDE; - //! get the format of an section + //! get the format of a section Standard_EXPORT virtual void SectionShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree) const Standard_OVERRIDE; - + //! get the Knots of the section Standard_EXPORT virtual void Knots (TColStd_Array1OfReal& TKnots) const Standard_OVERRIDE; - + //! get the Multplicities of the section Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const Standard_OVERRIDE; - - //! Returns if the section is rationnal or not + + //! Returns if the section is rational or not Standard_EXPORT virtual Standard_Boolean IsRational() const Standard_OVERRIDE; - - //! Returns the number of intervals for continuity + + //! Returns the number of intervals for continuity //! . May be one if Continuity(me) >= Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE; - - //! Stores in the parameters bounding the intervals + + //! Stores in the parameters bounding the intervals //! of continuity . //! //! The array must provide enough room to accommodate //! for the parameters. i.e. T.Length() > NbIntervals() Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE; - + //! Sets the bounds of the parametric interval on //! the function //! This determines the derivatives in these values if the //! function is not Cn. Standard_EXPORT virtual void SetInterval (const Standard_Real First, const Standard_Real Last) Standard_OVERRIDE; - - //! Returns the resolutions in the sub-space 2d + + //! Returns the resolutions in the sub-space 2d //! This information is usfull to find an good tolerance in //! 2d approximation. //! Warning: Used only if Nb2dCurve > 0 Standard_EXPORT virtual void Resolution (const Standard_Integer Index, const Standard_Real Tol, Standard_Real& TolU, Standard_Real& TolV) const Standard_OVERRIDE; - + //! Returns the tolerance to reach in approximation //! to respecte //! BoundTol error at the Boundary //! AngleTol tangent error at the Boundary (in radian) //! SurfTol error inside the surface. Standard_EXPORT virtual void GetTolerance (const Standard_Real BoundTol, const Standard_Real SurfTol, const Standard_Real AngleTol, TColStd_Array1OfReal& Tol3d) const Standard_OVERRIDE; - + //! Is usfull, if (me) have to be run numerical //! algorithme to perform D0, D1 or D2 Standard_EXPORT virtual void SetTolerance (const Standard_Real Tol3d, const Standard_Real Tol2d) Standard_OVERRIDE; @@ -117,7 +117,7 @@ public: //! to perform well conditioned rational approximation. //! Warning: Used only if IsRational Standard_EXPORT virtual gp_Pnt BarycentreOfSurf() const Standard_OVERRIDE; - + //! Returns the length of the maximum section. This //! information is useful to perform well conditioned rational //! approximation. diff --git a/src/GeomLib/GeomLib_CheckCurveOnSurface.hxx b/src/GeomLib/GeomLib_CheckCurveOnSurface.hxx index 93bf285f2f..6806b69aac 100644 --- a/src/GeomLib/GeomLib_CheckCurveOnSurface.hxx +++ b/src/GeomLib/GeomLib_CheckCurveOnSurface.hxx @@ -49,7 +49,7 @@ public: const Standard_Real theLast, const Standard_Real theTolRange = Precision::PConfusion()); - //! Initializes all members by dafault values + //! Initializes all members by default values Standard_EXPORT void Init(); //! Computes the max distance for the 3d curve diff --git a/src/GeomPlate/GeomPlate_Surface.hxx b/src/GeomPlate/GeomPlate_Surface.hxx index 86dc118282..944198aadd 100644 --- a/src/GeomPlate/GeomPlate_Surface.hxx +++ b/src/GeomPlate/GeomPlate_Surface.hxx @@ -68,12 +68,13 @@ public: //! Return the parameter on the Ureversed surface for //! the point of parameter U on . - //! - //! me->UReversed()->Value(me->UReversedParameter(U),V) - //! + //! @code + //! me->UReversed()->Value(me->UReversedParameter(U),V) + //! @endcode //! is the same point as - //! - //! me->Value(U,V) + //! @code + //! me->Value(U,V) + //! @endcode Standard_EXPORT Standard_Real UReversedParameter (const Standard_Real U) const Standard_OVERRIDE; @@ -83,27 +84,28 @@ public: //! Return the parameter on the Vreversed surface for //! the point of parameter V on . - //! - //! me->VReversed()->Value(U,me->VReversedParameter(V)) - //! + //! @code + //! me->VReversed()->Value(U,me->VReversedParameter(V)) + //! @endcode //! is the same point as - //! - //! me->Value(U,V) + //! @code + //! me->Value(U,V) + //! @endcode Standard_EXPORT Standard_Real VReversedParameter (const Standard_Real V) const Standard_OVERRIDE; //! Computes the parameters on the transformed surface for //! the transform of the point of parameters U,V on . - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are the new values of U,V after calling - //! - //! me->TranformParameters(U,V,T) - //! + //! @code + //! me->TransformParameters(U,V,T) + //! @endcode //! This methods does not change and //! //! It can be redefined. For example on the Plane, @@ -112,19 +114,19 @@ public: //! Returns a 2d transformation used to find the new //! parameters of a point on the transformed surface. - //! - //! me->Transformed(T)->Value(U',V') - //! + //! @code + //! me->Transformed(T)->Value(U',V') + //! @endcode //! is the same point as - //! - //! me->Value(U,V).Transformed(T) - //! + //! @code + //! me->Value(U,V).Transformed(T) + //! @endcode //! Where U',V' are obtained by transforming U,V with - //! th 2d transformation returned by - //! - //! me->ParametricTransformation(T) - //! - //! This methods returns an identity transformation + //! the 2d transformation returned by + //! @code + //! me->ParametricTransformation(T) + //! @endcode + //! This method returns an identity transformation //! //! It can be redefined. For example on the Plane, //! Cylinder, Cone, Revolved and Extruded surfaces. diff --git a/src/HLRBRep/HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter.hxx b/src/HLRBRep/HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter.hxx index 76d98d16ed..5e36c61693 100644 --- a/src/HLRBRep/HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter.hxx +++ b/src/HLRBRep/HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter.hxx @@ -48,7 +48,7 @@ public: Standard_EXPORT HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter(const Standard_Address& Curve, const Standard_Integer NbPnt, const IntRes2d_Domain& Domain, const Standard_Real Tol); //! The current polygon is modified if most - //! of the points of the polygon are are + //! of the points of the polygon are //! outside the box . In this //! situation, bounds are computed to build //! a polygon inside or near the OtherBox. diff --git a/src/HLRBRep/HLRBRep_VertexList.hxx b/src/HLRBRep/HLRBRep_VertexList.hxx index 88336c1782..5fd4205afc 100644 --- a/src/HLRBRep/HLRBRep_VertexList.hxx +++ b/src/HLRBRep/HLRBRep_VertexList.hxx @@ -51,8 +51,7 @@ public: //! Returns the current vertex Standard_EXPORT const HLRAlgo_Intersection& Current() const; - //! Returns True if the current vertex is is on the - //! boundary of the edge. + //! Returns True if the current vertex is on the boundary of the edge. Standard_EXPORT Standard_Boolean IsBoundary() const; //! Returns True if the current vertex is an diff --git a/src/NCollection/NCollection_Array2.hxx b/src/NCollection/NCollection_Array2.hxx index 4e6eb37c40..65115eab35 100644 --- a/src/NCollection/NCollection_Array2.hxx +++ b/src/NCollection/NCollection_Array2.hxx @@ -219,7 +219,7 @@ public: //! Move assignment. //! This array will borrow all the data from theOther. - //! The moved object will be left unitialized and should not be used anymore. + //! The moved object will be left uninitialized and should not be used anymore. NCollection_Array2& Move (NCollection_Array2& theOther) { if (&theOther == this) diff --git a/src/NCollection/NCollection_CellFilter.hxx b/src/NCollection/NCollection_CellFilter.hxx index dc447eabb9..63d98d8e2c 100644 --- a/src/NCollection/NCollection_CellFilter.hxx +++ b/src/NCollection/NCollection_CellFilter.hxx @@ -45,7 +45,7 @@ enum NCollection_CellFilter_Action * search for one bullet (more precisely, O(M) where M is number of cells covered * by the bullet). * - * The idea behind the algorithm is to separate each co-ordinate of the space + * The idea behind the algorithm is to separate each coordinate of the space * into equal-size cells. Note that this works well when cell size is * approximately equal to the characteristic size of the involved objects * (targets and bullets; including tolerance eventually used for coincidence @@ -56,7 +56,7 @@ enum NCollection_CellFilter_Action * The target objects to be searched are added to the tool by methods Add(); * each target is classified as belonging to some cell(s). The data on cells * (list of targets found in each one) are stored in the hash map with key being - * cumulative index of the cell by all co-ordinates. + * cumulative index of the cell by all coordinates. * Thus the time needed to find targets in some cell is O(1) * O(number of * targets in the cell). * @@ -123,7 +123,7 @@ public: //! Constructor; initialized by dimension count and cell size. //! //! Note: the cell size must be ensured to be greater than - //! maximal co-ordinate of the involved points divided by INT_MAX, + //! maximal coordinate of the involved points divided by INT_MAX, //! in order to avoid integer overflow of cell index. //! //! By default cell size is 0, which is invalid; thus if default @@ -173,12 +173,12 @@ public: } //! Adds a target object for further search in the range of cells - //! defined by two points (the first point must have all co-ordinates equal or - //! less than the same co-ordinate of the second point) + //! defined by two points (the first point must have all coordinates equal or + //! less than the same coordinate of the second point) void Add (const Target& theTarget, const Point &thePntMin, const Point &thePntMax) { - // get cells range by minimal and maximal co-ordinates + // get cells range by minimal and maximal coordinates Cell aCellMin (thePntMin, myCellSize); Cell aCellMax (thePntMax, myCellSize); Cell aCell = aCellMin; @@ -196,13 +196,13 @@ public: //! Find a target object in the range of cells defined by two points and //! remove it from the structures - //! (the first point must have all co-ordinates equal or - //! less than the same co-ordinate of the second point). + //! (the first point must have all coordinates equal or + //! less than the same coordinate of the second point). //! For usage of this method "operator ==" should be defined for Target. void Remove (const Target& theTarget, const Point &thePntMin, const Point &thePntMax) { - // get cells range by minimal and maximal co-ordinates + // get cells range by minimal and maximal coordinates Cell aCellMin (thePntMin, myCellSize); Cell aCellMax (thePntMax, myCellSize); Cell aCell = aCellMin; @@ -218,12 +218,12 @@ public: } //! Inspect all targets in the cells range limited by two given points - //! (the first point must have all co-ordinates equal or - //! less than the same co-ordinate of the second point) + //! (the first point must have all coordinates equal or + //! less than the same coordinate of the second point) void Inspect (const Point& thePntMin, const Point& thePntMax, Inspector &theInspector) { - // get cells range by minimal and maximal co-ordinates + // get cells range by minimal and maximal coordinates Cell aCellMin (thePntMin, myCellSize); Cell aCellMax (thePntMax, myCellSize); Cell aCell = aCellMin; @@ -254,7 +254,7 @@ protected: }; /** - * Auxilary structure representing a cell in the space. + * Auxiliary structure representing a cell in the space. * Cells are stored in the map, each cell contains list of objects * that belong to that cell. */ @@ -501,7 +501,7 @@ struct NCollection_CellFilter_InspectorXYZ //! Points type typedef gp_XYZ Point; - //! Access to co-ordinate + //! Access to coordinate static Standard_Real Coord (int i, const Point &thePnt) { return thePnt.Coord(i+1); } //! Auxiliary method to shift point by each coordinate on given value; @@ -524,7 +524,7 @@ struct NCollection_CellFilter_InspectorXY //! Points type typedef gp_XY Point; - //! Access to co-ordinate + //! Access to coordinate static Standard_Real Coord (int i, const Point &thePnt) { return thePnt.Coord(i+1); } //! Auxiliary method to shift point by each coordinate on given value; diff --git a/src/NCollection/NCollection_DefineArray1.hxx b/src/NCollection/NCollection_DefineArray1.hxx index 2b2ef62b96..74636946c3 100644 --- a/src/NCollection/NCollection_DefineArray1.hxx +++ b/src/NCollection/NCollection_DefineArray1.hxx @@ -25,7 +25,7 @@ // Array1OfItem tttab (ttab(10),10,20); // a slice of ttab // If you want to reindex an array from 1 to Length do : // Array1 tab1(tab(tab.Lower()),1,tab.Length()); -// Warning: Programs client of such a class must be independant +// Warning: Programs client of such a class must be independent // of the range of the first element. Then, a C++ for // loop must be written like this // for (i = A.Lower(); i <= A.Upper(); i++) diff --git a/src/NCollection/NCollection_DefineArray2.hxx b/src/NCollection/NCollection_DefineArray2.hxx index 65af4fdabf..00d32af4bd 100644 --- a/src/NCollection/NCollection_DefineArray2.hxx +++ b/src/NCollection/NCollection_DefineArray2.hxx @@ -17,7 +17,7 @@ // Purpose: The class Array2 represents bi-dimensional arrays // of fixed size known at run time. // The ranges of indices are user defined. -// Warning: Programs clients of such class must be independant +// Warning: Programs clients of such class must be independent // of the range of the first element. Then, a C++ for // loop must be written like this // for (i = A.LowerRow(); i <= A.UpperRow(); i++) diff --git a/src/NCollection/NCollection_DefineMap.hxx b/src/NCollection/NCollection_DefineMap.hxx index 6bd2833daf..d4ecbb5b1a 100644 --- a/src/NCollection/NCollection_DefineMap.hxx +++ b/src/NCollection/NCollection_DefineMap.hxx @@ -22,7 +22,7 @@ // ::HashCode must be defined in the global namespace // To compare two keys the function ::IsEqual must be // defined in the global namespace. -// The performance of a Map is conditionned by its +// The performance of a Map is conditioned by its // number of buckets that should be kept greater to // the number of keys. This map has an automatic // management of the number of buckets. It is resized diff --git a/src/NCollection/NCollection_IncAllocator.hxx b/src/NCollection/NCollection_IncAllocator.hxx index 84e32f8fc4..08e4219f0b 100644 --- a/src/NCollection/NCollection_IncAllocator.hxx +++ b/src/NCollection/NCollection_IncAllocator.hxx @@ -74,7 +74,7 @@ class NCollection_IncAllocator : public NCollection_BaseAllocator const size_t newSize); //! Re-initialize the allocator so that the next Allocate call should - //! start allocating in the very begining as though the allocator is just + //! start allocating in the very beginning as though the allocator is just //! constructed. Warning: make sure that all previously allocated data are //! no more used in your code! //! @param doReleaseMem diff --git a/src/NCollection/NCollection_Map.hxx b/src/NCollection/NCollection_Map.hxx index 3aa3f70119..bc266a609d 100644 --- a/src/NCollection/NCollection_Map.hxx +++ b/src/NCollection/NCollection_Map.hxx @@ -38,7 +38,7 @@ * To compare two keys the function ::IsEqual must be * defined in the global namespace. * - * The performance of a Map is conditionned by its + * The performance of a Map is conditioned by its * number of buckets that should be kept greater to * the number of keys. This map has an automatic * management of the number of buckets. It is resized diff --git a/src/NCollection/NCollection_UBTree.hxx b/src/NCollection/NCollection_UBTree.hxx index 6373938374..2b50ca81ba 100644 --- a/src/NCollection/NCollection_UBTree.hxx +++ b/src/NCollection/NCollection_UBTree.hxx @@ -296,7 +296,7 @@ public: const TreeNode& Root () const { return *myRoot; } /** - * Desctructor. + * Destructor. */ virtual ~NCollection_UBTree () { Clear(); } diff --git a/src/NCollection/NCollection_UtfIterator.hxx b/src/NCollection/NCollection_UtfIterator.hxx index 4a26b2c0b3..2b91ad508e 100755 --- a/src/NCollection/NCollection_UtfIterator.hxx +++ b/src/NCollection/NCollection_UtfIterator.hxx @@ -107,7 +107,7 @@ public: //! Buffer-fetching getter. const Type* BufferNext() const { return myPosNext; } - //! @return the index displacement from iterator intialization + //! @return the index displacement from iterator initialization //! (first symbol has index 0) Standard_Integer Index() const { @@ -235,7 +235,7 @@ private: //! @name private fields const Type* myPosition; //!< buffer position of the first element in the current symbol const Type* myPosNext; //!< buffer position of the first element in the next symbol - Standard_Integer myCharIndex; //!< index displacement from iterator intialization + Standard_Integer myCharIndex; //!< index displacement from iterator initialization Standard_Utf32Char myCharUtf32; //!< Unicode symbol stored at the current buffer position }; diff --git a/src/NCollection/NCollection_UtfString.hxx b/src/NCollection/NCollection_UtfString.hxx index 210ac967cb..66cf39ae8b 100755 --- a/src/NCollection/NCollection_UtfString.hxx +++ b/src/NCollection/NCollection_UtfString.hxx @@ -163,7 +163,7 @@ public: const Standard_Integer theEnd) const; //! Returns NULL-terminated Unicode string. - //! Should not be modifed or deleted! + //! Should not be modified or deleted! //! @return (const Type* ) pointer to string const Type* ToCString() const { diff --git a/src/NCollection/NCollection_UtfString.lxx b/src/NCollection/NCollection_UtfString.lxx index e53cfb3f56..a80a2bb409 100755 --- a/src/NCollection/NCollection_UtfString.lxx +++ b/src/NCollection/NCollection_UtfString.lxx @@ -216,7 +216,7 @@ void NCollection_UtfString::Swap (NCollection_UtfString& theOther) } #if !defined(__ANDROID__) -//! Auxiliary convertion tool. +//! Auxiliary conversion tool. class NCollection_UtfStringTool { public: diff --git a/src/NCollection/NCollection_Vec2.hxx b/src/NCollection/NCollection_Vec2.hxx index 12e8fe513d..46206d9750 100644 --- a/src/NCollection/NCollection_Vec2.hxx +++ b/src/NCollection/NCollection_Vec2.hxx @@ -277,13 +277,13 @@ public: return x() * x() + y() * y(); } - //! Constuct DX unit vector. + //! Construct DX unit vector. static NCollection_Vec2 DX() { return NCollection_Vec2 (Element_t(1), Element_t(0)); } - //! Constuct DY unit vector. + //! Construct DY unit vector. static NCollection_Vec2 DY() { return NCollection_Vec2 (Element_t(0), Element_t(1)); diff --git a/src/NCollection/NCollection_Vec3.hxx b/src/NCollection/NCollection_Vec3.hxx index 4677408e04..bc74018685 100644 --- a/src/NCollection/NCollection_Vec3.hxx +++ b/src/NCollection/NCollection_Vec3.hxx @@ -383,19 +383,19 @@ public: return theFrom * (Element_t(1) - theT) + theTo * theT; } - //! Constuct DX unit vector. + //! Construct DX unit vector. static NCollection_Vec3 DX() { return NCollection_Vec3 (Element_t(1), Element_t(0), Element_t(0)); } - //! Constuct DY unit vector. + //! Construct DY unit vector. static NCollection_Vec3 DY() { return NCollection_Vec3 (Element_t(0), Element_t(1), Element_t(0)); } - //! Constuct DZ unit vector. + //! Construct DZ unit vector. static NCollection_Vec3 DZ() { return NCollection_Vec3 (Element_t(0), Element_t(0), Element_t(1)); diff --git a/src/PCDM/PCDM_StorageDriver.hxx b/src/PCDM/PCDM_StorageDriver.hxx index bc1e42023a..711a8c21c0 100644 --- a/src/PCDM/PCDM_StorageDriver.hxx +++ b/src/PCDM/PCDM_StorageDriver.hxx @@ -37,7 +37,7 @@ class Storage_Schema; class PCDM_StorageDriver; DEFINE_STANDARD_HANDLE(PCDM_StorageDriver, PCDM_Writer) -//! persistent implemention of storage. +//! persistent implementation of storage. //! //! The application must redefine one the two Make() //! methods. The first one, if the application wants to diff --git a/src/PLib/PLib.cxx b/src/PLib/PLib.cxx index c0c1eaf45b..c867542e47 100644 --- a/src/PLib/PLib.cxx +++ b/src/PLib/PLib.cxx @@ -1189,7 +1189,7 @@ Standard_Integer PLib::EvalCubicHermite // // // initialise it at the stage 2 of the building algorithm - // for devided differences + // for divided differences // inverse = FirstLast[1] - FirstLast[0] ; inverse = 1.0e0 / inverse ; diff --git a/src/PLib/PLib.hxx b/src/PLib/PLib.hxx index 283c6f08d3..bc51ce9ce6 100644 --- a/src/PLib/PLib.hxx +++ b/src/PLib/PLib.hxx @@ -153,28 +153,29 @@ public: //! Warning: must be dimensionned properly. Standard_EXPORT static void RationalDerivatives (const Standard_Integer DerivativesRequest, const Standard_Integer Dimension, Standard_Real& PolesDerivatives, Standard_Real& WeightsDerivatives, Standard_Real& RationalDerivates); - //! Performs Horner method with synthethic division - //! for derivatives + //! Performs Horner method with synthetic division for derivatives //! parameter , with and . //! PolynomialCoeff are stored in the following fashion + //! @code //! c0(1) c0(2) .... c0(Dimension) //! c1(1) c1(2) .... c1(Dimension) //! //! cDegree(1) cDegree(2) .... cDegree(Dimension) + //! @endcode //! where the polynomial is defined as : - //! + //! @code //! 2 Degree //! c0 + c1 X + c2 X + .... cDegree X - //! + //! @endcode //! Results stores the result in the following format - //! + //! @code //! f(1) f(2) .... f(Dimension) //! (1) (1) (1) //! f (1) f (2) .... f (Dimension) //! //! (DerivativeRequest) (DerivativeRequest) //! f (1) f (Dimension) - //! + //! @endcode //! this just evaluates the point at parameter U //! //! Warning: and must be dimensioned properly @@ -188,6 +189,7 @@ public: //! at parameters U,V //! //! PolynomialCoeff are stored in the following fashion + //! @code //! c00(1) .... c00(Dimension) //! c10(1) .... c10(Dimension) //! .... @@ -202,21 +204,22 @@ public: //! c1n(1) .... c1n(Dimension) //! .... //! cmn(1) .... cmn(Dimension) - //! + //! @endcode //! where the polynomial is defined as : + //! @code //! 2 m //! c00 + c10 U + c20 U + .... + cm0 U //! 2 m //! + c01 V + c11 UV + c21 U V + .... + cm1 U V //! n m n //! + .... + c0n V + .... + cmn U V - //! + //! @endcode //! with m = UDegree and n = VDegree //! //! Results stores the result in the following format - //! + //! @code //! f(1) f(2) .... f(Dimension) - //! + //! @endcode //! Warning: and must be dimensioned properly Standard_EXPORT static void EvalPoly2Var (const Standard_Real U, const Standard_Real V, const Standard_Integer UDerivativeOrder, const Standard_Integer VDerivativeOrder, const Standard_Integer UDegree, const Standard_Integer VDegree, const Standard_Integer Dimension, Standard_Real& PolynomialCoeff, Standard_Real& Results); @@ -225,11 +228,12 @@ public: //! with the requested derivative order //! Results will store things in the following format //! with d = DerivativeOrder - //! + //! @code //! [0], [Dimension-1] : value //! [Dimension], [Dimension + Dimension-1] : first derivative //! //! [d *Dimension], [d*Dimension + Dimension-1]: dth derivative + //! @endcode Standard_EXPORT static Standard_Integer EvalLagrange (const Standard_Real U, const Standard_Integer DerivativeOrder, const Standard_Integer Degree, const Standard_Integer Dimension, Standard_Real& ValueArray, Standard_Real& ParameterArray, Standard_Real& Results); //! Performs the Cubic Hermite Interpolation of @@ -237,28 +241,37 @@ public: //! with the requested derivative order. //! ValueArray stores the value at the first and //! last parameter. It has the following format : + //! @code //! [0], [Dimension-1] : value at first param //! [Dimension], [Dimension + Dimension-1] : value at last param + //! @endcode //! Derivative array stores the value of the derivatives //! at the first parameter and at the last parameter //! in the following format + //! @code //! [0], [Dimension-1] : derivative at + //! @endcode //! first param + //! @code //! [Dimension], [Dimension + Dimension-1] : derivative at + //! @endcode //! last param //! //! ParameterArray stores the first and last parameter //! in the following format : + //! @code //! [0] : first parameter //! [1] : last parameter + //! @endcode //! //! Results will store things in the following format //! with d = DerivativeOrder - //! + //! @code //! [0], [Dimension-1] : value //! [Dimension], [Dimension + Dimension-1] : first derivative //! //! [d *Dimension], [d*Dimension + Dimension-1]: dth derivative + //! @endcode Standard_EXPORT static Standard_Integer EvalCubicHermite (const Standard_Real U, const Standard_Integer DerivativeOrder, const Standard_Integer Dimension, Standard_Real& ValueArray, Standard_Real& DerivativeArray, Standard_Real& ParameterArray, Standard_Real& Results); //! This build the coefficient of Hermite's polynomes on diff --git a/src/PLib/PLib_HermitJacobi.hxx b/src/PLib/PLib_HermitJacobi.hxx index f44fb9daaa..b06acbe8c4 100644 --- a/src/PLib/PLib_HermitJacobi.hxx +++ b/src/PLib/PLib_HermitJacobi.hxx @@ -34,31 +34,36 @@ class PLib_HermitJacobi; DEFINE_STANDARD_HANDLE(PLib_HermitJacobi, PLib_Base) //! This class provides method to work with Jacobi Polynomials -//! relativly to an order of constraint +//! relatively to an order of constraint //! q = myWorkDegree-2*(myNivConstr+1) -//! Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) +//! Jk(t) for k=0,q compose the Jacobi Polynomial base relatively to the weigth W(t) //! iorder is the integer value for the constraints: //! iorder = 0 <=> ConstraintOrder = GeomAbs_C0 //! iorder = 1 <=> ConstraintOrder = GeomAbs_C1 //! iorder = 2 <=> ConstraintOrder = GeomAbs_C2 //! P(t) = H(t) + W(t) * Q(t) Where W(t) = (1-t**2)**(2*iordre+2) //! the coefficients JacCoeff represents P(t) JacCoeff are stored as follow: -//! +//! @code //! c0(1) c0(2) .... c0(Dimension) //! c1(1) c1(2) .... c1(Dimension) //! //! cDegree(1) cDegree(2) .... cDegree(Dimension) -//! +//! @endcode //! The coefficients +//! @code //! c0(1) c0(2) .... c0(Dimension) //! c2*ordre+1(1) ... c2*ordre+1(dimension) -//! +//! @endcode //! represents the part of the polynomial in the //! Hermit's base: H(t) +//! @code //! H(t) = c0H00(t) + c1H01(t) + ...c(iordre)H(0 ;iorder)+ c(iordre+1)H10(t)+... +//! @endcode //! The following coefficients represents the part of the //! polynomial in the Jacobi base ie Q(t) +//! @code //! Q(t) = c2*iordre+2 J0(t) + ...+ cDegree JDegree-2*iordre-2 +//! @endcode class PLib_HermitJacobi : public PLib_Base { diff --git a/src/PLib/PLib_JacobiPolynomial.hxx b/src/PLib/PLib_JacobiPolynomial.hxx index 2b0543e352..95acc2f63b 100644 --- a/src/PLib/PLib_JacobiPolynomial.hxx +++ b/src/PLib/PLib_JacobiPolynomial.hxx @@ -34,9 +34,9 @@ class PLib_JacobiPolynomial; DEFINE_STANDARD_HANDLE(PLib_JacobiPolynomial, PLib_Base) //! This class provides method to work with Jacobi Polynomials -//! relativly to an order of constraint +//! relatively to an order of constraint //! q = myWorkDegree-2*(myNivConstr+1) -//! Jk(t) for k=0,q compose the Jacobi Polynomial base relativly to the weigth W(t) +//! Jk(t) for k=0,q compose the Jacobi Polynomial base relatively to the weigth W(t) //! iorder is the integer value for the constraints: //! iorder = 0 <=> ConstraintOrder = GeomAbs_C0 //! iorder = 1 <=> ConstraintOrder = GeomAbs_C1 @@ -76,7 +76,7 @@ public: //! returns the Jacobi Points for Gauss integration ie //! the positive values of the Legendre roots by increasing values - //! NbGaussPoints is the number of points choosen for the integral + //! NbGaussPoints is the number of points chosen for the integral //! computation. //! TabPoints (0,NbGaussPoints/2) //! TabPoints (0) is loaded only for the odd values of NbGaussPoints @@ -89,7 +89,7 @@ public: //! returns the Jacobi weigths for Gauss integration only for //! the positive values of the Legendre roots in the order they //! are given by the method Points - //! NbGaussPoints is the number of points choosen for the integral + //! NbGaussPoints is the number of points chosen for the integral //! computation. //! TabWeights (0,NbGaussPoints/2,0,Degree) //! TabWeights (0,.) are only loaded for the odd values of NbGaussPoints diff --git a/src/Poly/Poly_CoherentTriangle.hxx b/src/Poly/Poly_CoherentTriangle.hxx index b0a090498f..90e48c81a9 100644 --- a/src/Poly/Poly_CoherentTriangle.hxx +++ b/src/Poly/Poly_CoherentTriangle.hxx @@ -139,8 +139,7 @@ class Poly_CoherentTriangle { return mypLink[iLink]; } /** - * Retuns the index of the connection with the given triangle, or -1 if not - * found. + * Returns the index of the connection with the given triangle, or -1 if not found. */ Standard_EXPORT Standard_Integer FindConnection (const Poly_CoherentTriangle&) const; diff --git a/src/Poly/Poly_CoherentTriangulation.hxx b/src/Poly/Poly_CoherentTriangulation.hxx index a30c9415cf..dfda4b5ebb 100644 --- a/src/Poly/Poly_CoherentTriangulation.hxx +++ b/src/Poly/Poly_CoherentTriangulation.hxx @@ -185,7 +185,7 @@ class Poly_CoherentTriangulation : public Standard_Transient * degenerated and therefore removed by this method. * @param pLstRemovedNode * Optional parameter. If defined, then it will receive the list of arrays - * where the first number is the index of removed node and the seond - + * where the first number is the index of removed node and the second - * the index of remaining node to which the mesh was reconnected. */ Standard_EXPORT Standard_Boolean RemoveDegenerated diff --git a/src/Poly/Poly_MakeLoops.cxx b/src/Poly/Poly_MakeLoops.cxx index a235a690b0..8ba09e83a7 100644 --- a/src/Poly/Poly_MakeLoops.cxx +++ b/src/Poly/Poly_MakeLoops.cxx @@ -408,7 +408,7 @@ void Poly_MakeLoops::markHangChain(Standard_Integer theNode, Standard_Integer th { // check if the current link is hanging: // if it is outcoming from aNode1 then count the number of - // other incoming links and vise versa; + // other incoming links and vice-versa; // if the number is zero than it is hanging const ListOfLink& aLinks = myHelper->GetAdjacentLinks (aNode1); Standard_Integer nEdges = 0; diff --git a/src/Poly/Poly_MakeLoops.hxx b/src/Poly/Poly_MakeLoops.hxx index 79216540ea..c72dad62e3 100644 --- a/src/Poly/Poly_MakeLoops.hxx +++ b/src/Poly/Poly_MakeLoops.hxx @@ -169,7 +169,7 @@ public: //! Set a new value of orientation of a link already added earlier. //! It can be used with LF_None to exclude the link from consideration. - //! Returns the old value of orienation. + //! Returns the old value of orientation. Standard_EXPORT LinkFlag SetLinkOrientation (const Link& theLink, const LinkFlag theOrient); diff --git a/src/Poly/Poly_Polygon3D.hxx b/src/Poly/Poly_Polygon3D.hxx index a241fdc7b0..507461bb11 100644 --- a/src/Poly/Poly_Polygon3D.hxx +++ b/src/Poly/Poly_Polygon3D.hxx @@ -83,9 +83,9 @@ public: const TColStd_Array1OfReal& Parameters() const { return myParameters->Array1(); } //! Returns the table of the parameters associated with each node in this polygon. - //! ChangeParameters function returnes the array as shared. Therefore if the table is selected by - //! reference you can, by simply modifying it, directly modify - //! the data structure of this polygon. + //! ChangeParameters function returns the array as shared. + //! Therefore if the table is selected by reference you can, by simply modifying it, + //! directly modify the data structure of this polygon. TColStd_Array1OfReal& ChangeParameters() const { return myParameters->ChangeArray1(); } //! Dumps the content of me into the stream diff --git a/src/ProjLib/ProjLib_CompProjectedCurve.cxx b/src/ProjLib/ProjLib_CompProjectedCurve.cxx index 65e525a39c..49c15ece7d 100644 --- a/src/ProjLib/ProjLib_CompProjectedCurve.cxx +++ b/src/ProjLib/ProjLib_CompProjectedCurve.cxx @@ -1539,14 +1539,14 @@ void ProjLib_CompProjectedCurve::BuildIntervals(const GeomAbs_Shape S) const UArr = NULL, VArr = NULL; - // proccessing projection bounds + // processing projection bounds BArr = new TColStd_HArray1OfReal(1, 2*myNbCurves); for(i = 1; i <= myNbCurves; i++) { Bounds(i, BArr->ChangeValue(2*i - 1), BArr->ChangeValue(2*i)); } - // proccessing curve discontinuities + // processing curve discontinuities if(NbIntCur > 1) { CArr = new TColStd_HArray1OfReal(1, NbIntCur - 1); for(i = 1; i <= CArr->Length(); i++) @@ -1555,7 +1555,7 @@ void ProjLib_CompProjectedCurve::BuildIntervals(const GeomAbs_Shape S) const } } - // proccessing U-surface discontinuities + // processing U-surface discontinuities TColStd_SequenceOfReal TUdisc; for(k = 2; k <= NbIntSurU; k++) { @@ -1620,7 +1620,7 @@ void ProjLib_CompProjectedCurve::BuildIntervals(const GeomAbs_Shape S) const UArr->ChangeValue(i) = TUdisc(i); } } - // proccessing V-surface discontinuities + // processing V-surface discontinuities TColStd_SequenceOfReal TVdisc; for(k = 2; k <= NbIntSurV; k++) diff --git a/src/ProjLib/ProjLib_ComputeApprox.hxx b/src/ProjLib/ProjLib_ComputeApprox.hxx index 24ea449481..032d605f0b 100644 --- a/src/ProjLib/ProjLib_ComputeApprox.hxx +++ b/src/ProjLib/ProjLib_ComputeApprox.hxx @@ -32,7 +32,7 @@ class Geom2d_BezierCurve; //! Tolerance is maximal possible value of 3d deviation of 3d projection of projected curve from //! "exact" 3d projection. Since algorithm searches 2d curve on surface, required 2d tolerance is computed //! from 3d tolerance with help of U,V resolutions of surface. -//! 3d and 2d tolerances have sence only for curves on surface, it defines precision of projecting and approximation +//! 3d and 2d tolerances have sense only for curves on surface, it defines precision of projecting and approximation //! and have nothing to do with distance between the projected curve and the surface. class ProjLib_ComputeApprox { diff --git a/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx b/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx index 58f9516a46..919c62655c 100644 --- a/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx +++ b/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx @@ -711,7 +711,7 @@ Handle(Geom2d_BSplineCurve) ProjLib_ComputeApproxOnPolarSurface::Perform // if there is an initialization curve: // - either this is a BSpline C0, with discontinuity at the same parameters of nodes // and the sections C1 are taken - // - or this is a curve C1 and the sections of intrest are taken otherwise the curve is created. + // - or this is a curve C1 and the sections of interest are taken otherwise the curve is created. // initialization 2d Standard_Integer nbInter2d; diff --git a/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.hxx b/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.hxx index 730fffd67e..536ef88a8c 100644 --- a/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.hxx +++ b/src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.hxx @@ -35,7 +35,7 @@ class Geom2d_Curve; //! Tolerance is maximal possible value of 3d deviation of 3d projection of projected curve from //! "exact" 3d projection. Since algorithm searches 2d curve on surface, required 2d tolerance is computed //! from 3d tolerance with help of U,V resolutions of surface. -//! 3d and 2d tolerances have sence only for curves on surface, it defines precision of projecting and approximation +//! 3d and 2d tolerances have sense only for curves on surface, it defines precision of projecting and approximation //! and have nothing to do with distance between the projected curve and the surface. class ProjLib_ComputeApproxOnPolarSurface { @@ -77,7 +77,7 @@ public: //! Set the parameter, which defines maximal possible distance between projected curve and surface. //! It is used only for projecting on not analytical surfaces. - //! If theMaxDist < 0, algoritm uses default value 100.*Tolerance. + //! If theMaxDist < 0, algorithm uses default value 100.*Tolerance. //! If real distance between curve and surface more then theMaxDist, algorithm stops working. Standard_EXPORT void SetMaxDist(const Standard_Real theMaxDist); @@ -95,7 +95,7 @@ public: //! Parameter InitCurve2d is any rough estimation of 2d result curve. Standard_EXPORT Handle(Geom2d_BSplineCurve) Perform (const Handle(Adaptor2d_Curve2d)& InitCurve2d, const Handle(Adaptor3d_Curve)& C, const Handle(Adaptor3d_Surface)& S); - //! Builds initial 2d curve as BSpline with degree = 1 using Extrema algoritm. + //! Builds initial 2d curve as BSpline with degree = 1 using Extrema algorithm. //! Method is used in method Perform(...). Standard_EXPORT Handle(Adaptor2d_Curve2d) BuildInitialCurve2d (const Handle(Adaptor3d_Curve)& Curve, const Handle(Adaptor3d_Surface)& S); diff --git a/src/ProjLib/ProjLib_PrjResolve.hxx b/src/ProjLib/ProjLib_PrjResolve.hxx index 75ab66b1e3..7b1b257f0b 100644 --- a/src/ProjLib/ProjLib_PrjResolve.hxx +++ b/src/ProjLib/ProjLib_PrjResolve.hxx @@ -37,11 +37,9 @@ public: Standard_EXPORT ProjLib_PrjResolve(const Adaptor3d_Curve& C, const Adaptor3d_Surface& S, const Standard_Integer Fix); //! Calculates the ort from C(t) to S with a close point. - //! The close point is defined by the parameter values - //! U0 and V0. - //! The function F(u,v)=distance(S(u,v),C(t)) has an - //! extremum when gradient(F)=0. The algorithm searchs - //! a zero near the close point. + //! The close point is defined by the parameter values U0 and V0. + //! The function F(u,v)=distance(S(u,v),C(t)) has an extremum when gradient(F)=0. + //! The algorithm searches a zero near the close point. Standard_EXPORT void Perform (const Standard_Real t, const Standard_Real U, const Standard_Real V, const gp_Pnt2d& Tol, const gp_Pnt2d& Inf, const gp_Pnt2d& Sup, const Standard_Real FTol = -1, const Standard_Boolean StrictInside = Standard_False); //! Returns True if the distance is found. diff --git a/src/ProjLib/ProjLib_ProjectOnPlane.hxx b/src/ProjLib/ProjLib_ProjectOnPlane.hxx index 3414d282c3..a9fb55bc15 100644 --- a/src/ProjLib/ProjLib_ProjectOnPlane.hxx +++ b/src/ProjLib/ProjLib_ProjectOnPlane.hxx @@ -71,12 +71,12 @@ public: //! plane . Standard_EXPORT ProjLib_ProjectOnPlane(const gp_Ax3& Pl, const gp_Dir& D); - //! Sets the Curve and perform the projection. if - //! is true, the parametrization + //! Sets the Curve and perform the projection. + //! if is true, the parametrization //! of the Projected Curve will be the same as - //! the parametrization of the initial curve . It - //! meens: proj(C(u)) = PC(u) for each u. Otherwize, - //! the parametrization may change. + //! the parametrization of the initial curve . + //! It means: proj(C(u)) = PC(u) for each u. + //! Otherwise, the parametrization may change. Standard_EXPORT void Load (const Handle(Adaptor3d_Curve)& C, const Standard_Real Tolerance, const Standard_Boolean KeepParametrization = Standard_True); Standard_EXPORT const gp_Ax3& GetPlane() const; @@ -98,10 +98,9 @@ public: //! intervals. Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE; - //! Stores in the parameters bounding the intervals - //! of continuity . + //! Stores in the parameters bounding the intervals of continuity . //! - //! The array must provide enough room to accomodate + //! The array must provide enough room to accommodate //! for the parameters. i.e. T.Length() > NbIntervals() Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE; diff --git a/src/ProjLib/ProjLib_ProjectOnSurface.hxx b/src/ProjLib/ProjLib_ProjectOnSurface.hxx index 14726366de..6e5ffa4086 100644 --- a/src/ProjLib/ProjLib_ProjectOnSurface.hxx +++ b/src/ProjLib/ProjLib_ProjectOnSurface.hxx @@ -33,7 +33,7 @@ public: //! Create an empty projector. Standard_EXPORT ProjLib_ProjectOnSurface(); - //! Create a projector normaly to the surface . + //! Create a projector normally to the surface . Standard_EXPORT ProjLib_ProjectOnSurface(const Handle(Adaptor3d_Surface)& S); Standard_EXPORT virtual ~ProjLib_ProjectOnSurface(); diff --git a/src/ProjLib/ProjLib_ProjectedCurve.hxx b/src/ProjLib/ProjLib_ProjectedCurve.hxx index f5c14c74aa..22e447ae53 100644 --- a/src/ProjLib/ProjLib_ProjectedCurve.hxx +++ b/src/ProjLib/ProjLib_ProjectedCurve.hxx @@ -39,13 +39,13 @@ class Geom2d_BSplineCurve; DEFINE_STANDARD_HANDLE(ProjLib_ProjectedCurve, Adaptor2d_Curve2d) //! Compute the 2d-curve. Try to solve the particular -//! case if possible. Otherwize, an approximation is +//! case if possible. Otherwise, an approximation is //! done. For approximation some parameters are used, including //! required tolerance of approximation. //! Tolerance is maximal possible value of 3d deviation of 3d projection of projected curve from //! "exact" 3d projection. Since algorithm searches 2d curve on surface, required 2d tolerance is computed //! from 3d tolerance with help of U,V resolutions of surface. -//! 3d and 2d tolerances have sence only for curves on surface, it defines precision of projecting and approximation +//! 3d and 2d tolerances have sense only for curves on surface, it defines precision of projecting and approximation //! and have nothing to do with distance between the projected curve and the surface. class ProjLib_ProjectedCurve : public Adaptor2d_Curve2d { @@ -97,7 +97,7 @@ public: //! Set the parameter, which degines maximal possible distance between projected curve and surface. //! It uses only for projecting on not analytical surfaces. - //! If theMaxDist < 0, algoritm uses default value 100.*Tolerance. + //! If theMaxDist < 0, algorithm uses default value 100.*Tolerance. //! If real distance between curve and surface more then theMaxDist, algorithm stops working. Standard_EXPORT void SetMaxDist(const Standard_Real theMaxDist); @@ -123,7 +123,7 @@ public: //! Stores in the parameters bounding the intervals //! of continuity . //! - //! The array must provide enough room to accomodate + //! The array must provide enough room to accommodate //! for the parameters. i.e. T.Length() > NbIntervals() Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE; diff --git a/src/Prs3d/Prs3d_DimensionUnits.hxx b/src/Prs3d/Prs3d_DimensionUnits.hxx index a40e4af391..dd519a129e 100644 --- a/src/Prs3d/Prs3d_DimensionUnits.hxx +++ b/src/Prs3d/Prs3d_DimensionUnits.hxx @@ -19,7 +19,7 @@ #include //! This class provides units for two dimension groups: -//! - lengthes (length, radius, diameter) +//! - lengths (length, radius, diameter) //! - angles class Prs3d_DimensionUnits { diff --git a/src/Prs3d/Prs3d_Drawer.hxx b/src/Prs3d/Prs3d_Drawer.hxx index 198009d72e..e5b383e71f 100644 --- a/src/Prs3d/Prs3d_Drawer.hxx +++ b/src/Prs3d/Prs3d_Drawer.hxx @@ -275,7 +275,7 @@ public: myDeviationAngle = 20.0 * M_PI / 180.0; } - //! Returns true if the there is a local setting for deviation + //! Returns true if there is a local setting for deviation //! angle in this framework for a specific interactive object. Standard_Boolean HasOwnDeviationAngle() const { return myHasOwnDeviationAngle; } diff --git a/src/PrsDim/PrsDim_AngleDimension.cxx b/src/PrsDim/PrsDim_AngleDimension.cxx index 8e94f3a2f6..a58af9cc21 100644 --- a/src/PrsDim/PrsDim_AngleDimension.cxx +++ b/src/PrsDim/PrsDim_AngleDimension.cxx @@ -1171,7 +1171,7 @@ Standard_Boolean PrsDim_AngleDimension::IsValidPoints (const gp_Pnt& theFirstPoi //======================================================================= //function : isArrowVisible -//purpose : compares given and internal arrows types, returns true if the the type should be shown +//purpose : compares given and internal arrows types, returns true if the type should be shown //======================================================================= Standard_Boolean PrsDim_AngleDimension::isArrowVisible(const PrsDim_TypeOfAngleArrowVisibility theArrowType) const { diff --git a/src/PrsDim/PrsDim_DiameterDimension.hxx b/src/PrsDim/PrsDim_DiameterDimension.hxx index 51b8710310..04a1370416 100644 --- a/src/PrsDim/PrsDim_DiameterDimension.hxx +++ b/src/PrsDim/PrsDim_DiameterDimension.hxx @@ -24,7 +24,7 @@ DEFINE_STANDARD_HANDLE(PrsDim_DiameterDimension, PrsDim_Dimension) -//! Diameter dimension. Can be constructued: +//! Diameter dimension. Can be constructed: //! - On generic circle. //! - On generic circle with user-defined anchor point on that circle //! (dimension plane is oriented to follow the anchor point). diff --git a/src/PrsDim/PrsDim_Dimension.hxx b/src/PrsDim/PrsDim_Dimension.hxx index 85f4eb854e..bc2047b145 100644 --- a/src/PrsDim/PrsDim_Dimension.hxx +++ b/src/PrsDim/PrsDim_Dimension.hxx @@ -148,7 +148,7 @@ DEFINE_STANDARD_HANDLE(PrsDim_Dimension, AIS_InteractiveObject) //! this 3d point to the set of parameters including adjusting of the dimension plane (this plane will be //! automatic plane, NOT user-defined one). //! If the fixed text position is set, the flag myIsFixedTextPosition is set to TRUE. -//! ATTENSION! myIsFixedTextPosition fixes all parameters of the set from recomputing inside +//! ATTENTION! myIsFixedTextPosition fixes all parameters of the set from recomputing inside //! SetMeasureGeometry() methods. Parameters in dimension aspect (they are horizontal text position //! and extension size) are adjusted on presentation computing step, user-defined values in //! dimension aspect are not changed. @@ -249,7 +249,7 @@ public: Standard_EXPORT void SetCustomValue (const Standard_Real theValue); //! Sets user-defined dimension value. - //! Unit conversion during the display is not applyed. + //! Unit conversion during the display is not applied. //! @param theValue [in] the user-defined value to display. Standard_EXPORT void SetCustomValue (const TCollection_ExtendedString& theValue); @@ -475,7 +475,7 @@ protected: //! @param theCircle [out] the circle geometry. //! @param theMiddleArcPoint [out] the middle point of the arc. //! @param theIsClosed [out] returns TRUE if the geometry is closed circle. - //! @return TRUE if the the circle is successfully got from the input shape. + //! @return TRUE if the circle is successfully returned from the input shape. Standard_EXPORT Standard_Boolean InitCircularDimension (const TopoDS_Shape& theShape, gp_Circ& theCircle, gp_Pnt& theMiddleArcPoint, diff --git a/src/PrsDim/PrsDim_EqualDistanceRelation.cxx b/src/PrsDim/PrsDim_EqualDistanceRelation.cxx index 45ab79ac48..48a5a68e44 100644 --- a/src/PrsDim/PrsDim_EqualDistanceRelation.cxx +++ b/src/PrsDim/PrsDim_EqualDistanceRelation.cxx @@ -467,7 +467,7 @@ void PrsDim_EqualDistanceRelation::ComputeTwoEdgesLength( const Handle( Prs3d_Pr gp_Circ aCirc1 = aCir1->Circ(); gp_Circ aCirc2 = aCir2->Circ(); - //To avoid circles with different orientaion + //To avoid circles with different orientation Standard_Real aTol = Precision::Confusion(); if(aCirc2.Axis().IsOpposite(aCirc1.Axis(), aTol) || aCirc2.XAxis().IsOpposite(aCirc1.XAxis(), aTol) || diff --git a/src/PrsDim/PrsDim_IdenticRelation.cxx b/src/PrsDim/PrsDim_IdenticRelation.cxx index 5dd9851be3..73c64f7d9e 100644 --- a/src/PrsDim/PrsDim_IdenticRelation.cxx +++ b/src/PrsDim/PrsDim_IdenticRelation.cxx @@ -476,7 +476,7 @@ void PrsDim_IdenticRelation::ComputeTwoEdgesPresentation(const Handle(Prs3d_Pres return; aPrs->SetInfiniteState((isInfinite1 || isInfinite2) && myExtShape != 0); - // Treatement of the case of lines + // Treatment of the case of lines if ( curv1->IsInstance(STANDARD_TYPE(Geom_Line)) && curv2->IsInstance(STANDARD_TYPE(Geom_Line)) ) { // we take the line curv1 like support Handle(Geom_Line) thelin; @@ -486,7 +486,7 @@ void PrsDim_IdenticRelation::ComputeTwoEdgesPresentation(const Handle(Prs3d_Pres ComputeTwoLinesPresentation(aPrs, thelin, firstp1, lastp1, firstp2, lastp2, isInfinite1, isInfinite2); } - // Treatement of the case of circles + // Treatment of the case of circles else if ( curv1->IsInstance(STANDARD_TYPE(Geom_Circle)) && curv2->IsInstance(STANDARD_TYPE(Geom_Circle)) ) { //gp_Pnt curpos; isCircle = Standard_True; // useful for ComputeSelection @@ -495,7 +495,7 @@ void PrsDim_IdenticRelation::ComputeTwoEdgesPresentation(const Handle(Prs3d_Pres } // jfa 10/10/2000 - // Treatement of the case of ellipses + // Treatment of the case of ellipses else if ( curv1->IsInstance(STANDARD_TYPE(Geom_Ellipse)) && curv2->IsInstance(STANDARD_TYPE(Geom_Ellipse)) ) { Handle(Geom_Ellipse) theEll (Handle(Geom_Ellipse)::DownCast (curv1)); @@ -577,7 +577,7 @@ void PrsDim_IdenticRelation::ComputeTwoLinesPresentation(const Handle(Prs3d_Pres lastp2 = lastp1; } - Standard_Real tabRang1[4]; // array taht contains the parameters of the 4 points + Standard_Real tabRang1[4]; // array that contains the parameters of the 4 points // ordered by increasing abscisses. gp_Pnt tabRang2[4]; // array containing the points corresponding to the diff --git a/src/PrsDim/PrsDim_LengthDimension.hxx b/src/PrsDim/PrsDim_LengthDimension.hxx index c5000ad561..bfc227a882 100644 --- a/src/PrsDim/PrsDim_LengthDimension.hxx +++ b/src/PrsDim/PrsDim_LengthDimension.hxx @@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE (PrsDim_LengthDimension, PrsDim_Dimension) -//! Length dimension. Can be constructued: +//! Length dimension. Can be constructed: //! - Between two generic points. //! - Between two vertices. //! - Between two faces. @@ -36,7 +36,7 @@ DEFINE_STANDARD_HANDLE (PrsDim_LengthDimension, PrsDim_Dimension) //! In case of two points (vertices) or one linear edge the user-defined plane //! that includes this geometry is necessary to be set. //! -//! In case of face-edge, edge-vertex or face-face lengthes the automatic plane +//! In case of face-edge, edge-vertex or face-face lengths the automatic plane //! computing is allowed. For this plane the third point is found on the //! edge or on the face. //! diff --git a/src/PrsDim/PrsDim_RadiusDimension.hxx b/src/PrsDim/PrsDim_RadiusDimension.hxx index 9eab78168f..1c9b8a2e76 100644 --- a/src/PrsDim/PrsDim_RadiusDimension.hxx +++ b/src/PrsDim/PrsDim_RadiusDimension.hxx @@ -23,7 +23,7 @@ DEFINE_STANDARD_HANDLE(PrsDim_RadiusDimension, PrsDim_Dimension) -//! Radius dimension. Can be constructued: +//! Radius dimension. Can be constructed: //! - On generic circle. //! - On generic circle with user-defined anchor point on that circle. //! - On generic shape containing geometry that can be measured diff --git a/src/PrsDim/PrsDim_Relation.hxx b/src/PrsDim/PrsDim_Relation.hxx index 97faba8464..0012cbb7b5 100644 --- a/src/PrsDim/PrsDim_Relation.hxx +++ b/src/PrsDim/PrsDim_Relation.hxx @@ -178,14 +178,14 @@ protected: Standard_EXPORT PrsDim_Relation (const PrsMgr_TypeOfPresentation3d aTypeOfPresentation3d = PrsMgr_TOP_AllView); - //! Calculates the presentation aPres of the the edge + //! Calculates the presentation aPres of the edge //! anEdge and the curve it defines, ProjCurve. The later //! is also specified by the first point FirstP and the last point LastP. //! The presentation includes settings for color aColor, //! type - aProjTOL and aCallTOL - and width of line, aWidth. Standard_EXPORT void ComputeProjEdgePresentation (const Handle(Prs3d_Presentation)& aPres, const TopoDS_Edge& anEdge, const Handle(Geom_Curve)& ProjCurve, const gp_Pnt& FirstP, const gp_Pnt& LastP, const Quantity_NameOfColor aColor = Quantity_NOC_PURPLE, const Standard_Real aWidth = 2, const Aspect_TypeOfLine aProjTOL = Aspect_TOL_DASH, const Aspect_TypeOfLine aCallTOL = Aspect_TOL_DOT) const; - //! Calculates the presentation aPres of the the vertex + //! Calculates the presentation aPres of the vertex //! aVertex and the point it defines, ProjPoint. //! The presentation includes settings for color aColor, //! type - aProjTOM and aCallTOL - and width of line, aWidth. diff --git a/src/QABugs/QABugs_10.cxx b/src/QABugs/QABugs_10.cxx index a05b613348..b8041d8b7e 100644 --- a/src/QABugs/QABugs_10.cxx +++ b/src/QABugs/QABugs_10.cxx @@ -117,7 +117,7 @@ static Standard_Integer OCC426 (Draw_Interpretor& di, Standard_Integer argc, con anUnify.Build(); const TopoDS_Shape& aFuseUnif = anUnify.Shape(); - //Give the mass claculation of the shpae "aFuseUnif" + //Give the mass calculation of the shape "aFuseUnif" GProp_GProps G; BRepGProp::VolumeProperties(aFuseUnif, G); di<<" \n"; @@ -744,7 +744,7 @@ static Standard_Integer OCC825 (Draw_Interpretor& di,Standard_Integer argc, cons di << "*************************************************************\n"; di << " CUT 1 and CUT 2 gives entirely different results during\n"; - di << " mass computation and face triangulation, eventhough the\n"; + di << " mass computation and face triangulation, even though the\n"; di << " two spheres are located more or less at the same position.\n"; di << "*************************************************************\n"; diff --git a/src/QABugs/QABugs_11.cxx b/src/QABugs/QABugs_11.cxx index 4001d71067..6ab063d9f3 100644 --- a/src/QABugs/QABugs_11.cxx +++ b/src/QABugs/QABugs_11.cxx @@ -1109,7 +1109,7 @@ static Standard_Integer OCC22 (Draw_Interpretor& di, Standard_Integer argc, cons // 4.1. Retrieve Shape TopoDS_Shape anInitShape = DBRep::Get(argv[2]); if(anInitShape.IsNull()) { di << "OCC22 FAULTY. Initial shape is not exist. Please verify input values \n"; return 0;} - // 4.2 Rebuid retrieved shape + // 4.2 Rebuild retrieved shape TopoDS_Shape aResultShape = aReshape->Apply(anInitShape); // 4.3. Create result Draw shape DBRep::Set(argv[1], aResultShape); @@ -2096,7 +2096,7 @@ static Standard_Integer OCC5698 (Draw_Interpretor& di, Standard_Integer argc, co GCPnts_AbscissaPoint(check_curve, need_length, 0).Parameter(); gp_Pnt check_pnt; check_curve.D0(check_par,check_pnt); - // check that points are coinsiding + // check that points are coinciding Standard_Real error_dist = pnt.Distance(check_pnt); if (error_dist > Precision::Confusion()) { //std::cout.precision(3); @@ -2614,7 +2614,7 @@ static Standard_Integer OCC7372 (Draw_Interpretor& di, Standard_Integer argc, co Standard_CString CString1 = "BSplineCurve"; DrawTrSurf::Set(CString1,bspline1); - // 4. Convers BSpline curve to Bezier segments + // 4. Converts BSpline curve to Bezier segments Geom2dConvert_BSplineCurveToBezierCurve bc(bspline1); // 5. Test the result of conversion diff --git a/src/QABugs/QABugs_14.cxx b/src/QABugs/QABugs_14.cxx index 6d40fbc5de..a72520c571 100644 --- a/src/QABugs/QABugs_14.cxx +++ b/src/QABugs/QABugs_14.cxx @@ -388,9 +388,9 @@ static Standard_Integer BUC60944 (Draw_Interpretor& di, Standard_Integer argc, c TCollection_AsciiString out; aPath->SystemName(out); if(in == out) - di << "The convertion is right.\n"; + di << "The conversion is right.\n"; else - di << "Faulty : The convertion is incorrect : " << out.ToCString() << "\n"; + di << "Faulty : The conversion is incorrect : " << out.ToCString() << "\n"; di << out.ToCString() << "\n"; // std::cout << aPath->Trek() << " !" << std::endl; return 0; @@ -1030,7 +1030,7 @@ static Standard_Integer OCC16485 (Draw_Interpretor& di, Standard_Integer argc, c return 1; } - // Create points with X co-ordinate from varying from 0. to 1000. + // Create points with X coordinate from varying from 0. to 1000. // anc compute cumulative bounding box by adding boxes for all the // points, enlarged on tolerance diff --git a/src/QABugs/QABugs_19.cxx b/src/QABugs/QABugs_19.cxx index 1c5cf01c06..5376508176 100644 --- a/src/QABugs/QABugs_19.cxx +++ b/src/QABugs/QABugs_19.cxx @@ -3696,7 +3696,7 @@ static Standard_Integer OCC25574 (Draw_Interpretor& theDI, Standard_Integer /*ar { // Iterate over rotations R(A)R(B)R(G) for each Euler angle Alpha, Beta, Gamma // There are three ordered axes corresponding to three rotations. - // Each rotation applyed with current angle around current axis. + // Each rotation applied with current angle around current axis. for (int j=0; j < 3; j++) { // note that current axis index is obtained by parsing of enumeration name! diff --git a/src/QABugs/QABugs_2.cxx b/src/QABugs/QABugs_2.cxx index 815cbb96e5..251825206c 100644 --- a/src/QABugs/QABugs_2.cxx +++ b/src/QABugs/QABugs_2.cxx @@ -104,7 +104,7 @@ static Standard_Integer OCC527(Draw_Interpretor& di, Standard_Integer argc, cons Standard_Real toler = BRep_Tool::Tolerance(aV); double dist = pl.Distance(BRep_Tool::Pnt(aV)); if (dist > lmaxdist) lmaxdist = dist; - // If section was built check distance beetwen vertexes and plane of the one + // If section was built check distance between vertexes and plane of the one str[0] = 0; if (dist > toler) Sprintf(str, "Dist=%f, Toler=%f, Param=%f FAULTY\n", dist, toler, gzmax); diff --git a/src/QABugs/QABugs_20.cxx b/src/QABugs/QABugs_20.cxx index b0ca49f9cc..7c8391c77d 100644 --- a/src/QABugs/QABugs_20.cxx +++ b/src/QABugs/QABugs_20.cxx @@ -1654,7 +1654,7 @@ namespace Parab2d_Bug26747 //Focal length Standard_Real FocalLength; - //Coordiantes of the vertex + //Coordinates of the vertex Standard_Real VertX, VertY; //Parameter @@ -3578,7 +3578,7 @@ static Standard_Integer OCC30990 (Draw_Interpretor& theDI, Standard_Integer theN // after evaluation of points inside the spans before and after the knot, // and ensure that result at the knot is exactly the same regardless // of previous evaluation (i.e. the cache is updated as necessary). - // Note: the points (D0) computed on different spans are slighly different + // Note: the points (D0) computed on different spans are slightly different // due to rounding, which allows us to detect this situation without // analysis of higher derivatives (which would show non-negligible difference). Standard_Integer aNbErr = 0; diff --git a/src/QABugs/QABugs_3.cxx b/src/QABugs/QABugs_3.cxx index e9f7f30ad4..9250364b10 100644 --- a/src/QABugs/QABugs_3.cxx +++ b/src/QABugs/QABugs_3.cxx @@ -352,7 +352,7 @@ static Standard_Integer BUC60811(Draw_Interpretor& di, Standard_Integer argc, co DBRep::Set("FP",FP); -//step 2. offseting the surface. +//step 2. offsetting the surface. Handle(Geom_OffsetSurface) offsurf; offsurf = new Geom_OffsetSurface(BZ1, -100); BRepBuilderAPI_MakeFace bzf2( offsurf, Precision::Confusion() ); @@ -362,7 +362,7 @@ static Standard_Integer BUC60811(Draw_Interpretor& di, Standard_Integer argc, co DBRep::Set("F2",F2); //step 3. filleting the patch. -//( I want to project wire of this patch on offseted surface above) +//( I want to project wire of this patch on offsetted surface above) BRepFilletAPI_MakeFillet2d fillet( FP ); TopExp_Explorer Ex; Ex.Init(FP, TopAbs_VERTEX); diff --git a/src/QADNaming/QADNaming_BasicCommands.cxx b/src/QADNaming/QADNaming_BasicCommands.cxx index 45f1f51920..0892a06513 100644 --- a/src/QADNaming/QADNaming_BasicCommands.cxx +++ b/src/QADNaming/QADNaming_BasicCommands.cxx @@ -156,7 +156,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons TopoDS_Shape S = DBRep::Get(a[2]); if (S.IsNull()) { - di <<"Noone shape selected\n"; + di <<"No shape selected\n"; di << 0; return 0; } @@ -176,7 +176,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons //======================================================================= //function : NamedShape -//purpose : retrive label of Primitive or a Generated shape +//purpose : retrieve label of Primitive or a Generated shape //======================================================================= static Standard_Integer NamedShape(Draw_Interpretor& di, Standard_Integer n, const char ** a) @@ -188,7 +188,7 @@ static Standard_Integer NamedShape(Draw_Interpretor& di, Standard_Integer n, con if (!DDF::GetDF(a[1],ND)) return 1; TopoDS_Shape SS = DBRep::Get(a[2]); if (SS.IsNull()) { - di <<"Noone shape selected\n"; + di <<"No shape selected\n"; di << 0; return 0; } @@ -402,7 +402,7 @@ static Standard_Integer Collect (Draw_Interpretor& di, //======================================================================= //function : GetCreationEntry -//purpose : retrive label of Primitive or a Generated shape +//purpose : retrieve label of Primitive or a Generated shape //======================================================================= static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer n, const char ** a) @@ -417,7 +417,7 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer TopoDS_Shape SS = DBRep::Get(a[2]); if (SS.IsNull()) { - di <<"Noone shape selected\n"; + di <<"No shape selected\n"; di << 0; return 0; } diff --git a/src/Quantity/Quantity_Date.hxx b/src/Quantity/Quantity_Date.hxx index 97ac924afc..7767d7b3c3 100644 --- a/src/Quantity/Quantity_Date.hxx +++ b/src/Quantity/Quantity_Date.hxx @@ -172,8 +172,8 @@ Standard_Boolean operator > (const Quantity_Date& anOther) const Standard_EXPORT static Standard_Boolean IsValid (const Standard_Integer mm, const Standard_Integer dd, const Standard_Integer yy, const Standard_Integer hh, const Standard_Integer mn, const Standard_Integer ss, const Standard_Integer mis = 0, const Standard_Integer mics = 0); //! Returns true if a year is a leap year. - //! The leap years are divisable by 4 and not by 100 except - //! the years divisable by 400. + //! The leap years are divisible by 4 and not by 100 except + //! the years divisible by 400. static Standard_Boolean IsLeap (const Standard_Integer yy) { return ((yy % 4 == 0) && (yy % 100 != 0)) diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx index 5067bd6d45..c40a51a20b 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx @@ -37,7 +37,7 @@ void RWStepBasic_RWConversionBasedUnitAndAreaUnit::ReadStep(const Handle(StepDat //data->NamedForComplex("AREA_UNIT",num0,num,ach); if (!data->CheckNbParams(num,0,ach,"area_unit")) return; - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return; Handle(TCollection_HAsciiString) aName; diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cxx index 432e41b9b1..b5a075ad03 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cxx @@ -35,7 +35,7 @@ void RWStepBasic_RWConversionBasedUnitAndLengthUnit::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return; @@ -53,7 +53,7 @@ void RWStepBasic_RWConversionBasedUnitAndLengthUnit::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant LengthUnit --- + // --- Instance of plex component LengthUnit --- if (!data->CheckNbParams(num,0,ach,"length_unit")) return; @@ -80,7 +80,7 @@ void RWStepBasic_RWConversionBasedUnitAndLengthUnit::WriteStep const Handle(StepBasic_ConversionBasedUnitAndLengthUnit)& ent) const { - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- SW.StartEntity("CONVERSION_BASED_UNIT"); // --- field : name --- @@ -90,7 +90,7 @@ void RWStepBasic_RWConversionBasedUnitAndLengthUnit::WriteStep SW.Send(ent->ConversionFactor()); - // --- Instance of plex componant LengthUnit --- + // --- Instance of plex component LengthUnit --- SW.StartEntity("LENGTH_UNIT"); diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cxx index 7fed805df6..7f25012441 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cxx @@ -46,7 +46,7 @@ void RWStepBasic_RWConversionBasedUnitAndMassUnit::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return; // --- field : name --- Handle(TCollection_HAsciiString) aName; @@ -59,7 +59,7 @@ void RWStepBasic_RWConversionBasedUnitAndMassUnit::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant MassUnit --- + // --- Instance of plex component MassUnit --- if (!data->CheckNbParams(num,0,ach,"Mass_unit")) return; num = data->NextForComplex(num); @@ -85,13 +85,13 @@ void RWStepBasic_RWConversionBasedUnitAndMassUnit::WriteStep (StepData_StepWriter& SW, const Handle(StepBasic_ConversionBasedUnitAndMassUnit)& ent) const { - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- SW.StartEntity("CONVERSION_BASED_UNIT"); // --- field : name --- SW.Send(ent->Name()); // --- field : conversionFactor --- SW.Send(ent->ConversionFactor()); - // --- Instance of plex componant MassUnit --- + // --- Instance of plex component MassUnit --- SW.StartEntity("Mass_UNIT"); // --- Instance of common supertype NamedUnit --- SW.StartEntity("NAMED_UNIT"); diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cxx index 1647342ffc..7d89770e83 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cxx @@ -63,7 +63,7 @@ void RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit::WriteStep const Handle(StepBasic_ConversionBasedUnitAndPlaneAngleUnit)& ent) const { - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- SW.StartEntity("CONVERSION_BASED_UNIT"); // --- field : name --- @@ -80,7 +80,7 @@ void RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit::WriteStep SW.Send(ent->Dimensions()); - // --- Instance of plex componant PlaneAngleUnit --- + // --- Instance of plex component PlaneAngleUnit --- SW.StartEntity("PLANE_ANGLE_UNIT"); } diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cxx index 563b3f66b6..5674970a90 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cxx @@ -35,7 +35,7 @@ void RWStepBasic_RWConversionBasedUnitAndRatioUnit::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return; @@ -65,7 +65,7 @@ void RWStepBasic_RWConversionBasedUnitAndRatioUnit::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RatioUnit --- + // --- Instance of plex component RatioUnit --- if (!data->CheckNbParams(num,0,ach,"ratio_unit")) return; @@ -80,7 +80,7 @@ void RWStepBasic_RWConversionBasedUnitAndRatioUnit::WriteStep const Handle(StepBasic_ConversionBasedUnitAndRatioUnit)& ent) const { - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- SW.StartEntity("CONVERSION_BASED_UNIT"); // --- field : name --- @@ -90,7 +90,7 @@ void RWStepBasic_RWConversionBasedUnitAndRatioUnit::WriteStep SW.Send(ent->ConversionFactor()); - // --- Instance of plex componant RatioUnit --- + // --- Instance of plex component RatioUnit --- SW.StartEntity("RATIO_UNIT"); diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cxx index 0dbb26656e..d6f0614018 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cxx @@ -35,7 +35,7 @@ void RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return; @@ -65,7 +65,7 @@ void RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant SolidAngleUnit --- + // --- Instance of plex component SolidAngleUnit --- if (!data->CheckNbParams(num,0,ach,"solid_angle_unit")) return; @@ -80,7 +80,7 @@ void RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::WriteStep const Handle(StepBasic_ConversionBasedUnitAndSolidAngleUnit)& ent) const { - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- SW.StartEntity("CONVERSION_BASED_UNIT"); // --- field : name --- @@ -97,7 +97,7 @@ void RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit::WriteStep SW.Send(ent->Dimensions()); - // --- Instance of plex componant SolidAngleUnit --- + // --- Instance of plex component SolidAngleUnit --- SW.StartEntity("SOLID_ANGLE_UNIT"); } diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cxx index c7dd2d5c2e..4557f31f07 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cxx @@ -35,7 +35,7 @@ void RWStepBasic_RWConversionBasedUnitAndTimeUnit::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return; @@ -65,7 +65,7 @@ void RWStepBasic_RWConversionBasedUnitAndTimeUnit::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant TimeUnit --- + // --- Instance of plex component TimeUnit --- if (!data->CheckNbParams(num,0,ach,"time_unit")) return; @@ -80,7 +80,7 @@ void RWStepBasic_RWConversionBasedUnitAndTimeUnit::WriteStep const Handle(StepBasic_ConversionBasedUnitAndTimeUnit)& ent) const { - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- SW.StartEntity("CONVERSION_BASED_UNIT"); // --- field : name --- @@ -90,7 +90,7 @@ void RWStepBasic_RWConversionBasedUnitAndTimeUnit::WriteStep SW.Send(ent->ConversionFactor()); - // --- Instance of plex componant TimeUnit --- + // --- Instance of plex component TimeUnit --- SW.StartEntity("TIME_UNIT"); diff --git a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx index 373b5076ff..9892ba56d6 100644 --- a/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx @@ -34,7 +34,7 @@ void RWStepBasic_RWConversionBasedUnitAndVolumeUnit::ReadStep(const Handle(StepD const Handle(StepBasic_ConversionBasedUnitAndVolumeUnit)& ent) const { Standard_Integer num = num0; - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- if (!data->CheckNbParams(num,2,ach,"conversion_based_unit")) return; Handle(TCollection_HAsciiString) aName; data->ReadString (num,1,"name",ach,aName); diff --git a/src/RWStepBasic/RWStepBasic_RWSiUnitAndLengthUnit.cxx b/src/RWStepBasic/RWStepBasic_RWSiUnitAndLengthUnit.cxx index ba0640d317..cb9ea1b17c 100644 --- a/src/RWStepBasic/RWStepBasic_RWSiUnitAndLengthUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWSiUnitAndLengthUnit.cxx @@ -37,7 +37,7 @@ void RWStepBasic_RWSiUnitAndLengthUnit::ReadStep(const Handle(StepData_StepReade Standard_Integer num = 0; // num0; Standard_Boolean sorted = data->NamedForComplex("LENGTH_UNIT", "LNGUNT",num0,num,ach); - // --- Instance of plex componant LengthUnit --- + // --- Instance of plex component LengthUnit --- if (!data->CheckNbParams(num,0,ach,"length_unit")) return; if (!sorted) num = 0; //pdn unsorted case @@ -54,7 +54,7 @@ void RWStepBasic_RWSiUnitAndLengthUnit::ReadStep(const Handle(StepData_StepReade if (!sorted) num = 0; //pdn unsorted case data->NamedForComplex("SI_UNIT", "SUNT",num0,num,ach); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- if (!data->CheckNbParams(num,2,ach,"si_unit")) return; // --- field : prefix --- @@ -99,7 +99,7 @@ void RWStepBasic_RWSiUnitAndLengthUnit::WriteStep(StepData_StepWriter& SW, const Handle(StepBasic_SiUnitAndLengthUnit)& ent) const { - // --- Instance of plex componant LengthUnit --- + // --- Instance of plex component LengthUnit --- SW.StartEntity("LENGTH_UNIT"); // --- Instance of common supertype NamedUnit --- @@ -109,7 +109,7 @@ void RWStepBasic_RWSiUnitAndLengthUnit::WriteStep(StepData_StepWriter& SW, // --- redefined field --- SW.SendDerived(); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- SW.StartEntity("SI_UNIT"); // --- field : prefix --- diff --git a/src/RWStepBasic/RWStepBasic_RWSiUnitAndMassUnit.cxx b/src/RWStepBasic/RWStepBasic_RWSiUnitAndMassUnit.cxx index dcc95f781e..483ec33fa5 100644 --- a/src/RWStepBasic/RWStepBasic_RWSiUnitAndMassUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWSiUnitAndMassUnit.cxx @@ -46,7 +46,7 @@ void RWStepBasic_RWSiUnitAndMassUnit::ReadStep(const Handle(StepData_StepReaderD Standard_Integer num = 0; // num0; Standard_Boolean sorted = data->NamedForComplex("MASS_UNIT","MSSUNT",num0,num,ach); - // --- Instance of plex componant LengthUnit --- + // --- Instance of plex component LengthUnit --- if (!data->CheckNbParams(num,0,ach,"mass_unit")) return; if (!sorted) num = 0; //pdn unsorted case @@ -63,7 +63,7 @@ void RWStepBasic_RWSiUnitAndMassUnit::ReadStep(const Handle(StepData_StepReaderD if (!sorted) num = 0; //pdn unsorted case data->NamedForComplex("SI_UNIT", "SUNT",num0,num,ach); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- if (!data->CheckNbParams(num,2,ach,"si_unit")) return; // --- field : prefix --- @@ -108,7 +108,7 @@ void RWStepBasic_RWSiUnitAndMassUnit::WriteStep(StepData_StepWriter& SW, const Handle(StepBasic_SiUnitAndMassUnit)& ent) const { - // --- Instance of plex componant LengthUnit --- + // --- Instance of plex component LengthUnit --- SW.StartEntity("MASS_UNIT"); // --- Instance of common supertype NamedUnit --- @@ -118,7 +118,7 @@ void RWStepBasic_RWSiUnitAndMassUnit::WriteStep(StepData_StepWriter& SW, // --- redefined field --- SW.SendDerived(); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- SW.StartEntity("SI_UNIT"); // --- field : prefix --- diff --git a/src/RWStepBasic/RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx b/src/RWStepBasic/RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx index 5f84c02a45..0515370365 100644 --- a/src/RWStepBasic/RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx @@ -44,11 +44,11 @@ void RWStepBasic_RWSiUnitAndPlaneAngleUnit::ReadStep(const Handle(StepData_StepR data->CheckDerived(num,1,"dimensions",ach,Standard_False); num = data->NextForComplex(num); - // --- Instance of plex componant PlaneAngleUnit --- + // --- Instance of plex component PlaneAngleUnit --- if (!data->CheckNbParams(num,0,ach,"plane_angle_unit")) return; num = data->NextForComplex(num); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- if (!data->CheckNbParams(num,2,ach,"si_unit")) return; // --- field : prefix --- @@ -99,10 +99,10 @@ void RWStepBasic_RWSiUnitAndPlaneAngleUnit::WriteStep(StepData_StepWriter& SW, // --- redefined field --- SW.SendDerived(); - // --- Instance of plex componant PlaneAngleUnit --- + // --- Instance of plex component PlaneAngleUnit --- SW.StartEntity("PLANE_ANGLE_UNIT"); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- SW.StartEntity("SI_UNIT"); // --- field : prefix --- diff --git a/src/RWStepBasic/RWStepBasic_RWSiUnitAndRatioUnit.cxx b/src/RWStepBasic/RWStepBasic_RWSiUnitAndRatioUnit.cxx index d578c48d93..5353006436 100644 --- a/src/RWStepBasic/RWStepBasic_RWSiUnitAndRatioUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWSiUnitAndRatioUnit.cxx @@ -42,11 +42,11 @@ void RWStepBasic_RWSiUnitAndRatioUnit::ReadStep (const Handle(StepData_StepReade //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed data->CheckDerived(num,1,"dimensions",ach,Standard_False); - // --- Instance of plex componant RatioUnit --- + // --- Instance of plex component RatioUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,0,ach,"ratio_unit")) return; - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,2,ach,"si_unit")) return; @@ -92,7 +92,7 @@ void RWStepBasic_RWSiUnitAndRatioUnit::WriteStep(StepData_StepWriter& SW, const Handle(StepBasic_SiUnitAndRatioUnit)& ent) const { - // --- Instance of plex componant RatioUnit --- + // --- Instance of plex component RatioUnit --- SW.StartEntity("RATIO_UNIT"); // --- Instance of common supertype NamedUnit --- @@ -101,7 +101,7 @@ void RWStepBasic_RWSiUnitAndRatioUnit::WriteStep(StepData_StepWriter& SW, // --- redefined field --- SW.SendDerived(); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- SW.StartEntity("SI_UNIT"); // --- field : prefix --- diff --git a/src/RWStepBasic/RWStepBasic_RWSiUnitAndSolidAngleUnit.cxx b/src/RWStepBasic/RWStepBasic_RWSiUnitAndSolidAngleUnit.cxx index 15180e89d5..9dbf560a8a 100644 --- a/src/RWStepBasic/RWStepBasic_RWSiUnitAndSolidAngleUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWSiUnitAndSolidAngleUnit.cxx @@ -43,7 +43,7 @@ void RWStepBasic_RWSiUnitAndSolidAngleUnit::ReadStep (const Handle(StepData_Step //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed data->CheckDerived(num,1,"dimensions",ach,Standard_False); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,2,ach,"si_unit")) return; @@ -80,7 +80,7 @@ void RWStepBasic_RWSiUnitAndSolidAngleUnit::ReadStep (const Handle(StepData_Step return; } - // --- Instance of plex componant SolidAngleUnit --- + // --- Instance of plex component SolidAngleUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,0,ach,"solid_angle_unit")) return; @@ -99,7 +99,7 @@ void RWStepBasic_RWSiUnitAndSolidAngleUnit::WriteStep (StepData_StepWriter& SW, // --- redefined field --- SW.SendDerived(); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- SW.StartEntity("SI_UNIT"); // --- field : prefix --- @@ -113,7 +113,7 @@ void RWStepBasic_RWSiUnitAndSolidAngleUnit::WriteStep (StepData_StepWriter& SW, // --- field : name --- SW.SendEnum(writer.EncodeName(ent->Name())); - // --- Instance of plex componant SolidAngleUnit --- + // --- Instance of plex component SolidAngleUnit --- SW.StartEntity("SOLID_ANGLE_UNIT"); } diff --git a/src/RWStepBasic/RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit.cxx b/src/RWStepBasic/RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit.cxx index 21d18e5361..0430115e8d 100644 --- a/src/RWStepBasic/RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit.cxx @@ -54,7 +54,7 @@ void RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit::ReadStep //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed data->CheckDerived(num,1,"dimensions",ach,Standard_False); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,2,ach,"si_unit")) return; @@ -91,7 +91,7 @@ void RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit::ReadStep return; } - // --- Instance of plex componant SolidAngleUnit --- + // --- Instance of plex component SolidAngleUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,0,ach,"thermodynamic_temperature_unit")) return; @@ -116,7 +116,7 @@ void RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit::WriteStep // --- redefined field --- SW.SendDerived(); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- SW.StartEntity("SI_UNIT"); // --- field : prefix --- @@ -130,7 +130,7 @@ void RWStepBasic_RWSiUnitAndThermodynamicTemperatureUnit::WriteStep // --- field : name --- SW.SendEnum(writer.EncodeName(ent->Name())); - // --- Instance of plex componant SolidAngleUnit --- + // --- Instance of plex component SolidAngleUnit --- SW.StartEntity("THERMODYNAMIC_TEMPERATURE_UNIT"); } diff --git a/src/RWStepBasic/RWStepBasic_RWSiUnitAndTimeUnit.cxx b/src/RWStepBasic/RWStepBasic_RWSiUnitAndTimeUnit.cxx index 8139a97b26..4c363d229c 100644 --- a/src/RWStepBasic/RWStepBasic_RWSiUnitAndTimeUnit.cxx +++ b/src/RWStepBasic/RWStepBasic_RWSiUnitAndTimeUnit.cxx @@ -53,7 +53,7 @@ void RWStepBasic_RWSiUnitAndTimeUnit::ReadStep (const Handle(StepData_StepReader //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` data->CheckDerived(num,1,"dimensions",ach,Standard_False); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,2,ach,"si_unit")) return; @@ -90,7 +90,7 @@ void RWStepBasic_RWSiUnitAndTimeUnit::ReadStep (const Handle(StepData_StepReader return; } - // --- Instance of plex componant TimeUnit --- + // --- Instance of plex component TimeUnit --- num = data->NextForComplex(num); if (!data->CheckNbParams(num,0,ach,"time_unit")) return; @@ -108,7 +108,7 @@ void RWStepBasic_RWSiUnitAndTimeUnit::WriteStep (StepData_StepWriter& SW, const Handle(StepBasic_SiUnitAndTimeUnit)& ent) const { - // --- Instance of plex componant TimeUnit --- + // --- Instance of plex component TimeUnit --- //SW.StartEntity("TIME_UNIT"); // --- Instance of common supertype NamedUnit --- @@ -118,7 +118,7 @@ void RWStepBasic_RWSiUnitAndTimeUnit::WriteStep (StepData_StepWriter& SW, // --- redefined field --- SW.SendDerived(); - // --- Instance of plex componant SiUnit --- + // --- Instance of plex component SiUnit --- SW.StartEntity("SI_UNIT"); // --- field : prefix --- @@ -132,7 +132,7 @@ void RWStepBasic_RWSiUnitAndTimeUnit::WriteStep (StepData_StepWriter& SW, // --- field : name --- SW.SendEnum(writer.EncodeName(ent->Name())); - // --- Instance of plex componant TimeUnit --- + // --- Instance of plex component TimeUnit --- SW.StartEntity("TIME_UNIT"); } diff --git a/src/RWStepGeom/RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve.cxx b/src/RWStepGeom/RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve.cxx index f38d385d67..3335d0ec1f 100644 --- a/src/RWStepGeom/RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve.cxx +++ b/src/RWStepGeom/RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve.cxx @@ -123,7 +123,7 @@ void RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve::ReadStep // num = 0; //gka TRJ9 data->NamedForComplex("B_SPLINE_CURVE_WITH_KNOTS", "BSCWK",num0,num,ach); - // --- Instance of plex componant BSplineCurveWithKnots --- + // --- Instance of plex component BSplineCurveWithKnots --- if (!data->CheckNbParams(num,3,ach,"b_spline_curve_with_knots")) return; @@ -185,7 +185,7 @@ void RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve::ReadStep //num = 0; data->NamedForComplex("RATIONAL_B_SPLINE_CURVE", "RBSC",num0,num,ach); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_curve")) return; @@ -209,7 +209,7 @@ void RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve::ReadStep //num = 0; data->NamedForComplex("REPRESENTATION_ITEM", "RPRITM",num0,num,ach); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -230,7 +230,7 @@ void RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve::WriteStep const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve)& ent) const { - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- SW.StartEntity("BOUNDED_CURVE"); @@ -264,7 +264,7 @@ void RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant BSplineCurveWithKnots --- + // --- Instance of plex component BSplineCurveWithKnots --- SW.StartEntity("B_SPLINE_CURVE_WITH_KNOTS"); // --- field : knotMultiplicities --- @@ -290,15 +290,15 @@ void RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve::WriteStep case StepGeom_ktUnspecified : SW.SendEnum (ktUnspecified); break; } - // --- Instance of plex componant Curve --- + // --- Instance of plex component Curve --- SW.StartEntity("CURVE"); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- SW.StartEntity("RATIONAL_B_SPLINE_CURVE"); // --- field : weightsData --- @@ -309,7 +309,7 @@ void RWStepGeom_RWBSplineCurveWithKnotsAndRationalBSplineCurve::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- diff --git a/src/RWStepGeom/RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx b/src/RWStepGeom/RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx index b1556526fa..670c034a72 100644 --- a/src/RWStepGeom/RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx +++ b/src/RWStepGeom/RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx @@ -147,7 +147,7 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::ReadStep // num = data->NextForComplex(num); data->NamedForComplex("B_SPLINE_SURFACE_WITH_KNOTS", "BSSWK",num0,num,ach); - // --- Instance of plex componant BSplineSurfaceWithKnots --- + // --- Instance of plex component BSplineSurfaceWithKnots --- if (!data->CheckNbParams(num,5,ach,"b_spline_surface_with_knots")) return; @@ -230,7 +230,7 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::ReadStep // num = data->NextForComplex(num); data->NamedForComplex("RATIONAL_B_SPLINE_SURFACE", "RBSS",num0,num,ach); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_surface")) return; @@ -259,7 +259,7 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::ReadStep // num = data->NextForComplex(num); data->NamedForComplex("REPRESENTATION_ITEM", "RPRITM",num0,num,ach); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -283,7 +283,7 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::WriteStep const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface)& ent) const { - // --- Instance of plex componant BoundedSurface --- + // --- Instance of plex component BoundedSurface --- SW.StartEntity("BOUNDED_SURFACE"); @@ -334,7 +334,7 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant BSplineSurfaceWithKnots --- + // --- Instance of plex component BSplineSurfaceWithKnots --- SW.StartEntity("B_SPLINE_SURFACE_WITH_KNOTS"); // --- field : uMultiplicities --- @@ -374,11 +374,11 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::WriteStep case StepGeom_ktUnspecified : SW.SendEnum (ktUnspecified); break; } - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- SW.StartEntity("RATIONAL_B_SPLINE_SURFACE"); // --- field : weightsData --- @@ -395,14 +395,14 @@ void RWStepGeom_RWBSplineSurfaceWithKnotsAndRationalBSplineSurface::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- SW.Send(ent->Name()); - // --- Instance of plex componant Surface --- + // --- Instance of plex component Surface --- SW.StartEntity("SURFACE"); } diff --git a/src/RWStepGeom/RWStepGeom_RWBezierCurveAndRationalBSplineCurve.cxx b/src/RWStepGeom/RWStepGeom_RWBezierCurveAndRationalBSplineCurve.cxx index a2d0584ce7..1ae4bac3b5 100644 --- a/src/RWStepGeom/RWStepGeom_RWBezierCurveAndRationalBSplineCurve.cxx +++ b/src/RWStepGeom/RWStepGeom_RWBezierCurveAndRationalBSplineCurve.cxx @@ -46,13 +46,13 @@ void RWStepGeom_RWBezierCurveAndRationalBSplineCurve::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant BezierCurve --- + // --- Instance of plex component BezierCurve --- if (!data->CheckNbParams(num,0,ach,"bezier_curve")) return; num = data->NextForComplex(num); - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- if (!data->CheckNbParams(num,0,ach,"bounded_curve")) return; @@ -114,19 +114,19 @@ void RWStepGeom_RWBezierCurveAndRationalBSplineCurve::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant Curve --- + // --- Instance of plex component Curve --- if (!data->CheckNbParams(num,0,ach,"curve")) return; num = data->NextForComplex(num); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- if (!data->CheckNbParams(num,0,ach,"geometric_representation_item")) return; num = data->NextForComplex(num); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_curve")) return; @@ -147,7 +147,7 @@ void RWStepGeom_RWBezierCurveAndRationalBSplineCurve::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -168,11 +168,11 @@ void RWStepGeom_RWBezierCurveAndRationalBSplineCurve::WriteStep const Handle(StepGeom_BezierCurveAndRationalBSplineCurve)& ent) const { - // --- Instance of plex componant BezierCurve --- + // --- Instance of plex component BezierCurve --- SW.StartEntity("BEZIER_CURVE"); - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- SW.StartEntity("BOUNDED_CURVE"); @@ -206,15 +206,15 @@ void RWStepGeom_RWBezierCurveAndRationalBSplineCurve::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant Curve --- + // --- Instance of plex component Curve --- SW.StartEntity("CURVE"); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- SW.StartEntity("RATIONAL_B_SPLINE_CURVE"); // --- field : weightsData --- @@ -225,7 +225,7 @@ void RWStepGeom_RWBezierCurveAndRationalBSplineCurve::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- diff --git a/src/RWStepGeom/RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface.cxx b/src/RWStepGeom/RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface.cxx index 9483eca589..9a7369dc27 100644 --- a/src/RWStepGeom/RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface.cxx +++ b/src/RWStepGeom/RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface.cxx @@ -51,13 +51,13 @@ void RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant BezierSurface --- + // --- Instance of plex component BezierSurface --- if (!data->CheckNbParams(num,0,ach,"bezier_surface")) return; num = data->NextForComplex(num); - // --- Instance of plex componant BoundedSurface --- + // --- Instance of plex component BoundedSurface --- if (!data->CheckNbParams(num,0,ach,"bounded_surface")) return; @@ -142,13 +142,13 @@ void RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- if (!data->CheckNbParams(num,0,ach,"geometric_representation_item")) return; num = data->NextForComplex(num); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_surface")) return; @@ -175,7 +175,7 @@ void RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -187,7 +187,7 @@ void RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant Surface --- + // --- Instance of plex component Surface --- if (!data->CheckNbParams(num,0,ach,"surface")) return; @@ -202,11 +202,11 @@ void RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface::WriteStep const Handle(StepGeom_BezierSurfaceAndRationalBSplineSurface)& ent) const { - // --- Instance of plex componant BezierSurface --- + // --- Instance of plex component BezierSurface --- SW.StartEntity("BEZIER_SURFACE"); - // --- Instance of plex componant BoundedSurface --- + // --- Instance of plex component BoundedSurface --- SW.StartEntity("BOUNDED_SURFACE"); @@ -257,11 +257,11 @@ void RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- SW.StartEntity("RATIONAL_B_SPLINE_SURFACE"); // --- field : weightsData --- @@ -278,14 +278,14 @@ void RWStepGeom_RWBezierSurfaceAndRationalBSplineSurface::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- SW.Send(ent->Name()); - // --- Instance of plex componant Surface --- + // --- Instance of plex component Surface --- SW.StartEntity("SURFACE"); } diff --git a/src/RWStepGeom/RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx b/src/RWStepGeom/RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx index fdd441e696..079106facc 100644 --- a/src/RWStepGeom/RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx +++ b/src/RWStepGeom/RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx @@ -37,7 +37,7 @@ void RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::ReadS Standard_Integer num = num0; // ----------------------------------------------------------------- - // --- Instance of plex componant GeometricRepresentationContext --- + // --- Instance of plex component GeometricRepresentationContext --- // ----------------------------------------------------------------- if (!data->CheckNbParams(num,1,ach,"geometric_representation_context")) return; @@ -51,7 +51,7 @@ void RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::ReadS num = data->NextForComplex(num); // ------------------------------------------------------------------- - // --- Instance of plex componant GlobalUncertaintyAssignedContext --- + // --- Instance of plex component GlobalUncertaintyAssignedContext --- // ------------------------------------------------------------------- if (!data->CheckNbParams(num,1,ach,"global_uncertainty_assigned_context")) return; @@ -75,7 +75,7 @@ void RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::ReadS num = data->NextForComplex(num); // ------------------------------------------------------------ - // --- Instance of plex componant GlobalUnitAssignedContext --- + // --- Instance of plex component GlobalUnitAssignedContext --- // ------------------------------------------------------------ if (!data->CheckNbParams(num,1,ach,"global_unit_assigned_context")) return; @@ -127,7 +127,7 @@ void RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Write { // ----------------------------------------------------------------- - // --- Instance of plex componant GeometricRepresentationContext --- + // --- Instance of plex component GeometricRepresentationContext --- // ----------------------------------------------------------------- SW.StartEntity("GEOMETRIC_REPRESENTATION_CONTEXT"); @@ -137,7 +137,7 @@ void RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Write SW.Send(ent->CoordinateSpaceDimension()); // ------------------------------------------------------------------- - // --- Instance of plex componant GlobalUncertaintyAssignedContext --- + // --- Instance of plex component GlobalUncertaintyAssignedContext --- // ------------------------------------------------------------------- SW.StartEntity("GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT"); @@ -151,7 +151,7 @@ void RWStepGeom_RWGeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Write SW.CloseSub(); // ------------------------------------------------------------ - // --- Instance of plex componant GlobalUnitAssignedContext --- + // --- Instance of plex component GlobalUnitAssignedContext --- // ------------------------------------------------------------ SW.StartEntity("GLOBAL_UNIT_ASSIGNED_CONTEXT"); diff --git a/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndGlobalUnitAssignedContext.cxx b/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndGlobalUnitAssignedContext.cxx index 285930f7e2..23dd4a4404 100644 --- a/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndGlobalUnitAssignedContext.cxx +++ b/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndGlobalUnitAssignedContext.cxx @@ -35,7 +35,7 @@ void RWStepGeom_RWGeometricRepresentationContextAndGlobalUnitAssignedContext::Re Standard_Integer num = num0; - // --- Instance of plex componant GeometricRepresentationContext --- + // --- Instance of plex component GeometricRepresentationContext --- if (!data->CheckNbParams(num,1,ach,"geometric_representation_context")) return; @@ -47,7 +47,7 @@ void RWStepGeom_RWGeometricRepresentationContextAndGlobalUnitAssignedContext::Re num = data->NextForComplex(num); - // --- Instance of plex componant GlobalUnitAssignedContext --- + // --- Instance of plex component GlobalUnitAssignedContext --- if (!data->CheckNbParams(num,1,ach,"global_unit_assigned_context")) return; @@ -95,14 +95,14 @@ void RWStepGeom_RWGeometricRepresentationContextAndGlobalUnitAssignedContext::Wr const Handle(StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext)& ent) const { - // --- Instance of plex componant GeometricRepresentationContext --- + // --- Instance of plex component GeometricRepresentationContext --- SW.StartEntity("GEOMETRIC_REPRESENTATION_CONTEXT"); // --- field : coordinateSpaceDimension --- SW.Send(ent->CoordinateSpaceDimension()); - // --- Instance of plex componant GlobalUnitAssignedContext --- + // --- Instance of plex component GlobalUnitAssignedContext --- SW.StartEntity("GLOBAL_UNIT_ASSIGNED_CONTEXT"); // --- field : units --- diff --git a/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationContext.cxx b/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationContext.cxx index 67f688085a..f81e9854d0 100644 --- a/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationContext.cxx +++ b/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationContext.cxx @@ -32,7 +32,7 @@ void RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationConte Standard_Integer num = num0; - // --- Instance of plex componant GeometricRepresentationContext --- + // --- Instance of plex component GeometricRepresentationContext --- if (!data->CheckNbParams(num,1,ach,"geometric_representation_context")) return; @@ -44,7 +44,7 @@ void RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationConte num = data->NextForComplex(num); - // --- Instance of plex componant ParametricRepresentationContext --- + // --- Instance of plex component ParametricRepresentationContext --- if (!data->CheckNbParams(num,0,ach,"parametric_representation_context")) return; @@ -78,14 +78,14 @@ void RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationConte const Handle(StepGeom_GeometricRepresentationContextAndParametricRepresentationContext)& ent) const { - // --- Instance of plex componant GeometricRepresentationContext --- + // --- Instance of plex component GeometricRepresentationContext --- SW.StartEntity("GEOMETRIC_REPRESENTATION_CONTEXT"); // --- field : coordinateSpaceDimension --- SW.Send(ent->CoordinateSpaceDimension()); - // --- Instance of plex componant ParametricRepresentationContext --- + // --- Instance of plex component ParametricRepresentationContext --- SW.StartEntity("PARAMETRIC_REPRESENTATION_CONTEXT"); diff --git a/src/RWStepGeom/RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve.cxx b/src/RWStepGeom/RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve.cxx index 4e859322d1..a26853ca74 100644 --- a/src/RWStepGeom/RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve.cxx +++ b/src/RWStepGeom/RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve.cxx @@ -46,7 +46,7 @@ void RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- if (!data->CheckNbParams(num,0,ach,"bounded_curve")) return; @@ -108,25 +108,25 @@ void RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant Curve --- + // --- Instance of plex component Curve --- if (!data->CheckNbParams(num,0,ach,"curve")) return; num = data->NextForComplex(num); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- if (!data->CheckNbParams(num,0,ach,"geometric_representation_item")) return; num = data->NextForComplex(num); - // --- Instance of plex componant QuasiUniformCurve --- + // --- Instance of plex component QuasiUniformCurve --- if (!data->CheckNbParams(num,0,ach,"quasi_uniform_curve")) return; num = data->NextForComplex(num); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_curve")) return; @@ -147,7 +147,7 @@ void RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -168,7 +168,7 @@ void RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve::WriteStep const Handle(StepGeom_QuasiUniformCurveAndRationalBSplineCurve)& ent) const { - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- SW.StartEntity("BOUNDED_CURVE"); @@ -202,19 +202,19 @@ void RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant Curve --- + // --- Instance of plex component Curve --- SW.StartEntity("CURVE"); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant QuasiUniformCurve --- + // --- Instance of plex component QuasiUniformCurve --- SW.StartEntity("QUASI_UNIFORM_CURVE"); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- SW.StartEntity("RATIONAL_B_SPLINE_CURVE"); // --- field : weightsData --- @@ -225,7 +225,7 @@ void RWStepGeom_RWQuasiUniformCurveAndRationalBSplineCurve::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- diff --git a/src/RWStepGeom/RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface.cxx b/src/RWStepGeom/RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface.cxx index 22bab7b22e..bdb5d5e654 100644 --- a/src/RWStepGeom/RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface.cxx +++ b/src/RWStepGeom/RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface.cxx @@ -51,7 +51,7 @@ void RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant BoundedSurface --- + // --- Instance of plex component BoundedSurface --- if (!data->CheckNbParams(num,0,ach,"bounded_surface")) return; @@ -136,19 +136,19 @@ void RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- if (!data->CheckNbParams(num,0,ach,"geometric_representation_item")) return; num = data->NextForComplex(num); - // --- Instance of plex componant QuasiUniformSurface --- + // --- Instance of plex component QuasiUniformSurface --- if (!data->CheckNbParams(num,0,ach,"quasi_uniform_surface")) return; num = data->NextForComplex(num); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_surface")) return; @@ -175,7 +175,7 @@ void RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -187,7 +187,7 @@ void RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant Surface --- + // --- Instance of plex component Surface --- if (!data->CheckNbParams(num,0,ach,"surface")) return; @@ -202,7 +202,7 @@ void RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface::WriteStep const Handle(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface)& ent) const { - // --- Instance of plex componant BoundedSurface --- + // --- Instance of plex component BoundedSurface --- SW.StartEntity("BOUNDED_SURFACE"); @@ -253,15 +253,15 @@ void RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant QuasiUniformSurface --- + // --- Instance of plex component QuasiUniformSurface --- SW.StartEntity("QUASI_UNIFORM_SURFACE"); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- SW.StartEntity("RATIONAL_B_SPLINE_SURFACE"); // --- field : weightsData --- @@ -278,14 +278,14 @@ void RWStepGeom_RWQuasiUniformSurfaceAndRationalBSplineSurface::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- SW.Send(ent->Name()); - // --- Instance of plex componant Surface --- + // --- Instance of plex component Surface --- SW.StartEntity("SURFACE"); } diff --git a/src/RWStepGeom/RWStepGeom_RWSurfaceCurveAndBoundedCurve.cxx b/src/RWStepGeom/RWStepGeom_RWSurfaceCurveAndBoundedCurve.cxx index a182fb6ef5..9c4e73e43c 100644 --- a/src/RWStepGeom/RWStepGeom_RWSurfaceCurveAndBoundedCurve.cxx +++ b/src/RWStepGeom/RWStepGeom_RWSurfaceCurveAndBoundedCurve.cxx @@ -116,7 +116,7 @@ void RWStepGeom_RWSurfaceCurveAndBoundedCurve::WriteStep SW.StartEntity("REPRESENTATION_ITEM"); SW.Send(ent->Name()); - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- SW.StartEntity("SURFACE_CURVE"); // --- own field : curve3d --- diff --git a/src/RWStepGeom/RWStepGeom_RWUniformCurveAndRationalBSplineCurve.cxx b/src/RWStepGeom/RWStepGeom_RWUniformCurveAndRationalBSplineCurve.cxx index 3e2bca483c..3b287f3b46 100644 --- a/src/RWStepGeom/RWStepGeom_RWUniformCurveAndRationalBSplineCurve.cxx +++ b/src/RWStepGeom/RWStepGeom_RWUniformCurveAndRationalBSplineCurve.cxx @@ -46,7 +46,7 @@ void RWStepGeom_RWUniformCurveAndRationalBSplineCurve::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- if (!data->CheckNbParams(num,0,ach,"bounded_curve")) return; @@ -108,19 +108,19 @@ void RWStepGeom_RWUniformCurveAndRationalBSplineCurve::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant Curve --- + // --- Instance of plex component Curve --- if (!data->CheckNbParams(num,0,ach,"curve")) return; num = data->NextForComplex(num); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- if (!data->CheckNbParams(num,0,ach,"geometric_representation_item")) return; num = data->NextForComplex(num); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_curve")) return; @@ -141,7 +141,7 @@ void RWStepGeom_RWUniformCurveAndRationalBSplineCurve::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -153,7 +153,7 @@ void RWStepGeom_RWUniformCurveAndRationalBSplineCurve::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant UniformCurve --- + // --- Instance of plex component UniformCurve --- if (!data->CheckNbParams(num,0,ach,"uniform_curve")) return; @@ -168,7 +168,7 @@ void RWStepGeom_RWUniformCurveAndRationalBSplineCurve::WriteStep const Handle(StepGeom_UniformCurveAndRationalBSplineCurve)& ent) const { - // --- Instance of plex componant BoundedCurve --- + // --- Instance of plex component BoundedCurve --- SW.StartEntity("BOUNDED_CURVE"); @@ -202,15 +202,15 @@ void RWStepGeom_RWUniformCurveAndRationalBSplineCurve::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant Curve --- + // --- Instance of plex component Curve --- SW.StartEntity("CURVE"); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant RationalBSplineCurve --- + // --- Instance of plex component RationalBSplineCurve --- SW.StartEntity("RATIONAL_B_SPLINE_CURVE"); // --- field : weightsData --- @@ -221,14 +221,14 @@ void RWStepGeom_RWUniformCurveAndRationalBSplineCurve::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- SW.Send(ent->Name()); - // --- Instance of plex componant UniformCurve --- + // --- Instance of plex component UniformCurve --- SW.StartEntity("UNIFORM_CURVE"); } diff --git a/src/RWStepGeom/RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface.cxx b/src/RWStepGeom/RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface.cxx index c1373cdbb0..66cb836c09 100644 --- a/src/RWStepGeom/RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface.cxx +++ b/src/RWStepGeom/RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface.cxx @@ -51,7 +51,7 @@ void RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant BoundedSurface --- + // --- Instance of plex component BoundedSurface --- if (!data->CheckNbParams(num,0,ach,"bounded_surface")) return; @@ -136,13 +136,13 @@ void RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- if (!data->CheckNbParams(num,0,ach,"geometric_representation_item")) return; num = data->NextForComplex(num); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- if (!data->CheckNbParams(num,1,ach,"rational_b_spline_surface")) return; @@ -169,7 +169,7 @@ void RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -181,13 +181,13 @@ void RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant Surface --- + // --- Instance of plex component Surface --- if (!data->CheckNbParams(num,0,ach,"surface")) return; num = data->NextForComplex(num); - // --- Instance of plex componant UniformSurface --- + // --- Instance of plex component UniformSurface --- if (!data->CheckNbParams(num,0,ach,"uniform_surface")) return; @@ -202,7 +202,7 @@ void RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface::WriteStep const Handle(StepGeom_UniformSurfaceAndRationalBSplineSurface)& ent) const { - // --- Instance of plex componant BoundedSurface --- + // --- Instance of plex component BoundedSurface --- SW.StartEntity("BOUNDED_SURFACE"); @@ -253,11 +253,11 @@ void RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface::WriteStep SW.SendLogical(ent->SelfIntersect()); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); - // --- Instance of plex componant RationalBSplineSurface --- + // --- Instance of plex component RationalBSplineSurface --- SW.StartEntity("RATIONAL_B_SPLINE_SURFACE"); // --- field : weightsData --- @@ -274,18 +274,18 @@ void RWStepGeom_RWUniformSurfaceAndRationalBSplineSurface::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- SW.Send(ent->Name()); - // --- Instance of plex componant Surface --- + // --- Instance of plex component Surface --- SW.StartEntity("SURFACE"); - // --- Instance of plex componant UniformSurface --- + // --- Instance of plex component UniformSurface --- SW.StartEntity("UNIFORM_SURFACE"); } diff --git a/src/RWStepRepr/RWStepRepr_RWShapeRepresentationRelationshipWithTransformation.cxx b/src/RWStepRepr/RWStepRepr_RWShapeRepresentationRelationshipWithTransformation.cxx index 26432aefb4..552d719ff0 100644 --- a/src/RWStepRepr/RWStepRepr_RWShapeRepresentationRelationshipWithTransformation.cxx +++ b/src/RWStepRepr/RWStepRepr_RWShapeRepresentationRelationshipWithTransformation.cxx @@ -34,7 +34,7 @@ void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::ReadStep // REPR_RLTS,REPR_RLTS_WITH_TR,SHAPE_REPR_RLTS // But same fields as RepresentationRelationshipWithTransformation - // --- Instance of plex componant RepresentationRelationship --- + // --- Instance of plex component RepresentationRelationship --- Standard_Integer num = 0; // num0; data->NamedForComplex("REPRESENTATION_RELATIONSHIP", "RPRRLT",num0,num,ach); @@ -68,7 +68,7 @@ void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::ReadStep //szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed data->ReadEntity(num, 4,"rep_2", ach, STANDARD_TYPE(StepRepr_Representation), aRep2); - // --- Instance of plex componant RepresentationRelationshipWithTransformation --- + // --- Instance of plex component RepresentationRelationshipWithTransformation --- data->NamedForComplex("REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION", "RRWT",num0,num,ach); if (!data->CheckNbParams(num,1,ach,"representation_relationship_with_transformation")) return; @@ -79,7 +79,7 @@ void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::ReadStep //szv#4:S4163:12Mar99 `Standard_Boolean stat5 =` not needed data->ReadEntity(num,1,"transformation_operator",ach,aTrans); - // --- Instance of plex componant ShapeRepresentationRelationship --- + // --- Instance of plex component ShapeRepresentationRelationship --- data->NamedForComplex("SHAPE_REPRESENTATION_RELATIONSHIP", "SHRPRL",num0,num,ach); if (!data->CheckNbParams(num,0,ach,"shape_representation_relationship")) return; @@ -95,7 +95,7 @@ void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::WriteStep (StepData_StepWriter& SW, const Handle(StepRepr_ShapeRepresentationRelationshipWithTransformation)& ent) const { - // --- Instance of plex componant RepresentationRelationship --- + // --- Instance of plex component RepresentationRelationship --- SW.StartEntity ("REPRESENTATION_RELATIONSHIP"); @@ -116,12 +116,12 @@ void RWStepRepr_RWShapeRepresentationRelationshipWithTransformation::WriteStep SW.Send(ent->Rep2()); - // --- Instance of plex componant RepresentationRelationshipWithTransformation --- + // --- Instance of plex component RepresentationRelationshipWithTransformation --- SW.StartEntity ("REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION"); SW.Send(ent->TransformationOperator().Value()); - // --- Instance of plex componant ShapeRepresentationRelationship --- + // --- Instance of plex component ShapeRepresentationRelationship --- SW.StartEntity ("SHAPE_REPRESENTATION_RELATIONSHIP"); } diff --git a/src/RWStepShape/RWStepShape_RWAngularLocation.cxx b/src/RWStepShape/RWStepShape_RWAngularLocation.cxx index 46b0133b32..34d9099c9b 100644 --- a/src/RWStepShape/RWStepShape_RWAngularLocation.cxx +++ b/src/RWStepShape/RWStepShape_RWAngularLocation.cxx @@ -67,8 +67,8 @@ void RWStepShape_RWAngularLocation::ReadStep (const Handle(StepData_StepReaderDa // Own fields of AngularLocation // PTV 16.09.2000 -// defaul value set as StepShape_Small, cause there wasn`t default value, but may be situation when -// value will not be initialized and returnd in ent->Init. +// default value set as StepShape_Small, cause there wasn`t default value, but may be situation when +// value will not be initialized and returned in ent->Init. StepShape_AngleRelator aAngleSelection = StepShape_Small; if (data->ParamType (num, 5) == Interface_ParamEnum) { Standard_CString text = data->ParamCValue(num, 5); diff --git a/src/RWStepShape/RWStepShape_RWAngularSize.cxx b/src/RWStepShape/RWStepShape_RWAngularSize.cxx index 7105837250..c6b0a4a41a 100644 --- a/src/RWStepShape/RWStepShape_RWAngularSize.cxx +++ b/src/RWStepShape/RWStepShape_RWAngularSize.cxx @@ -55,8 +55,8 @@ void RWStepShape_RWAngularSize::ReadStep (const Handle(StepData_StepReaderData)& // Own fields of AngularSize // PTV 16.09.2000 -// defaul value set as StepShape_Small, cause there wasn`t default value, but may be situation when -// value will not be initialized and returnd in ent->Init. +// default value set as StepShape_Small, cause there wasn`t default value, but may be situation when +// value will not be initialized and returned in ent->Init. StepShape_AngleRelator aAngleSelection = StepShape_Small; if (data->ParamType (num, 3) == Interface_ParamEnum) { diff --git a/src/RWStepShape/RWStepShape_RWDefinitionalRepresentationAndShapeRepresentation.cxx b/src/RWStepShape/RWStepShape_RWDefinitionalRepresentationAndShapeRepresentation.cxx index b835caaadf..a48511dbcb 100644 --- a/src/RWStepShape/RWStepShape_RWDefinitionalRepresentationAndShapeRepresentation.cxx +++ b/src/RWStepShape/RWStepShape_RWDefinitionalRepresentationAndShapeRepresentation.cxx @@ -38,7 +38,7 @@ void RWStepShape_RWDefinitionalRepresentationAndShapeRepresentation::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant definitional_representation --- + // --- Instance of plex component definitional_representation --- if (!data->CheckNbParams(num,3,ach,"representation")) return; @@ -80,7 +80,7 @@ void RWStepShape_RWDefinitionalRepresentationAndShapeRepresentation::WriteStep const Handle(StepShape_DefinitionalRepresentationAndShapeRepresentation)& ent) const { - // --- Instance of plex componant ConversionBasedUnit --- + // --- Instance of plex component ConversionBasedUnit --- SW.StartEntity("DEFINITIONAL_REPRESENTATION"); @@ -102,7 +102,7 @@ void RWStepShape_RWDefinitionalRepresentationAndShapeRepresentation::WriteStep SW.Send(ent->ContextOfItems()); - // --- Instance of plex componant LengthUnit --- + // --- Instance of plex component LengthUnit --- SW.StartEntity("SHAPE_REPRESENTATION"); diff --git a/src/RWStepShape/RWStepShape_RWEdgeCurve.cxx b/src/RWStepShape/RWStepShape_RWEdgeCurve.cxx index d0a0535f93..ffe9bd5746 100644 --- a/src/RWStepShape/RWStepShape_RWEdgeCurve.cxx +++ b/src/RWStepShape/RWStepShape_RWEdgeCurve.cxx @@ -135,7 +135,7 @@ void RWStepShape_RWEdgeCurve::Check Standard_Boolean Cumulated1, Cumulated2; // 1- First Vertex != LastVertex but First VertexPoint == Last VertexPoint - // Remark : time comsuming process but useful ! + // Remark : time consuming process but useful ! // If this append, we can drop one of the two vertices and replace it // everywhere it is referenced. Side effect : tolerance problem !!! diff --git a/src/RWStepShape/RWStepShape_RWFacetedBrepAndBrepWithVoids.cxx b/src/RWStepShape/RWStepShape_RWFacetedBrepAndBrepWithVoids.cxx index 7c652a85fb..09ff9b755a 100644 --- a/src/RWStepShape/RWStepShape_RWFacetedBrepAndBrepWithVoids.cxx +++ b/src/RWStepShape/RWStepShape_RWFacetedBrepAndBrepWithVoids.cxx @@ -36,7 +36,7 @@ void RWStepShape_RWFacetedBrepAndBrepWithVoids::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant BrepWithVoids --- + // --- Instance of plex component BrepWithVoids --- if (!data->CheckNbParams(num,1,ach,"brep_with_voids")) return; @@ -58,13 +58,13 @@ void RWStepShape_RWFacetedBrepAndBrepWithVoids::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant FacetedBrep --- + // --- Instance of plex component FacetedBrep --- if (!data->CheckNbParams(num,0,ach,"faceted_brep")) return; num = data->NextForComplex(num); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- if (!data->CheckNbParams(num,0,ach,"geometric_representation_item")) return; @@ -82,7 +82,7 @@ void RWStepShape_RWFacetedBrepAndBrepWithVoids::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -95,7 +95,7 @@ void RWStepShape_RWFacetedBrepAndBrepWithVoids::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant SolidModel --- + // --- Instance of plex component SolidModel --- if (!data->CheckNbParams(num,0,ach,"solid_model")) return; @@ -110,7 +110,7 @@ void RWStepShape_RWFacetedBrepAndBrepWithVoids::WriteStep const Handle(StepShape_FacetedBrepAndBrepWithVoids)& ent) const { - // --- Instance of plex componant BrepWithVoids --- + // --- Instance of plex component BrepWithVoids --- SW.StartEntity("BREP_WITH_VOIDS"); // --- field : voids --- @@ -121,11 +121,11 @@ void RWStepShape_RWFacetedBrepAndBrepWithVoids::WriteStep } SW.CloseSub(); - // --- Instance of plex componant FacetedBrep --- + // --- Instance of plex component FacetedBrep --- SW.StartEntity("FACETED_BREP"); - // --- Instance of plex componant GeometricRepresentationItem --- + // --- Instance of plex component GeometricRepresentationItem --- SW.StartEntity("GEOMETRIC_REPRESENTATION_ITEM"); @@ -136,14 +136,14 @@ void RWStepShape_RWFacetedBrepAndBrepWithVoids::WriteStep SW.Send(ent->Outer()); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- SW.Send(ent->Name()); - // --- Instance of plex componant SolidModel --- + // --- Instance of plex component SolidModel --- SW.StartEntity("SOLID_MODEL"); } diff --git a/src/RWStepShape/RWStepShape_RWLoopAndPath.cxx b/src/RWStepShape/RWStepShape_RWLoopAndPath.cxx index 8ea93520f8..0b4f899995 100644 --- a/src/RWStepShape/RWStepShape_RWLoopAndPath.cxx +++ b/src/RWStepShape/RWStepShape_RWLoopAndPath.cxx @@ -35,13 +35,13 @@ void RWStepShape_RWLoopAndPath::ReadStep Standard_Integer num = num0; - // --- Instance of plex componant Loop --- + // --- Instance of plex component Loop --- if (!data->CheckNbParams(num,0,ach,"loop")) return; num = data->NextForComplex(num); - // --- Instance of plex componant Path --- + // --- Instance of plex component Path --- if (!data->CheckNbParams(num,1,ach,"path")) return; @@ -62,7 +62,7 @@ void RWStepShape_RWLoopAndPath::ReadStep num = data->NextForComplex(num); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- if (!data->CheckNbParams(num,1,ach,"representation_item")) return; @@ -89,11 +89,11 @@ void RWStepShape_RWLoopAndPath::WriteStep const Handle(StepShape_LoopAndPath)& ent) const { - // --- Instance of plex componant Loop --- + // --- Instance of plex component Loop --- SW.StartEntity("LOOP"); - // --- Instance of plex componant Path --- + // --- Instance of plex component Path --- SW.StartEntity("PATH"); // --- field : edgeList --- @@ -104,7 +104,7 @@ void RWStepShape_RWLoopAndPath::WriteStep } SW.CloseSub(); - // --- Instance of plex componant RepresentationItem --- + // --- Instance of plex component RepresentationItem --- SW.StartEntity("REPRESENTATION_ITEM"); // --- field : name --- diff --git a/src/RWStepShape/RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem.cxx b/src/RWStepShape/RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem.cxx index 267ecb0687..d6b2028a03 100644 --- a/src/RWStepShape/RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem.cxx +++ b/src/RWStepShape/RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem.cxx @@ -35,7 +35,7 @@ void RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem::Read // Complex Entity : MeasureReprItem + QualifiedreprItem : so, add ReprItem - // --- Instance of plex componant : MeasureReprItem + // --- Instance of plex component : MeasureReprItem Standard_Integer num = 0; data->NamedForComplex("MEASURE_REPRESENTATION_ITEM","MSRPIT",num0,num,ach); @@ -53,7 +53,7 @@ void RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem::Read data->ReadEntity (num, 2, "unit_component", ach, aUnitComponent); - // --- Instance of plex componant : QualifiedReprItem + // --- Instance of plex component : QualifiedReprItem data->NamedForComplex("QUALIFIED_REPRESENTATION_ITEM","QLRPIT",num0,num,ach); @@ -76,7 +76,7 @@ void RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem::Read } - // --- Instance of plex componant : RepresentationItem + // --- Instance of plex component : RepresentationItem data->NamedForComplex("REPRESENTATION_ITEM","RPRITM",num0,num,ach); @@ -99,7 +99,7 @@ void RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem::Writ { // Complex Entity : MeasureReprItem + QualifiedreprItem : so, add ReprItem - // --- Instance of plex componant : MeasureReprItem + // --- Instance of plex component : MeasureReprItem SW.StartEntity ("MEASURE_REPRESENTATION_ITEM"); @@ -109,7 +109,7 @@ void RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem::Writ // --- inherited from measure_with_unit : unit_component --- SW.Send(ent->Measure()->UnitComponent().Value()); - // --- Instance of plex componant : QualifiedReprItem + // --- Instance of plex component : QualifiedReprItem SW.StartEntity ("QUALIFIED_REPRESENTATION_ITEM"); @@ -119,7 +119,7 @@ void RWStepShape_RWMeasureRepresentationItemAndQualifiedRepresentationItem::Writ for (i = 1; i <= nbq; i ++) SW.Send (ent->QualifiersValue(i).Value()); SW.CloseSub(); - // --- Instance of plex componant : ReprsentationItem + // --- Instance of plex component : RepresentationItem SW.StartEntity ("REPRESENTATION_ITEM"); diff --git a/src/RWStl/RWStl_Reader.cxx b/src/RWStl/RWStl_Reader.cxx index b7f939ef7c..e67bc8ee4d 100644 --- a/src/RWStl/RWStl_Reader.cxx +++ b/src/RWStl/RWStl_Reader.cxx @@ -231,7 +231,7 @@ Standard_Boolean RWStl_Reader::IsAscii (Standard_IStream& theStream, // adapted from Standard_CString.cxx #ifdef __APPLE__ - // There are a lot of *_l functions availalbe on Mac OS X - we use them + // There are a lot of *_l functions available on Mac OS X - we use them #define SAVE_TL() #elif defined(_MSC_VER) // MSVCRT has equivalents with slightly different syntax @@ -359,7 +359,7 @@ Standard_Boolean RWStl_Reader::ReadAscii (Standard_IStream& theStream, gp_XYZ aReadVertex; if (!ReadVertex (aLine, aReadVertex.ChangeCoord (1), aReadVertex.ChangeCoord (2), aReadVertex.ChangeCoord (3))) { - Message::SendFail (TCollection_AsciiString ("Error: cannot read vertex co-ordinates at line ") + aNbLine); + Message::SendFail (TCollection_AsciiString ("Error: cannot read vertex coordinates at line ") + aNbLine); return false; } aVertex[i] = aReadVertex; diff --git a/src/Resource/Resource_Unicode.cxx b/src/Resource/Resource_Unicode.cxx index ca3570a4d6..827a32e9ac 100644 --- a/src/Resource/Resource_Unicode.cxx +++ b/src/Resource/Resource_Unicode.cxx @@ -48,7 +48,7 @@ void Resource_Unicode::ConvertSJISToUnicode(const Standard_CString fromstr,TColl if (issjis1(*currentstr)) { ph = ((unsigned int) *currentstr); - // Be Carefull with first and second !! + // Be Careful with first and second !! currentstr++; @@ -80,7 +80,7 @@ void Resource_Unicode::ConvertEUCToUnicode(const Standard_CString fromstr,TColle if (iseuc(*currentstr)) { ph = ((unsigned int) *currentstr); - // Be Carefull with first and second !! + // Be Careful with first and second !! currentstr++; @@ -111,7 +111,7 @@ void Resource_Unicode::ConvertGBToUnicode(const Standard_CString fromstr,TCollec if (isshift(*currentstr)) { ph = ((unsigned int) *currentstr); - // Be Carefull with first and second !! + // Be Careful with first and second !! currentstr++; diff --git a/src/SHMessage/SHAPE.fr b/src/SHMessage/SHAPE.fr index 1913c58085..a4fe385e81 100755 --- a/src/SHMessage/SHAPE.fr +++ b/src/SHMessage/SHAPE.fr @@ -167,7 +167,7 @@ L'Orientation du/des shell(s) dans le solida ete corrigee Solide avec connexions incorrectes, divise en plusieurs parties ! .FixAdvFace.FixLoopWire.MSG0 -Wire was splitted on several wires +Wire was split on several wires ! .FixAdvFace..MSG5 ! diff --git a/src/SHMessage/SHAPE.us b/src/SHMessage/SHAPE.us index 2eaf53ba6b..9a76c4fd41 100755 --- a/src/SHMessage/SHAPE.us +++ b/src/SHMessage/SHAPE.us @@ -167,7 +167,7 @@ Orientation of shell(s) in solid was corrected Improperly connected solid split into several parts ! .FixAdvFace.FixLoopWire.MSG0 -Wire was splitted on several wires +Wire was split on several wires ! .FixAdvFace..MSG5 ! diff --git a/src/SHMessage/SHMessage_SHAPE_us.pxx b/src/SHMessage/SHMessage_SHAPE_us.pxx index d688889886..d3deb0348a 100644 --- a/src/SHMessage/SHMessage_SHAPE_us.pxx +++ b/src/SHMessage/SHMessage_SHAPE_us.pxx @@ -170,7 +170,7 @@ static const char SHMessage_SHAPE_us[] = "Improperly connected solid split into several parts\n" "!\n" ".FixAdvFace.FixLoopWire.MSG0\n" - "Wire was splitted on several wires\n" + "Wire was split on several wires\n" "!\n" ".FixAdvFace..MSG5\n" "!\n" diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index ba9dc91bc1..ed31a819e4 100644 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -906,12 +906,12 @@ Handle(STEPCAFControl_ExternFile) STEPCAFControl_Reader::ReadExternFile (const S //======================================================================= //function : findStyledSR -//purpose : auxilary +//purpose : auxiliary //======================================================================= static void findStyledSR(const Handle(StepVisual_StyledItem) &style, Handle(StepShape_ShapeRepresentation)& aSR) { - // search Shape Represenatation for component styled item + // search Shape Representation for component styled item for (Standard_Integer j = 1; j <= style->NbStyles(); j++) { Handle(StepVisual_PresentationStyleByContext) PSA = Handle(StepVisual_PresentationStyleByContext)::DownCast(style->StylesValue(j)); @@ -930,7 +930,7 @@ static void findStyledSR(const Handle(StepVisual_StyledItem) &style, //======================================================================= //function : propagateColorToParts -//purpose : auxilary, propagate color styles from assemblies to parts +//purpose : auxiliary, propagate color styles from assemblies to parts //======================================================================= static void propagateColorToParts(const Handle(XCAFDoc_ShapeTool)& theSTool, @@ -1575,7 +1575,7 @@ static Standard_Boolean findNextSHUOlevel(const Handle(XSControl_WorkSession) &W //======================================================================= //function : setSHUOintoDoc -//purpose : auxilary +//purpose : auxiliary //======================================================================= static TDF_Label setSHUOintoDoc(const Handle(XSControl_WorkSession) &WS, const Handle(StepRepr_SpecifiedHigherUsageOccurrence)& SHUO, @@ -2175,7 +2175,7 @@ void readConnectionPoints(const Handle(XSControl_TransferReader)& theTR, //======================================================================= //function : ReadDatums -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean ReadDatums(const Handle(XCAFDoc_ShapeTool) &STool, const Handle(XCAFDoc_DimTolTool) &DGTTool, @@ -2586,7 +2586,7 @@ Standard_Boolean STEPCAFControl_Reader::setDatumToXCAF(const Handle(StepDimTol_D //======================================================================= //function : ReadDatums -//purpose : auxilary +//purpose : auxiliary //======================================================================= Standard_Boolean STEPCAFControl_Reader::readDatumsAP242(const Handle(Standard_Transient)& theEnt, const TDF_Label theGDTL, @@ -2825,7 +2825,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra { if (anAtr->IsKind(STANDARD_TYPE(StepRepr_AllAroundShapeAspect))) { - // if applyed AllAround Modifier + // if applied AllAround Modifier isAllAround = Standard_True; } // dimensions and default tolerances @@ -3193,7 +3193,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra //======================================================================= //function : convertAngleValue -//purpose : auxilary +//purpose : auxiliary //======================================================================= void convertAngleValue( const STEPConstruct_UnitContext& anUnitCtx, @@ -3202,7 +3202,7 @@ void convertAngleValue( // convert radian to deg Standard_Real aFact = anUnitCtx.PlaneAngleFactor() * 180 / M_PI; // in order to avoid inaccuracy of calculation perform conversion - // only if aFact not eqaul 1 with some precision + // only if aFact not equal 1 with some precision if (fabs(1. - aFact) > Precision::Confusion()) { aVal = aVal * aFact; @@ -4079,7 +4079,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadGDTs(const Handle(XSControl_WorkSess //======================================================================= //function : FindSolidForPDS -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Handle(StepShape_SolidModel) FindSolidForPDS(const Handle(StepRepr_ProductDefinitionShape) &PDS, diff --git a/src/STEPCAFControl/STEPCAFControl_Writer.cxx b/src/STEPCAFControl/STEPCAFControl_Writer.cxx index 30646bc99b..b9ca23fb60 100644 --- a/src/STEPCAFControl/STEPCAFControl_Writer.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Writer.cxx @@ -249,7 +249,7 @@ // added by skl 12.02.2004 for writing materials //======================================================================= //function : GetLabelName -//purpose : auxilary function: take name of label and append it to str +//purpose : auxiliary function: take name of label and append it to str //======================================================================= static Standard_Boolean GetLabelName (const TDF_Label &L, Handle(TCollection_HAsciiString) &str) { @@ -535,13 +535,13 @@ Standard_Boolean STEPCAFControl_Writer::Transfer (STEPControl_Writer &writer, TDF_LabelSequence comp; - //For case when only part of assemby structure should be written in the document + //For case when only part of assembly structure should be written in the document //if specified label is component of the assembly then //in order to save location of this component in the high-level assembly - //and save name of high-level assembly it is necessary to represent structure of high-level assembly - //as assembly with one component specified by current label. + //and save name of high-level assembly it is necessary to represent structure of high-level assembly + //as assembly with one component specified by current label. //For that compound containing only specified component is binded to the label of the high-level assembly. - //The such way full structure of high-level assembly was replaced on the assembly contaning one component. + //The such way full structure of high-level assembly was replaced on the assembly containing one component. //For case when free shape reference is (located root) also create an auxiliary assembly. if ( XCAFDoc_ShapeTool::IsReference ( L ) ) { @@ -624,7 +624,7 @@ Standard_Boolean STEPCAFControl_Writer::Transfer (STEPControl_Writer &writer, return Standard_False; writer.WS()->ComputeGraph(Standard_True );// added by skl 03.11.2003 since we use - // writer.Transfer() wihtout compute graph + // writer.Transfer() without compute graph // write names if ( GetNameMode() ) @@ -879,7 +879,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_ //======================================================================= //function : FindEntities -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Integer FindEntities (const Handle(Transfer_FinderProcess) &FP, const TopoDS_Shape &S, @@ -940,7 +940,7 @@ static Standard_Integer FindEntities (const Handle(Transfer_FinderProcess) &FP, //======================================================================= //function : getStyledItem -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean getStyledItem(const TopoDS_Shape& S, const Handle(XCAFDoc_ShapeTool)& STool, @@ -992,7 +992,7 @@ static Standard_Boolean getStyledItem(const TopoDS_Shape& S, for (Standard_Integer jsi = 1; jsi <= aSelItm->NbStyles() && !found; jsi++) { const Handle(StepVisual_PresentationStyleAssignment)& aFatherPSA = aSelItm->StylesValue(jsi); - // check for PSA for top-level (not Presentation style by contex for NAUO) + // check for PSA for top-level (not Presentation style by context for NAUO) if (aFatherPSA.IsNull() || aFatherPSA->IsKind(STANDARD_TYPE(StepVisual_PresentationStyleByContext))) continue; resSelItem = aSelItm; @@ -1007,7 +1007,7 @@ static Standard_Boolean getStyledItem(const TopoDS_Shape& S, //======================================================================= //function : setDefaultInstanceColor -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean setDefaultInstanceColor (const Handle(StepVisual_StyledItem) &aSelItm, Handle(StepVisual_PresentationStyleAssignment)& PSA) @@ -1015,7 +1015,7 @@ static Standard_Boolean setDefaultInstanceColor (const Handle(StepVisual_StyledI Standard_Boolean found = Standard_False; for (Standard_Integer jsi = 1; jsi <= aSelItm->NbStyles() && !found; jsi++) { Handle(StepVisual_PresentationStyleAssignment) aFatherPSA = aSelItm->StylesValue(jsi); - // check for PSA for top-level (not Presentation style by contex for NAUO) + // check for PSA for top-level (not Presentation style by context for NAUO) if (aFatherPSA.IsNull() || aFatherPSA->IsKind(STANDARD_TYPE(StepVisual_PresentationStyleByContext))) return Standard_False; @@ -1053,7 +1053,7 @@ static Standard_Boolean setDefaultInstanceColor (const Handle(StepVisual_StyledI //======================================================================= //function : MakeSTEPStyles -//purpose : auxilary +//purpose : auxiliary //======================================================================= static void MakeSTEPStyles (STEPConstruct_Styles &Styles, const TopoDS_Shape &S, @@ -1346,7 +1346,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work } //end of work with CDSR } if ( !isVisible ) { - // create invisibility item and refer for stiledItem + // create invisibility item and refer for styledItem Handle(StepVisual_Invisibility) Invsblt = new StepVisual_Invisibility(); Handle(StepVisual_HArray1OfInvisibleItem) HInvsblItm = new StepVisual_HArray1OfInvisibleItem (1,Styles.NbStyles()); @@ -1670,7 +1670,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work // PTV 23.01.2003 add the invisibility AFTER adding layer into the model. // add the invisibility for the layer if (isLinv) { - // Invisibility Item for containig invisible layers. + // Invisibility Item for containing invisible layers. Handle(StepVisual_HArray1OfInvisibleItem) HInvsblItm = new StepVisual_HArray1OfInvisibleItem (1,1); StepVisual_InvisibleItem InvIt; InvIt.SetValue( StepLayerAs ); @@ -1687,7 +1687,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work //======================================================================= //function : getSHUOstyle -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean getSHUOstyle(const TDF_Label& aSHUOlab, const Handle(XCAFDoc_ColorTool)& CTool, @@ -1727,7 +1727,7 @@ static Standard_Boolean getSHUOstyle(const TDF_Label& aSHUOlab, //======================================================================= //function : getProDefinitionOfNAUO -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean getProDefinitionOfNAUO(const Handle(XSControl_WorkSession)& WS, const TopoDS_Shape& theShape, @@ -1774,7 +1774,7 @@ static Standard_Boolean getProDefinitionOfNAUO(const Handle(XSControl_WorkSessio //======================================================================= //function : writeSHUO -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO, const Handle(XCAFDoc_ShapeTool)& theSTool, @@ -1878,7 +1878,7 @@ static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO, //======================================================================= //function : createSHUOStyledItem -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style, const Handle(StepRepr_ProductDefinitionShape)& PDS, @@ -1986,7 +1986,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style, else { WS->Model()->AddWithRefs ( STEPstyle ); // add as root to the model, but it is not good #ifdef OCCT_DEBUG - std::cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << std::endl; + std::cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, cause cannot find MDGPR" << std::endl; #endif } // create invisibility item for the styled item @@ -1996,7 +1996,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style, setDefaultInstanceColor(override, PSA); } - // create invisibility item and refer for stiledItem + // create invisibility item and refer for styledItem Handle(StepVisual_Invisibility) Invsblt = new StepVisual_Invisibility(); Handle(StepVisual_HArray1OfInvisibleItem) HInvsblItm = new StepVisual_HArray1OfInvisibleItem (1,1); @@ -2027,7 +2027,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS Handle(XCAFDoc_VisMaterialTool) aMatTool = XCAFDoc_DocumentTool::VisMaterialTool( labels(1) ); if (CTool.IsNull() ) return Standard_False; - // map of transfered SHUO + // map of transferred SHUO TColStd_MapOfTransient aMapOfMainSHUO; // Iterate on requested shapes for ( Standard_Integer i=1; i <= labels.Length(); i++ ) { @@ -2102,7 +2102,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS //======================================================================= //function : FindPDSforDGT -//purpose : auxilary: find PDS for AdvancedFace or EdgeCurve for creation +//purpose : auxiliary: find PDS for AdvancedFace or EdgeCurve for creation // needed ShapeAspect in D> structure //======================================================================= static Standard_Boolean FindPDSforDGT(const Interface_Graph &aGraph, @@ -2177,7 +2177,7 @@ static Standard_Boolean FindPDSforDGT(const Interface_Graph &aGraph, //======================================================================= //function : FindPDS -//purpose : auxilary: find Product_definition_shape entity for given entity +//purpose : auxiliary: find Product_definition_shape entity for given entity //======================================================================= static Handle(StepRepr_ProductDefinitionShape) FindPDS(const Interface_Graph &theGraph, const Handle(Standard_Transient) &theEnt, @@ -4016,7 +4016,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTsAP242 (const Handle(XSControl_W //======================================================================= //function : FindPDSforRI -//purpose : auxilary: +//purpose : auxiliary: //======================================================================= static Standard_Boolean FindPDSforRI(const Interface_Graph &aGraph, const Handle(Standard_Transient) &ent, diff --git a/src/STEPConstruct/STEPConstruct_Assembly.hxx b/src/STEPConstruct/STEPConstruct_Assembly.hxx index 9f321b14ae..5bee240a49 100644 --- a/src/STEPConstruct/STEPConstruct_Assembly.hxx +++ b/src/STEPConstruct/STEPConstruct_Assembly.hxx @@ -36,7 +36,7 @@ class Interface_Graph; //! basic data : a ShapeRepresentation, a Location ... //! //! Three ways of coding such item from a ShapeRepresentation : -//! - do nothing : i.e. informations for assembly are ignored +//! - do nothing : i.e. information for assembly are ignored //! - create a MappedItem //! - create a RepresentationRelationship (WithTransformation) class STEPConstruct_Assembly diff --git a/src/STEPConstruct/STEPConstruct_ExternRefs.cxx b/src/STEPConstruct/STEPConstruct_ExternRefs.cxx index a6773ece07..78a469267b 100644 --- a/src/STEPConstruct/STEPConstruct_ExternRefs.cxx +++ b/src/STEPConstruct/STEPConstruct_ExternRefs.cxx @@ -199,7 +199,7 @@ Standard_Boolean STEPConstruct_ExternRefs::LoadExternRefs () for (Standard_Integer adri = 1; adri <= aSeqOfADR.Length(); adri++) { Handle(StepAP214_AppliedDocumentReference) ADR = Handle(StepAP214_AppliedDocumentReference)::DownCast(aSeqOfADR.Value(adri)); - // looking for Product Definition Formation and exlude excess PDWAD from aSeqOfPDWAD + // looking for Product Definition Formation and exclude excess PDWAD from aSeqOfPDWAD Handle(StepBasic_ProductDefinitionWithAssociatedDocuments) aPDWAD; findPDWADandExcludeExcess( ADR, aSeqOfPDWAD, Graph(), aPDWAD ); @@ -223,7 +223,7 @@ Standard_Boolean STEPConstruct_ExternRefs::LoadExternRefs () } // search for Document file Handle(StepBasic_DocumentFile) DocFile; - if ( aPDWAD.IsNull() ) { // shoudnot be begin from TRJ11 + if ( aPDWAD.IsNull() ) { // shouldn't begin from TRJ11 // lookinf from ADR subs4 = Graph().Shareds(ADR); } else @@ -326,7 +326,7 @@ Standard_CString STEPConstruct_ExternRefs::FileName (const Standard_Integer num) Handle(StepAP214_AppliedDocumentReference)::DownCast ( myAEIAs(num) ); // PTV 28.01.2003 CAX-IF TRJ11, file ext_ref_master.stp - // serach document file name by long chain ADR->D<-DPE->PDF<-PDWAD->DF + // search document file name by long chain ADR->D<-DPE->PDF<-PDWAD->DF Handle(StepBasic_ProductDefinitionWithAssociatedDocuments) aPDWAD; // create an empty aSeqOfPDWAD TColStd_SequenceOfTransient aSeqOfPDWAD; @@ -335,7 +335,7 @@ Standard_CString STEPConstruct_ExternRefs::FileName (const Standard_Integer num) // search for Document file Interface_EntityIterator subs4; - if ( aPDWAD.IsNull() ) { // shoudnot be begin from TRJ11 + if ( aPDWAD.IsNull() ) { // shouldn't begin from TRJ11 // lookinf from ADR subs4 = Graph().Shareds(ADR); } else @@ -842,7 +842,7 @@ Standard_Boolean STEPConstruct_ExternRefs::addAP214ExterRef (const Handle(StepAP // create new product definition formation Handle(StepBasic_ProductDefinitionFormation) PDF = new StepBasic_ProductDefinitionFormation; - // name id taked from exapmle Standard_ExtString_ref_master.stp + // name id taked from example Standard_ExtString_ref_master.stp Handle(TCollection_HAsciiString) PDF_ID = new TCollection_HAsciiString("1"); PDF->Init( PDF_ID, EmptyString, Product ); diff --git a/src/STEPConstruct/STEPConstruct_Part.hxx b/src/STEPConstruct/STEPConstruct_Part.hxx index c6aafd1488..bf2cee7afa 100644 --- a/src/STEPConstruct/STEPConstruct_Part.hxx +++ b/src/STEPConstruct/STEPConstruct_Part.hxx @@ -36,8 +36,8 @@ class StepRepr_ProductDefinitionShape; //! Provides tools for creating STEP structures associated -//! with part (SDR), such as PRODUCT, PDF etc., as requied -//! by current schema +//! with part (SDR), such as PRODUCT, PDF etc., as +//! required by current schema //! Also allows to investigate and modify this data class STEPConstruct_Part { diff --git a/src/STEPConstruct/STEPConstruct_Styles.cxx b/src/STEPConstruct/STEPConstruct_Styles.cxx index 9356606171..b57aa6e87e 100644 --- a/src/STEPConstruct/STEPConstruct_Styles.cxx +++ b/src/STEPConstruct/STEPConstruct_Styles.cxx @@ -402,7 +402,7 @@ Standard_Boolean STEPConstruct_Styles::LoadInvisStyles (Handle(TColStd_HSequence Handle(Interface_InterfaceModel) model = Model(); Standard_Integer nb = model->NbEntities(); Handle(Standard_Type) tInvisibility = STANDARD_TYPE(StepVisual_Invisibility); - // serach for invisibility + // search for invisibility for (Standard_Integer i = 1; i <= nb; i ++) { Handle(Standard_Transient) enti = model->Value(i); if ( enti->DynamicType() != tInvisibility ) diff --git a/src/STEPConstruct/STEPConstruct_Styles.hxx b/src/STEPConstruct/STEPConstruct_Styles.hxx index 6a92031f81..bb2ed58671 100644 --- a/src/STEPConstruct/STEPConstruct_Styles.hxx +++ b/src/STEPConstruct/STEPConstruct_Styles.hxx @@ -110,7 +110,7 @@ public: //! (which bring styles) and fills sequence of styles Standard_EXPORT Standard_Boolean LoadStyles(); - //! Searches the STEP model for the INISIBILITY enteties + //! Searches the STEP model for the INISIBILITY entities //! (which bring styles) and fills out sequence of styles Standard_EXPORT Standard_Boolean LoadInvisStyles (Handle(TColStd_HSequenceOfTransient)& InvSyles) const; diff --git a/src/STEPConstruct/STEPConstruct_UnitContext.cxx b/src/STEPConstruct/STEPConstruct_UnitContext.cxx index 7804a95218..f2ffd2d9a2 100644 --- a/src/STEPConstruct/STEPConstruct_UnitContext.cxx +++ b/src/STEPConstruct/STEPConstruct_UnitContext.cxx @@ -65,7 +65,7 @@ STEPConstruct_UnitContext::STEPConstruct_UnitContext() { lengthDone = planeAngleDone = solidAngleDone = hasUncertainty = areaDone = volumeDone = Standard_False; - //pdn file r_47-sd.stp initalize field. + //pdn file r_47-sd.stp initialize field. theUncertainty = RealLast(); } @@ -85,7 +85,7 @@ void STEPConstruct_UnitContext::Init(const Standard_Real Tol3d) Handle(TCollection_HAsciiString) contextType = new TCollection_HAsciiString("3D Context with UNIT and UNCERTAINTY"); - // Units : LengthUnit and PlaneAngleUnit (no SolidAngleUnit appliable) + // Units : LengthUnit and PlaneAngleUnit (no SolidAngleUnit applicable) Handle(StepBasic_NamedUnit) lengthUnit; Standard_CString uName = 0; diff --git a/src/STEPConstruct/STEPConstruct_UnitContext.hxx b/src/STEPConstruct/STEPConstruct_UnitContext.hxx index 5b53280cd0..e1faad8f60 100644 --- a/src/STEPConstruct/STEPConstruct_UnitContext.hxx +++ b/src/STEPConstruct/STEPConstruct_UnitContext.hxx @@ -108,7 +108,7 @@ public: //! This message can then be added as warning for transfer Standard_EXPORT Standard_CString StatusMessage (const Standard_Integer status) const; - //! Convert SI prefix defined by enumertaion to corresponding + //! Convert SI prefix defined by enumeration to corresponding //! real factor (e.g. 1e6 for mega) Standard_EXPORT static Standard_Real ConvertSiPrefix (const StepBasic_SiPrefix aPrefix); diff --git a/src/STEPControl/STEPControl_ActorRead.cxx b/src/STEPControl/STEPControl_ActorRead.cxx index deddf54571..3e0c3b7def 100644 --- a/src/STEPControl/STEPControl_ActorRead.cxx +++ b/src/STEPControl/STEPControl_ActorRead.cxx @@ -272,7 +272,7 @@ Standard_Boolean STEPControl_ActorRead::Recognize // ============================================================================ // Method : STEPControl_ActorRead::Transfer -// Purpose : recursive method that acces to the root entities and start the +// Purpose : recursive method that accesses the root entities and starts the // mapping // ============================================================================ @@ -809,7 +809,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity( sout<<" -- Actor : case ShapeRepr. NbItems="<AddFail(start,"Exeption is raised. Entity was not translated."); + TP->AddFail(start,"Exception is raised. Entity was not translated."); TP->Bind(start, shbinder); return shbinder; } @@ -1594,7 +1594,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity } catch(Standard_Failure const&) { - TP->AddFail(fs,"Exeption is raised. Entity was not translated."); + TP->AddFail(fs,"Exception is raised. Entity was not translated."); sb.Nullify(); TP->Bind(fs, sb); return sb; diff --git a/src/STEPControl/STEPControl_ActorRead.hxx b/src/STEPControl/STEPControl_ActorRead.hxx index 22cae5b63b..cebac50190 100644 --- a/src/STEPControl/STEPControl_ActorRead.hxx +++ b/src/STEPControl/STEPControl_ActorRead.hxx @@ -63,16 +63,16 @@ class STEPControl_ActorRead : public Transfer_ActorOfTransientProcess public: - + Standard_EXPORT STEPControl_ActorRead(); - + Standard_EXPORT virtual Standard_Boolean Recognize (const Handle(Standard_Transient)& start) Standard_OVERRIDE; - + Standard_EXPORT virtual Handle(Transfer_Binder) Transfer (const Handle(Standard_Transient)& start, const Handle(Transfer_TransientProcess)& TP, const Message_ProgressRange& theProgress = Message_ProgressRange()) Standard_OVERRIDE; - + //! theUseTrsf - special flag for using Axis2Placement from ShapeRepresentation for transform root shape Standard_EXPORT Handle(Transfer_Binder) TransferShape ( const Handle(Standard_Transient)& start, @@ -80,20 +80,20 @@ public: const Standard_Boolean isManifold = Standard_True, const Standard_Boolean theUseTrsf = Standard_False, const Message_ProgressRange& theProgress = Message_ProgressRange()); - + //! set units and tolerances context by given ShapeRepresentation Standard_EXPORT void PrepareUnits (const Handle(StepRepr_Representation)& rep, const Handle(Transfer_TransientProcess)& TP); - + //! reset units and tolerances context to default //! (mm, radians, read.precision.val, etc.) Standard_EXPORT void ResetUnits(); - + //! Computes transformation defined by two axis placements (in MAPPED_ITEM //! or ITEM_DEFINED_TRANSFORMATION) taking into account their //! representation contexts (i.e. units, which may be different) //! Returns True if transformation is computed and is not an identity. Standard_EXPORT Standard_Boolean ComputeTransformation (const Handle(StepGeom_Axis2Placement3d)& Origin, const Handle(StepGeom_Axis2Placement3d)& Target, const Handle(StepRepr_Representation)& OrigContext, const Handle(StepRepr_Representation)& TargContext, const Handle(Transfer_TransientProcess)& TP, gp_Trsf& Trsf); - + //! Computes transformation defined by given //! REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION Standard_EXPORT Standard_Boolean ComputeSRRWT (const Handle(StepRepr_RepresentationRelationship)& SRR, const Handle(Transfer_TransientProcess)& TP, gp_Trsf& Trsf); @@ -105,7 +105,7 @@ public: protected: - + //! Transfers product definition entity //! theUseTrsf - special flag for using Axis2Placement from ShapeRepresentation for transform root shape Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity ( @@ -113,13 +113,13 @@ protected: const Handle(Transfer_TransientProcess)& TP, const Standard_Boolean theUseTrsf = Standard_False, const Message_ProgressRange& theProgress = Message_ProgressRange()); - - //! Transfers next assembly usage occurence entity + + //! Transfers next assembly usage occurrence entity Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity (const Handle(StepRepr_NextAssemblyUsageOccurrence)& NAUO, const Handle(Transfer_TransientProcess)& TP, const Message_ProgressRange& theProgress = Message_ProgressRange()); - + //! Transfers shape representation entity //! theUseTrsf - special flag for using Axis2Placement from ShapeRepresentation for transform root shape Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity ( @@ -128,13 +128,13 @@ protected: Standard_Boolean& isBound, const Standard_Boolean theUseTrsf = Standard_False, const Message_ProgressRange& theProgress = Message_ProgressRange()); - + //! Transfers context dependent shape representation entity Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity (const Handle(StepShape_ContextDependentShapeRepresentation)& CDSR, const Handle(Transfer_TransientProcess)& TP, const Message_ProgressRange& theProgress = Message_ProgressRange()); - + //! Transfers shape representation relationship entity //! theUseTrsf - special flag for using Axis2Placement from ShapeRepresentation for transform root shape Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity ( @@ -143,20 +143,20 @@ protected: const Standard_Integer nbrep = 0, const Standard_Boolean theUseTrsf = Standard_False, const Message_ProgressRange& theProgress = Message_ProgressRange()); - + //! Transfers geometric representation item entity such as ManifoldSolidBRep ,...etc Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity (const Handle(StepGeom_GeometricRepresentationItem)& git, const Handle(Transfer_TransientProcess)& TP, const Standard_Boolean isManifold, const Message_ProgressRange& theProgress); - + //! Transfers mapped item Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity (const Handle(StepRepr_MappedItem)& mapit, const Handle(Transfer_TransientProcess)& TP, const Message_ProgressRange& theProgress); - + //! Transfers FaceSurface entity Standard_EXPORT Handle(TransferBRep_ShapeBinder) TransferEntity (const Handle(StepShape_FaceSurface)& fs, @@ -165,8 +165,8 @@ protected: Handle(TransferBRep_ShapeBinder) TransferEntity( const Handle(StepRepr_ConstructiveGeometryRepresentationRelationship)& theCGRR, const Handle(Transfer_TransientProcess)& theTP); - - //! Tranlates file by old way when CDSR are roots . Acts only if "read.step.product_mode" is equal Off. + + //! Translates file by old way when CDSR are roots . Acts only if "read.step.product_mode" is equal Off. Standard_EXPORT Handle(TransferBRep_ShapeBinder) OldWay (const Handle(Standard_Transient)& start, const Handle(Transfer_TransientProcess)& TP, @@ -176,9 +176,9 @@ protected: private: - + Standard_EXPORT TopoDS_Shell closeIDEASShell (const TopoDS_Shell& shell, const TopTools_ListOfShape& closingShells); - + Standard_EXPORT void computeIDEASClosings (const TopoDS_Compound& comp, TopTools_IndexedDataMapOfShapeListOfShape& shellClosingMap); StepToTopoDS_NMTool myNMTool; diff --git a/src/STEPControl/STEPControl_ActorWrite.cxx b/src/STEPControl/STEPControl_ActorWrite.cxx index 54295e1030..cf3b6dd0d7 100644 --- a/src/STEPControl/STEPControl_ActorWrite.cxx +++ b/src/STEPControl/STEPControl_ActorWrite.cxx @@ -581,7 +581,7 @@ static void UpdateMap (const TopoDS_Shape &shape, } */ -// PTV 16.09.2002 added for transfering vertices. +// PTV 16.09.2002 added for transferring vertices. static Standard_Boolean transferVertex (const Handle(Transfer_FinderProcess)& FP, Handle(StepShape_HArray1OfGeometricSetSelect)& aGSS, const TopoDS_Shape& aShVrtx, @@ -621,7 +621,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferShape Handle(TransferBRep_ShapeMapper) mapper = Handle(TransferBRep_ShapeMapper)::DownCast(start); Handle(Transfer_Binder) binder; - // Indicates whether to use an exising NMSSR to write items to (ss; 13.11.2010) + // Indicates whether to use an existing NMSSR to write items to (ss; 13.11.2010) Standard_Boolean useExistingNMSSR = Standard_False; if (mapper.IsNull()) return binder; @@ -1063,7 +1063,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferShape // modified by PTV 16.09.2002 OCC725 else if (aShape.ShapeType() == TopAbs_COMPOUND || aShape.ShapeType() == TopAbs_VERTEX) { - // it is compund with solo vertices. + // it is compound with solo vertices. Standard_Integer aNbVrtx = 0; Standard_Integer curNb = 0; TopExp_Explorer anExp (aShape, TopAbs_VERTEX); @@ -1080,7 +1080,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferShape Handle(StepShape_GeometricCurveSet) aGCSet = new StepShape_GeometricCurveSet; aGCSet->SetName(empty); - // iterates on compound with vertices and trances each vertex + // iterates on compound with vertices and traces each vertex for ( anExp.ReInit() ; anExp.More(); anExp.Next() ) { TopoDS_Shape aVertex = anExp.Current(); if ( aVertex.ShapeType() != TopAbs_VERTEX ) diff --git a/src/STEPControl/STEPControl_Controller.cxx b/src/STEPControl/STEPControl_Controller.cxx index 1e611de35f..ceb1d99b81 100644 --- a/src/STEPControl/STEPControl_Controller.cxx +++ b/src/STEPControl/STEPControl_Controller.cxx @@ -191,7 +191,7 @@ STEPControl_Controller::STEPControl_Controller () Interface_Static::Init ("XSTEP","write.step.sequence",'t',"ToSTEP"); Interface_Static::Init ("XSTEP","read.step.sequence",'t',"FromSTEP"); - // ika 28.07.16: Paremeter to read all top level solids and shells, + // ika 28.07.16: Parameter to read all top level solids and shells, // should be used only in case of invalid shape_representation without links to shapes. Interface_Static::Init("step", "read.step.all.shapes", 'e', ""); Interface_Static::Init("step", "read.step.all.shapes", '&', "enum 0"); diff --git a/src/SWDRAW/SWDRAW_ShapeUpgrade.cxx b/src/SWDRAW/SWDRAW_ShapeUpgrade.cxx index 839d4d15b9..e0d534deed 100644 --- a/src/SWDRAW/SWDRAW_ShapeUpgrade.cxx +++ b/src/SWDRAW/SWDRAW_ShapeUpgrade.cxx @@ -266,7 +266,7 @@ static Standard_Integer DT_ShapeConvertRev (Draw_Interpretor& di, return 0; } else { - // not a face: we can use the empty consturctor. + // not a face: we can use the empty constructor. ShapeUpgrade_ShapeDivideContinuity theTool; Standard_Real Tol=Draw::Atof(a[n-1]); theTool.SetTolerance(Tol); diff --git a/src/Select3D/Select3D_SensitiveCircle.cxx b/src/Select3D/Select3D_SensitiveCircle.cxx index 0eea1fa5cc..df02327e56 100644 --- a/src/Select3D/Select3D_SensitiveCircle.cxx +++ b/src/Select3D/Select3D_SensitiveCircle.cxx @@ -29,7 +29,7 @@ namespace { // Check if number of points is invalid. // In this case myPolyg raises Standard_ConstructionError - // exception (look constructor bellow). + // exception (see constructor below). if (theNbPnts <= 0) return 0; diff --git a/src/ShapeAnalysis/ShapeAnalysis.cxx b/src/ShapeAnalysis/ShapeAnalysis.cxx index 3efe42d207..acc8a75be6 100644 --- a/src/ShapeAnalysis/ShapeAnalysis.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis.cxx @@ -117,7 +117,7 @@ Standard_Real ShapeAnalysis::AdjustToPeriod(const Standard_Real Val, //======================================================================= //function : ReverceSeq -//purpose : auxilary +//purpose : auxiliary //======================================================================= template static inline void ReverseSeq (HSequence& Seq) diff --git a/src/ShapeAnalysis/ShapeAnalysis_CheckSmallFace.hxx b/src/ShapeAnalysis/ShapeAnalysis_CheckSmallFace.hxx index 50da1a3848..d1c8727306 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_CheckSmallFace.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_CheckSmallFace.hxx @@ -57,7 +57,7 @@ public: //! to allow recovering connectivities after fixing or removing //! the small faces or parts of faces //! Enchains various checks on a face - //! inshell : to compute more informations, relevant to topology + //! inshell : to compute more information, relevant to topology Standard_EXPORT ShapeAnalysis_CheckSmallFace(); //! Checks if a Face is as a Spot @@ -86,7 +86,7 @@ public: //! tolerance, given or some of those of E1 and E2 Standard_EXPORT Standard_Boolean CheckStripEdges (const TopoDS_Edge& E1, const TopoDS_Edge& E2, const Standard_Real tol, Standard_Real& dmax) const; - //! Searchs for two and only two edges up tolerance + //! Searches for two and only two edges up tolerance //! Returns True if OK, false if not 2 edges //! If True, returns the two edges and their maximum distance Standard_EXPORT Standard_Boolean FindStripEdges (const TopoDS_Face& F, TopoDS_Edge& E1, TopoDS_Edge& E2, const Standard_Real tol, Standard_Real& dmax); diff --git a/src/ShapeAnalysis/ShapeAnalysis_Edge.hxx b/src/ShapeAnalysis/ShapeAnalysis_Edge.hxx index d39aca0aa2..7437b07d6d 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_Edge.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Edge.hxx @@ -185,8 +185,8 @@ public: //! Checks the first edge is overlapped with second edge. //! If distance between two edges is less then theTolOverlap - //! edges is overlapped. - //! theDomainDis - length of part of edges on wich edges is overlapped. + //! edges are overlapped. + //! theDomainDis - length of part of edges on which edges are overlapped. Standard_EXPORT Standard_Boolean CheckOverlapping (const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2, Standard_Real& theTolOverlap, const Standard_Real theDomainDist = 0.0); diff --git a/src/ShapeAnalysis/ShapeAnalysis_Geom.hxx b/src/ShapeAnalysis/ShapeAnalysis_Geom.hxx index b036ef9511..2ba7d39d8a 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_Geom.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Geom.hxx @@ -43,7 +43,7 @@ public: //! plane and given points Standard_EXPORT static Standard_Boolean NearestPlane (const TColgp_Array1OfPnt& Pnts, gp_Pln& aPln, Standard_Real& Dmax); - //! Builds transfromation object out of matrix. + //! Builds transformation object out of matrix. //! Matrix must be 3 x 4. //! Unit is used as multiplier. Standard_EXPORT static Standard_Boolean PositionTrsf (const Handle(TColStd_HArray2OfReal)& coefs, gp_Trsf& trsf, const Standard_Real unit, const Standard_Real prec); diff --git a/src/ShapeAnalysis/ShapeAnalysis_ShapeContents.hxx b/src/ShapeAnalysis/ShapeAnalysis_ShapeContents.hxx index 9d9d346c28..f4d63fb9b9 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_ShapeContents.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_ShapeContents.hxx @@ -38,7 +38,7 @@ public: //! Initialize fields and call ClearFlags() Standard_EXPORT ShapeAnalysis_ShapeContents(); - //! Clears all accumulated statictics + //! Clears all accumulated statistics Standard_EXPORT void Clear(); //! Clears all flags diff --git a/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx b/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx index 4098564634..935e0436de 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx @@ -1404,7 +1404,7 @@ Standard_Real ShapeAnalysis_Surface::UVFromIso(const gp_Pnt& P3d, const Standard //std::cout<<"Adaptor3d()->Surface().GetType() = "<Surface().GetType()<. - //! That means, that it is not neccessary for to be in the + //! That means, that it is not necessary for to be in the //! range [1, NbSingularities] but must be not greater than //! possible (see ComputeSingularities). //! The returned characteristics are: @@ -192,7 +192,7 @@ public: //! computed. //! The pcurve (p2d1, p2d2) is considered as degenerate if: //! - max distance in 3d is less than - //! - max distance in 2d is at least times greather than + //! - max distance in 2d is at least times greater than //! the Resolution computed from max distance in 3d //! (max3d < tol && max2d > ratio * Resolution(max3d)) //! NOTE: should be >1 (e.g. 10) @@ -268,7 +268,7 @@ public: //! If >0. and distance between solution and //! P3D is greater than , that solution is considered //! as bad, and ValueOfUV() is used. - //! If not succeded, calls ValueOfUV() + //! If not succeeded, calls ValueOfUV() Standard_EXPORT gp_Pnt2d NextValueOfUV (const gp_Pnt2d& p2dPrev, const gp_Pnt& P3D, const Standard_Real preci, diff --git a/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.cxx b/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.cxx index 5aebbf3953..fe5e483517 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.cxx @@ -237,7 +237,7 @@ Standard_Real ShapeAnalysis_TransferParametersProj::Perform(const Standard_Real //======================================================================= //function : CorrectParameter -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Real CorrectParameter(const Handle(Geom2d_Curve) crv, const Standard_Real param) diff --git a/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.hxx b/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.hxx index 39dc6745a9..b5cdf72233 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.hxx @@ -47,7 +47,7 @@ class ShapeAnalysis_TransferParametersProj : public ShapeAnalysis_TransferParame public: - //! Creats empty constructor. + //! Creates empty constructor. Standard_EXPORT ShapeAnalysis_TransferParametersProj(); Standard_EXPORT ShapeAnalysis_TransferParametersProj(const TopoDS_Edge& E, const TopoDS_Face& F); diff --git a/src/ShapeAnalysis/ShapeAnalysis_Wire.cxx b/src/ShapeAnalysis/ShapeAnalysis_Wire.cxx index da17a10097..2500521779 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_Wire.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Wire.cxx @@ -807,7 +807,7 @@ Standard_Boolean ShapeAnalysis_Wire::CheckDegenerated (const Standard_Integer nu //pdn allows to insert two sequences of degenerated edges (on separate bounds of surfaces) if ( n1 != n2 && BRep_Tool::Degenerated ( E1 ) && ! sae.HasPCurve ( E1, Face() ) ) { - //:abv 13.05.02: OCC320 - fail (to remove edge) if two consequtive degenerated edges w/o pcurves + //:abv 13.05.02: OCC320 - fail (to remove edge) if two consecutive degenerated edges w/o pcurves if ( BRep_Tool::Degenerated ( E2 ) ) myStatus |= ShapeExtend::EncodeStatus (ShapeExtend_FAIL2); return Standard_False; @@ -931,7 +931,7 @@ Standard_Boolean ShapeAnalysis_Wire::CheckDegenerated (const Standard_Integer nu //#84 rln 18.03.99 if pcurve is not degenerate anymore, the fix is postponned //to ShapeFix_Wire::FixLacking if ( ! mySurf->IsDegenerated ( p2d1, p2d2, precVtx, 10. ) ) { //:s1 abv 22 Apr 99: PRO7226 #489490 //smh#9 - //:abv 24.05.02: OCC320 - fail (to remove edge) if two consequtive degenerated edges w/o pcurves + //:abv 24.05.02: OCC320 - fail (to remove edge) if two consecutive degenerated edges w/o pcurves if ( BRep_Tool::Degenerated ( E2 ) ) myStatus |= ShapeExtend::EncodeStatus (ShapeExtend_FAIL2); return Standard_False; @@ -1235,7 +1235,7 @@ Standard_Boolean ShapeAnalysis_Wire::CheckIntersectingEdges (const Standard_Inte //:64 abv 25 Dec 97: Attention! // Since Intersection algorithm is not symmetrical, for consistency with BRepCheck - // edge with lower order number shoud be intersecting with edge with higher one + // edge with lower order number should be intersecting with edge with higher one // i.e., for intersection of last and first edges, they should go in reversed order // Example: entity #38285 from bug CSR #CTS17806 // NOTE: Tr1 and Tr2 are not reordered because they are used in the same manner diff --git a/src/ShapeAnalysis/ShapeAnalysis_Wire.hxx b/src/ShapeAnalysis/ShapeAnalysis_Wire.hxx index e089326fe2..3bce04c331 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_Wire.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Wire.hxx @@ -70,7 +70,7 @@ DEFINE_STANDARD_HANDLE(ShapeAnalysis_Wire, Standard_Transient) //! //! The methods of the given class match to ones of the class //! ShapeFix_Wire, e.g., CheckSmall and FixSmall. -//! This class also includes some auxilary methods +//! This class also includes some auxiliary methods //! (e.g., CheckOuterBound, etc.), //! which have no pair in ShapeFix_Wire. //! @@ -84,7 +84,7 @@ DEFINE_STANDARD_HANDLE(ShapeAnalysis_Wire, Standard_Transient) //! corresponding Status... method. //! The 'advanced' functions share the single status field which //! contains the result of the last performed 'advanced' method. -//! It is quried by the method LastCheckStatus(). +//! It is queried by the method LastCheckStatus(). //! //! In order to prepare an analyzer, it is necessary to load a wire, //! set face and precision. @@ -156,7 +156,7 @@ public: const Handle(ShapeAnalysis_Surface)& Surface() const; //! Performs all the checks in the following order : - //! CheckOrder, CheckSmall, CheckConected, CheckEdgeCurves, + //! CheckOrder, CheckSmall, CheckConnected, CheckEdgeCurves, //! CheckDegenerated, CheckSelfIntersection, CheckLacking, //! CheckClosed //! Returns: True if at least one method returned True; @@ -178,7 +178,7 @@ public: //! Returns: True if at least one small edge was detected Standard_EXPORT Standard_Boolean CheckSmall (const Standard_Real precsmall = 0.0); - //! Checks edges geometry (consitency of 2d and 3d senses, adjasment + //! Checks edges geometry (consistency of 2d and 3d senses, adjasment //! of curves to the vertices, etc.). //! The order of the checks : //! Call ShapeAnalysis_Wire to check: @@ -245,7 +245,7 @@ public: //! FAIL : algorithm failed (could not detect order) Standard_EXPORT Standard_Boolean CheckOrder (ShapeAnalysis_WireOrder& sawo, const Standard_Boolean isClosed = Standard_True, const Standard_Boolean mode3d = Standard_True); - //! Checks connected edges (num-th and preceeding). + //! Checks connected edges (num-th and preceding). //! Tests with starting preci from or with if //! it is greater. //! Considers Vertices. @@ -286,7 +286,7 @@ public: Standard_EXPORT Standard_Boolean CheckSeam (const Standard_Integer num); //! Checks for degenerated edge between two adjacent ones. - //! Fills parameters dgnr1 and dgnr2 with points in paramterical + //! Fills parameters dgnr1 and dgnr2 with points in parametric //! space that correspond to the singularity (either gap that //! needs to be filled by degenerated edge or that already filled) //! Returns: False if no singularity or edge is already degenerated, @@ -309,7 +309,7 @@ public: //! Checks gap between edges in 3D (3d curves). //! Checks the distance between ends of 3d curves of the num-th - //! and preceeding edge. + //! and preceding edge. //! The distance can be queried by MinDistance3d. //! //! Returns: True if status is DONE @@ -321,7 +321,7 @@ public: //! Checks gap between edges in 2D (pcurves). //! Checks the distance between ends of pcurves of the num-th - //! and preceeding edge. + //! and preceding edge. //! The distance can be queried by MinDistance2d. //! //! Returns: True if status is DONE @@ -436,8 +436,8 @@ public: //! Status: //! DONE1 : If follows , direct sense (normal) //! DONE2 : If follows , but if reversed - //! DONE3 : If preceeds , direct sense - //! DONE4 : If preceeds , but if reversed + //! DONE3 : If precedes , direct sense + //! DONE4 : If precedes , but if reversed //! FAIL1 : If is neither an edge nor a wire //! FAIL2 : If cannot be connected to //! @@ -464,7 +464,7 @@ public: //! Remark: First method CheckShapeConnect calls this one Standard_EXPORT Standard_Boolean CheckShapeConnect (Standard_Real& tailhead, Standard_Real& tailtail, Standard_Real& headtail, Standard_Real& headhead, const TopoDS_Shape& shape, const Standard_Real prec = 0.0); - //! Checks existance of loop on wire and return vertices wich are loop vertices + //! Checks existence of loop on wire and return vertices which are loop vertices //! (vertices belonging to a few pairs of edges) Standard_EXPORT Standard_Boolean CheckLoop (TopTools_IndexedMapOfShape& aMapLoopVertices, TopTools_DataMapOfShapeListOfShape& aMapVertexEdges, TopTools_MapOfShape& aMapSmallEdges, TopTools_MapOfShape& aMapSeemEdges); @@ -494,7 +494,7 @@ public: Standard_Boolean StatusLoop (const ShapeExtend_Status Status) const; - //! Querying the status of the LAST perfomed 'Advanced' checking procedure + //! Querying the status of the LAST performed 'Advanced' checking procedure Standard_Boolean LastCheckStatus (const ShapeExtend_Status Status) const; //! Returns the last lowest distance in 3D computed by diff --git a/src/ShapeAnalysis/ShapeAnalysis_WireOrder.hxx b/src/ShapeAnalysis/ShapeAnalysis_WireOrder.hxx index 22a3576475..551f80dfc6 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_WireOrder.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_WireOrder.hxx @@ -64,7 +64,7 @@ public: Standard_EXPORT ShapeAnalysis_WireOrder(const Standard_Boolean mode3d, const Standard_Real tol); //! Sets new values. Clears the connexion list - //! If changes, also clears the edge list (else, doesnt) + //! If changes, also clears the edge list (else, doesn't) Standard_EXPORT void SetMode (const Standard_Boolean mode3d, const Standard_Real tol); //! Returns the working tolerance @@ -121,7 +121,7 @@ public: //! Returns the values of the couple , as 2D values Standard_EXPORT void XY (const Standard_Integer num, gp_XY& start2d, gp_XY& end2d) const; - //! Returns the gap between a couple and its preceeding + //! Returns the gap between a couple and its preceding //! is considered ordered //! If = 0 (D), returns the greatest gap found Standard_EXPORT Standard_Real Gap (const Standard_Integer num = 0) const; diff --git a/src/ShapeAnalysis/ShapeAnalysis_WireVertex.hxx b/src/ShapeAnalysis/ShapeAnalysis_WireVertex.hxx index e3475c4dec..1fbfbb3710 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_WireVertex.hxx +++ b/src/ShapeAnalysis/ShapeAnalysis_WireVertex.hxx @@ -41,7 +41,7 @@ class gp_XYZ; //! The Wire has formerly been loaded in a ShapeExtend_WireData //! For each Vertex, a status and some data can be attached //! (case found, position and parameters) -//! Then, these informations can be used to fix problems +//! Then, these information can be used to fix problems class ShapeAnalysis_WireVertex { public: @@ -62,10 +62,10 @@ public: //! Sets the precision for work //! Analysing: for each Vertex, comparison between the end of the - //! preceeding edge and the start of the following edge + //! preceding edge and the start of the following edge //! Each Vertex rank corresponds to the End Vertex of the Edge of //! same rank, in the ShapeExtend_WireData. I.E. for Vertex , - //! Edge is the preceeding one, is the following one + //! Edge is the preceding one, is the following one Standard_EXPORT void SetPrecision (const Standard_Real preci); Standard_EXPORT void Analyze(); @@ -79,18 +79,18 @@ public: //! Records status "Close Coords" (at the Precision of ) Standard_EXPORT void SetClose (const Standard_Integer num); - //! is the End of preceeding Edge, and its projection on the + //! is the End of preceding Edge, and its projection on the //! following one lies on it at the Precision of //! gives the parameter on the following edge Standard_EXPORT void SetEnd (const Standard_Integer num, const gp_XYZ& pos, const Standard_Real ufol); //! is the Start of following Edge, its projection on the - //! preceeding one lies on it at the Precision of - //! gives the parameter on the preceeding edge + //! preceding one lies on it at the Precision of + //! gives the parameter on the preceding edge Standard_EXPORT void SetStart (const Standard_Integer num, const gp_XYZ& pos, const Standard_Real upre); //! is the Intersection of both Edges - //! is the parameter on preceeding edge, on + //! is the parameter on preceding edge, on //! following edge Standard_EXPORT void SetInters (const Standard_Integer num, const gp_XYZ& pos, const Standard_Real upre, const Standard_Real ufol); @@ -123,14 +123,14 @@ public: //! Returns the recorded status for a vertex //! With its recorded position and parameters on both edges //! These values are relevant regarding the status: - //! Status Meaning Position Preceeding Following + //! Status Meaning Position Preceding Following //! 0 Same no no no //! 1 SameCoord no no no //! 2 Close no no no //! 3 End yes no yes //! 4 Start yes yes no //! 5 Inters yes yes yes - //! -1 Disjoined no no no + //! -1 Disjoined no no no Standard_EXPORT Standard_Integer Data (const Standard_Integer num, gp_XYZ& pos, Standard_Real& upre, Standard_Real& ufol) const; //! For a given status, returns the rank of the vertex which diff --git a/src/ShapeBuild/ShapeBuild_Edge.cxx b/src/ShapeBuild/ShapeBuild_Edge.cxx index 90383dec12..feee4e8224 100644 --- a/src/ShapeBuild/ShapeBuild_Edge.cxx +++ b/src/ShapeBuild/ShapeBuild_Edge.cxx @@ -549,7 +549,7 @@ Handle(Geom2d_Curve) ShapeBuild_Edge::TransformPCurve(const Handle(Geom2d_Curve) if(result->IsKind(STANDARD_TYPE(Geom2d_Conic))) { //gp_Pln pln(gp_Pnt(0,0,0),gp_Dir(0,0,1)); //Handle(Geom_Curve) curve = GeomAPI::To3d(result,pln); - Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(result,aFirst,aLast); //protection agains parabols ets + Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(result,aFirst,aLast); //protection against parabols ets Geom2dConvert_ApproxCurve approx (tcurve, Precision::Approximation(), GeomAbs_C1, 100, 6 ); if ( approx.HasResult() ) diff --git a/src/ShapeBuild/ShapeBuild_ReShape.hxx b/src/ShapeBuild/ShapeBuild_ReShape.hxx index 06ae83df81..9c37ffbcb5 100644 --- a/src/ShapeBuild/ShapeBuild_ReShape.hxx +++ b/src/ShapeBuild/ShapeBuild_ReShape.hxx @@ -60,7 +60,7 @@ public: //! //! gives the level of type until which requests are taken //! into account. For subshapes of the type no rebuild - //! and futher exploring are done. + //! and further exploring are done. //! ACTUALLY, NOT IMPLEMENTED BELOW TopAbs_FACE //! //! says how to do on a SOLID,SHELL ... if one of its @@ -76,7 +76,7 @@ public: //! //! gives the level of type until which requests are taken //! into account. For subshapes of the type no rebuild - //! and futher exploring are done. + //! and further exploring are done. //! //! NOTE: each subshape can be replaced by shape of the same type //! or by shape containing only shapes of that type (for diff --git a/src/ShapeConstruct/ShapeConstruct.cxx b/src/ShapeConstruct/ShapeConstruct.cxx index ca873ab849..4d8e71d1a6 100644 --- a/src/ShapeConstruct/ShapeConstruct.cxx +++ b/src/ShapeConstruct/ShapeConstruct.cxx @@ -79,7 +79,7 @@ Handle(Geom_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(Geo if(C3D->IsKind(STANDARD_TYPE(Geom_Conic))) MaxDeg = Min(MaxDeg,6); - Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(C3D,First,Last); //protection agains parabols ets + Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(C3D,First,Last); //protection against parabols ets try { OCC_CATCH_SIGNALS GeomConvert_ApproxCurve approx (tcurve, Tol3d, Continuity, MaxSegments, MaxDeg); @@ -115,7 +115,7 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(G { Handle(Geom2d_BSplineCurve) aBSpline2d; if(C2D->IsKind(STANDARD_TYPE(Geom2d_Conic))) { - Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(C2D,First,Last); //protection agains parabols ets + Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(C2D,First,Last); //protection against parabols ets Geom2dConvert_ApproxCurve approx (tcurve, Tol2d, Continuity, MaxSegments, MaxDegree); if ( approx.HasResult() ) aBSpline2d = approx.Curve(); @@ -241,7 +241,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle #ifdef OCCT_DEBUG Standard_Integer nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1); std::cout << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << std::endl; - std::cout << " Surface is aproximated with continuity " << (GeomAbs_Shape)cnt <0 && myCashe3d[0].Distance(points(1)) > myCashe3d[0].Distance(points(nbrPnt)) && myCashe3d[0].Distance(points(nbrPnt)) ul) { firstX -= Up; pnt2d (1).SetX(firstX); } } - // shift first point, according to cashe + // shift first point, according to cache if (mySurf->Surface()->IsUPeriodic() && isFromCashe) { Standard_Real aMinParam = uf, aMaxParam = ul; while (aMinParam > aSavedPoint.X()) { @@ -1230,7 +1230,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G while (firstY < vf) { firstY += Vp; pnt2d (1).SetY(firstY); } while (firstY > vl) { firstY -= Vp; pnt2d (1).SetY(firstY); } } - // shift first point, according to cashe + // shift first point, according to cache if (mySurf->Surface()->IsVPeriodic() && isFromCashe) { Standard_Real aMinParam = vf, aMaxParam = vl; while (aMinParam > aSavedPoint.Y()) { @@ -1470,7 +1470,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G } } - //:q9: fill cashe + //:q9: fill cache myNbCashe = 2; if(ChangeCycle) { // msv 10.08.04: avoid using of uninitialised field //if(myCashe3d[0].Distance(points(1))>Precision::Confusion() && diff --git a/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.hxx b/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.hxx index 539083067b..c4cf5ad752 100644 --- a/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.hxx +++ b/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.hxx @@ -101,7 +101,7 @@ public: //! Default value is True Standard_EXPORT Standard_Integer& AdjustOverDegenMode(); - //! Returns the status of last Peform + //! Returns the status of last Perform Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status theStatus) const; //! Computes the projection of 3d curve onto a surface using the diff --git a/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx b/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx index fa14cf4261..0745e84b1e 100644 --- a/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx +++ b/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx @@ -686,7 +686,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo std::cout << " iteration = " << i << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << std::endl; - std::cout<< " Surface is aproximated with continuity " << IntegerToGeomAbsShape(Min(aCU,aCV)) <GMaxDegree(); continue;} else { #ifdef OCCT_DEBUG - std::cout<<" Approximation iteration out. Surface is not aproximated." << std::endl; + std::cout<<" Approximation iteration out. Surface is not approximated." << std::endl; #endif return Standard_False; } @@ -893,7 +893,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(const Handle(Geom_ if (aCurve->IsKind(STANDARD_TYPE(Geom_Conic)) && myParameters->ConvertCurve3d()) { Handle(Geom_BSplineCurve) aBSpline; - Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(aCurve,First,Last); //protection agains parabols ets + Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(aCurve,First,Last); //protection against parabols ets GeomConvert_ApproxCurve approx (tcurve, myTol3d/*Precision::Approximation()*/, myContinuity2d, myNbMaxSeg, 6 ); if ( approx.HasResult() ) aBSpline = approx.Curve(); @@ -1201,7 +1201,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(const Handle(Geo if (aCurve->IsKind(STANDARD_TYPE(Geom2d_Conic)) && myParameters->ConvertCurve2d()) { Handle(Geom2d_BSplineCurve) aBSpline2d; - Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(aCurve,First,Last); //protection agains parabols ets + Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(aCurve,First,Last); //protection against parabols ets Geom2dConvert_ApproxCurve approx (tcurve, myTol2d,myContinuity2d,myNbMaxSeg , 6 ); if ( approx.HasResult() ) aBSpline2d = approx.Curve(); diff --git a/src/ShapeCustom/ShapeCustom_BSplineRestriction.hxx b/src/ShapeCustom/ShapeCustom_BSplineRestriction.hxx index 1f0f6bfe40..b4d3d1ecd1 100644 --- a/src/ShapeCustom/ShapeCustom_BSplineRestriction.hxx +++ b/src/ShapeCustom/ShapeCustom_BSplineRestriction.hxx @@ -39,7 +39,7 @@ class gp_Pnt; class ShapeCustom_BSplineRestriction; DEFINE_STANDARD_HANDLE(ShapeCustom_BSplineRestriction, ShapeCustom_Modification) -//! this tool intended for aproximation surfaces, curves and pcurves with +//! this tool intended for approximation surfaces, curves and pcurves with //! specified degree , max number of segments, tolerance 2d, tolerance 3d. Specified //! continuity can be reduced if approximation with specified continuity was not done. class ShapeCustom_BSplineRestriction : public ShapeCustom_Modification @@ -51,10 +51,10 @@ public: //! Empty constructor. Standard_EXPORT ShapeCustom_BSplineRestriction(); - //! Initializes with specified parameters of aproximation. + //! Initializes with specified parameters of approximation. Standard_EXPORT ShapeCustom_BSplineRestriction(const Standard_Boolean anApproxSurfaceFlag, const Standard_Boolean anApproxCurve3dFlag, const Standard_Boolean anApproxCurve2dFlag, const Standard_Real aTol3d, const Standard_Real aTol2d, const GeomAbs_Shape aContinuity3d, const GeomAbs_Shape aContinuity2d, const Standard_Integer aMaxDegree, const Standard_Integer aNbMaxSeg, const Standard_Boolean Degree, const Standard_Boolean Rational); - //! Initializes with specified parameters of aproximation. + //! Initializes with specified parameters of approximation. Standard_EXPORT ShapeCustom_BSplineRestriction(const Standard_Boolean anApproxSurfaceFlag, const Standard_Boolean anApproxCurve3dFlag, const Standard_Boolean anApproxCurve2dFlag, const Standard_Real aTol3d, const Standard_Real aTol2d, const GeomAbs_Shape aContinuity3d, const GeomAbs_Shape aContinuity2d, const Standard_Integer aMaxDegree, const Standard_Integer aNbMaxSeg, const Standard_Boolean Degree, const Standard_Boolean Rational, const Handle(ShapeCustom_RestrictionParameters)& aModes); //! Returns Standard_True if the face has been @@ -92,54 +92,54 @@ public: //! are not significant. //! //! is the new edge created from . - //! is the new face created from . They may be usefull. + //! is the new face created from . They may be useful. Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE; //! Returns Standard_True if the surface has been modified. - //! if flag IsOf equals Standard_True Offset surfaces are aproximated to Offset + //! if flag IsOf equals Standard_True Offset surfaces are approximated to Offset //! if Standard_False to BSpline Standard_EXPORT Standard_Boolean ConvertSurface (const Handle(Geom_Surface)& aSurface, Handle(Geom_Surface)& S, const Standard_Real UF, const Standard_Real UL, const Standard_Real VF, const Standard_Real VL, const Standard_Boolean IsOf = Standard_True); //! Returns Standard_True if the curve has been modified. - //! if flag IsOf equals Standard_True Offset curves are aproximated to Offset + //! if flag IsOf equals Standard_True Offset curves are approximated to Offset //! if Standard_False to BSpline Standard_EXPORT Standard_Boolean ConvertCurve (const Handle(Geom_Curve)& aCurve, Handle(Geom_Curve)& C, const Standard_Boolean IsConvert, const Standard_Real First, const Standard_Real Last, Standard_Real& TolCur, const Standard_Boolean IsOf = Standard_True); //! Returns Standard_True if the pcurve has been modified. - //! if flag IsOf equals Standard_True Offset pcurves are aproximated to Offset + //! if flag IsOf equals Standard_True Offset pcurves are approximated to Offset //! if Standard_False to BSpline Standard_EXPORT Standard_Boolean ConvertCurve2d (const Handle(Geom2d_Curve)& aCurve, Handle(Geom2d_Curve)& C, const Standard_Boolean IsConvert, const Standard_Real First, const Standard_Real Last, Standard_Real& TolCur, const Standard_Boolean IsOf = Standard_True); - //! Sets tolerance of aproximation for curve3d and surface + //! Sets tolerance of approximation for curve3d and surface void SetTol3d (const Standard_Real Tol3d); - //! Sets tolerance of aproximation for curve2d + //! Sets tolerance of approximation for curve2d void SetTol2d (const Standard_Real Tol2d); //! Returns (modifiable) the flag which defines whether the - //! surface is aproximated. + //! surface is approximated. Standard_Boolean& ModifyApproxSurfaceFlag(); //! Returns (modifiable) the flag which defines whether the - //! curve3d is aproximated. + //! curve3d is approximated. Standard_Boolean& ModifyApproxCurve3dFlag(); - //! Returns (modifiable) the flag which defines whether the curve2d is aproximated. + //! Returns (modifiable) the flag which defines whether the curve2d is approximated. Standard_Boolean& ModifyApproxCurve2dFlag(); - //! Sets continuity3d for aproximation curve3d and surface. + //! Sets continuity3d for approximation curve3d and surface. void SetContinuity3d (const GeomAbs_Shape Continuity3d); - //! Sets continuity3d for aproximation curve2d. + //! Sets continuity3d for approximation curve2d. void SetContinuity2d (const GeomAbs_Shape Continuity2d); - //! Sets max degree for aproximation. + //! Sets max degree for approximation. void SetMaxDegree (const Standard_Integer MaxDegree); - //! Sets max number of segments for aproximation. + //! Sets max number of segments for approximation. void SetMaxNbSegments (const Standard_Integer MaxNbSegments); - //! Sets priority for aproximation curves and surface. + //! Sets priority for approximation curves and surface. //! If Degree is True approximation is made with degree less //! then specified MaxDegree at the expense of number of spanes. //! If Degree is False approximation is made with number of @@ -162,13 +162,13 @@ public: //! what geometry should be converted to BSplines. void SetRestrictionParameters (const Handle(ShapeCustom_RestrictionParameters)& aModes); - //! Returns error for aproximation curve3d. + //! Returns error for approximation curve3d. Standard_Real Curve3dError() const; - //! Returns error for aproximation curve2d. + //! Returns error for approximation curve2d. Standard_Real Curve2dError() const; - //! Returns error for aproximation surface. + //! Returns error for approximation surface. Standard_Real SurfaceError() const; Standard_EXPORT Standard_Boolean NewPoint (const TopoDS_Vertex& V, gp_Pnt& P, Standard_Real& Tol) Standard_OVERRIDE; @@ -177,10 +177,10 @@ public: Standard_EXPORT GeomAbs_Shape Continuity (const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2, const TopoDS_Edge& NewE, const TopoDS_Face& NewF1, const TopoDS_Face& NewF2) Standard_OVERRIDE; - //! Returns error for aproximation surface, curve3d and curve2d. + //! Returns error for approximation surface, curve3d and curve2d. Standard_EXPORT Standard_Real MaxErrors (Standard_Real& aCurve3dErr, Standard_Real& aCurve2dErr) const; - //! Returns number for aproximation surface, curve3d and curve2d. + //! Returns number for approximation surface, curve3d and curve2d. Standard_EXPORT Standard_Integer NbOfSpan() const; diff --git a/src/ShapeCustom/ShapeCustom_ConvertToBSpline.hxx b/src/ShapeCustom/ShapeCustom_ConvertToBSpline.hxx index 3ae0eda192..918b1e1d3b 100644 --- a/src/ShapeCustom/ShapeCustom_ConvertToBSpline.hxx +++ b/src/ShapeCustom/ShapeCustom_ConvertToBSpline.hxx @@ -38,7 +38,7 @@ class ShapeCustom_ConvertToBSpline; DEFINE_STANDARD_HANDLE(ShapeCustom_ConvertToBSpline, ShapeCustom_Modification) //! implement a modification for BRepTools -//! Modifier algortihm. Converts Surface of +//! Modifier algorithm. Converts Surface of //! Linear Exctrusion, Revolution and Offset //! surfaces into BSpline Surface according to //! flags. @@ -50,17 +50,17 @@ public: Standard_EXPORT ShapeCustom_ConvertToBSpline(); - //! Sets mode for convertion of Surfaces of Linear + //! Sets mode for conversion of Surfaces of Linear //! extrusion. Standard_EXPORT void SetExtrusionMode (const Standard_Boolean extrMode); - //! Sets mode for convertion of Surfaces of Revolution. + //! Sets mode for conversion of Surfaces of Revolution. Standard_EXPORT void SetRevolutionMode (const Standard_Boolean revolMode); - //! Sets mode for convertion of Offset surfaces. + //! Sets mode for conversion of Offset surfaces. Standard_EXPORT void SetOffsetMode (const Standard_Boolean offsetMode); - //! Sets mode for convertion of Plane surfaces. + //! Sets mode for conversion of Plane surfaces. Standard_EXPORT void SetPlaneMode (const Standard_Boolean planeMode); //! Returns Standard_True if the face has been @@ -95,7 +95,7 @@ public: //! are not significant. //! //! is the new edge created from . - //! is the new face created from . They may be usefull. + //! is the new face created from . They may be useful. Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE; //! Returns Standard_True if the Vertex has a new diff --git a/src/ShapeCustom/ShapeCustom_ConvertToRevolution.hxx b/src/ShapeCustom/ShapeCustom_ConvertToRevolution.hxx index 963669e891..3035ccbad1 100644 --- a/src/ShapeCustom/ShapeCustom_ConvertToRevolution.hxx +++ b/src/ShapeCustom/ShapeCustom_ConvertToRevolution.hxx @@ -38,7 +38,7 @@ class ShapeCustom_ConvertToRevolution; DEFINE_STANDARD_HANDLE(ShapeCustom_ConvertToRevolution, ShapeCustom_Modification) //! implements a modification for the BRepTools -//! Modifier algortihm. Converts all elementary +//! Modifier algorithm. Converts all elementary //! surfaces into surfaces of revolution. class ShapeCustom_ConvertToRevolution : public ShapeCustom_Modification { @@ -80,7 +80,7 @@ public: //! are not significant. //! //! is the new edge created from . - //! is the new face created from . They may be usefull. + //! is the new face created from . They may be useful. Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE; //! Returns Standard_True if the Vertex has a new diff --git a/src/ShapeCustom/ShapeCustom_DirectModification.hxx b/src/ShapeCustom/ShapeCustom_DirectModification.hxx index b1eecaf58e..537127a2b7 100644 --- a/src/ShapeCustom/ShapeCustom_DirectModification.hxx +++ b/src/ShapeCustom/ShapeCustom_DirectModification.hxx @@ -38,7 +38,7 @@ class ShapeCustom_DirectModification; DEFINE_STANDARD_HANDLE(ShapeCustom_DirectModification, ShapeCustom_Modification) //! implements a modification for the BRepTools -//! Modifier algortihm. Will redress indirect +//! Modifier algorithm. Will redress indirect //! surfaces. class ShapeCustom_DirectModification : public ShapeCustom_Modification { @@ -80,7 +80,7 @@ public: //! are not significant. //! //! is the new edge created from . - //! is the new face created from . They may be usefull. + //! is the new face created from . They may be useful. Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE; //! Returns Standard_True if the Vertex has a new diff --git a/src/ShapeCustom/ShapeCustom_Surface.hxx b/src/ShapeCustom/ShapeCustom_Surface.hxx index 049be4d318..a298107857 100644 --- a/src/ShapeCustom/ShapeCustom_Surface.hxx +++ b/src/ShapeCustom/ShapeCustom_Surface.hxx @@ -26,9 +26,9 @@ class Geom_Surface; -//! Converts a surface to the analitical form with given +//! Converts a surface to the analytical form with given //! precision. Conversion is done only the surface is bspline -//! of bezier and this can be approximed by some analytical +//! of bezier and this can be approximated by some analytical //! surface with that precision. class ShapeCustom_Surface { diff --git a/src/ShapeCustom/ShapeCustom_SweptToElementary.cxx b/src/ShapeCustom/ShapeCustom_SweptToElementary.cxx index 9d8e744fe9..15d5d0a393 100644 --- a/src/ShapeCustom/ShapeCustom_SweptToElementary.cxx +++ b/src/ShapeCustom/ShapeCustom_SweptToElementary.cxx @@ -62,7 +62,7 @@ ShapeCustom_SweptToElementary::ShapeCustom_SweptToElementary() //======================================================================= //function : IsToConvert -//purpose : auxilary (Analyze surface: is it to be converted?) +//purpose : auxiliary (Analyze surface: is it to be converted?) //======================================================================= static Standard_Boolean IsToConvert (const Handle(Geom_Surface) &S, Handle(Geom_SweptSurface) &SS) diff --git a/src/ShapeCustom/ShapeCustom_SweptToElementary.hxx b/src/ShapeCustom/ShapeCustom_SweptToElementary.hxx index 4a9b51ea6f..a3d8c954ae 100644 --- a/src/ShapeCustom/ShapeCustom_SweptToElementary.hxx +++ b/src/ShapeCustom/ShapeCustom_SweptToElementary.hxx @@ -37,7 +37,7 @@ class ShapeCustom_SweptToElementary; DEFINE_STANDARD_HANDLE(ShapeCustom_SweptToElementary, ShapeCustom_Modification) //! implements a modification for the BRepTools -//! Modifier algortihm. Converts all elementary +//! Modifier algorithm. Converts all elementary //! surfaces into surfaces of revolution. class ShapeCustom_SweptToElementary : public ShapeCustom_Modification { @@ -79,7 +79,7 @@ public: //! are not significant. //! //! is the new edge created from . - //! is the new face created from . They may be usefull. + //! is the new face created from . They may be useful. Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE; //! Returns Standard_True if the Vertex has a new diff --git a/src/ShapeExtend/ShapeExtend_Status.hxx b/src/ShapeExtend/ShapeExtend_Status.hxx index 8b67fa41af..c1b71dae65 100644 --- a/src/ShapeExtend/ShapeExtend_Status.hxx +++ b/src/ShapeExtend/ShapeExtend_Status.hxx @@ -55,7 +55,7 @@ //! The method failed, case 6 //! The method failed, case 7 //! The method failed, case 8 -//! The mathod failed (any of FAIL# occured) +//! The method failed (any of FAIL# occurred) enum ShapeExtend_Status { ShapeExtend_OK, diff --git a/src/ShapeExtend/ShapeExtend_WireData.cxx b/src/ShapeExtend/ShapeExtend_WireData.cxx index 3bdaeb4be6..4ef48536af 100644 --- a/src/ShapeExtend/ShapeExtend_WireData.cxx +++ b/src/ShapeExtend/ShapeExtend_WireData.cxx @@ -303,7 +303,7 @@ void ShapeExtend_WireData::Add (const Handle(ShapeExtend_WireData) &wire, } } - //non-manifold edges for non-manifold wire shoud be added at end + //non-manifold edges for non-manifold wire should be added at end for (i=1; i <=aNMEdges.Length(); i++) myEdges->Append(aNMEdges.Value(i)); diff --git a/src/ShapeExtend/ShapeExtend_WireData.hxx b/src/ShapeExtend/ShapeExtend_WireData.hxx index 09790ee6d1..68b9280cac 100644 --- a/src/ShapeExtend/ShapeExtend_WireData.hxx +++ b/src/ShapeExtend/ShapeExtend_WireData.hxx @@ -63,31 +63,31 @@ class ShapeExtend_WireData : public Standard_Transient public: - + //! Empty constructor, creates empty wire with no edges Standard_EXPORT ShapeExtend_WireData(); - + //! Constructor initializing the data from TopoDS_Wire. Calls Init(wire,chained). Standard_EXPORT ShapeExtend_WireData(const TopoDS_Wire& wire, const Standard_Boolean chained = Standard_True, const Standard_Boolean theManifoldMode = Standard_True); - + //! Copies data from another WireData Standard_EXPORT void Init (const Handle(ShapeExtend_WireData)& other); - + //! Loads an already existing wire //! If is True (default), edges are added in the //! sequence as they are explored by TopoDS_Iterator //! Else, if is False, wire is explored by //! BRepTools_WireExplorer and it is guaranteed that edges will - //! be sequencially connected. + //! be sequentially connected. //! Remark : In the latter case it can happen that not all edges //! will be found (because of limitations of //! BRepTools_WireExplorer for disconnected wires and wires //! with seam edges). Standard_EXPORT Standard_Boolean Init (const TopoDS_Wire& wire, const Standard_Boolean chained = Standard_True, const Standard_Boolean theManifoldMode = Standard_True); - + //! Clears data about Wire. Standard_EXPORT void Clear(); - + //! Computes the list of seam edges //! By default (direct call), computing is enforced //! For indirect call (from IsSeam) it is redone only if not yet @@ -97,10 +97,10 @@ public: //! Each sense has its own PCurve, the one for FORWARD //! must be set in first Standard_EXPORT void ComputeSeams (const Standard_Boolean enforce = Standard_True); - + //! Does a circular permutation in order to set th edge last Standard_EXPORT void SetLast (const Standard_Integer num); - + //! When the wire contains at least one degenerated edge, sets it //! as last one //! Note : It is useful to process pcurves, for instance, while the pcurve @@ -108,7 +108,7 @@ public: //! it is computed after the other edges have been computed and //! chained. Standard_EXPORT void SetDegeneratedLast(); - + //! Adds an edge to a wire, being defined (not yet ended) //! This is the plain, basic, function to add an edge //! = 0 (D): Appends at end @@ -116,18 +116,18 @@ public: //! else, Insert before //! Remark : Null Edge is simply ignored Standard_EXPORT void Add (const TopoDS_Edge& edge, const Standard_Integer atnum = 0); - + //! Adds an entire wire, considered as a list of edges //! Remark : The wire is assumed to be ordered (TopoDS_Iterator //! is used) Standard_EXPORT void Add (const TopoDS_Wire& wire, const Standard_Integer atnum = 0); - + //! Adds a wire in the form of WireData Standard_EXPORT void Add (const Handle(ShapeExtend_WireData)& wire, const Standard_Integer atnum = 0); - + //! Adds an edge or a wire invoking corresponding method Add Standard_EXPORT void Add (const TopoDS_Shape& shape, const Standard_Integer atnum = 0); - + //! Adds an edge to start or end of , according to //! 0: at end, as direct //! 1: at end, as reversed @@ -135,7 +135,7 @@ public: //! 3: at start, as reversed //! < 0: no adding Standard_EXPORT void AddOriented (const TopoDS_Edge& edge, const Standard_Integer mode); - + //! Adds a wire to start or end of , according to //! 0: at end, as direct //! 1: at end, as reversed @@ -143,64 +143,64 @@ public: //! 3: at start, as reversed //! < 0: no adding Standard_EXPORT void AddOriented (const TopoDS_Wire& wire, const Standard_Integer mode); - + //! Adds an edge or a wire invoking corresponding method //! AddOriented Standard_EXPORT void AddOriented (const TopoDS_Shape& shape, const Standard_Integer mode); - + //! Removes an Edge, given its rank. By default removes the last edge. Standard_EXPORT void Remove (const Standard_Integer num = 0); - + //! Replaces an edge at the given //! rank number with new one. Default is last edge ( = 0). Standard_EXPORT void Set (const TopoDS_Edge& edge, const Standard_Integer num = 0); - + //! Reverses the sense of the list and the orientation of each Edge //! This method should be called when either wire has no seam edges //! or face is not available Standard_EXPORT void Reverse(); - + //! Reverses the sense of the list and the orientation of each Edge //! The face is necessary for swapping pcurves for seam edges //! (first pcurve corresponds to orientation FORWARD, and second to //! REVERSED; when edge is reversed, pcurves must be swapped) //! If face is NULL, no swapping is performed Standard_EXPORT void Reverse (const TopoDS_Face& face); - + //! Returns the count of currently recorded edges Standard_EXPORT Standard_Integer NbEdges() const; - + //! Returns the count of currently recorded non-manifold edges Standard_EXPORT Standard_Integer NbNonManifoldEdges() const; - + //! Returns th nonmanifold Edge Standard_EXPORT TopoDS_Edge NonmanifoldEdge (const Standard_Integer num) const; - + //! Returns sequence of non-manifold edges //! This sequence can be not empty if wire data set in manifold mode but //! initial wire has INTERNAL orientation or contains INTERNAL edges Standard_EXPORT Handle(TopTools_HSequenceOfShape) NonmanifoldEdges() const; - + //! Returns mode defining manifold wire data or not. //! If manifold that nonmanifold edges will not be not //! consider during operations(previous behaviour) //! and they will be added only in result wire //! else non-manifold edges will consider during operations Standard_EXPORT Standard_Boolean& ManifoldMode(); - + //! Returns th Edge Standard_EXPORT TopoDS_Edge Edge (const Standard_Integer num) const; - + //! Returns the index of the edge //! If the edge is a seam the orientation is also checked //! Returns 0 if the edge is not found in the list Standard_EXPORT Standard_Integer Index (const TopoDS_Edge& edge); - + //! Tells if an Edge is seam (see ComputeSeams) //! An edge is considered as seam if it presents twice in //! the edge list, once as FORWARD and once as REVERSED. Standard_EXPORT Standard_Boolean IsSeam (const Standard_Integer num); - + //! Makes TopoDS_Wire using //! BRep_Builder (just creates the TopoDS_Wire object and adds //! all edges into it). This method should be called when @@ -209,7 +209,7 @@ public: //! vertices. In case if adjacent edges do not share the same //! vertices the resulting TopoDS_Wire will be invalid. Standard_EXPORT TopoDS_Wire Wire() const; - + //! Makes TopoDS_Wire using //! BRepAPI_MakeWire. Class BRepAPI_MakeWire merges //! geometrically coincided vertices and can disturb diff --git a/src/ShapeFix/ShapeFix.cxx b/src/ShapeFix/ShapeFix.cxx index a302efa04f..cb14852548 100644 --- a/src/ShapeFix/ShapeFix.cxx +++ b/src/ShapeFix/ShapeFix.cxx @@ -297,7 +297,7 @@ TopoDS_Shape ShapeFix::RemoveSmallEdges (TopoDS_Shape& Shape, //======================================================================= //function : ReplaceVertex -//purpose : auxilary for FixVertexPosition +//purpose : auxiliary for FixVertexPosition //======================================================================= static TopoDS_Edge ReplaceVertex(const TopoDS_Edge& theEdge, const gp_Pnt theP, @@ -327,7 +327,7 @@ static TopoDS_Edge ReplaceVertex(const TopoDS_Edge& theEdge, //======================================================================= //function : getNearPoint -//purpose : auxilary for FixVertexPosition +//purpose : auxiliary for FixVertexPosition //======================================================================= static Standard_Real getNearPoint(const TColgp_SequenceOfPnt& aSeq1, const TColgp_SequenceOfPnt& aSeq2, @@ -360,7 +360,7 @@ static Standard_Real getNearPoint(const TColgp_SequenceOfPnt& aSeq1, //======================================================================= //function : getNearestEdges -//purpose : auxilary for FixVertexPosition +//purpose : auxiliary for FixVertexPosition //======================================================================= static Standard_Boolean getNearestEdges(TopTools_ListOfShape& theLEdges, const TopoDS_Vertex theVert, diff --git a/src/ShapeFix/ShapeFix_ComposeShell.cxx b/src/ShapeFix/ShapeFix_ComposeShell.cxx index 8dd22ff2eb..7feb87e3d3 100644 --- a/src/ShapeFix/ShapeFix_ComposeShell.cxx +++ b/src/ShapeFix/ShapeFix_ComposeShell.cxx @@ -283,7 +283,7 @@ Standard_Boolean ShapeFix_ComposeShell::Status (const ShapeExtend_Status status) //======================================================================= //function : PointLineDeviation -//purpose : auxilary +//purpose : auxiliary //======================================================================= // Return (signed) deviation of point from line static Standard_Real PointLineDeviation (const gp_Pnt2d &p, const gp_Lin2d &line) @@ -295,7 +295,7 @@ static Standard_Real PointLineDeviation (const gp_Pnt2d &p, const gp_Lin2d &line //======================================================================= //function : PointLinePosition -//purpose : auxilary +//purpose : auxiliary //======================================================================= // Define position of point relative to line static Standard_Integer PointLinePosition (const gp_Pnt2d &p, const gp_Lin2d &line, @@ -307,7 +307,7 @@ static Standard_Integer PointLinePosition (const gp_Pnt2d &p, const gp_Lin2d &li //======================================================================= //function : PointLinePosition -//purpose : auxilary +//purpose : auxiliary //======================================================================= // Define position of point relative to line static Standard_Integer PointLinePosition (const gp_Pnt2d &p, const gp_Lin2d &line) @@ -318,7 +318,7 @@ static Standard_Integer PointLinePosition (const gp_Pnt2d &p, const gp_Lin2d &li //======================================================================= //function : ParamPointsOnLine -//purpose : auxilary +//purpose : auxiliary //======================================================================= // Compute parameter of point on line static inline Standard_Real ParamPointOnLine (const gp_Pnt2d &p, const gp_Lin2d &line) @@ -328,7 +328,7 @@ static inline Standard_Real ParamPointOnLine (const gp_Pnt2d &p, const gp_Lin2d //======================================================================= //function : ParamPointsOnLine -//purpose : auxilary +//purpose : auxiliary //======================================================================= // Compute parameter of two points on line (as intersection of segment) static Standard_Real ParamPointsOnLine (const gp_Pnt2d &p1, const gp_Pnt2d &p2, @@ -354,7 +354,7 @@ static Standard_Real ParamPointsOnLine (const gp_Pnt2d &p1, const gp_Pnt2d &p2, //======================================================================= //function : ProjectPointOnLine -//purpose : auxilary +//purpose : auxiliary //======================================================================= // Compute projection of point on line static inline gp_Pnt2d ProjectPointOnLine (const gp_Pnt2d &p, const gp_Lin2d &line) @@ -364,7 +364,7 @@ static inline gp_Pnt2d ProjectPointOnLine (const gp_Pnt2d &p, const gp_Lin2d &li //======================================================================= //function : ApplyContext -//purpose : auxilary +//purpose : auxiliary //======================================================================= // Apply context to one edge in the wire and put result into this wire static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire, @@ -415,7 +415,7 @@ static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire, //======================================================================= //function : IsCoincided -//purpose : auxilary +//purpose : auxiliary //======================================================================= // check points coincidence static inline Standard_Boolean IsCoincided (const gp_Pnt2d &p1, const gp_Pnt2d &p2, @@ -433,7 +433,7 @@ static inline Standard_Boolean IsCoincided (const gp_Pnt2d &p1, const gp_Pnt2d & //======================================================================= //function : GetPatchIndex -//purpose : auxilary +//purpose : auxiliary //======================================================================= // computes index for the patch by given parameter Param @@ -504,7 +504,7 @@ void ShapeFix_ComposeShell::LoadWires (ShapeFix_SequenceOfWireSegment &seqw) con if(isNonManifold) { Handle(ShapeExtend_WireData) sbwd = new ShapeExtend_WireData ( wire ,Standard_True,Standard_False); - //pdn protection againts of wires w/o edges + //pdn protection against wires w/o edges Standard_Integer nbEdges = sbwd->NbEdges(); if(nbEdges) { @@ -516,7 +516,7 @@ void ShapeFix_ComposeShell::LoadWires (ShapeFix_SequenceOfWireSegment &seqw) con else { //splitting wires containing manifold and non-manifold parts on a separate - //wire segment + //wire segment Handle(ShapeExtend_WireData) sbwdM = new ShapeExtend_WireData(); Handle(ShapeExtend_WireData) sbwdNM = new ShapeExtend_WireData(); sbwdNM->ManifoldMode() = Standard_False; @@ -721,7 +721,7 @@ Standard_Integer ShapeFix_ComposeShell::ComputeCode (const Handle(ShapeExtend_Wi //======================================================================= //function : DistributeSplitPoints -//purpose : auxilary +//purpose : auxiliary //======================================================================= // After applying context to (seam) edge, distribute its indices on new edges, // according to their parameters on that edge @@ -753,7 +753,7 @@ static void DistributeSplitPoints (const Handle(ShapeExtend_WireData) &sbwd, //======================================================================= //function : CheckByCurve3d -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Integer CheckByCurve3d (const gp_Pnt &pos, const Handle(Geom_Curve) &c3d, @@ -769,7 +769,7 @@ static Standard_Integer CheckByCurve3d (const gp_Pnt &pos, //======================================================================= //function : DefinePatch -//purpose : auxilary +//purpose : auxiliary //======================================================================= static void DefinePatch (ShapeFix_WireSegment &wire, const Standard_Integer code, const Standard_Boolean isCutByU, const Standard_Integer cutIndex, @@ -788,7 +788,7 @@ static void DefinePatch (ShapeFix_WireSegment &wire, const Standard_Integer code //======================================================================= //function : GetGridResolution -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Real GetGridResolution(const Handle(TColStd_HArray1OfReal) SplitValues, const Standard_Integer cutIndex) @@ -828,7 +828,7 @@ ShapeFix_WireSegment ShapeFix_ComposeShell::SplitWire (ShapeFix_WireSegment &wir // Processing edge by edge (assuming that split points are sorted along the wire) for ( Standard_Integer i = 1; i <= wire.NbEdges(); i++ ) { - // for already splitted seam edge, redistribute its splitting points + // for already split seam edge, redistribute its splitting points Standard_Integer nsplit = ApplyContext ( wire, i, Context() ); if ( nsplit !=1 ) { DistributeSplitPoints ( wire.WireData(), myFace, i, nsplit, indexes, values ); @@ -1052,7 +1052,7 @@ ShapeFix_WireSegment ShapeFix_ComposeShell::SplitWire (ShapeFix_WireSegment &wir } else vertices.Append ( V ); - // When edge is about to be splitted, copy end vertices to protect + // When edge is about to be split, copy end vertices to protect // original shape from increasing tolerance after fixing SameParameter if ( ! splitted ) { //smh#8 @@ -1732,12 +1732,12 @@ void ShapeFix_ComposeShell::SplitByGrid (ShapeFix_SequenceOfWireSegment &seqw) Standard_Real Umin,Umax,Vmin,Vmax; myGrid->Bounds(Umin,Umax,Vmin,Vmax); - //value of precision to define number of patch should be the same as used in the definitin position of point realtively to seam edge (TOLINT) + //value of precision to define number of patch should be the same as used in the definitin position of point relatively to seam edge (TOLINT) Standard_Real pprec = TOLINT;//::Precision::PConfusion(); Standard_Integer i = 1; if(myClosedMode) { - //for closed mode when only one patch exist and location of the splitting line is coinsident with first joint value + //for closed mode when only one patch exist and location of the splitting line is coincident with first joint value //Therefore in this case it is necessary to move all wire segments in the range of the patch between first and last joint //values. Then all wire segments are lie between -period and period in order to have valid split ranges after splitting. //Because for closed mode cut index always equal to 1 and parts of segments after splitting always should have index either (0,1) or (1,2). @@ -1930,7 +1930,7 @@ void ShapeFix_ComposeShell::BreakWires (ShapeFix_SequenceOfWireSegment &seqw) //======================================================================= //function : IsShortSegment -//purpose : auxilary +//purpose : auxiliary //======================================================================= // BUC60035 2053: check if wire segment is very short (in order not to skip it) // 0 - long @@ -1976,7 +1976,7 @@ static Standard_Integer IsShortSegment (const ShapeFix_WireSegment &seg, //======================================================================= //function : IsSamePatch -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean IsSamePatch (const ShapeFix_WireSegment wire, const Standard_Integer NU, @@ -2269,7 +2269,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires, // Check if some wires are short in 3d (lie entirely inside one vertex), // and if yes try to merge them with others - //pdn The short seqments are stil plased in "in" sequence. + //pdn The short seqments are still placed in "in" sequence. for ( i=1; i <= seqw.Length(); i++ ) { if ( shorts(i) != 1 || diff --git a/src/ShapeFix/ShapeFix_ComposeShell.hxx b/src/ShapeFix/ShapeFix_ComposeShell.hxx index 3b8195a358..83c927c876 100644 --- a/src/ShapeFix/ShapeFix_ComposeShell.hxx +++ b/src/ShapeFix/ShapeFix_ComposeShell.hxx @@ -67,7 +67,7 @@ DEFINE_STANDARD_HANDLE(ShapeFix_ComposeShell, ShapeFix_Root) //! lines in the periodic direction, as necessary to split all //! the wires (whole parametrical range of a face) //! In this mode, some regularization procedures are performed -//! (indexation of splitted segments by patch numbers), and it is +//! (indexation of split segments by patch numbers), and it is //! expected to be more reliable and robust in case of bad shapes //! //! - if ClosedMode is True, when everything on a periodic surfaces @@ -116,7 +116,7 @@ public: //! resulting shape; the only result is filled context //! where splittings are recorded. //! - //! NOTE: If edge is splitted, it is replaced by wire, and + //! NOTE: If edge is split, it is replaced by wire, and //! order of edges in the wire corresponds to FORWARD orientation //! of the edge. Standard_EXPORT void SplitEdges(); @@ -169,13 +169,13 @@ protected: //! Splits edges in the wire by given indices of edges and //! parameters on them. Returns resulting wire and vertices - //! corresponding to splitting parameters. If two consequtive + //! corresponding to splitting parameters. If two consecutive //! splitting points are too near one to another (with tolerance //! of edge), edge is divided in single point. In the same way, //! splitting which is too near to end of edge, is not applied //! (end vertex is returned instead). //! - //! NOTE: If edge is splitted, it is replaced by wire, and + //! NOTE: If edge is split, it is replaced by wire, and //! order of edges in the wire corresponds to FORWARD orientation //! of the edge. Standard_EXPORT ShapeFix_WireSegment SplitWire (ShapeFix_WireSegment& wire, TColStd_SequenceOfInteger& indexes, const TColStd_SequenceOfReal& values, TopTools_SequenceOfShape& vertices, const TColStd_SequenceOfInteger& segcodes, const Standard_Boolean cutbyu, const Standard_Integer cutindex); @@ -225,7 +225,7 @@ protected: //! After that, each wire segment lies on its own patch of grid. Standard_EXPORT void BreakWires (ShapeFix_SequenceOfWireSegment& seqw); - //! Collect set of wire segments (already splitted) into closed + //! Collect set of wire segments (already split) into closed //! wires. This is done by traversing all the segments in allowed //! directions, starting only from the REVERSED and FORWARD and //! taking EXTERNAL as necessary in fork points. Forks are detected diff --git a/src/ShapeFix/ShapeFix_Edge.cxx b/src/ShapeFix/ShapeFix_Edge.cxx index 1cbde04eba..c33d230813 100644 --- a/src/ShapeFix/ShapeFix_Edge.cxx +++ b/src/ShapeFix/ShapeFix_Edge.cxx @@ -187,11 +187,11 @@ Standard_Boolean ShapeFix_Edge::FixAddPCurve (const TopoDS_Edge& edge, //#12 rln 17/03/98 making this method to be more general : if a curve is //parallel to one iso let us translate it parallely in the direction to another //iso (which is located farther from aC2d). Thus, the requirement for closeness -//to the surface bounds may be avoid. +//to the surface bounds may be avoided. //For example, instead of Abs(theLoc.X()-uf) <= Tol) ... elseif (...-ul..)... //the comparison if (Abs(theLoc.X()-uf) <= Abs(theLoc.X()-ul)) .... can be used. -//The reason of this fix #12 is that seam is not sure to lie on the bound : +//The reason for fix #12 is that seam is not certain to lie on the bound : //if a surface is periodic the whole contour may be shifted (e.g. ProSTEP, //file ug_exhaust-A.stp entity #284920) @@ -265,7 +265,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf, return theNewL2d; } */ - // Other case not yet implemented + // TODO Other case not yet implemented #ifdef OCCT_DEBUG std::cout << "TranslatePCurve not performed" << std::endl; #endif @@ -391,7 +391,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf, oldFirst += shift; oldLast += shift; } - //pdn 30.06.2000 work arounf on beziers + //pdn 30.06.2000 work around on beziers Standard_Real oldFirstCurve1 = oldFirst, oldLastCurve1 = oldLast; if(Curve2dPtr->IsKind(STANDARD_TYPE(Geom2d_BezierCurve))) { diff --git a/src/ShapeFix/ShapeFix_EdgeProjAux.cxx b/src/ShapeFix/ShapeFix_EdgeProjAux.cxx index f2183264d4..2c3100198e 100644 --- a/src/ShapeFix/ShapeFix_EdgeProjAux.cxx +++ b/src/ShapeFix/ShapeFix_EdgeProjAux.cxx @@ -282,7 +282,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci) cf = theCurve2d->FirstParameter(); cl = theCurve2d->LastParameter(); - //pdn cutting pcurve by suface bounds + //pdn cutting pcurve by surface bounds if (Precision::IsInfinite(cf)||Precision::IsInfinite(cl)) { if(theCurve2d->IsKind(STANDARD_TYPE(Geom2d_Line))) { Standard_Real uf,ul,vf,vl; @@ -357,7 +357,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci) else { cf=-10000; cl= 10000; - //pdn not cutted by bounds + //pdn not cut by bounds #ifdef OCCT_DEBUG std::cout<<"Infinite Surface"<1) { #ifdef OCCT_DEBUG - std::cout<<"Wire was splitted on "< 1) - SendWarning ( wire, Message_Msg ( "FixAdvFace.FixLoopWire.MSG0" ) );// Wire was splitted on several wires + SendWarning ( wire, Message_Msg ( "FixAdvFace.FixLoopWire.MSG0" ) );// Wire was split on several wires myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE7 ); fixed = Standard_True; Standard_Integer k=1; @@ -801,9 +801,9 @@ static Standard_Real FindBestInterval (TColgp_SequenceOfPnt2d &intervals) //======================================================================= //function : FixAddNaturalBound -//purpose : +//purpose : //======================================================================= -// Detect missing natural bounary on spherical surfaces and add it if +// Detect missing natural boundary on spherical surfaces and add it if // necessary //pdn 981202: add natural bounds if missing (on sphere only) //:abv 28.08.01: rewritten and extended for toruses @@ -859,7 +859,7 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound() if ( !IsSurfaceUVPeriodic (mySurf->Adaptor3d()) || ShapeAnalysis::IsOuterBound (myFace) ) return Standard_False; - // Collect informations on free intervals in U and V + // Collect information on free intervals in U and V TColgp_SequenceOfPnt2d intU, intV, centers; Standard_Real SUF, SUL, SVF, SVL; mySurf->Bounds(SUF, SUL, SVF, SVL); @@ -1419,7 +1419,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap //======================================================================= //function : CheckWire -//purpose : auxilary for FixMissingSeam +//purpose : auxiliary for FixMissingSeam //======================================================================= //:i7 abv 18 Sep 98: ProSTEP TR9 r0501-ug.stp: algorithm of fixing missing seam changed // test whether the wire is opened on period of periodical surface @@ -1675,7 +1675,7 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam() B.Add ( S, w2 ); ShapeAnalysis::GetFaceUVBounds (TopoDS::Face(S), m2[0][0], m2[0][1], m2[1][0], m2[1][1]); - // For the case when surface is closed only in one direction it is necesary to check + // For the case when surface is closed only in one direction it is necessary to check // validity of orientation of the open wires in parametric space. // In case of U closed surface wire with minimal V coordinate should be directed in positive direction by U // In case of V closed surface wire with minimal U coordinate should be directed in negative direction by V @@ -2196,7 +2196,7 @@ Standard_Boolean ShapeFix_Face::FixLoopWire(TopTools_SequenceOfShape& aResWires) if(isDone && aResWires.Length() >1) { #ifdef OCCT_DEBUG - std::cout<<"Wire was splitted on "<Apply(myShape); - //Fixing of missing pcurves on new edges, if thay were inserted + //Fixing of missing pcurves on new edges, if they were inserted if (done) { if (myShape.IsNull()) return myShape; @@ -455,25 +455,25 @@ ShapeFix_FixSmallFace::ShapeFix_FixSmallFace() } } if (theFirstVer.IsNull() || theSecondVer.IsNull()) return theNewEdge; - //Cretate new edge + //Create new edge theBuilder.MakeEdge(theNewEdge); Standard_Real f, l, fp1, lp1/*, fp2, lp2*/; TopLoc_Location loc; Handle(Geom_Curve) the3dcurve; the3dcurve = BRep_Tool::Curve(E1, f, l); Handle(Geom2d_Curve) the2dcurve1, the2dcurve2, thenew1, thenew2; - if (!F1.IsNull()) + if (!F1.IsNull()) { the2dcurve1 = BRep_Tool::CurveOnSurface(E1, F1, fp1, lp1); - if(!the2dcurve1.IsNull() && fp1!=f && lp1!=l) GeomLib::SameRange(Precision::Confusion(), the2dcurve1, fp1, lp1, f, l, thenew1); + if(!the2dcurve1.IsNull() && fp1!=f && lp1!=l) GeomLib::SameRange(Precision::Confusion(), the2dcurve1, fp1, lp1, f, l, thenew1); } - - /* if (!F2.IsNull()) + + /* if (!F2.IsNull()) { the2dcurve2 = BRep_Tool::CurveOnSurface(E2, F2, fp2, lp2); - if(!the2dcurve2.IsNull()) GeomLib::SameRange(Precision::Confusion(), the2dcurve2, fp2, lp2, f, l, thenew2); + if(!the2dcurve2.IsNull()) GeomLib::SameRange(Precision::Confusion(), the2dcurve2, fp2, lp2, f, l, thenew2); }*/ - + Standard_Real maxdev; if ((BRep_Tool::Tolerance(theFirstVer))<=(BRep_Tool::Tolerance(theSecondVer))) maxdev = (BRep_Tool::Tolerance(theSecondVer)); diff --git a/src/ShapeFix/ShapeFix_IntersectionTool.cxx b/src/ShapeFix/ShapeFix_IntersectionTool.cxx index c7e500c0bd..e5f268724a 100644 --- a/src/ShapeFix/ShapeFix_IntersectionTool.cxx +++ b/src/ShapeFix/ShapeFix_IntersectionTool.cxx @@ -209,7 +209,7 @@ Standard_Boolean ShapeFix_IntersectionTool::CutEdge(const TopoDS_Edge &edge, if(tc->BasisCurve()->IsKind(STANDARD_TYPE(Geom2d_Line))) { BRep_Builder B; B.Range(edge,Min(pend,cut),Max(pend,cut)); - if( Abs(pend-lp)Replace(tmpShape,aSol); tmpShape = aSol; } @@ -485,7 +485,7 @@ Standard_Boolean ShapeFix_Solid::Perform(const Message_ProgressRange& theProgres TopTools_SequenceOfShape aSeqShells; TopTools_IndexedMapOfShape aMapSolids; if(CreateSolids(aResShape,aMapSolids)) { - SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG20"));// Orientaion of shell was corrected.. + SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG20"));// Orientation of shell was corrected.. if(aMapSolids.Extent() ==1) { TopoDS_Shape aResSol = aMapSolids.FindKey(1); if(aResShape.ShapeType() == TopAbs_SHELL && myCreateOpenSolidMode) { diff --git a/src/ShapeFix/ShapeFix_SplitTool.cxx b/src/ShapeFix/ShapeFix_SplitTool.cxx index 44b774c2e2..b50cdebdd0 100644 --- a/src/ShapeFix/ShapeFix_SplitTool.cxx +++ b/src/ShapeFix/ShapeFix_SplitTool.cxx @@ -217,7 +217,7 @@ Standard_Boolean ShapeFix_SplitTool::CutEdge(const TopoDS_Edge &edge, if(tc->BasisCurve()->IsKind(STANDARD_TYPE(Geom2d_Line))) { BRep_Builder B; B.Range(edge,Min(pend,cut),Max(pend,cut)); - if( Abs(pend-lp)0 ) { // supposed that edge is SP #ifdef OCCT_DEBUG - std::cout << "Edge going over singularity detected; splitted" << std::endl; + std::cout << "Edge going over singularity detected; split" << std::endl; #endif Standard_Boolean isFwd = ( E.Orientation() == TopAbs_FORWARD ); E.Orientation ( TopAbs_FORWARD ); @@ -1024,7 +1024,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection() boxes(i) = box; } } - + Standard_Boolean isFail = Standard_False, isDone = Standard_False; for(Standard_Integer num1 = 1; num1 < nb-1; num1++) { Standard_Integer fin = (num1 == 1 ? nb-1 : nb); @@ -1035,15 +1035,15 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection() isDone |= LastFixStatus ( ShapeExtend_DONE1 ); } } - + if(isFail) myStatusSelfIntersection |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL3 ); if(isDone) myStatusSelfIntersection |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 ); #ifdef OCCT_DEBUG if (StatusSelfIntersection (ShapeExtend_DONE5)) - std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non ajacent intersection fixed" << std::endl; -#endif + std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non adjacent intersection fixed" << std::endl; +#endif */ } @@ -2354,7 +2354,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersectingEdge (const Standard_Integer //======================================================================= //function : ComputeLocalDeviation -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Real ComputeLocalDeviation (const TopoDS_Edge &edge, const gp_Pnt &pint,const gp_Pnt &pnt, @@ -2657,7 +2657,7 @@ Standard_Boolean ShapeFix_Wire::FixIntersectingEdges (const Standard_Integer num //function : FixIntersectingEdges //purpose : //======================================================================= -//pdn 17.03.99 fixing non ajacent intersection by increasing tolerance of vertex +//pdn 17.03.99 fixing non adjacent intersection by increasing tolerance of vertex Standard_Boolean ShapeFix_Wire::FixIntersectingEdges (const Standard_Integer num1, const Standard_Integer num2) diff --git a/src/ShapeFix/ShapeFix_Wire.hxx b/src/ShapeFix/ShapeFix_Wire.hxx index a266bc218b..c3fa62a6c4 100644 --- a/src/ShapeFix/ShapeFix_Wire.hxx +++ b/src/ShapeFix/ShapeFix_Wire.hxx @@ -62,7 +62,7 @@ DEFINE_STANDARD_HANDLE(ShapeFix_Wire, ShapeFix_Root) //! curve to vertices, or recomputing curves of the edge) //! //! When fix can be made in more than one way (e.g., either -//! by increasing tolerance or shifting a vertex), it is choosen +//! by increasing tolerance or shifting a vertex), it is chosen //! according to the flags: //! ModifyTopologyMode - allows modification of the topology. //! This flag can be set when fixing a wire on @@ -338,12 +338,12 @@ public: //! - what is smaller), it should be removed //! It can be with no problem if its two vertices are the same //! Else, if lockvtx is False, it is removed and its end vertex - //! is put on the preceeding edge + //! is put on the preceding edge //! But if lockvtx is True, this edge must be kept ... Standard_EXPORT Standard_Boolean FixSmall (const Standard_Integer num, const Standard_Boolean lockvtx, const Standard_Real precsmall); - //! Fixes connected edges (preceeding and current) - //! Forces Vertices (end of preceeding-begin of current) to be + //! Fixes connected edges (preceding and current) + //! Forces Vertices (end of preceding-begin of current) to be //! the same one //! Tests with starting preci or, if given greater, //! If is -1 then MaxTolerance() is taken. @@ -430,7 +430,7 @@ public: Standard_Boolean StatusNotches (const ShapeExtend_Status status) const; - //! Querying the status of perfomed API fixing procedures + //! Querying the status of performed API fixing procedures //! Each Status..() methods gives information about the last call to //! the corresponding Fix..() method of API level: //! OK : no problems detected; nothing done diff --git a/src/ShapeFix/ShapeFix_Wire_1.cxx b/src/ShapeFix/ShapeFix_Wire_1.cxx index b07e969260..c8fb6b3e8a 100644 --- a/src/ShapeFix/ShapeFix_Wire_1.cxx +++ b/src/ShapeFix/ShapeFix_Wire_1.cxx @@ -293,7 +293,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, if (convert) { - // Check that gap satisfies the precision - in this case no convertation produced + // Check that gap satisfies the precision - in this case no conversion produced if (cpnt1.Distance(vpnt) < preci && cpnt2.Distance(vpnt) < preci) return Standard_False; @@ -499,7 +499,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, u2 = Proj.Parameter(index); } } - // Ajust parameters on periodic curves + // Adjust parameters on periodic curves u1 = AdjustOnPeriodic3d(c1,reversed1,first1,last1,u1); u2 = AdjustOnPeriodic3d(c2,!reversed2,first2,last2,u2); // Check points to satisfy distance criterium @@ -549,7 +549,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, for (Standard_Integer i=1; i<=Extr.NbExtrema(); i++) { Extr.Parameters(i,uu1,uu2); - // Ajust parameters on periodic curves + // Adjust parameters on periodic curves uu1 = AdjustOnPeriodic3d(c1,reversed1,first1,last1,uu1); uu2 = AdjustOnPeriodic3d(c2,!reversed2,first2,last2,uu2); pp1 = c1->Value(uu1); pp2 = c2->Value(uu2); @@ -582,7 +582,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, Extr.Parameters(index1,uu1,uu2); } else Extr.LowerDistanceParameters(uu1,uu2); - // Ajust parameters on periodic curves + // Adjust parameters on periodic curves uu1 = AdjustOnPeriodic3d(c1,reversed1,first1,last1,uu1); uu2 = AdjustOnPeriodic3d(c2,!reversed2,first2,last2,uu2); // Check points to satisfy distance criterium @@ -602,7 +602,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, } } } - + try { OCC_CATCH_SIGNALS @@ -648,7 +648,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, } } } - + if (done1 || done2) { @@ -701,7 +701,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, Context()->Replace(aOldV,anewV); } } - + Context()->Replace(E1,newE1); sbwd->Set(newE1,n1); } @@ -717,7 +717,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, SFST.SetTolerance(newE2,::Precision::Confusion(),TopAbs_EDGE); B.SameRange(newE2,Standard_False); // B.SameParameter(newE2,Standard_False); - + //To keep NM vertices belonging initial edges TopoDS_Iterator aItv(E2,Standard_False); for( ; aItv.More(); aItv.Next()) { @@ -744,7 +744,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c, //======================================================================= //function : FixGap2d -//purpose : +//purpose : //======================================================================= static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc, @@ -819,19 +819,19 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc, Standard_Real first1, last1, first2, last2; if (reversed1) { - first1 = clast1; last1 = cfirst1; + first1 = clast1; last1 = cfirst1; } - else + else { - first1 = cfirst1; last1 = clast1; + first1 = cfirst1; last1 = clast1; } - if (reversed2) + if (reversed2) { - first2 = clast2; last2 = cfirst2; + first2 = clast2; last2 = cfirst2; } - else + else { - first2 = cfirst2; last2 = clast2; + first2 = cfirst2; last2 = clast2; } Handle(Geom2d_Curve) pc1 = PC1, pc2 = PC2; @@ -840,14 +840,14 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc, Standard_Boolean basic = Standard_False; Standard_Boolean trimmed1 = Standard_False, offset1 = Standard_False; Standard_Real offval1 = 0.; - while (!basic) + while (!basic) { - if (pc1->IsKind(STANDARD_TYPE(Geom2d_TrimmedCurve))) + if (pc1->IsKind(STANDARD_TYPE(Geom2d_TrimmedCurve))) { pc1 = Handle(Geom2d_TrimmedCurve)::DownCast(pc1)->BasisCurve(); trimmed1 = Standard_True; } - else if (pc1->IsKind(STANDARD_TYPE(Geom2d_OffsetCurve))) + else if (pc1->IsKind(STANDARD_TYPE(Geom2d_OffsetCurve))) { Handle(Geom2d_OffsetCurve) oc = Handle(Geom2d_OffsetCurve)::DownCast(pc1); pc1 = oc->BasisCurve(); @@ -1150,7 +1150,7 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc, if (flag1==1) IP = IS.FirstPoint(); else IP = IS.LastPoint(); } - // Ajust parameters on periodic curves + // Adjust parameters on periodic curves Standard_Real u1 = AdjustOnPeriodic2d(pc1,reversed1,first1,last1, IP.ParamOnFirst()); Standard_Real u2 = AdjustOnPeriodic2d(pc2,!reversed2,first2,last2, @@ -1177,7 +1177,7 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc, { Standard_Real u1, u2; Extr.LowerDistanceParameters(u1,u2); - // Ajust parameters on periodic curves + // Adjust parameters on periodic curves u1 = AdjustOnPeriodic2d(pc1,reversed1,first1,last1,u1); u2 = AdjustOnPeriodic2d(pc2,!reversed2,first2,last2,u2); // Check points to satisfy distance criterium @@ -1232,7 +1232,7 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc, u2 = Proj.Parameter(index); } } - // Ajust parameters on periodic curves + // Adjust parameters on periodic curves u1 = AdjustOnPeriodic2d(pc1,reversed1,first1,last1,u1); u2 = AdjustOnPeriodic2d(pc2,!reversed2,first2,last2,u2); // Process special case of projection @@ -1283,7 +1283,7 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc, if (cpnt1.Distance(ipnt2) ::Precision::PConfusion()) diff --git a/src/ShapeFix/ShapeFix_Wireframe.cxx b/src/ShapeFix/ShapeFix_Wireframe.cxx index 0b1bdf0057..465c5f8941 100644 --- a/src/ShapeFix/ShapeFix_Wireframe.cxx +++ b/src/ShapeFix/ShapeFix_Wireframe.cxx @@ -541,10 +541,10 @@ Standard_Boolean ShapeFix_Wireframe::CheckSmallEdges(TopTools_MapOfShape& theSma if (theEdgeList.Extent()) theFaceWithSmall.Bind(facet,theEdgeList); } - //======================================================================== - // Author : enk - // Purpose: Analizing of shape for small edges , if edge don't lie on face - //======================================================================== + //========================================================================= + // Author : enk + // Purpose: Analyzing of shape for small edges, if edge doesn't lie on face + //========================================================================= for (TopExp_Explorer expw1(myShape,TopAbs_WIRE,TopAbs_FACE); expw1.More(); expw1.Next()) { SAW.SetPrecision(Precision()); @@ -1021,7 +1021,7 @@ Standard_Boolean ShapeFix_Wireframe::MergeSmallEdges(TopTools_MapOfShape& theSma } else { - //gka protection aginst removing circles + //gka protection against removing circles TopoDS_Edge ed = (take_next ? edge1 : edge2); ShapeAnalysis_Edge sae; Handle(Geom_Curve) c3d; @@ -1469,7 +1469,7 @@ Standard_Boolean ShapeFix_Wireframe::MergeSmallEdges(TopTools_MapOfShape& theSma } else { - //gka protection aginst removing circles + //gka protection against removing circles TopoDS_Edge ed = (take_next ? edge1 : edge2); ShapeAnalysis_Edge sae; Handle(Geom_Curve) c3d; diff --git a/src/ShapeProcess/ShapeProcess_OperLibrary.hxx b/src/ShapeProcess/ShapeProcess_OperLibrary.hxx index 108f062bbd..c086a7675f 100644 --- a/src/ShapeProcess/ShapeProcess_OperLibrary.hxx +++ b/src/ShapeProcess/ShapeProcess_OperLibrary.hxx @@ -57,7 +57,7 @@ public: //! Applies BRepTools_Modification to a shape, //! taking into account sharing of components of compounds. - //! if theMutableInput vat is set to true then imput shape S + //! if theMutableInput vat is set to true then input shape S //! can be modified during the modification process. Standard_EXPORT static TopoDS_Shape ApplyModifier (const TopoDS_Shape& S, const Handle(ShapeProcess_ShapeContext)& context, diff --git a/src/ShapeUpgrade/ShapeUpgrade.hxx b/src/ShapeUpgrade/ShapeUpgrade.hxx index 5459e92dbd..71bb627b9c 100644 --- a/src/ShapeUpgrade/ShapeUpgrade.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade.hxx @@ -60,49 +60,34 @@ class ShapeUpgrade_RemoveInternalWires; class ShapeUpgrade_UnifySameDomain; -//! This package provides tools -//! for splitting and converting shapes by some criteria. It -//! provides modifications of the kind when one topological -//! object can be converted or splitted to several ones. In -//! particular this package contains high level API classes which perform: +//! This package provides tools for splitting and converting shapes by some criteria. +//! It provides modifications of the kind when one topological +//! object can be converted or split in to several ones. +//! In particular this package contains high level API classes which perform: //! converting geometry of shapes up to given continuity, //! splitting revolutions by U to segments less than given value, -//! converting to beziers, -//! splitting closed faces. +//! converting to beziers, splitting closed faces. class ShapeUpgrade { public: DEFINE_STANDARD_ALLOC - //! Unifies same domain faces and edges of specified shape - Standard_EXPORT static Standard_Boolean C0BSplineToSequenceOfC1BSplineCurve (const Handle(Geom_BSplineCurve)& BS, Handle(TColGeom_HSequenceOfBoundedCurve)& seqBS); - + Standard_EXPORT static Standard_Boolean C0BSplineToSequenceOfC1BSplineCurve (const Handle(Geom_BSplineCurve)& BS, + Handle(TColGeom_HSequenceOfBoundedCurve)& seqBS); + //! Converts C0 B-Spline curve into sequence of C1 B-Spline curves. - //! This method splits B-Spline at the knots with multiplicities - //! equal to degree, i.e. unlike method - //! GeomConvert::C0BSplineToArrayOfC1BSplineCurve this one does not - //! use any tolerance and therefore does not change the geometry of - //! B-Spline. - //! Returns True if C0 B-Spline was successfully splitted, else - //! returns False (if BS is C1 B-Spline). - Standard_EXPORT static Standard_Boolean C0BSplineToSequenceOfC1BSplineCurve (const Handle(Geom2d_BSplineCurve)& BS, Handle(TColGeom2d_HSequenceOfBoundedCurve)& seqBS); - - - - -protected: - - - - + //! This method splits B-Spline at the knots with multiplicities equal to degree, + //! i.e. unlike method GeomConvert::C0BSplineToArrayOfC1BSplineCurve + //! this one does not use any tolerance and therefore does not change the geometry of B-Spline. + //! Returns True if C0 B-Spline was successfully split, + //! else returns False (if BS is C1 B-Spline). + Standard_EXPORT static Standard_Boolean C0BSplineToSequenceOfC1BSplineCurve (const Handle(Geom2d_BSplineCurve)& BS, + Handle(TColGeom2d_HSequenceOfBoundedCurve)& seqBS); private: - - - friend class ShapeUpgrade_Tool; friend class ShapeUpgrade_EdgeDivide; friend class ShapeUpgrade_ClosedEdgeDivide; @@ -138,10 +123,4 @@ friend class ShapeUpgrade_UnifySameDomain; }; - - - - - - #endif // _ShapeUpgrade_HeaderFile diff --git a/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.cxx b/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.cxx index a411d69737..07b335441e 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.cxx @@ -180,7 +180,7 @@ Standard_Boolean ShapeUpgrade_ClosedFaceDivide::SplitSurface() isUSplit = Standard_True; } #ifdef OCCT_DEBUG - else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << std::endl; + else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not split" << std::endl; #endif } } @@ -201,7 +201,7 @@ Standard_Boolean ShapeUpgrade_ClosedFaceDivide::SplitSurface() isUSplit = Standard_False; } #ifdef OCCT_DEBUG - else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << std::endl; + else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not split" << std::endl; #endif } } diff --git a/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.hxx b/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.hxx index 1b73d0af8c..db34cc82dd 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.hxx @@ -37,7 +37,6 @@ class ShapeUpgrade_ClosedFaceDivide : public ShapeUpgrade_FaceDivide public: - //! Creates empty constructor. Standard_EXPORT ShapeUpgrade_ClosedFaceDivide(); @@ -48,35 +47,20 @@ public: //! from source face. Standard_EXPORT virtual Standard_Boolean SplitSurface() Standard_OVERRIDE; - //! Sets the number of cutting lines by which closed face - //! will be splitted. The resulting faces will be num+1. + //! Sets the number of cutting lines by which closed face will be split. + //! The resulting faces will be num+1. Standard_EXPORT void SetNbSplitPoints (const Standard_Integer num); //! Returns the number of splitting points Standard_EXPORT Standard_Integer GetNbSplitPoints() const; - - DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_ClosedFaceDivide,ShapeUpgrade_FaceDivide) -protected: - - - - private: - Standard_Integer myNbSplit; - }; - - - - - - #endif // _ShapeUpgrade_ClosedFaceDivide_HeaderFile diff --git a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx index 7e2f45bed9..ee833c04c4 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx @@ -134,7 +134,7 @@ void ShapeUpgrade_ConvertCurve2dToBezier::Compute() Handle(Geom2d_BSplineCurve) aBSpline2d; Standard_Real Shift = 0.; if(myCurve->IsKind(STANDARD_TYPE(Geom2d_Conic))) { - Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(myCurve,First,Last); //protection agains parabols ets + Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(myCurve,First,Last); //protection against parabols ets Geom2dConvert_ApproxCurve approx (tcurve, Precision::Approximation(), GeomAbs_C1, 100, 6 ); if ( approx.HasResult() ) diff --git a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.hxx b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.hxx index a635c9a879..80e36d2f7e 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.hxx @@ -35,35 +35,24 @@ class ShapeUpgrade_ConvertCurve2dToBezier : public ShapeUpgrade_SplitCurve2d public: - //! Empty constructor. Standard_EXPORT ShapeUpgrade_ConvertCurve2dToBezier(); - + //! Converts curve into a list of beziers, and stores the //! splitting parameters on original curve. Standard_EXPORT virtual void Compute() Standard_OVERRIDE; - + //! Splits a list of beziers computed by Compute method according //! the split values and splitting parameters. Standard_EXPORT virtual void Build (const Standard_Boolean Segment) Standard_OVERRIDE; - - //! Returns the list of splitted parameters in original curve - //! parametrisation. + + //! Returns the list of split parameters in original curve parametrisation. Standard_EXPORT Handle(TColStd_HSequenceOfReal) SplitParams() const; - - - DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_ConvertCurve2dToBezier,ShapeUpgrade_SplitCurve2d) -protected: - - - - private: - //! Returns the list of bezier curves correspondent to original //! curve. Standard_EXPORT Handle(TColGeom2d_HSequenceOfCurve) Segments() const; @@ -71,13 +60,6 @@ private: Handle(TColGeom2d_HSequenceOfCurve) mySegments; Handle(TColStd_HSequenceOfReal) mySplitParams; - }; - - - - - - #endif // _ShapeUpgrade_ConvertCurve2dToBezier_HeaderFile diff --git a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.cxx b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.cxx index 802e1d557a..ff37b00514 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.cxx @@ -117,7 +117,7 @@ void ShapeUpgrade_ConvertCurve3dToBezier::Compute() Handle(Geom_BSplineCurve) aBSpline; Standard_Real Shift = 0.; if(myCurve->IsKind(STANDARD_TYPE(Geom_Conic))) { - Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(myCurve,First,Last); //protection agains parabols ets + Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(myCurve,First,Last); //protection against parabols ets GeomConvert_ApproxCurve approx (tcurve, Precision::Approximation(), GeomAbs_C1, 100, 6 ); if ( approx.HasResult() ) diff --git a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.hxx b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.hxx index ff5da44eac..55946c969f 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.hxx @@ -35,7 +35,6 @@ class ShapeUpgrade_ConvertCurve3dToBezier : public ShapeUpgrade_SplitCurve3d public: - //! Empty constructor Standard_EXPORT ShapeUpgrade_ConvertCurve3dToBezier(); @@ -65,23 +64,13 @@ public: //! the split values and splitting parameters. Standard_EXPORT virtual void Build (const Standard_Boolean Segment) Standard_OVERRIDE; - //! Returns the list of splitted parameters in original curve - //! parametrisation. + //! Returns the list of split parameters in original curve parametrisation. Standard_EXPORT Handle(TColStd_HSequenceOfReal) SplitParams() const; - - - DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_ConvertCurve3dToBezier,ShapeUpgrade_SplitCurve3d) -protected: - - - - private: - //! Returns the list of bezier curves correspondent to original //! curve. Standard_EXPORT Handle(TColGeom_HSequenceOfCurve) Segments() const; @@ -92,14 +81,8 @@ private: Standard_Boolean myCircleMode; Standard_Boolean myConicMode; - }; - #include - - - - #endif // _ShapeUpgrade_ConvertCurve3dToBezier_HeaderFile diff --git a/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.cxx b/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.cxx index 9e6b94b939..15e7093602 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.cxx @@ -150,7 +150,7 @@ Standard_Boolean ShapeUpgrade_FaceDivide::SplitSurface () SplitSurf->Init ( surf, Uf, Ul, Vf, Vl ); SplitSurf->Perform(mySegmentMode); - // If surface was neither splitted nor modified, do nothing + // If surface was neither split nor modified, do nothing if ( ! SplitSurf->Status ( ShapeExtend_DONE ) ) return Standard_False; // if surface was modified, force copying all vertices (and edges as consequence) diff --git a/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.hxx b/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.hxx index b03577badd..5653bfa294 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade_FaceDivide.hxx @@ -88,11 +88,11 @@ public: //! Queries the status of last call to Perform //! OK : no splitting was done (or no call to Perform) - //! DONE1: some edges were splitted - //! DONE2: surface was splitted + //! DONE1: some edges were split + //! DONE2: surface was split //! DONE3: surface was modified without splitting //! FAIL1: some fails encountered during splitting wires - //! FAIL2: face cannot be splitted + //! FAIL2: face cannot be split Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const; //! Sets the tool for splitting surfaces. diff --git a/src/ShapeUpgrade/ShapeUpgrade_RemoveLocations.hxx b/src/ShapeUpgrade/ShapeUpgrade_RemoveLocations.hxx index 6f1aa863f6..5a75b6a03e 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_RemoveLocations.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade_RemoveLocations.hxx @@ -37,13 +37,13 @@ class ShapeUpgrade_RemoveLocations : public Standard_Transient public: - //! Empy constructor + //! Empty constructor Standard_EXPORT ShapeUpgrade_RemoveLocations(); //! Removes all location correspodingly to RemoveLevel. Standard_EXPORT Standard_Boolean Remove (const TopoDS_Shape& theShape); - //! Returns shape with removed locatins. + //! Returns shape with removed locations. TopoDS_Shape GetResult() const; //! sets level starting with that location will be removed, diff --git a/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.hxx b/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.hxx index 7298495969..b4b4f85e88 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.hxx @@ -97,9 +97,9 @@ public: //! Queries the status of last call to Perform //! OK : no splitting was done (or no call to Perform) - //! DONE1: some edges were splitted - //! DONE2: surface was splitted - //! FAIL1: some errors occured + //! DONE1: some edges were split + //! DONE2: surface was split + //! FAIL1: some errors occurred Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const; //! Sets the tool for splitting faces. diff --git a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx index 8900e21db3..a8da8a2158 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx @@ -177,7 +177,7 @@ void ShapeUpgrade_SplitCurve3dContinuity::Compute() // if (ShapeUpgrade::Debug()) std::cout<<". Correction at Knot "<LastUKnotIndex()-1; iknot--; diff --git a/src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx b/src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx index cec3dbd159..92acbda395 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx @@ -116,7 +116,7 @@ static Standard_Real TrueValueOfOffset(const Standard_Real theValue, //======================================================================= //function : UpdateBoundaries -//purpose : auxilary +//purpose : auxiliary //======================================================================= static void UpdateBoundaries(const Handle(Geom2d_Curve)& thePCurve, const Standard_Real theFirst, @@ -524,7 +524,7 @@ static Standard_Boolean FindClosestPoints(const TopoDS_Edge& theEdge1, //======================================================================= //function : ReconstructMissedSeam -//purpose : auxilary +//purpose : auxiliary //======================================================================= static void ReconstructMissedSeam(const TopTools_SequenceOfShape& theEdges, const TopTools_SequenceOfShape& theRemovedEdges, @@ -740,7 +740,7 @@ static void ReconstructMissedSeam(const TopTools_SequenceOfShape& theEdges, //======================================================================= //function : SameSurf -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean SameSurf(const Handle(Geom_Surface)& theS1, const Handle(Geom_Surface)& theS2) { @@ -876,7 +876,7 @@ static Standard_Boolean SameSurf(const Handle(Geom_Surface)& theS1, const Handle } //======================================================================= //function : TransformPCurves -//purpose : auxilary +//purpose : auxiliary //======================================================================= static void TransformPCurves(const TopoDS_Face& theRefFace, const TopoDS_Face& theFace, @@ -1004,7 +1004,7 @@ static void TransformPCurves(const TopoDS_Face& theRefFace, //======================================================================= //function : AddPCurves -//purpose : auxilary +//purpose : auxiliary //======================================================================= static void AddPCurves(const TopTools_SequenceOfShape& theFaces, const TopoDS_Face& theRefFace, @@ -1029,7 +1029,7 @@ static void AddPCurves(const TopTools_SequenceOfShape& theFaces, //======================================================================= //function : AddOrdinaryEdges -//purpose : auxilary +//purpose : auxiliary //======================================================================= // adds edges from the shape to the sequence // seams and equal edges are dropped @@ -1081,7 +1081,7 @@ static Standard_Boolean AddOrdinaryEdges(TopTools_SequenceOfShape& edges, //======================================================================= //function : getCylinder -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Standard_Boolean getCylinder(Handle(Geom_Surface)& theInSurface, gp_Cylinder& theOutCylinder) @@ -1140,7 +1140,7 @@ static Standard_Boolean getCylinder(Handle(Geom_Surface)& theInSurface, //======================================================================= //function : ClearRts -//purpose : auxilary +//purpose : auxiliary //======================================================================= static Handle(Geom_Surface) ClearRts(const Handle(Geom_Surface)& aSurface) { @@ -1396,7 +1396,7 @@ static TopoDS_Edge GlueEdgesWithPCurves(const TopTools_SequenceOfShape& aChain, PrevEdge = anEdge; } Handle(TColGeom_HArray1OfBSplineCurve) concatcurve; //array of the concatenated curves - Handle(TColStd_HArray1OfInteger) ArrayOfIndices; //array of the remining Vertex + Handle(TColStd_HArray1OfInteger) ArrayOfIndices; //array of the remaining Vertex Standard_Boolean closed_flag = Standard_False; GeomConvert::ConcatC1(tab_c3d, tabtolvertex, @@ -1443,7 +1443,7 @@ static TopoDS_Edge GlueEdgesWithPCurves(const TopTools_SequenceOfShape& aChain, PrevEdge = anEdge; } Handle(TColGeom2d_HArray1OfBSplineCurve) concatc2d; //array of the concatenated curves - Handle(TColStd_HArray1OfInteger) ArrayOfInd2d; //array of the remining Vertex + Handle(TColStd_HArray1OfInteger) ArrayOfInd2d; //array of the remaining Vertex closed_flag = Standard_False; Geom2dConvert::ConcatC1(tab_c2d, tabtolvertex, @@ -1696,7 +1696,7 @@ void ShapeUpgrade_UnifySameDomain::UnionPCurves(const TopTools_SequenceOfShape& } Handle(TColGeom2d_HArray1OfBSplineCurve) concatc2d; //array of the concatenated curves - Handle(TColStd_HArray1OfInteger) ArrayOfInd2d; //array of the remining Vertex + Handle(TColStd_HArray1OfInteger) ArrayOfInd2d; //array of the remaining Vertex Standard_Boolean aClosedFlag = Standard_False; Geom2dConvert::ConcatC1(tab_c2d, tabtolvertex, @@ -2059,7 +2059,7 @@ Standard_Boolean ShapeUpgrade_UnifySameDomain::MergeSubSeq(const TopTools_Sequen } if(NeedUnion) { #ifdef OCCT_DEBUG - std::cout<<"can not make analitical union => make approximation"< make approximation"< CoordTol && - Abs(DiffU - Uperiod) > CoordTol) //may be is is a deg.vertex + Abs(DiffU - Uperiod) > CoordTol) //may be it is a deg.vertex continue; if (Vperiod != 0. && DiffV > CoordTol && - Abs(DiffV - Vperiod) > CoordTol) //may be is is a deg.vertex + Abs(DiffV - Vperiod) > CoordTol) //may be it is a deg.vertex continue; //Check: may be and are on Period from each other diff --git a/src/ShapeUpgrade/ShapeUpgrade_WireDivide.hxx b/src/ShapeUpgrade/ShapeUpgrade_WireDivide.hxx index 6571674b5f..6a200fc314 100644 --- a/src/ShapeUpgrade/ShapeUpgrade_WireDivide.hxx +++ b/src/ShapeUpgrade/ShapeUpgrade_WireDivide.hxx @@ -48,8 +48,8 @@ DEFINE_STANDARD_HANDLE(ShapeUpgrade_WireDivide, ShapeUpgrade_Tool) //! Splits 3D curve and pcurve(s) of the edge on the face. //! Other pcurves which may be associated with the edge are simply //! copied. -//! If 3D curve is splitted then pcurve on the face is splitted as -//! well, and wice-versa. +//! If 3D curve is split then pcurve on the face is split as +//! well, and vice-versa. //! Input shape is not modified. //! The modifications made are recorded in external context //! (ShapeBuild_ReShape). This tool is applied to all edges @@ -98,8 +98,8 @@ public: Standard_EXPORT const TopoDS_Wire& Wire() const; //! Queries status of last call to Perform() - //! OK - no edges were splitted, wire left untouched - //! DONE1 - some edges were splitted + //! OK - no edges were split, wire left untouched + //! DONE1 - some edges were split //! FAIL1 - some edges have no 3d curve (skipped) //! FAIL2 - some edges have no pcurve (skipped) Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const; diff --git a/src/Standard/Standard.cxx b/src/Standard/Standard.cxx index 78b25e1cb7..bc601165c6 100644 --- a/src/Standard/Standard.cxx +++ b/src/Standard/Standard.cxx @@ -208,7 +208,7 @@ Standard_MMgrFactory::~Standard_MMgrFactory() // WNT MSVC++) to put destructing function in code segment that is called // after destructors of other (even static) objects. However, this is not // done by the moment since it is compiler-dependent and there is no guarantee -// thatsome other object calling memory manager is not placed also in that segment... +// that some other object calling memory manager is not placed also in that segment... // // Note that C runtime function atexit() could not help in this problem // since its behaviour is the same as for destructors of static objects diff --git a/src/Standard/Standard_ArrayStreamBuffer.hxx b/src/Standard/Standard_ArrayStreamBuffer.hxx index e472446e19..559f45473d 100644 --- a/src/Standard/Standard_ArrayStreamBuffer.hxx +++ b/src/Standard/Standard_ArrayStreamBuffer.hxx @@ -50,7 +50,7 @@ public: //! Main constructor. //! Passed pointer is stored as is (memory is NOT copied nor released with destructor). - //! @param theBegin pointer to the beggining of pre-allocated buffer + //! @param theBegin pointer to the beginning of pre-allocated buffer //! @param theSize length of pre-allocated buffer Standard_EXPORT Standard_ArrayStreamBuffer (const char* theBegin, const size_t theSize); @@ -60,7 +60,7 @@ public: //! (Re)-initialize the stream. //! Passed pointer is stored as is (memory is NOT copied nor released with destructor). - //! @param theBegin pointer to the beggining of pre-allocated buffer + //! @param theBegin pointer to the beginning of pre-allocated buffer //! @param theSize length of pre-allocated buffer Standard_EXPORT virtual void Init (const char* theBegin, const size_t theSize); diff --git a/src/Standard/Standard_Atomic.hxx b/src/Standard/Standard_Atomic.hxx index f220fbadb1..6435010140 100644 --- a/src/Standard/Standard_Atomic.hxx +++ b/src/Standard/Standard_Atomic.hxx @@ -21,7 +21,7 @@ //! By the moment, only operations necessary for reference counter //! in Standard_Transient objects are implemented. //! -//! This is preffered to use fixed size types "int32_t" / "int64_t" for +//! This is preferred to use fixed size types "int32_t" / "int64_t" for //! correct function declarations however we leave "int" assuming it is 32bits for now. #ifndef _Standard_Atomic_HeaderFile diff --git a/src/Standard/Standard_CLocaleSentry.hxx b/src/Standard/Standard_CLocaleSentry.hxx index 3b3beba761..004785382a 100755 --- a/src/Standard/Standard_CLocaleSentry.hxx +++ b/src/Standard/Standard_CLocaleSentry.hxx @@ -48,7 +48,7 @@ //! Thus following calls to sprintf, atoi and other functions will use "C" locale. //! Destructor of this class will return original locale. //! -//! Notice that this functionality is platfrom dependent and intended only to workaround alien code +//! Notice that this functionality is platform dependent and intended only to workaround alien code //! that doesn't setup locale correctly. //! //! Internally you should prefer more portable C++ locale interfaces diff --git a/src/Standard/Standard_CString.cxx b/src/Standard/Standard_CString.cxx index 9f5b4e39f9..df696d77e1 100755 --- a/src/Standard/Standard_CString.cxx +++ b/src/Standard/Standard_CString.cxx @@ -62,7 +62,7 @@ Standard_Integer HashCodes (const Standard_CString theString, const Standard_Int //====================================================================== #ifdef __APPLE__ - // There are a lot of *_l functions availalbe on Mac OS X - we use them + // There are a lot of *_l functions available on Mac OS X - we use them #define SAVE_TL() #elif defined(_MSC_VER) // MSVCRT has equivalents with slightly different syntax diff --git a/src/Standard/Standard_Character.hxx b/src/Standard/Standard_Character.hxx index b64357935f..3d85fe6cbd 100644 --- a/src/Standard/Standard_Character.hxx +++ b/src/Standard/Standard_Character.hxx @@ -13,9 +13,8 @@ // commercial license or contractual agreement. //============================================================================ -//==== Titre: Standard_Character.hxx -//==== Role : The header file of primitve type "Character" from package -//==== "Standard" +//==== Title: Standard_Character.hxx +//==== Role : The header file of primitive type "Character" from package "Standard" //==== //==== Implementation: This is a primitive type implemented as typedef //==== typedef char Standard_Character diff --git a/src/Standard/Standard_Dump.hxx b/src/Standard/Standard_Dump.hxx index 6bce994c64..eec5c9dc92 100644 --- a/src/Standard/Standard_Dump.hxx +++ b/src/Standard/Standard_Dump.hxx @@ -237,7 +237,7 @@ //! Append into output value: "Name": { field dumped values } //! It computes Dump of the parent. The expected field is a parent class name to call ClassName::Dump. //! Use this macro for parent of the current class. -//! The macros is recursive. Recursive is stoped when the depth value becomes equal to zero. +//! The macros is recursive. Recursive is stopped when the depth value becomes equal to zero. //! Depth = -1 is the default value, dump here is unlimited. #define OCCT_DUMP_BASE_CLASS(theOStream, theDepth, theField) \ { \ diff --git a/src/Standard/Standard_ErrorHandler.cxx b/src/Standard/Standard_ErrorHandler.cxx index 7129919c4a..3fc6c189d9 100644 --- a/src/Standard/Standard_ErrorHandler.cxx +++ b/src/Standard/Standard_ErrorHandler.cxx @@ -13,7 +13,7 @@ // commercial license or contractual agreement. //============================================================================ -//==== Titre: Standard_ErrorHandler.cxx +//==== Title: Standard_ErrorHandler.cxx //==== Role : class "Standard_ErrorHandler" implementation. //============================================================================ #include diff --git a/src/Standard/Standard_ExtCharacter.hxx b/src/Standard/Standard_ExtCharacter.hxx index 4a54ce0324..926bb9e0b7 100644 --- a/src/Standard/Standard_ExtCharacter.hxx +++ b/src/Standard/Standard_ExtCharacter.hxx @@ -13,9 +13,8 @@ // commercial license or contractual agreement. //============================================================================ -//==== Titre: Standard_ExtCharacter.hxx -//==== Role : The headr file of primitve type "ExtCharacter" from package -//==== "Standard" +//==== Title: Standard_ExtCharacter.hxx +//==== Role : The headr file of primitive type "ExtCharacter" from package "Standard" //==== //==== Implementation: This is a primitive type implemented with typedef //==== Excepting "Unicod encoding" diff --git a/src/Standard/Standard_ExtString.hxx b/src/Standard/Standard_ExtString.hxx index fb4e83484b..2953de8912 100644 --- a/src/Standard/Standard_ExtString.hxx +++ b/src/Standard/Standard_ExtString.hxx @@ -13,7 +13,7 @@ // commercial license or contractual agreement. //============================================================================ -//==== Titre: Standard_ExtString.hxx +//==== Title: Standard_ExtString.hxx //==== //==== Implementation: This is a primitive type implementadef with typedef //==== typedef short* Standard_ExtString; diff --git a/src/Standard/Standard_MMgrOpt.cxx b/src/Standard/Standard_MMgrOpt.cxx index 81889b4b26..9ba6935472 100644 --- a/src/Standard/Standard_MMgrOpt.cxx +++ b/src/Standard/Standard_MMgrOpt.cxx @@ -120,10 +120,10 @@ extern "C" int getpagesize() ; /* In the allocated block, first bytes are used for storing of memory manager's data. (size of block). The minimal size of these data is sizeof(int). - The memory allocated in system usually alligned by 16 bytes.Tthe aligment of the - data area in the memory block is shfted on BLOCK_SHIFT*sizeof(Standard_Size) + The memory allocated in system usually aligned by 16 bytes. The alignment of the + data area in the memory block is shfted on BLOCK_SHIFT*sizeof(Standard_Size) bytes. - It is OK for WNT, SUN and Linux systems, but on SGI aligment should be 8 bytes. + It is OK for WNT, SUN and Linux systems, but on SGI alignment should be 8 bytes. So, BLOCK_SHIFT is formed as macro for support on other possible platforms. */ diff --git a/src/Standard/Standard_Macro.hxx b/src/Standard/Standard_Macro.hxx index b510367c1e..c9bcda0810 100644 --- a/src/Standard/Standard_Macro.hxx +++ b/src/Standard/Standard_Macro.hxx @@ -21,7 +21,7 @@ # define _Standard_Macro_HeaderFile //! @def Standard_OVERRIDE -//! Should be used in declarations of virtual methods overriden in the +//! Should be used in declarations of virtual methods overridden in the //! derived classes, to cause compilation error in the case if that virtual //! function disappears or changes its signature in the base class. //! diff --git a/src/Standard/Standard_Mutex.hxx b/src/Standard/Standard_Mutex.hxx index cd1ec788a6..dfdfb6a289 100644 --- a/src/Standard/Standard_Mutex.hxx +++ b/src/Standard/Standard_Mutex.hxx @@ -32,14 +32,14 @@ * @brief Mutex: a class to synchronize access to shared data. * * This is simple encapsulation of tools provided by the - * operating system to syncronize access to shared data + * operating system to synchronize access to shared data * from threads within one process. * * Current implementation is very simple and straightforward; - * it is just a wrapper around POSIX pthread librray on UNIX/Linux, + * it is just a wrapper around POSIX pthread library on UNIX/Linux, * and CRITICAL_SECTIONs on Windows NT. It does not provide any - * advanced functionaly such as recursive calls to the same mutex from - * within one thread (such call will froze the execution). + * advanced functionality such as recursive calls to the same mutex from + * within one thread (such call will freeze the execution). * * Note that all the methods of that class are made inline, in order * to keep maximal performance. This means that a library using the mutex diff --git a/src/Standard/Standard_Real.cxx b/src/Standard/Standard_Real.cxx index ce39497810..6139c5e2fe 100644 --- a/src/Standard/Standard_Real.cxx +++ b/src/Standard/Standard_Real.cxx @@ -144,7 +144,7 @@ Standard_Real Sign(const Standard_Real a, const Standard_Real b) } //========================================================================== -//===== The special routines for "IEEE" and differents hardwares =========== +//===== The special routines for "IEEE" and different hardware ============= //========================================================================== union RealMap { double real; @@ -153,17 +153,17 @@ union RealMap { //-------------------------------------------------------------------- // HardwareHighBitsOfDouble : -// Returns 1 if the low bits are at end. (exemple: decmips and ALPHA ) -// Returns 0 if the low bits are at begin. (exemple: sun, sgi, ...) +// Returns 1 if the low bits are at end. (example: decmips and ALPHA ) +// Returns 0 if the low bits are at begin. (example: sun, sgi, ...) //-------------------------------------------------------------------- static int HardwareHighBitsOfDouble() { RealMap MaxDouble; MaxDouble.real = DBL_MAX; //========================================================= - // reperesentation of the max double in IEEE is - // "7fef ffff ffff ffff" for the big indiens. - // "ffff ffff 7fef ffff" for the littel indiens. + // representation of the max double in IEEE is + // "7fef ffff ffff ffff" for the big endians. + // "ffff ffff 7fef ffff" for the little endians. //========================================================= if(MaxDouble.map[1] != 0xffffffff){ @@ -175,17 +175,17 @@ static int HardwareHighBitsOfDouble() //-------------------------------------------------------------------- // HardwareLowBitsOfDouble : -// Returns 0 if the low bits are at end. (exemple: decmips ) -// Returns 1 if the low bits are at begin. (exemple: sun, sgi, ...) +// Returns 0 if the low bits are at end. (example: decmips ) +// Returns 1 if the low bits are at begin. (example: sun, sgi, ...) //-------------------------------------------------------------------- static int HardwareLowBitsOfDouble() { RealMap MaxDouble; MaxDouble.real = DBL_MAX; //========================================================= - // reperesentation of the max double in IEEE is - // "7fef ffff ffff ffff" for the big indiens. - // "ffff ffff 7fef ffff" for the littel indiens. + // representation of the max double in IEEE is + // "7fef ffff ffff ffff" for the big endians. + // "ffff ffff 7fef ffff" for the little endians. //========================================================= if(MaxDouble.map[1] != 0xffffffff){ @@ -211,7 +211,7 @@ double NextAfter(const double x, const double y) //========================================= // -oo__________0___________+oo // x=y - // The direction is "Null", so there is nothing after + // The direction is "Null", so there is nothing after //========================================= } else if (((x=0.0)) || ((x>y) && (x<0.0))) { @@ -254,9 +254,9 @@ Standard_Real ATanh(const Standard_Real Value) { if ( (Value <= -1.) || (Value >= 1.) ){ #ifdef OCCT_DEBUG - std::cout << "Illegal agument in ATanh" << std::endl ; + std::cout << "Illegal argument in ATanh" << std::endl ; #endif - throw Standard_NumericError("Illegal agument in ATanh"); + throw Standard_NumericError("Illegal argument in ATanh"); } #if __QNX__ return std::atanh(Value); @@ -272,9 +272,9 @@ Standard_Real ACosh (const Standard_Real Value) { if ( Value < 1. ){ #ifdef OCCT_DEBUG - std::cout << "Illegal agument in ACosh" << std::endl ; + std::cout << "Illegal argument in ACosh" << std::endl ; #endif - throw Standard_NumericError("Illegal agument in ACosh"); + throw Standard_NumericError("Illegal argument in ACosh"); } #if __QNX__ return std::acosh(Value); @@ -317,9 +317,9 @@ Standard_Real Sinh (const Standard_Real Value) Standard_Real Log (const Standard_Real Value) { if ( Value <= 0. ){ #ifdef OCCT_DEBUG - std::cout << "Illegal agument in Log" << std::endl ; + std::cout << "Illegal argument in Log" << std::endl ; #endif - throw Standard_NumericError("Illegal agument in Log"); + throw Standard_NumericError("Illegal argument in Log"); } return log(Value); } @@ -330,9 +330,9 @@ Standard_Real Sqrt (const Standard_Real Value) { if ( Value < 0. ){ #ifdef OCCT_DEBUG - std::cout << "Illegal agument in Sqrt" << std::endl ; + std::cout << "Illegal argument in Sqrt" << std::endl ; #endif - throw Standard_NumericError("Illegal agument in Sqrt"); + throw Standard_NumericError("Illegal argument in Sqrt"); } return sqrt(Value); } diff --git a/src/Standard/Standard_Real.hxx b/src/Standard/Standard_Real.hxx index aca73cb2ef..9c9d193f3c 100644 --- a/src/Standard/Standard_Real.hxx +++ b/src/Standard/Standard_Real.hxx @@ -28,7 +28,7 @@ // =============================================== // ================================== -// Methods implemeted in Standard_Real.cxx +// Methods implemented in Standard_Real.cxx // ================================== //! Computes a hash code for the given real, in the range [1, theUpperBound] @@ -76,7 +76,7 @@ inline Standard_Boolean IsEqual (const Standard_Real Value1, // *********************************** // // Class methods // // // - // Machine-dependant values // + // Machine-dependent values // // Should be taken from include file // // *********************************** // @@ -142,7 +142,7 @@ inline Standard_Integer RealSize() //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=// - // End of machine-dependant values // + // End of machine-dependent values // //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=// @@ -176,7 +176,7 @@ inline Standard_Real Cos (const Standard_Real Value) // Epsilon : The function returns absolute value of difference // between 'Value' and other nearest value of // Standard_Real type. -// Nearest value is choseen in direction of infinity +// Nearest value is chosen in direction of infinity // the same sign as 'Value'. // If 'Value' is 0 then returns minimal positive value // of Standard_Real type. diff --git a/src/Standard/Standard_ShortReal.hxx b/src/Standard/Standard_ShortReal.hxx index fea03833b1..81d07405eb 100644 --- a/src/Standard/Standard_ShortReal.hxx +++ b/src/Standard/Standard_ShortReal.hxx @@ -24,7 +24,7 @@ // *********************************** // // Class methods // // // - // Machine-dependant values // + // Machine-dependent values // // Should be taken from include file // // *********************************** // @@ -136,7 +136,7 @@ inline Standard_ShortReal Min (const Standard_ShortReal Val1, // =============================================== // ================================== -// Methods implemeted in Standard_ShortReal.cxx +// Methods implemented in Standard_ShortReal.cxx // ================================== //! Computes a hash code for the given short real, in the range [1, theUpperBound] diff --git a/src/Standard/Standard_Type.cxx b/src/Standard/Standard_Type.cxx index b18c8b049a..db42bc039d 100644 --- a/src/Standard/Standard_Type.cxx +++ b/src/Standard/Standard_Type.cxx @@ -99,7 +99,7 @@ namespace { return theRegistry; } - // To initialize theRegistry map as soon as possible to be destoryed the latest + // To initialize theRegistry map as soon as possible to be destroyed the latest Handle(Standard_Type) theType = STANDARD_TYPE(Standard_Transient); } diff --git a/src/Standard/Standard_WarningsDisable.hxx b/src/Standard/Standard_WarningsDisable.hxx index 351f532f9d..ca47a76d8e 100644 --- a/src/Standard/Standard_WarningsDisable.hxx +++ b/src/Standard/Standard_WarningsDisable.hxx @@ -12,7 +12,7 @@ // commercial license or contractual agreement. //!@file -//! Supresses compiler warnings. +//! Suppresses compiler warnings. //! //! Standard_WarningsDisable.hxx disables all compiler warnings. //! Standard_WarningsRestore.hxx restore the previous state of warnings. diff --git a/src/StdLPersistent/StdLPersistent_Collection.cxx b/src/StdLPersistent/StdLPersistent_Collection.cxx index e947e0b147..6b88f25236 100644 --- a/src/StdLPersistent/StdLPersistent_Collection.cxx +++ b/src/StdLPersistent/StdLPersistent_Collection.cxx @@ -123,7 +123,7 @@ void StdLPersistent_Collection::mapBase::import //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= template class BaseT, class HArrayClass, @@ -156,7 +156,7 @@ void StdLPersistent_Collection::instance_1::Read //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= template void StdLPersistent_Collection::instance_1::ImportAttribute() diff --git a/src/StdLPersistent/StdLPersistent_Collection.hxx b/src/StdLPersistent/StdLPersistent_Collection.hxx index 1f9d22f4f3..dbf8fc8440 100644 --- a/src/StdLPersistent/StdLPersistent_Collection.hxx +++ b/src/StdLPersistent/StdLPersistent_Collection.hxx @@ -115,7 +115,7 @@ class StdLPersistent_Collection : public BaseT ::SingleRef> { public: - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); }; @@ -132,7 +132,7 @@ class StdLPersistent_Collection //! Read persistent data from a file. Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData); - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); private: diff --git a/src/StdLPersistent/StdLPersistent_Data.cxx b/src/StdLPersistent/StdLPersistent_Data.cxx index 9f39588c9b..182b9db960 100644 --- a/src/StdLPersistent/StdLPersistent_Data.cxx +++ b/src/StdLPersistent/StdLPersistent_Data.cxx @@ -104,7 +104,7 @@ Handle(TDF_Data) StdLPersistent_Data::Import() const Handle(TDF_Data) aData = new TDF_Data; Parser (*myLabels->Array(), *myAttributes->Array()).FillLabel (aData->Root()); - // Import transient attribuites from persistent data + // Import transient attributes from persistent data StdLPersistent_HArray1OfPersistent::Iterator anAttribIter (*myAttributes->Array()); for (; anAttribIter.More(); anAttribIter.Next()) { diff --git a/src/StdLPersistent/StdLPersistent_Dependency.cxx b/src/StdLPersistent/StdLPersistent_Dependency.cxx index 6d61612386..57a75d7486 100644 --- a/src/StdLPersistent/StdLPersistent_Dependency.cxx +++ b/src/StdLPersistent/StdLPersistent_Dependency.cxx @@ -25,7 +25,7 @@ static void ImportName (const Handle(TDataStd_Relation)& theAttribute, //======================================================================= //function : Import -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= template void StdLPersistent_Dependency::instance::Import diff --git a/src/StdLPersistent/StdLPersistent_Dependency.hxx b/src/StdLPersistent/StdLPersistent_Dependency.hxx index 5e29e7918f..c427efc6f3 100644 --- a/src/StdLPersistent/StdLPersistent_Dependency.hxx +++ b/src/StdLPersistent/StdLPersistent_Dependency.hxx @@ -44,7 +44,7 @@ class StdLPersistent_Dependency //! Returns persistent type name Standard_CString PName() const; - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(AttribClass)& theAttribute) const; private: diff --git a/src/StdLPersistent/StdLPersistent_Function.hxx b/src/StdLPersistent/StdLPersistent_Function.hxx index f981bdfea1..7d70575ef6 100644 --- a/src/StdLPersistent/StdLPersistent_Function.hxx +++ b/src/StdLPersistent/StdLPersistent_Function.hxx @@ -40,7 +40,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PFunction_Function"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TFunction_Function)& theAttribute) const { theAttribute->SetDriverGUID (myDriverGUID); diff --git a/src/StdLPersistent/StdLPersistent_NamedData.cxx b/src/StdLPersistent/StdLPersistent_NamedData.cxx index cbb0e32c98..c294605bb3 100644 --- a/src/StdLPersistent/StdLPersistent_NamedData.cxx +++ b/src/StdLPersistent/StdLPersistent_NamedData.cxx @@ -41,7 +41,7 @@ static typename HArray::ArrayHandle //======================================================================= //function : Import -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdLPersistent_NamedData::Import (const Handle(TDataStd_NamedData)& theAttribute) const diff --git a/src/StdLPersistent/StdLPersistent_NamedData.hxx b/src/StdLPersistent/StdLPersistent_NamedData.hxx index b1132b6f98..e260600e4d 100644 --- a/src/StdLPersistent/StdLPersistent_NamedData.hxx +++ b/src/StdLPersistent/StdLPersistent_NamedData.hxx @@ -80,7 +80,7 @@ public: //! Returns persistent type name Standard_CString PName() const { return "PDataStd_NamedData"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDataStd_NamedData)& theAttribute) const; private: diff --git a/src/StdLPersistent/StdLPersistent_Real.hxx b/src/StdLPersistent/StdLPersistent_Real.hxx index e1a0c2417a..ba3799b545 100644 --- a/src/StdLPersistent/StdLPersistent_Real.hxx +++ b/src/StdLPersistent/StdLPersistent_Real.hxx @@ -40,7 +40,7 @@ public: //! Returns persistent type name Standard_CString PName() const { return "PDataStd_Real"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDataStd_Real)& theAttribute) const { theAttribute->Set (myValue); diff --git a/src/StdLPersistent/StdLPersistent_TreeNode.cxx b/src/StdLPersistent/StdLPersistent_TreeNode.cxx index 7caa24a466..78d0087885 100644 --- a/src/StdLPersistent/StdLPersistent_TreeNode.cxx +++ b/src/StdLPersistent/StdLPersistent_TreeNode.cxx @@ -47,7 +47,7 @@ void StdLPersistent_TreeNode::PChildren //======================================================================= //function : CreateAttribute -//purpose : Create an empty transient attribuite +//purpose : Create an empty transient attribute //======================================================================= Handle(TDF_Attribute) StdLPersistent_TreeNode::CreateAttribute() { @@ -58,7 +58,7 @@ Handle(TDF_Attribute) StdLPersistent_TreeNode::CreateAttribute() //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdLPersistent_TreeNode::ImportAttribute() { diff --git a/src/StdLPersistent/StdLPersistent_TreeNode.hxx b/src/StdLPersistent/StdLPersistent_TreeNode.hxx index 2f4838c875..3fecc44059 100644 --- a/src/StdLPersistent/StdLPersistent_TreeNode.hxx +++ b/src/StdLPersistent/StdLPersistent_TreeNode.hxx @@ -38,10 +38,10 @@ public: virtual Standard_CString PName() const { return "PDataStd_TreeNode"; } - //! Create an empty transient attribuite + //! Create an empty transient attribute Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute(); - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); private: diff --git a/src/StdLPersistent/StdLPersistent_Value.cxx b/src/StdLPersistent/StdLPersistent_Value.cxx index a06abeb199..d3d819e182 100644 --- a/src/StdLPersistent/StdLPersistent_Value.cxx +++ b/src/StdLPersistent/StdLPersistent_Value.cxx @@ -19,7 +19,7 @@ //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= template void StdLPersistent_Value::integer::ImportAttribute() @@ -29,7 +29,7 @@ void StdLPersistent_Value::integer::ImportAttribute() //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= template void StdLPersistent_Value::string::ImportAttribute() @@ -45,7 +45,7 @@ void StdLPersistent_Value::string::ImportAttribute() //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= template<> void StdLPersistent_Value::string::ImportAttribute() @@ -61,7 +61,7 @@ void StdLPersistent_Value::string::ImportAttribute() //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= template<> void StdLPersistent_Value::string::ImportAttribute() @@ -69,7 +69,7 @@ void StdLPersistent_Value::string::ImportAttribute() //======================================================================= //function : CreateAttribute -//purpose : Create an empty transient attribuite +//purpose : Create an empty transient attribute //======================================================================= Handle(TDF_Attribute) StdLPersistent_Value::UAttribute::CreateAttribute() { diff --git a/src/StdLPersistent/StdLPersistent_Value.hxx b/src/StdLPersistent/StdLPersistent_Value.hxx index 2dea8937ec..bd2627f630 100644 --- a/src/StdLPersistent/StdLPersistent_Value.hxx +++ b/src/StdLPersistent/StdLPersistent_Value.hxx @@ -33,7 +33,7 @@ class StdLPersistent_Value class integer : public StdObjMgt_Attribute::SingleInt { public: - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); }; @@ -42,7 +42,7 @@ class StdLPersistent_Value class string : public StdObjMgt_Attribute::SingleRef { public: - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); }; @@ -66,7 +66,7 @@ public: class UAttribute : public string { public: - //! Create an empty transient attribuite + //! Create an empty transient attribute Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute(); Standard_CString PName() const { return "PDataStd_UAttribute"; } }; @@ -74,7 +74,7 @@ public: class Integer : public integer { public: - //! Create an empty transient attribuite + //! Create an empty transient attribute Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute(); Standard_CString PName() const { return "PDataStd_Integer"; } }; @@ -82,7 +82,7 @@ public: class Name : public string { public: - //! Create an empty transient attribuite + //! Create an empty transient attribute Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute(); Standard_CString PName() const { return "PDataStd_Name"; } }; @@ -90,7 +90,7 @@ public: class AsciiString : public string { public: - //! Create an empty transient attribuite + //! Create an empty transient attribute Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute(); Standard_CString PName() const { return "PDataStd_AsciiString"; } }; diff --git a/src/StdLPersistent/StdLPersistent_Variable.hxx b/src/StdLPersistent/StdLPersistent_Variable.hxx index 21c53d5a70..477814784b 100644 --- a/src/StdLPersistent/StdLPersistent_Variable.hxx +++ b/src/StdLPersistent/StdLPersistent_Variable.hxx @@ -41,7 +41,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PDataStd_Variable"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDataStd_Variable)& theAttribute) const { theAttribute->Constant (myIsConstant); diff --git a/src/StdLPersistent/StdLPersistent_Void.hxx b/src/StdLPersistent/StdLPersistent_Void.hxx index 8d9b6db323..3aae4b103e 100644 --- a/src/StdLPersistent/StdLPersistent_Void.hxx +++ b/src/StdLPersistent/StdLPersistent_Void.hxx @@ -38,7 +38,7 @@ protected: //! Returns persistent type name Standard_CString PName() const; - //! Import transient attribuite from the persistent data + //! Import transient attribute from the persistent data virtual void ImportAttribute() {} }; diff --git a/src/StdLPersistent/StdLPersistent_XLink.hxx b/src/StdLPersistent/StdLPersistent_XLink.hxx index 238ba10a85..a77cba2cc3 100644 --- a/src/StdLPersistent/StdLPersistent_XLink.hxx +++ b/src/StdLPersistent/StdLPersistent_XLink.hxx @@ -39,7 +39,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PDocStd_XLink"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDocStd_XLink)& theAttribute) const { if (myDocEntry) diff --git a/src/StdObjMgt/StdObjMgt_Attribute.hxx b/src/StdObjMgt/StdObjMgt_Attribute.hxx index c0731ad021..18a010e181 100644 --- a/src/StdObjMgt/StdObjMgt_Attribute.hxx +++ b/src/StdObjMgt/StdObjMgt_Attribute.hxx @@ -26,11 +26,11 @@ class StdObjMgt_Attribute : public Standard_Transient class base : public StdObjMgt_Persistent { public: - //! Create an empty transient attribuite + //! Create an empty transient attribute virtual Handle(TDF_Attribute) CreateAttribute() { return myTransient = new Transient; } - //! Get transient attribuite for the persistent data + //! Get transient attribute for the persistent data virtual Handle(TDF_Attribute) GetAttribute() const { return Handle(TDF_Attribute)(myTransient); } @@ -79,7 +79,7 @@ private: virtual Standard_CString PName() const { return myPersistent->PName(); } - //! Import transient attribuite from the persistent data + //! Import transient attribute from the persistent data virtual void ImportAttribute() { if (myPersistent && this->myTransient) diff --git a/src/StdObjMgt/StdObjMgt_Persistent.cxx b/src/StdObjMgt/StdObjMgt_Persistent.cxx index 2107caa0ea..44a3efc563 100644 --- a/src/StdObjMgt/StdObjMgt_Persistent.cxx +++ b/src/StdObjMgt/StdObjMgt_Persistent.cxx @@ -23,7 +23,7 @@ StdObjMgt_Persistent::StdObjMgt_Persistent() //======================================================================= //function : ImportDocument //purpose : Import transient document from the persistent data -// (to be overriden by document class; +// (to be overridden by document class; // does nothing by default for other classes). //======================================================================= void StdObjMgt_Persistent::ImportDocument @@ -31,8 +31,8 @@ void StdObjMgt_Persistent::ImportDocument //======================================================================= //function : CreateAttribute -//purpose : Create an empty transient attribuite -// (to be overriden by attribute classes; +//purpose : Create an empty transient attribute +// (to be overridden by attribute classes; // does nothing and returns a null handle by default for other classes) //======================================================================= Handle(TDF_Attribute) StdObjMgt_Persistent::CreateAttribute() @@ -40,8 +40,8 @@ Handle(TDF_Attribute) StdObjMgt_Persistent::CreateAttribute() //======================================================================= //function : GetAttribute -//purpose : Get transient attribuite for the persistent data -// (to be overriden by attribute classes; +//purpose : Get transient attribute for the persistent data +// (to be overridden by attribute classes; // returns a null handle by default for non-attribute classes) //======================================================================= Handle(TDF_Attribute) StdObjMgt_Persistent::GetAttribute() const @@ -49,8 +49,8 @@ Handle(TDF_Attribute) StdObjMgt_Persistent::GetAttribute() const //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data -// (to be overriden by attribute classes; +//purpose : Import transient attribute from the persistent data +// (to be overridden by attribute classes; // does nothing by default for non-attribute classes) //======================================================================= void StdObjMgt_Persistent::ImportAttribute() {} @@ -58,7 +58,7 @@ void StdObjMgt_Persistent::ImportAttribute() {} //======================================================================= //function : AsciiString //purpose : Get referenced ASCII string -// (to be overriden by ASCII string class; +// (to be overridden by ASCII string class; // returns a null handle by default for other classes) //======================================================================= Handle(TCollection_HAsciiString) StdObjMgt_Persistent::AsciiString() const @@ -67,7 +67,7 @@ Handle(TCollection_HAsciiString) StdObjMgt_Persistent::AsciiString() const //======================================================================= //function : ExtString //purpose : Get referenced extended string -// (to be overriden by extended string class; +// (to be overridden by extended string class; // returns a null handle by default for other classes) //======================================================================= Handle(TCollection_HExtendedString) StdObjMgt_Persistent::ExtString() const @@ -76,7 +76,7 @@ Handle(TCollection_HExtendedString) StdObjMgt_Persistent::ExtString() const //======================================================================= //function : Label //purpose : Get a label expressed by referenced extended string -// (to be overriden by extended string class; +// (to be overridden by extended string class; // returns a null label by default for other classes) //======================================================================= TDF_Label StdObjMgt_Persistent::Label (const Handle(TDF_Data)&) const diff --git a/src/StdObjMgt/StdObjMgt_Persistent.hxx b/src/StdObjMgt/StdObjMgt_Persistent.hxx index 0bd21374cb..88f7f9fb01 100644 --- a/src/StdObjMgt/StdObjMgt_Persistent.hxx +++ b/src/StdObjMgt/StdObjMgt_Persistent.hxx @@ -61,38 +61,38 @@ public: virtual Standard_CString PName() const = 0; //! Import transient document from the persistent data - //! (to be overriden by document class; + //! (to be overridden by document class; //! does nothing by default for other classes). Standard_EXPORT virtual void ImportDocument (const Handle(TDocStd_Document)& theDocument) const; - //! Create an empty transient attribuite - //! (to be overriden by attribute classes; + //! Create an empty transient attribute + //! (to be overridden by attribute classes; //! does nothing and returns a null handle by default for other classes). Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute(); - //! Get transient attribuite for the persistent data - //! (to be overriden by attribute classes; + //! Get transient attribute for the persistent data + //! (to be overridden by attribute classes; //! returns a null handle by default for non-attribute classes). Standard_EXPORT virtual Handle(TDF_Attribute) GetAttribute() const; - //! Import transient attribuite from the persistent data - //! (to be overriden by attribute classes; + //! Import transient attribute from the persistent data + //! (to be overridden by attribute classes; //! does nothing by default for non-attribute classes). Standard_EXPORT virtual void ImportAttribute(); //! Get referenced ASCII string - //! (to be overriden by ASCII string class; + //! (to be overridden by ASCII string class; //! returns a null handle by default for other classes). Standard_EXPORT virtual Handle(TCollection_HAsciiString) AsciiString() const; //! Get referenced extended string - //! (to be overriden by extended string class; + //! (to be overridden by extended string class; //! returns a null handle by default for other classes). Standard_EXPORT virtual Handle(TCollection_HExtendedString) ExtString() const; //! Get a label expressed by referenced extended string - //! (to be overriden by extended string class; + //! (to be overridden by extended string class; //! returns a null label by default for other classes). Standard_EXPORT virtual TDF_Label Label (const Handle(TDF_Data)& theDF) const; diff --git a/src/StdPersistent/StdPersistent_DataXtd.cxx b/src/StdPersistent/StdPersistent_DataXtd.cxx index 60ac1147e9..d58a0c946f 100644 --- a/src/StdPersistent/StdPersistent_DataXtd.cxx +++ b/src/StdPersistent/StdPersistent_DataXtd.cxx @@ -16,14 +16,14 @@ //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_DataXtd::Geometry::ImportAttribute() { myTransient->SetType (static_cast (myData)); } //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_DataXtd::Position::ImportAttribute() { myTransient->SetPosition (myData); } diff --git a/src/StdPersistent/StdPersistent_DataXtd.hxx b/src/StdPersistent/StdPersistent_DataXtd.hxx index 91c40154e5..925ae55f9f 100644 --- a/src/StdPersistent/StdPersistent_DataXtd.hxx +++ b/src/StdPersistent/StdPersistent_DataXtd.hxx @@ -47,14 +47,14 @@ public: class Geometry : public StdObjMgt_Attribute::SingleInt { public: - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); }; class Position : public StdObjMgt_Attribute::Simple { public: - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); }; }; diff --git a/src/StdPersistent/StdPersistent_DataXtd_Constraint.cxx b/src/StdPersistent/StdPersistent_DataXtd_Constraint.cxx index d158aff54e..97c6a2340c 100644 --- a/src/StdPersistent/StdPersistent_DataXtd_Constraint.cxx +++ b/src/StdPersistent/StdPersistent_DataXtd_Constraint.cxx @@ -19,7 +19,7 @@ //======================================================================= //function : Import -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_DataXtd_Constraint::Import (const Handle(TDataXtd_Constraint)& theAttribute) const diff --git a/src/StdPersistent/StdPersistent_DataXtd_Constraint.hxx b/src/StdPersistent/StdPersistent_DataXtd_Constraint.hxx index dc3ea36202..4d8e7ae34c 100644 --- a/src/StdPersistent/StdPersistent_DataXtd_Constraint.hxx +++ b/src/StdPersistent/StdPersistent_DataXtd_Constraint.hxx @@ -47,7 +47,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PDataXtd_Constraint"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDataXtd_Constraint)& theAttribute) const; private: diff --git a/src/StdPersistent/StdPersistent_DataXtd_PatternStd.cxx b/src/StdPersistent/StdPersistent_DataXtd_PatternStd.cxx index 75a36a167e..4986e16325 100644 --- a/src/StdPersistent/StdPersistent_DataXtd_PatternStd.cxx +++ b/src/StdPersistent/StdPersistent_DataXtd_PatternStd.cxx @@ -20,7 +20,7 @@ //======================================================================= //function : Import -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_DataXtd_PatternStd::Import (const Handle(TDataXtd_PatternStd)& theAttribute) const diff --git a/src/StdPersistent/StdPersistent_DataXtd_PatternStd.hxx b/src/StdPersistent/StdPersistent_DataXtd_PatternStd.hxx index acb1782297..d8dc5d9ead 100644 --- a/src/StdPersistent/StdPersistent_DataXtd_PatternStd.hxx +++ b/src/StdPersistent/StdPersistent_DataXtd_PatternStd.hxx @@ -50,7 +50,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PDataXtd_PatternStd"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDataXtd_PatternStd)& theAttribute) const; private: diff --git a/src/StdPersistent/StdPersistent_Naming.cxx b/src/StdPersistent/StdPersistent_Naming.cxx index a2609dfd16..ecaa4128aa 100644 --- a/src/StdPersistent/StdPersistent_Naming.cxx +++ b/src/StdPersistent/StdPersistent_Naming.cxx @@ -21,7 +21,7 @@ //======================================================================= //function : Import -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_Naming::NamedShape::Import (const Handle(TNaming_NamedShape)& theAttribute) const @@ -168,7 +168,7 @@ void StdPersistent_Naming::Name_2::Import //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_Naming::Naming::ImportAttribute() { @@ -182,7 +182,7 @@ void StdPersistent_Naming::Naming::ImportAttribute() //======================================================================= //function : ImportAttribute -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_Naming::Naming_1::ImportAttribute() { diff --git a/src/StdPersistent/StdPersistent_Naming.hxx b/src/StdPersistent/StdPersistent_Naming.hxx index cbd7a1bb08..78cf6ecb7e 100644 --- a/src/StdPersistent/StdPersistent_Naming.hxx +++ b/src/StdPersistent/StdPersistent_Naming.hxx @@ -48,7 +48,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PNaming_NamedShape"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TNaming_NamedShape)& theAttribute) const; private: @@ -134,14 +134,14 @@ public: class Naming : public StdObjMgt_Attribute::SingleRef { public: - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); }; class Naming_1 : public Naming { public: - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. Standard_EXPORT virtual void ImportAttribute(); }; diff --git a/src/StdPersistent/StdPersistent_PPrsStd.cxx b/src/StdPersistent/StdPersistent_PPrsStd.cxx index 986eabda37..fc369a4a6d 100644 --- a/src/StdPersistent/StdPersistent_PPrsStd.cxx +++ b/src/StdPersistent/StdPersistent_PPrsStd.cxx @@ -16,7 +16,7 @@ //======================================================================= //function : Import -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_PPrsStd::AISPresentation::Import (const Handle(TDataXtd_Presentation)& theAttribute) const @@ -52,7 +52,7 @@ void StdPersistent_PPrsStd::AISPresentation::Import //======================================================================= //function : Import -//purpose : Import transient attribuite from the persistent data +//purpose : Import transient attribute from the persistent data //======================================================================= void StdPersistent_PPrsStd::AISPresentation_1::Import (const Handle(TDataXtd_Presentation)& theAttribute) const diff --git a/src/StdPersistent/StdPersistent_PPrsStd.hxx b/src/StdPersistent/StdPersistent_PPrsStd.hxx index c5664f4787..42772886f6 100644 --- a/src/StdPersistent/StdPersistent_PPrsStd.hxx +++ b/src/StdPersistent/StdPersistent_PPrsStd.hxx @@ -46,7 +46,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PPrsStd_AISPresentation"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDataXtd_Presentation)& theAttribute) const; private: @@ -76,7 +76,7 @@ public: //! Returns persistent type name inline Standard_CString PName() const { return "PPrsStd_AISPresentation_1"; } - //! Import transient attribuite from the persistent data. + //! Import transient attribute from the persistent data. void Import (const Handle(TDataXtd_Presentation)& theAttribute) const; private: diff --git a/src/StdPrs/StdPrs_BRepTextBuilder.cxx b/src/StdPrs/StdPrs_BRepTextBuilder.cxx index 9facb1d7f6..869e6053c9 100644 --- a/src/StdPrs/StdPrs_BRepTextBuilder.cxx +++ b/src/StdPrs/StdPrs_BRepTextBuilder.cxx @@ -18,7 +18,7 @@ #include // ======================================================================= -// Function : Perfrom +// Function : Perform // Purpose : // ======================================================================= TopoDS_Shape StdPrs_BRepTextBuilder::Perform (StdPrs_BRepFont& theFont, diff --git a/src/StdPrs/StdPrs_Curve.cxx b/src/StdPrs/StdPrs_Curve.cxx index d1c4f07ed9..d32fee6d14 100644 --- a/src/StdPrs/StdPrs_Curve.cxx +++ b/src/StdPrs/StdPrs_Curve.cxx @@ -15,7 +15,7 @@ // commercial license or contractual agreement. // Great zoom leads to non-coincidence of -// a point and non-infinite lines passing throught this point: +// a point and non-infinite lines passing through this point: #include #include diff --git a/src/StdPrs/StdPrs_DeflectionCurve.cxx b/src/StdPrs/StdPrs_DeflectionCurve.cxx index e54668ffe2..bb4a3caf31 100644 --- a/src/StdPrs/StdPrs_DeflectionCurve.cxx +++ b/src/StdPrs/StdPrs_DeflectionCurve.cxx @@ -13,7 +13,7 @@ // commercial license or contractual agreement. // Great zoom leads to non-coincidence of -// a point and non-infinite lines passing throught this point: +// a point and non-infinite lines passing through this point: #include #include diff --git a/src/StdPrs/StdPrs_Isolines.cxx b/src/StdPrs/StdPrs_Isolines.cxx index 8db2debbdf..d7f1ef7ffc 100644 --- a/src/StdPrs/StdPrs_Isolines.cxx +++ b/src/StdPrs/StdPrs_Isolines.cxx @@ -81,7 +81,7 @@ namespace } } - //! Reoder and adjust to the limit a curve's parameter values. + //! Reorder and adjust to the limit a curve's parameter values. //! @param theCurve [in] the curve. //! @param theLimit [in] the parameter limit value. //! @param theFirst [in/out] the first parameter value. @@ -442,7 +442,7 @@ void StdPrs_Isolines::addOnSurface (const Handle(BRepAdaptor_Surface)& theSurfac Standard_Real aU1 = anEdgeCurve->FirstParameter(); Standard_Real aU2 = anEdgeCurve->LastParameter(); - // MSV 17.08.06 OCC13144: U2 occured less than U1, to overcome it + // MSV 17.08.06 OCC13144: U2 occurred less than U1, to overcome it // ensure that distance U2-U1 is not greater than aLimit*2, // if greater then choose an origin and use aLimit to define // U1 and U2 anew. diff --git a/src/StdPrs/StdPrs_Isolines.hxx b/src/StdPrs/StdPrs_Isolines.hxx index db8c18475e..244c29610a 100644 --- a/src/StdPrs/StdPrs_Isolines.hxx +++ b/src/StdPrs/StdPrs_Isolines.hxx @@ -163,7 +163,7 @@ public: const TColStd_SequenceOfReal& theUIsoParams, const TColStd_SequenceOfReal& theVIsoParams); - //! Evalute sequence of parameters for drawing uv isolines for a given face. + //! Evaluate sequence of parameters for drawing uv isolines for a given face. //! @param theFace [in] the face. //! @param theNbIsoU [in] the number of u isolines. //! @param theNbIsoV [in] the number of v isolines. diff --git a/src/StdSelect/StdSelect_BRepSelectionTool.hxx b/src/StdSelect/StdSelect_BRepSelectionTool.hxx index 4f5cd24aea..8072ee92d8 100644 --- a/src/StdSelect/StdSelect_BRepSelectionTool.hxx +++ b/src/StdSelect/StdSelect_BRepSelectionTool.hxx @@ -45,7 +45,7 @@ class TopoDS_Face; //! puts them in an entity called Selection (see package SelectMgr) and returns it. //! //! A Priority for the decomposed pickable objects can be given ; -//! by default There is A Preset Hierachy: +//! by default There is A Preset Hierarchy: //! Vertex priority : 5 //! Edge priority : 4 //! Wire priority : 3 @@ -82,7 +82,7 @@ public: //! called to compute sensitive entities on faces. Standard_EXPORT static void Load (const Handle(SelectMgr_Selection)& aSelection, const TopoDS_Shape& aShape, const TopAbs_ShapeEnum aType, const Standard_Real theDeflection, const Standard_Real theDeviationAngle, const Standard_Boolean AutoTriangulation = Standard_True, const Standard_Integer aPriority = -1, const Standard_Integer NbPOnEdge = 9, const Standard_Real MaximalParameter = 500); - //! Same functionnalities ; the only + //! Same functionalities ; the only //! difference is that the selectable object from which the //! selection comes is stored in each Sensitive EntityOwner; //! decomposition of into sensitive entities following diff --git a/src/StdStorage/StdStorage_HeaderData.hxx b/src/StdStorage/StdStorage_HeaderData.hxx index 0d10895a0a..891722df27 100644 --- a/src/StdStorage/StdStorage_HeaderData.hxx +++ b/src/StdStorage/StdStorage_HeaderData.hxx @@ -82,16 +82,16 @@ public: //! Returns data type Standard_EXPORT TCollection_ExtendedString DataType() const; - //! Add to the user informations + //! Add to the user information Standard_EXPORT void AddToUserInfo(const TCollection_AsciiString& theUserInfo); - //! Return the user informations + //! Return the user information Standard_EXPORT const TColStd_SequenceOfAsciiString& UserInfo() const; - //! Add to the user informations + //! Add to the user information Standard_EXPORT void AddToComments(const TCollection_ExtendedString& aComment); - //! Return the user informations + //! Return the user information Standard_EXPORT const TColStd_SequenceOfExtendedString& Comments() const; //! Returns the number of persistent objects diff --git a/src/StepAP242/StepAP242_ItemIdentifiedRepresentationUsage.hxx b/src/StepAP242/StepAP242_ItemIdentifiedRepresentationUsage.hxx index 36c3a02def..03c32fb4c2 100644 --- a/src/StepAP242/StepAP242_ItemIdentifiedRepresentationUsage.hxx +++ b/src/StepAP242/StepAP242_ItemIdentifiedRepresentationUsage.hxx @@ -88,7 +88,7 @@ public: usedRepresentation = theUsedRepresentation; } - //! Retuns field UsedRepresentation + //! Returns field UsedRepresentation inline Handle(StepRepr_Representation) UsedRepresentation() const { return usedRepresentation; diff --git a/src/StepBasic/StepBasic_ConversionBasedUnitAndLengthUnit.cxx b/src/StepBasic/StepBasic_ConversionBasedUnitAndLengthUnit.cxx index 2c222e9342..1e2d129188 100644 --- a/src/StepBasic/StepBasic_ConversionBasedUnitAndLengthUnit.cxx +++ b/src/StepBasic/StepBasic_ConversionBasedUnitAndLengthUnit.cxx @@ -28,10 +28,10 @@ void StepBasic_ConversionBasedUnitAndLengthUnit::Init(const Handle(StepBasic_Dim const Handle(TCollection_HAsciiString)& aName, const Handle(StepBasic_MeasureWithUnit)& aConversionFactor) { - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_ConversionBasedUnit::Init(aDimensions, aName, aConversionFactor); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- lengthUnit = new StepBasic_LengthUnit(); lengthUnit->Init(aDimensions); } diff --git a/src/StepBasic/StepBasic_ConversionBasedUnitAndMassUnit.cxx b/src/StepBasic/StepBasic_ConversionBasedUnitAndMassUnit.cxx index ca94c4bb2a..8353815bc8 100644 --- a/src/StepBasic/StepBasic_ConversionBasedUnitAndMassUnit.cxx +++ b/src/StepBasic/StepBasic_ConversionBasedUnitAndMassUnit.cxx @@ -41,10 +41,10 @@ void StepBasic_ConversionBasedUnitAndMassUnit::Init const Handle(TCollection_HAsciiString)& aName, const Handle(StepBasic_MeasureWithUnit)& aConversionFactor) { - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_ConversionBasedUnit::Init(aDimensions, aName, aConversionFactor); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- massUnit = new StepBasic_MassUnit(); massUnit->Init(aDimensions); } diff --git a/src/StepBasic/StepBasic_ConversionBasedUnitAndPlaneAngleUnit.cxx b/src/StepBasic/StepBasic_ConversionBasedUnitAndPlaneAngleUnit.cxx index b72c5b6549..d9f51bb269 100644 --- a/src/StepBasic/StepBasic_ConversionBasedUnitAndPlaneAngleUnit.cxx +++ b/src/StepBasic/StepBasic_ConversionBasedUnitAndPlaneAngleUnit.cxx @@ -30,10 +30,10 @@ void StepBasic_ConversionBasedUnitAndPlaneAngleUnit::Init(const Handle(StepBasic const Handle(TCollection_HAsciiString)& aName, const Handle(StepBasic_MeasureWithUnit)& aConversionFactor) { - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_ConversionBasedUnit::Init(aDimensions, aName, aConversionFactor); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- planeAngleUnit = new StepBasic_PlaneAngleUnit(); planeAngleUnit->Init(aDimensions); } diff --git a/src/StepBasic/StepBasic_ConversionBasedUnitAndRatioUnit.cxx b/src/StepBasic/StepBasic_ConversionBasedUnitAndRatioUnit.cxx index 12c5bc91b1..2f8fe48d3b 100644 --- a/src/StepBasic/StepBasic_ConversionBasedUnitAndRatioUnit.cxx +++ b/src/StepBasic/StepBasic_ConversionBasedUnitAndRatioUnit.cxx @@ -30,10 +30,10 @@ void StepBasic_ConversionBasedUnitAndRatioUnit::Init(const Handle(StepBasic_Dime const Handle(TCollection_HAsciiString)& aName, const Handle(StepBasic_MeasureWithUnit)& aConversionFactor) { - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_ConversionBasedUnit::Init(aDimensions, aName, aConversionFactor); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- ratioUnit = new StepBasic_RatioUnit(); ratioUnit->Init(aDimensions); } diff --git a/src/StepBasic/StepBasic_ConversionBasedUnitAndSolidAngleUnit.cxx b/src/StepBasic/StepBasic_ConversionBasedUnitAndSolidAngleUnit.cxx index fab575aa75..641aa0f667 100644 --- a/src/StepBasic/StepBasic_ConversionBasedUnitAndSolidAngleUnit.cxx +++ b/src/StepBasic/StepBasic_ConversionBasedUnitAndSolidAngleUnit.cxx @@ -30,10 +30,10 @@ void StepBasic_ConversionBasedUnitAndSolidAngleUnit::Init(const Handle(StepBasic const Handle(TCollection_HAsciiString)& aName, const Handle(StepBasic_MeasureWithUnit)& aConversionFactor) { - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_ConversionBasedUnit::Init(aDimensions, aName, aConversionFactor); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- solidAngleUnit = new StepBasic_SolidAngleUnit(); solidAngleUnit->Init(aDimensions); } diff --git a/src/StepBasic/StepBasic_ConversionBasedUnitAndTimeUnit.cxx b/src/StepBasic/StepBasic_ConversionBasedUnitAndTimeUnit.cxx index b3129200ed..c68948703a 100644 --- a/src/StepBasic/StepBasic_ConversionBasedUnitAndTimeUnit.cxx +++ b/src/StepBasic/StepBasic_ConversionBasedUnitAndTimeUnit.cxx @@ -30,10 +30,10 @@ void StepBasic_ConversionBasedUnitAndTimeUnit::Init(const Handle(StepBasic_Dimen const Handle(TCollection_HAsciiString)& aName, const Handle(StepBasic_MeasureWithUnit)& aConversionFactor) { - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_ConversionBasedUnit::Init(aDimensions, aName, aConversionFactor); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- timeUnit = new StepBasic_TimeUnit(); timeUnit->Init(aDimensions); } diff --git a/src/StepBasic/StepBasic_SiUnit.cxx b/src/StepBasic/StepBasic_SiUnit.cxx index c94aed97c9..1156ffef3a 100644 --- a/src/StepBasic/StepBasic_SiUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnit.cxx @@ -85,7 +85,7 @@ void StepBasic_SiUnit::SetDimensions(const Handle(StepBasic_DimensionalExponents Handle(StepBasic_DimensionalExponents) StepBasic_SiUnit::Dimensions() const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // attention : dimensional exponent retourne incorrect (pointeur NULL). // on devrait, en fonction du nom de l unite SI, construire un dimensional diff --git a/src/StepBasic/StepBasic_SiUnitAndLengthUnit.cxx b/src/StepBasic/StepBasic_SiUnitAndLengthUnit.cxx index aa5946c588..14b98bb81c 100644 --- a/src/StepBasic/StepBasic_SiUnitAndLengthUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnitAndLengthUnit.cxx @@ -29,13 +29,13 @@ void StepBasic_SiUnitAndLengthUnit::Init(const Standard_Boolean hasAprefix, const StepBasic_SiUnitName aName) { // --- classe inherited fields --- - // --- ANDOR componant fields --- + // --- ANDOR component fields --- lengthUnit = new StepBasic_LengthUnit(); Handle(StepBasic_DimensionalExponents) aDimensions; aDimensions.Nullify(); lengthUnit->Init(aDimensions); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName); } diff --git a/src/StepBasic/StepBasic_SiUnitAndMassUnit.cxx b/src/StepBasic/StepBasic_SiUnitAndMassUnit.cxx index 280b4e38f6..71b8b4d7d7 100644 --- a/src/StepBasic/StepBasic_SiUnitAndMassUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnitAndMassUnit.cxx @@ -39,13 +39,13 @@ void StepBasic_SiUnitAndMassUnit::Init(const Standard_Boolean hasAprefix, const StepBasic_SiUnitName aName) { // --- classe inherited fields --- - // --- ANDOR componant fields --- + // --- ANDOR component fields --- massUnit = new StepBasic_MassUnit(); Handle(StepBasic_DimensionalExponents) aDimensions; aDimensions.Nullify(); massUnit->Init(aDimensions); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName); } diff --git a/src/StepBasic/StepBasic_SiUnitAndPlaneAngleUnit.cxx b/src/StepBasic/StepBasic_SiUnitAndPlaneAngleUnit.cxx index a31e6d838c..9ea9ef4f76 100644 --- a/src/StepBasic/StepBasic_SiUnitAndPlaneAngleUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnitAndPlaneAngleUnit.cxx @@ -29,13 +29,13 @@ void StepBasic_SiUnitAndPlaneAngleUnit::Init(const Standard_Boolean hasAprefix, const StepBasic_SiUnitName aName) { // --- classe inherited fields --- - // --- ANDOR componant fields --- + // --- ANDOR component fields --- planeAngleUnit = new StepBasic_PlaneAngleUnit(); Handle(StepBasic_DimensionalExponents) aDimensions; aDimensions.Nullify(); planeAngleUnit->Init(aDimensions); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName); } diff --git a/src/StepBasic/StepBasic_SiUnitAndRatioUnit.cxx b/src/StepBasic/StepBasic_SiUnitAndRatioUnit.cxx index 82bd1628e5..80259c2cd3 100644 --- a/src/StepBasic/StepBasic_SiUnitAndRatioUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnitAndRatioUnit.cxx @@ -29,10 +29,10 @@ void StepBasic_SiUnitAndRatioUnit::Init(const Standard_Boolean hasAprefix, const StepBasic_SiUnitName aName) { // --- class inherited fields --- - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- ratioUnit = new StepBasic_RatioUnit(); Handle(StepBasic_DimensionalExponents) aDimensions; aDimensions.Nullify(); diff --git a/src/StepBasic/StepBasic_SiUnitAndSolidAngleUnit.cxx b/src/StepBasic/StepBasic_SiUnitAndSolidAngleUnit.cxx index eac4868e12..14b144e9e4 100644 --- a/src/StepBasic/StepBasic_SiUnitAndSolidAngleUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnitAndSolidAngleUnit.cxx @@ -29,10 +29,10 @@ void StepBasic_SiUnitAndSolidAngleUnit::Init(const Standard_Boolean hasAprefix, const StepBasic_SiUnitName aName) { // --- class inherited fields --- - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- solidAngleUnit = new StepBasic_SolidAngleUnit(); Handle(StepBasic_DimensionalExponents) aDimensions; aDimensions.Nullify(); diff --git a/src/StepBasic/StepBasic_SiUnitAndThermodynamicTemperatureUnit.cxx b/src/StepBasic/StepBasic_SiUnitAndThermodynamicTemperatureUnit.cxx index a5116ff32d..1c97e2b573 100644 --- a/src/StepBasic/StepBasic_SiUnitAndThermodynamicTemperatureUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnitAndThermodynamicTemperatureUnit.cxx @@ -39,10 +39,10 @@ void StepBasic_SiUnitAndThermodynamicTemperatureUnit::Init(const Standard_Boolea const StepBasic_SiUnitName aName) { // --- class inherited fields --- - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- thermodynamicTemperatureUnit = new StepBasic_ThermodynamicTemperatureUnit(); Handle(StepBasic_DimensionalExponents) aDimensions; aDimensions.Nullify(); diff --git a/src/StepBasic/StepBasic_SiUnitAndTimeUnit.cxx b/src/StepBasic/StepBasic_SiUnitAndTimeUnit.cxx index 43542fb5c2..ac50f3a49c 100644 --- a/src/StepBasic/StepBasic_SiUnitAndTimeUnit.cxx +++ b/src/StepBasic/StepBasic_SiUnitAndTimeUnit.cxx @@ -29,10 +29,10 @@ void StepBasic_SiUnitAndTimeUnit::Init(const Standard_Boolean hasAprefix, const StepBasic_SiUnitName aName) { // --- class inherited fields --- - // --- ANDOR componant fields --- + // --- ANDOR component fields --- StepBasic_SiUnit::Init(hasAprefix, aPrefix, aName); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- timeUnit = new StepBasic_TimeUnit(); Handle(StepBasic_DimensionalExponents) aDimensions; aDimensions.Nullify(); diff --git a/src/StepData/StepData_Field.hxx b/src/StepData/StepData_Field.hxx index 1ae79d6136..3ea2d54435 100644 --- a/src/StepData/StepData_Field.hxx +++ b/src/StepData/StepData_Field.hxx @@ -41,20 +41,20 @@ class StepData_SelectMember; //! declared as for a kind (Integer String etc), then declared as //! a list with its initial size, after this its items are set //! Also it can be set in once if the HArray is ready -class StepData_Field +class StepData_Field { public: DEFINE_STANDARD_ALLOC - + //! Creates a Field, empty ("no value defined") Standard_EXPORT StepData_Field(); - + //! Creates a Field from another one. If is True, Handled //! data (Select,String,List, not entities) are copied Standard_EXPORT StepData_Field(const StepData_Field& other, const Standard_Boolean copy = Standard_False); - + //! Gets the copy of the values of another field Standard_EXPORT void CopyFrom (const StepData_Field& other); @@ -69,122 +69,122 @@ public: //! Just before SetList, predeclares it as "any" //! A Kind can be directly set here to declare a type Standard_EXPORT void Clear (const Standard_Integer kind = 0); - + //! Codes a Field as derived (no proper value) Standard_EXPORT void SetDerived(); - + //! Directly sets the Integer value, if its Kind matches //! Integer, Boolean, Logical, or Enum (does not change Kind) Standard_EXPORT void SetInt (const Standard_Integer val); - + //! Sets an Integer value (before SetList* declares it as Integer) Standard_EXPORT void SetInteger (const Standard_Integer val = 0); - + //! Sets a Boolean value (or predeclares a list as boolean) Standard_EXPORT void SetBoolean (const Standard_Boolean val = Standard_False); - + //! Sets a Logical Value (or predeclares a list as logical) Standard_EXPORT void SetLogical (const StepData_Logical val = StepData_LFalse); - + //! Sets a Real Value (or predeclares a list as Real); Standard_EXPORT void SetReal (const Standard_Real val = 0.0); - - //! Sets a String Value (or predeclares a list as String) - //! Does not redefine the Kind if it is alread String or Enum + + //! Sets a String Value (or predeclares a list as String) + //! Does not redefine the Kind if it is already String or Enum Standard_EXPORT void SetString (const Standard_CString val = ""); - + //! Sets an Enum Value (as its integer counterpart) //! (or predeclares a list as Enum) //! If is given , also sets its textual expression //! negative means unknown (known values begin at 0) Standard_EXPORT void SetEnum (const Standard_Integer val = -1, const Standard_CString text = ""); - + //! Sets a SelectMember (for Integer,Boolean,Enum,Real,Logical) //! Hence, the value of the field is accessed through this member Standard_EXPORT void SetSelectMember (const Handle(StepData_SelectMember)& val); - + //! Sets an Entity Value Standard_EXPORT void SetEntity (const Handle(Standard_Transient)& val); - + //! Predeclares a list as of entity Standard_EXPORT void SetEntity(); - + //! Declares a field as a list, with an initial size //! Initial lower is defaulted as 1, can be defined //! The list starts empty, typed by the last Set* //! If no Set* before, sets it as "any" (transient/select) Standard_EXPORT void SetList (const Standard_Integer size, const Standard_Integer first = 1); - + //! Declares a field as an homogeneous square list, with initial //! sizes, and initial lowers Standard_EXPORT void SetList2 (const Standard_Integer siz1, const Standard_Integer siz2, const Standard_Integer f1 = 1, const Standard_Integer f2 = 1); - + //! Sets an undetermined value : can be String, SelectMember, //! HArray(1-2) ... else, an Entity //! In case of an HArray, determines and records its size(s) Standard_EXPORT void Set (const Handle(Standard_Transient)& val); - + //! Declares an item of the list as undefined //! (ignored if list not defined as String,Entity or Any) Standard_EXPORT void ClearItem (const Standard_Integer num); - + //! Internal access to an Integer Value for a list, plus its kind Standard_EXPORT void SetInt (const Standard_Integer num, const Standard_Integer val, const Standard_Integer kind); - + //! Sets an Integer Value for a list (rank num) //! (recognizes a SelectMember) Standard_EXPORT void SetInteger (const Standard_Integer num, const Standard_Integer val); - + Standard_EXPORT void SetBoolean (const Standard_Integer num, const Standard_Boolean val); - + Standard_EXPORT void SetLogical (const Standard_Integer num, const StepData_Logical val); - + //! Sets an Enum Value (Integer counterpart), also its text //! expression if known (if list has been set as "any") Standard_EXPORT void SetEnum (const Standard_Integer num, const Standard_Integer val, const Standard_CString text = ""); - + Standard_EXPORT void SetReal (const Standard_Integer num, const Standard_Real val); - + Standard_EXPORT void SetString (const Standard_Integer num, const Standard_CString val); - + Standard_EXPORT void SetEntity (const Standard_Integer num, const Handle(Standard_Transient)& val); - + Standard_EXPORT Standard_Boolean IsSet (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + //! Returns the kind of an item in a list or double list //! It is the kind of the list, except if it is "Any", in such a //! case the true kind is determined and returned Standard_EXPORT Standard_Integer ItemKind (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + //! Returns the kind of the field //! True (D) : returns only the type itself //! else, returns the complete kind Standard_EXPORT Standard_Integer Kind (const Standard_Boolean type = Standard_True) const; - + Standard_EXPORT Standard_Integer Arity() const; - + Standard_EXPORT Standard_Integer Length (const Standard_Integer index = 1) const; - + Standard_EXPORT Standard_Integer Lower (const Standard_Integer index = 1) const; - + Standard_EXPORT Standard_Integer Int() const; - + Standard_EXPORT Standard_Integer Integer (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT Standard_Boolean Boolean (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT StepData_Logical Logical (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT Standard_Real Real (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT Standard_CString String (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT Standard_Integer Enum (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT Standard_CString EnumText (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT Handle(Standard_Transient) Entity (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const; - + Standard_EXPORT Handle(Standard_Transient) Transient() const; diff --git a/src/StepData/StepData_FileProtocol.hxx b/src/StepData/StepData_FileProtocol.hxx index 5f83066d24..c4f8dfa083 100644 --- a/src/StepData/StepData_FileProtocol.hxx +++ b/src/StepData/StepData_FileProtocol.hxx @@ -67,7 +67,7 @@ public: //! recognized by the resources Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE; - //! Calls GlobalCheck for each of its recorded ressources + //! Calls GlobalCheck for each of its recorded resources Standard_EXPORT virtual Standard_Boolean GlobalCheck (const Interface_Graph& G, Handle(Interface_Check)& ach) const Standard_OVERRIDE; //! Returns the Schema Name attached to each class of Protocol diff --git a/src/StepData/StepData_GlobalNodeOfWriterLib.hxx b/src/StepData/StepData_GlobalNodeOfWriterLib.hxx index ee99849f0f..9baf5a681a 100644 --- a/src/StepData/StepData_GlobalNodeOfWriterLib.hxx +++ b/src/StepData/StepData_GlobalNodeOfWriterLib.hxx @@ -44,7 +44,7 @@ public: //! Adds a Module bound with a Protocol to the list : does //! nothing if already in the list, THAT IS, Same Type (exact //! match) and Same State (that is, IsEqual is not required) - //! Once added, stores its attached Protocol in correspondance + //! Once added, stores its attached Protocol in correspondence Standard_EXPORT void Add (const Handle(StepData_ReadWriteModule)& amodule, const Handle(StepData_Protocol)& aprotocol); //! Returns the Module stored in a given GlobalNode diff --git a/src/StepData/StepData_SelectType.hxx b/src/StepData/StepData_SelectType.hxx index 05040ef80a..c146699f10 100644 --- a/src/StepData/StepData_SelectType.hxx +++ b/src/StepData/StepData_SelectType.hxx @@ -43,12 +43,11 @@ class StepData_SelectMember; //! to control an input Argument //! //! This class implies to designate each member Type by a Case -//! Number which is a positive Integer value (this allows a faster -//! treatement). +//! Number which is a positive Integer value (this allows a faster treatment). //! //! With this class, a specific SelectType can : //! - recognize an Entity as complying or not with its definition, -//! - storing it, with the garanty that the stored Entity complies +//! - storing it, with the guarantee that the stored Entity complies //! with the definition of the SelectType //! - and (if judged useful) give the stored Entity under the good //! Type rather than simply "Transient". diff --git a/src/StepData/StepData_StepDumper.hxx b/src/StepData/StepData_StepDumper.hxx index 646b6ee256..77625a90b1 100644 --- a/src/StepData/StepData_StepDumper.hxx +++ b/src/StepData/StepData_StepDumper.hxx @@ -35,7 +35,7 @@ class StepData_StepWriter; //! these features : //! - same form as for writing a STEP File (because it is clear //! and compact enough, even if the names of the fields do not -//! appear) : thus, no additionnal resource is required +//! appear) : thus, no additional resource is required //! - possibility to look for an entity itself (only its Type or //! with its content), an entity and it shared items (one level) //! or all the entities its refers to, directly or recursively. @@ -61,7 +61,7 @@ public: Standard_EXPORT StepData_StepWriter& StepWriter(); //! Dumps a Entity on an Messenger. Returns True if - //! sucess, False, if the entity to dump has not been recognized + //! success, False, if the entity to dump has not been recognized //! by the Protocol. can have one of these values : //! - 0 : prints the TYPE only, as known in STEP Files (StepType) //! If has not been regognized by the Protocol, or if its @@ -72,7 +72,7 @@ public: //! - 2 : dumps the entity completely, plus the item its refers to //! at first level (a header message designates the starting //! entity of the dump) - //! - 3 : dumps the entity and its refered items at any levels + //! - 3 : dumps the entity and its referred items at any levels //! //! For levels 1,2,3, the numbers displayed (form #nnn) are the //! numbers of the corresponding entities in the Model diff --git a/src/StepData/StepData_StepModel.hxx b/src/StepData/StepData_StepModel.hxx index 7a291054be..953f166171 100644 --- a/src/StepData/StepData_StepModel.hxx +++ b/src/StepData/StepData_StepModel.hxx @@ -57,7 +57,7 @@ public: //! returns Header entities under the form of an iterator Standard_EXPORT Interface_EntityIterator Header() const; - //! says if a Header entity has a specifed type + //! says if a Header entity has a specified type Standard_EXPORT Standard_Boolean HasHeaderEntity (const Handle(Standard_Type)& atype) const; //! Returns Header entity with specified type, if there is diff --git a/src/StepData/StepData_StepReaderData.cxx b/src/StepData/StepData_StepReaderData.cxx index ca2ebcff7c..9cbda7914b 100644 --- a/src/StepData/StepData_StepReaderData.cxx +++ b/src/StepData/StepData_StepReaderData.cxx @@ -1289,7 +1289,7 @@ Standard_Boolean StepData_StepReaderData::ReadEntity(const Standard_Integer num, if (!sel.Matches(entent)) { errmess = new String("Parameter n0.%d (%s) : Entity has illegal type"); - //fot not suppported STEP entity + //fot not supported STEP entity if (!entent.IsNull() && entent->IsKind(STANDARD_TYPE(StepData_UndefinedEntity))) sel.SetValue(entent); } diff --git a/src/StepData/StepData_StepReaderData.hxx b/src/StepData/StepData_StepReaderData.hxx index 5cc8619e64..b46a3013c7 100644 --- a/src/StepData/StepData_StepReaderData.hxx +++ b/src/StepData/StepData_StepReaderData.hxx @@ -50,9 +50,9 @@ class StepData_StepReaderData; DEFINE_STANDARD_HANDLE(StepData_StepReaderData, Interface_FileReaderData) //! Specific FileReaderData for Step -//! Contains litteral description of entities (for each one : type +//! Contains literal description of entities (for each one : type //! as a string, ident, parameter list) -//! provides references evaluation, plus access to litteral data +//! provides references evaluation, plus access to literal data //! and specific access methods (Boolean, XY, XYZ) class StepData_StepReaderData : public Interface_FileReaderData { @@ -99,9 +99,9 @@ public: //! For a SubList or a Scope mark, remains empty Standard_EXPORT void ComplexType (const Standard_Integer num, TColStd_SequenceOfAsciiString& types) const; - //! Returns the Next "Componant" for a Complex Type Entity, of - //! which is already a Componant (the first one or a next one) - //! Returns 0 for a Simple Type or for the last Componant + //! Returns the Next "Component" for a Complex Type Entity, of + //! which is already a Component (the first one or a next one) + //! Returns 0 for a Simple Type or for the last Component Standard_EXPORT Standard_Integer NextForComplex (const Standard_Integer num) const; //! Determines the first component which brings a given name, for @@ -170,7 +170,7 @@ public: //! And if reading does not match its own description, the result //! will be False //! If is not it not yet created, it will be (SelectNamed) - //! Usefull if a field is defined as a SelectMember, directly + //! useful if a field is defined as a SelectMember, directly //! (SELECT with no Entity as member) //! But SelectType also manages SelectMember (for SELECT with //! some members as Entity, some other not) diff --git a/src/StepData/StepData_StepReaderTool.hxx b/src/StepData/StepData_StepReaderTool.hxx index fe22bb8714..a554777951 100644 --- a/src/StepData/StepData_StepReaderTool.hxx +++ b/src/StepData/StepData_StepReaderTool.hxx @@ -35,7 +35,7 @@ class Interface_InterfaceModel; //! Specific FileReaderTool for Step; works with FileReaderData -//! provides references evaluation, plus access to litteral data +//! provides references evaluation, plus access to literal data //! and specific methods defined by FileReaderTool //! Remarks : works with a ReaderLib to load Entities class StepData_StepReaderTool : public Interface_FileReaderTool diff --git a/src/StepData/StepData_StepWriter.cxx b/src/StepData/StepData_StepWriter.cxx index dc3695de8d..cfaee62174 100644 --- a/src/StepData/StepData_StepWriter.cxx +++ b/src/StepData/StepData_StepWriter.cxx @@ -12,7 +12,7 @@ // commercial license or contractual agreement. // List of changes: -//skl 29.01.2003 - deleted one space symbol at the begining +//skl 29.01.2003 - deleted one space symbol at the beginning // of strings from Header Section #include diff --git a/src/StepData/StepData_StepWriter.hxx b/src/StepData/StepData_StepWriter.hxx index 33e0df39e3..2202946e2b 100644 --- a/src/StepData/StepData_StepWriter.hxx +++ b/src/StepData/StepData_StepWriter.hxx @@ -109,7 +109,7 @@ public: Standard_EXPORT void SendData(); //! Send an Entity of the Data Section. If it corresponds to a - //! Scope, also Sends the Scope informations and contained Items + //! Scope, also Sends the Scope information and contained Items Standard_EXPORT void SendEntity (const Standard_Integer nument, const StepData_WriterLib& lib); //! sets end of section; to be done before passing to next one @@ -158,21 +158,21 @@ public: //! sets entity's StepType, opens brakets, starts param no to 0 //! params are separated by comma //! Remark : for a Multiple Type Entity (see Express ANDOR clause) - //! StartComplex must be called before sending componants, then - //! each "Componant" must be send separately (one call to - //! StartEntity for each one) : the Type which preceeds is then - //! automaticaly closed. Once all the componants have been sent, + //! StartComplex must be called before sending components, then + //! each "Component" must be sent separately (one call to + //! StartEntity for each one) : the Type which precedes is then + //! automatically closed. Once all the components have been sent, //! EndComplex must be called, then and only then EndEntity Standard_EXPORT void StartEntity (const TCollection_AsciiString& atype); //! sends the start of a complex entity, which is a simple open //! bracket (without increasing braket level) //! It must be called JUST AFTER SendEntity and BEFORE sending - //! componants, each one begins by StartEntity + //! components, each one begins by StartEntity Standard_EXPORT void StartComplex(); //! sends the end of a complex entity : a simple closed bracket - //! It must be called AFTER sending all the componants and BEFORE + //! It must be called AFTER sending all the components and BEFORE //! the final call to EndEntity Standard_EXPORT void EndComplex(); @@ -200,13 +200,13 @@ public: //! prepares adding a parameter (that is, adds ',' except for //! first one); normally for internal use; can be used to send - //! a totally empty parameter (with no litteral value) + //! a totally empty parameter (with no literal value) Standard_EXPORT void AddParam(); //! sends an integer parameter Standard_EXPORT void Send (const Standard_Integer val); - //! sends a real parameter (wroks with FloatWriter) + //! sends a real parameter (works with FloatWriter) Standard_EXPORT void Send (const Standard_Real val); //! sends a text given as string (it will be set between '...') @@ -232,20 +232,20 @@ public: //! sends a string exactly as it is given Standard_EXPORT void SendString (const Standard_CString val); - //! sends an enum given by String (litteral expression) + //! sends an enum given by String (literal expression) //! adds '.' around it if not done //! Remark : val can be computed by class EnumTool from StepData: //! StepWriter.SendEnum (myenum.Text(enumval)); Standard_EXPORT void SendEnum (const TCollection_AsciiString& val); - //! sends an enum given by String (litteral expression) + //! sends an enum given by String (literal expression) //! adds '.' around it if not done Standard_EXPORT void SendEnum (const Standard_CString val); //! sends an array of real Standard_EXPORT void SendArrReal (const Handle(TColStd_HArray1OfReal)& anArr); - //! sends an undefined (optionnal absent) parameter (by '$') + //! sends an undefined (optional absent) parameter (by '$') Standard_EXPORT void SendUndef(); //! sends a "Derived" parameter (by '*'). A Derived Parameter has diff --git a/src/StepData/StepData_UndefinedEntity.hxx b/src/StepData/StepData_UndefinedEntity.hxx index d3e2a46996..c53febd361 100644 --- a/src/StepData/StepData_UndefinedEntity.hxx +++ b/src/StepData/StepData_UndefinedEntity.hxx @@ -66,7 +66,7 @@ public: //! Returns True if defines a Multiple Type Entity (see ANDOR) Standard_EXPORT Standard_Boolean IsComplex() const; - //! For a Multiple Type Entity, returns the Next "Componant" + //! For a Multiple Type Entity, returns the Next "Component" //! For more than two Types, iterative definition (Next->Next...) //! Returns a Null Handle for the end of the List Standard_EXPORT Handle(StepData_UndefinedEntity) Next() const; diff --git a/src/StepFile/StepFile_ReadData.hxx b/src/StepFile/StepFile_ReadData.hxx index 49c98adae2..5d0b39c1b7 100644 --- a/src/StepFile/StepFile_ReadData.hxx +++ b/src/StepFile/StepFile_ReadData.hxx @@ -119,7 +119,7 @@ private: class ArgumentsPage; //!< List of arguments pages, contains all text derived from Flex class Scope; //!< List of scopes pages, contains all records for external processing class RecordsPage; //!< List of records pages, contains all records - class ErrorsPage; //!< List of errors messages, containts all errors + class ErrorsPage; //!< List of errors messages, contains all errors public: @@ -252,7 +252,7 @@ private: char* myCurrType; //!< Type of last record read char* mySubArg; //!< Ident last record (possible sub-list) Interface_ParamType myTypeArg; //!< Type of last argument read - Argument* myCurrArg; //!< Current node of the argumets list + Argument* myCurrArg; //!< Current node of the arguments list Record* myFirstRec; //!< First node of the records list Record* myCurRec; //!< Current node of the records list Record* myLastRec; //!< Last node of the records list diff --git a/src/StepGeom/StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve.cxx b/src/StepGeom/StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve.cxx index 726a65e215..6519477ccc 100644 --- a/src/StepGeom/StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve.cxx +++ b/src/StepGeom/StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve.cxx @@ -56,12 +56,12 @@ void StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve::Init( StepGeom_BSplineCurve::Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- bSplineCurveWithKnots = new StepGeom_BSplineCurveWithKnots(); bSplineCurveWithKnots->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect, aKnotMultiplicities, aKnots, aKnotSpec); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineCurve = new StepGeom_RationalBSplineCurve(); rationalBSplineCurve->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect, aWeightsData); diff --git a/src/StepGeom/StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx b/src/StepGeom/StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx index 4f2d27c678..bb4f57b64f 100644 --- a/src/StepGeom/StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx +++ b/src/StepGeom/StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx @@ -62,12 +62,12 @@ void StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface::Init( StepGeom_BSplineSurface::Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- bSplineSurfaceWithKnots = new StepGeom_BSplineSurfaceWithKnots(); bSplineSurfaceWithKnots->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect, aUMultiplicities, aVMultiplicities, aUKnots, aVKnots, aKnotSpec); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineSurface = new StepGeom_RationalBSplineSurface(); rationalBSplineSurface->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect, aWeightsData); diff --git a/src/StepGeom/StepGeom_BezierCurveAndRationalBSplineCurve.cxx b/src/StepGeom/StepGeom_BezierCurveAndRationalBSplineCurve.cxx index bfe3b77db3..538ef67f1a 100644 --- a/src/StepGeom/StepGeom_BezierCurveAndRationalBSplineCurve.cxx +++ b/src/StepGeom/StepGeom_BezierCurveAndRationalBSplineCurve.cxx @@ -53,12 +53,12 @@ void StepGeom_BezierCurveAndRationalBSplineCurve::Init( StepGeom_BSplineCurve::Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- bezierCurve = new StepGeom_BezierCurve(); bezierCurve->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineCurve = new StepGeom_RationalBSplineCurve(); rationalBSplineCurve->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect, aWeightsData); diff --git a/src/StepGeom/StepGeom_BezierSurfaceAndRationalBSplineSurface.cxx b/src/StepGeom/StepGeom_BezierSurfaceAndRationalBSplineSurface.cxx index 9bbedfb2e0..214cf8a026 100644 --- a/src/StepGeom/StepGeom_BezierSurfaceAndRationalBSplineSurface.cxx +++ b/src/StepGeom/StepGeom_BezierSurfaceAndRationalBSplineSurface.cxx @@ -57,12 +57,12 @@ void StepGeom_BezierSurfaceAndRationalBSplineSurface::Init( StepGeom_BSplineSurface::Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- bezierSurface = new StepGeom_BezierSurface(); bezierSurface->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineSurface = new StepGeom_RationalBSplineSurface(); rationalBSplineSurface->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect, aWeightsData); diff --git a/src/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx b/src/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx index c17466a43f..fa1a7e173d 100644 --- a/src/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx +++ b/src/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx @@ -69,17 +69,17 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Init StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType); - // --- ANDOR componant fields : GeometricRepresentationContext --- + // --- ANDOR component fields : GeometricRepresentationContext --- geometricRepresentationContext = new StepGeom_GeometricRepresentationContext(); geometricRepresentationContext->Init(aContextIdentifier, aContextType, aCoordinateSpaceDimension); - // --- ANDOR componant fields : GlobalUnitAssignedContext --- + // --- ANDOR component fields : GlobalUnitAssignedContext --- globalUnitAssignedContext = new StepRepr_GlobalUnitAssignedContext(); globalUnitAssignedContext->Init(aContextIdentifier, aContextType, aUnits); - // --- ANDOR componant fields : GlobalUncertaintyAssignedContext --- + // --- ANDOR component fields : GlobalUncertaintyAssignedContext --- globalUncertaintyAssignedContext = new StepRepr_GlobalUncertaintyAssignedContext(); globalUncertaintyAssignedContext->Init(aContextIdentifier, aContextType, anUncertainty); diff --git a/src/StepGeom/StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext.cxx b/src/StepGeom/StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext.cxx index 4e78afdbe7..35e5d7f28f 100644 --- a/src/StepGeom/StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext.cxx +++ b/src/StepGeom/StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext.cxx @@ -47,12 +47,12 @@ void StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext::Init( StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- geometricRepresentationContext = new StepGeom_GeometricRepresentationContext(); geometricRepresentationContext->Init(aContextIdentifier, aContextType, aCoordinateSpaceDimension); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- globalUnitAssignedContext = new StepRepr_GlobalUnitAssignedContext(); globalUnitAssignedContext->Init(aContextIdentifier, aContextType, aUnits); diff --git a/src/StepGeom/StepGeom_GeometricRepresentationContextAndParametricRepresentationContext.cxx b/src/StepGeom/StepGeom_GeometricRepresentationContextAndParametricRepresentationContext.cxx index 736539d5c6..6c5d2e72e4 100644 --- a/src/StepGeom/StepGeom_GeometricRepresentationContextAndParametricRepresentationContext.cxx +++ b/src/StepGeom/StepGeom_GeometricRepresentationContextAndParametricRepresentationContext.cxx @@ -46,12 +46,12 @@ void StepGeom_GeometricRepresentationContextAndParametricRepresentationContext:: StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- geometricRepresentationContext = new StepGeom_GeometricRepresentationContext(); geometricRepresentationContext->Init(aContextIdentifier, aContextType, aCoordinateSpaceDimension); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- parametricRepresentationContext = new StepRepr_ParametricRepresentationContext(); parametricRepresentationContext->Init(aContextIdentifier, aContextType); diff --git a/src/StepGeom/StepGeom_QuasiUniformCurveAndRationalBSplineCurve.cxx b/src/StepGeom/StepGeom_QuasiUniformCurveAndRationalBSplineCurve.cxx index 03fb560add..2ea4e0037c 100644 --- a/src/StepGeom/StepGeom_QuasiUniformCurveAndRationalBSplineCurve.cxx +++ b/src/StepGeom/StepGeom_QuasiUniformCurveAndRationalBSplineCurve.cxx @@ -53,12 +53,12 @@ void StepGeom_QuasiUniformCurveAndRationalBSplineCurve::Init( StepGeom_BSplineCurve::Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- quasiUniformCurve = new StepGeom_QuasiUniformCurve(); quasiUniformCurve->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineCurve = new StepGeom_RationalBSplineCurve(); rationalBSplineCurve->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect, aWeightsData); diff --git a/src/StepGeom/StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface.cxx b/src/StepGeom/StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface.cxx index ae9cb1f617..142666b6b5 100644 --- a/src/StepGeom/StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface.cxx +++ b/src/StepGeom/StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface.cxx @@ -57,12 +57,12 @@ void StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface::Init( StepGeom_BSplineSurface::Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- quasiUniformSurface = new StepGeom_QuasiUniformSurface(); quasiUniformSurface->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineSurface = new StepGeom_RationalBSplineSurface(); rationalBSplineSurface->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect, aWeightsData); diff --git a/src/StepGeom/StepGeom_UniformCurveAndRationalBSplineCurve.cxx b/src/StepGeom/StepGeom_UniformCurveAndRationalBSplineCurve.cxx index 11a9723804..2315315e8d 100644 --- a/src/StepGeom/StepGeom_UniformCurveAndRationalBSplineCurve.cxx +++ b/src/StepGeom/StepGeom_UniformCurveAndRationalBSplineCurve.cxx @@ -53,12 +53,12 @@ void StepGeom_UniformCurveAndRationalBSplineCurve::Init( StepGeom_BSplineCurve::Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineCurve = new StepGeom_RationalBSplineCurve(); rationalBSplineCurve->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect, aWeightsData); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- uniformCurve = new StepGeom_UniformCurve(); uniformCurve->Init(aName, aDegree, aControlPointsList, aCurveForm, aClosedCurve, aSelfIntersect); diff --git a/src/StepGeom/StepGeom_UniformSurfaceAndRationalBSplineSurface.cxx b/src/StepGeom/StepGeom_UniformSurfaceAndRationalBSplineSurface.cxx index b30c7a82de..a0a0a60006 100644 --- a/src/StepGeom/StepGeom_UniformSurfaceAndRationalBSplineSurface.cxx +++ b/src/StepGeom/StepGeom_UniformSurfaceAndRationalBSplineSurface.cxx @@ -57,12 +57,12 @@ void StepGeom_UniformSurfaceAndRationalBSplineSurface::Init( StepGeom_BSplineSurface::Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- rationalBSplineSurface = new StepGeom_RationalBSplineSurface(); rationalBSplineSurface->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect, aWeightsData); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- uniformSurface = new StepGeom_UniformSurface(); uniformSurface->Init(aName, aUDegree, aVDegree, aControlPointsList, aSurfaceForm, aUClosed, aVClosed, aSelfIntersect); diff --git a/src/StepSelect/StepSelect_FloatFormat.hxx b/src/StepSelect/StepSelect_FloatFormat.hxx index 0832978b11..4d25926959 100644 --- a/src/StepSelect/StepSelect_FloatFormat.hxx +++ b/src/StepSelect/StepSelect_FloatFormat.hxx @@ -59,7 +59,7 @@ public: //! Sets Main Format to a new value //! Remark : SetFormat, SetZeroSuppress and SetFormatForRange are - //! independant + //! independent Standard_EXPORT void SetFormat (const Standard_CString format = "%E"); //! Sets Format for Range to a new value with its range of diff --git a/src/StepShape/StepShape_FacetedBrepAndBrepWithVoids.cxx b/src/StepShape/StepShape_FacetedBrepAndBrepWithVoids.cxx index 7005377944..7427f6f663 100644 --- a/src/StepShape/StepShape_FacetedBrepAndBrepWithVoids.cxx +++ b/src/StepShape/StepShape_FacetedBrepAndBrepWithVoids.cxx @@ -47,12 +47,12 @@ void StepShape_FacetedBrepAndBrepWithVoids::Init StepShape_ManifoldSolidBrep::Init(aName, aOuter); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- brepWithVoids = new StepShape_BrepWithVoids(); brepWithVoids->Init(aName, aOuter, aVoids); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- facetedBrep = new StepShape_FacetedBrep(); facetedBrep->Init(aName, aOuter); diff --git a/src/StepShape/StepShape_LoopAndPath.cxx b/src/StepShape/StepShape_LoopAndPath.cxx index 3a9cef224e..33246d6464 100644 --- a/src/StepShape/StepShape_LoopAndPath.cxx +++ b/src/StepShape/StepShape_LoopAndPath.cxx @@ -44,12 +44,12 @@ void StepShape_LoopAndPath::Init( StepRepr_RepresentationItem::Init(aName); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- loop = new StepShape_Loop(); loop->Init(aName); - // --- ANDOR componant fields --- + // --- ANDOR component fields --- path = new StepShape_Path(); path->Init(aName, aEdgeList); diff --git a/src/StepShape/StepShape_OrientedClosedShell.cxx b/src/StepShape/StepShape_OrientedClosedShell.cxx index 9625053b33..2976aec5db 100644 --- a/src/StepShape/StepShape_OrientedClosedShell.cxx +++ b/src/StepShape/StepShape_OrientedClosedShell.cxx @@ -67,7 +67,7 @@ void StepShape_OrientedClosedShell::SetCfsFaces(const Handle(StepShape_HArray1Of Handle(StepShape_HArray1OfFace) StepShape_OrientedClosedShell::CfsFaces() const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return closedShellElement->CfsFaces(); } @@ -75,7 +75,7 @@ Handle(StepShape_HArray1OfFace) StepShape_OrientedClosedShell::CfsFaces() const Handle(StepShape_Face) StepShape_OrientedClosedShell::CfsFacesValue(const Standard_Integer num) const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return closedShellElement->CfsFacesValue(num); } @@ -83,7 +83,7 @@ Handle(StepShape_Face) StepShape_OrientedClosedShell::CfsFacesValue(const Standa Standard_Integer StepShape_OrientedClosedShell::NbCfsFaces () const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return closedShellElement->NbCfsFaces(); } diff --git a/src/StepShape/StepShape_OrientedEdge.cxx b/src/StepShape/StepShape_OrientedEdge.cxx index 82bbf369fb..b161597a89 100644 --- a/src/StepShape/StepShape_OrientedEdge.cxx +++ b/src/StepShape/StepShape_OrientedEdge.cxx @@ -70,7 +70,7 @@ void StepShape_OrientedEdge::SetEdgeStart(const Handle(StepShape_Vertex)& /*aEdg Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeStart() const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote if (edgeElement.IsNull()) return NULL; if (Orientation()) { @@ -91,7 +91,7 @@ void StepShape_OrientedEdge::SetEdgeEnd(const Handle(StepShape_Vertex)& /*aEdgeE Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeEnd() const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote if (edgeElement.IsNull()) return NULL; if (Orientation()) { diff --git a/src/StepShape/StepShape_OrientedFace.cxx b/src/StepShape/StepShape_OrientedFace.cxx index a6be662eb7..96ea7f4c20 100644 --- a/src/StepShape/StepShape_OrientedFace.cxx +++ b/src/StepShape/StepShape_OrientedFace.cxx @@ -67,7 +67,7 @@ void StepShape_OrientedFace::SetBounds(const Handle(StepShape_HArray1OfFaceBound Handle(StepShape_HArray1OfFaceBound) StepShape_OrientedFace::Bounds() const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return faceElement->Bounds(); @@ -76,7 +76,7 @@ Handle(StepShape_HArray1OfFaceBound) StepShape_OrientedFace::Bounds() const Handle(StepShape_FaceBound) StepShape_OrientedFace::BoundsValue(const Standard_Integer num) const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return faceElement->BoundsValue(num); } @@ -84,7 +84,7 @@ Handle(StepShape_FaceBound) StepShape_OrientedFace::BoundsValue(const Standard_I Standard_Integer StepShape_OrientedFace::NbBounds () const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return faceElement->NbBounds(); } diff --git a/src/StepShape/StepShape_OrientedOpenShell.cxx b/src/StepShape/StepShape_OrientedOpenShell.cxx index 30271449f9..dfa404ec96 100644 --- a/src/StepShape/StepShape_OrientedOpenShell.cxx +++ b/src/StepShape/StepShape_OrientedOpenShell.cxx @@ -67,7 +67,7 @@ void StepShape_OrientedOpenShell::SetCfsFaces(const Handle(StepShape_HArray1OfFa Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return openShellElement->CfsFaces(); } @@ -75,7 +75,7 @@ Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const Handle(StepShape_Face) StepShape_OrientedOpenShell::CfsFacesValue(const Standard_Integer num) const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return openShellElement->CfsFacesValue(num); } @@ -83,7 +83,7 @@ Handle(StepShape_Face) StepShape_OrientedOpenShell::CfsFacesValue(const Standard Standard_Integer StepShape_OrientedOpenShell::NbCfsFaces () const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote // Attention, cette modif. est juste pour la compilation return openShellElement->NbCfsFaces(); } diff --git a/src/StepShape/StepShape_OrientedPath.cxx b/src/StepShape/StepShape_OrientedPath.cxx index 7b875d49ce..7b67e3719c 100644 --- a/src/StepShape/StepShape_OrientedPath.cxx +++ b/src/StepShape/StepShape_OrientedPath.cxx @@ -67,7 +67,7 @@ void StepShape_OrientedPath::SetEdgeList(const Handle(StepShape_HArray1OfOriente Handle(StepShape_HArray1OfOrientedEdge) StepShape_OrientedPath::EdgeList() const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote if (orientation) return pathElement->EdgeList(); else { @@ -80,7 +80,7 @@ Handle(StepShape_HArray1OfOrientedEdge) StepShape_OrientedPath::EdgeList() const Handle(StepShape_OrientedEdge) StepShape_OrientedPath::EdgeListValue(const Standard_Integer num) const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote if (orientation) return pathElement->EdgeListValue(num); else { @@ -92,6 +92,6 @@ Handle(StepShape_OrientedEdge) StepShape_OrientedPath::EdgeListValue(const Stand Standard_Integer StepShape_OrientedPath::NbEdgeList () const { // WARNING : the field is redefined. - // method body is not yet automaticly wrote + // method body is not yet automatically wrote return pathElement->NbEdgeList(); } diff --git a/src/StepToGeom/StepToGeom.cxx b/src/StepToGeom/StepToGeom.cxx index b65e1b0d91..ec9e51b084 100644 --- a/src/StepToGeom/StepToGeom.cxx +++ b/src/StepToGeom/StepToGeom.cxx @@ -1387,7 +1387,7 @@ Handle(Geom_Line) StepToGeom::MakeLine (const Handle(StepGeom_Line)& SC) Handle(Geom_CartesianPoint) P = MakeCartesianPoint(SC->Pnt()); if (! P.IsNull()) { - // sln 22.10.2001. CTS23496: Line is not created if direction have not been succesfully created + // sln 22.10.2001. CTS23496: Line is not created if direction have not been successfully created Handle(Geom_VectorWithMagnitude) D = MakeVectorWithMagnitude (SC->Dir()); if (! D.IsNull()) { @@ -1409,7 +1409,7 @@ Handle(Geom2d_Line) StepToGeom::MakeLine2d (const Handle(StepGeom_Line)& SC) Handle(Geom2d_CartesianPoint) P = MakeCartesianPoint2d(SC->Pnt()); if (! P.IsNull()) { - // sln 23.10.2001. CTS23496: Line is not created if direction have not been succesfully created + // sln 23.10.2001. CTS23496: Line is not created if direction have not been successfully created Handle(Geom2d_VectorWithMagnitude) D = MakeVectorWithMagnitude2d (SC->Dir()); if (! D.IsNull()) { @@ -1697,7 +1697,7 @@ Handle(Geom_SurfaceOfLinearExtrusion) StepToGeom::MakeSurfaceOfLinearExtrusion ( Handle(Geom_Curve) C = MakeCurve (SS->SweptCurve()); if (! C.IsNull()) { - // sln 23.10.2001. CTS23496: Surface is not created if extrusion axis have not been succesfully created + // sln 23.10.2001. CTS23496: Surface is not created if extrusion axis have not been successfully created Handle(Geom_VectorWithMagnitude) V = MakeVectorWithMagnitude (SS->ExtrusionAxis()); if (! V.IsNull()) { @@ -1919,7 +1919,7 @@ static Standard_Boolean ExtractParameter } } // if the MasterRepresentation is unspecified: -// if a ParameterValue exists, it is prefered +// if a ParameterValue exists, it is preferred for ( i = 1 ; i <= nbSel ; i++) { StepGeom_TrimmingSelect theSel = TS->Value(i); @@ -2149,7 +2149,7 @@ Handle(Geom2d_BSplineCurve) StepToGeom::MakeTrimmedCurve2d (const Handle(StepGeo Handle(Geom_VectorWithMagnitude) StepToGeom::MakeVectorWithMagnitude (const Handle(StepGeom_Vector)& SV) { - // sln 22.10.2001. CTS23496: Vector is not created if direction have not been succesfully created + // sln 22.10.2001. CTS23496: Vector is not created if direction have not been successfully created Handle(Geom_Direction) D = MakeDirection (SV->Orientation()); if (! D.IsNull()) { @@ -2165,7 +2165,7 @@ Handle(Geom_VectorWithMagnitude) StepToGeom::MakeVectorWithMagnitude (const Hand Handle(Geom2d_VectorWithMagnitude) StepToGeom::MakeVectorWithMagnitude2d (const Handle(StepGeom_Vector)& SV) { - // sln 23.10.2001. CTS23496: Vector is not created if direction have not been succesfully created (MakeVectorWithMagnitude2d(...) function) + // sln 23.10.2001. CTS23496: Vector is not created if direction have not been successfully created (MakeVectorWithMagnitude2d(...) function) Handle(Geom2d_Direction) D = MakeDirection2d (SV->Orientation()); if (! D.IsNull()) { diff --git a/src/StepToTopoDS/StepToTopoDS_Builder.cxx b/src/StepToTopoDS/StepToTopoDS_Builder.cxx index 1fcbc6607d..4705cf0d0c 100644 --- a/src/StepToTopoDS/StepToTopoDS_Builder.cxx +++ b/src/StepToTopoDS/StepToTopoDS_Builder.cxx @@ -156,7 +156,7 @@ void StepToTopoDS_Builder::Init if ( TP->TraceLevel() > 2 ) { - sout << "Geometric Statitics : " << std::endl; + sout << "Geometric Statistics : " << std::endl; sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl; sout << " - C1 : " << myTool.C1Surf() << std::endl; sout << " - C2 : " << myTool.C2Surf() << std::endl; @@ -263,7 +263,7 @@ void StepToTopoDS_Builder::Init if ( TP->TraceLevel() > 2 ) { - sout << "Geometric Statitics : " << std::endl; + sout << "Geometric Statistics : " << std::endl; sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl; sout << " - C1 : " << myTool.C1Surf() << std::endl; sout << " - C2 : " << myTool.C2Surf() << std::endl; @@ -478,7 +478,7 @@ void StepToTopoDS_Builder::Init if ( TP->TraceLevel() > 2 ) { - sout << "Geometric Statitics : " << std::endl; + sout << "Geometric Statistics : " << std::endl; sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl; sout << " - C1 : " << myTool.C1Surf() << std::endl; sout << " - C2 : " << myTool.C2Surf() << std::endl; diff --git a/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx b/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx index 3a6bec4b4f..19e5d18517 100644 --- a/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx +++ b/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx @@ -170,7 +170,7 @@ Standard_Boolean StepToTopoDS_GeometricTool::IsLikeSeam } // the two oriented edges are not in the same wire if (nbOE == 1) { - // check is the two pcurve are not indentical ? + // check if the two pcurves are not identical ? Handle(StepGeom_Line) line1 = Handle(StepGeom_Line)::DownCast (StepPCurve1->ReferenceToCurve()->ItemsValue(1)); Handle(StepGeom_Line) line2 = Handle(StepGeom_Line)::DownCast diff --git a/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx b/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx index 42456b7a81..9de5910cf6 100644 --- a/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx +++ b/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx @@ -329,7 +329,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac anException.Print(std::cout); std::cout << std::endl; #endif (void)anException; - TP->AddFail(C, "Exeption was raised. Curve geometry definition is incorrect"); + TP->AddFail(C, "Exception was raised. Curve geometry definition is incorrect"); } } @@ -581,8 +581,8 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac if (hasPcurve && (isSeam || ThereIsLikeSeam)) { // ----------------------------------------------------------- - // The Edge is a Seam Edge : The pcurve wich is FORWARD has to - // be identified + // The Edge is a Seam Edge : The pcurve which is FORWARD has + // to be identified // ----------------------------------------------------------- if ((!C2d1.IsNull()) && (!C2d2.IsNull())) { diff --git a/src/Storage/Storage_BaseDriver.hxx b/src/Storage/Storage_BaseDriver.hxx index fb66ba3efc..a955d90082 100644 --- a/src/Storage/Storage_BaseDriver.hxx +++ b/src/Storage/Storage_BaseDriver.hxx @@ -174,7 +174,7 @@ public: Standard_EXPORT virtual Storage_Error Close() = 0; public: - //!@name Ouput methods + //!@name Output methods Standard_EXPORT virtual Storage_BaseDriver& PutReference (const Standard_Integer aValue) = 0; diff --git a/src/Storage/Storage_Data.hxx b/src/Storage/Storage_Data.hxx index 3e0ca3718a..8bec85e82e 100644 --- a/src/Storage/Storage_Data.hxx +++ b/src/Storage/Storage_Data.hxx @@ -145,19 +145,19 @@ public: //! returns data type Standard_EXPORT TCollection_ExtendedString DataType() const; - //! add to the user informations + //! add to the user information Standard_EXPORT void AddToUserInfo (const TCollection_AsciiString& anInfo); - //! return the user informations + //! return the user information Standard_EXPORT const TColStd_SequenceOfAsciiString& UserInfo() const; - //! add to the user informations + //! add to the user information Standard_EXPORT void AddToComments (const TCollection_ExtendedString& aComment); - //! return the user informations + //! return the user information Standard_EXPORT const TColStd_SequenceOfExtendedString& Comments() const; - //! the the number of persistent objects + //! the number of persistent objects //! Return: //! the number of persistent objects readed Standard_EXPORT Standard_Integer NumberOfObjects() const; diff --git a/src/Storage/Storage_Error.hxx b/src/Storage/Storage_Error.hxx index f0f3237a1c..a2c8d157bb 100644 --- a/src/Storage/Storage_Error.hxx +++ b/src/Storage/Storage_Error.hxx @@ -27,17 +27,17 @@ //! been opened in the correct mode //! - Storage_VSCloseError : an error has //! occurred when closing the driver -//! - Storage_VSAlreadyOpen : the driver is already open -//! - Storage_VSNotOpen : the driver is not open +//! - Storage_VSAlreadyOpen : the driver is already open +//! - Storage_VSNotOpen : the driver is not open //! - Storage_VSSectionNotFound : a section //! has not been found in the driver //! - Storage_VSWriteError : an error occurred when writing the driver //! - Storage_VSFormatError : the file format is wrong //! - Storage_VSUnknownType : a type is not known from the schema -//! - Storage_VSTypeMismatch : trying to read a wrong type -//! - Storage_VSInternalError : an internal error has been detected +//! - Storage_VSTypeMismatch : trying to read a wrong type +//! - Storage_VSInternalError : an internal error has been detected //! - Storage_VSExtCharParityError : an error -//! has occurred while reading 16 bit characte +//! has occurred while reading 16 bit character enum Storage_Error { Storage_VSOk, diff --git a/src/Storage/Storage_HeaderData.hxx b/src/Storage/Storage_HeaderData.hxx index 7ce511b8c6..f3e820d45f 100644 --- a/src/Storage/Storage_HeaderData.hxx +++ b/src/Storage/Storage_HeaderData.hxx @@ -77,19 +77,19 @@ public: //! returns data type Standard_EXPORT TCollection_ExtendedString DataType() const; - //! add to the user informations + //! add to the user information Standard_EXPORT void AddToUserInfo (const TCollection_AsciiString& theUserInfo); - //! return the user informations + //! return the user information Standard_EXPORT const TColStd_SequenceOfAsciiString& UserInfo() const; - //! add to the user informations + //! add to the user information Standard_EXPORT void AddToComments (const TCollection_ExtendedString& aComment); - //! return the user informations + //! return the user information Standard_EXPORT const TColStd_SequenceOfExtendedString& Comments() const; - //! the the number of persistent objects + //! the number of persistent objects //! Return: //! the number of persistent objects readed Standard_EXPORT Standard_Integer NumberOfObjects() const; diff --git a/src/Storage/Storage_Schema.hxx b/src/Storage/Storage_Schema.hxx index b557452aeb..b564412b74 100644 --- a/src/Storage/Storage_Schema.hxx +++ b/src/Storage/Storage_Schema.hxx @@ -110,13 +110,13 @@ public: //! returns True if theType migration is identified //! the callback support provides a way to read a file //! with a incomplete schema. - //! ex. : A file contains 3 types a,b and c. + //! ex. : A file contains 3 types a, b, and c. //! The application's schema contains only 2 //! type a and b. If you try to read the file in //! the application, you will have an error.To //! bypass this problem you can give to your //! application's schema a callback used when - //! the schema dosent know how to handle this + //! the schema doesn't know how to handle this //! type. Standard_EXPORT static Standard_Boolean CheckTypeMigration (const TCollection_AsciiString& theTypeName, TCollection_AsciiString& theNewName); diff --git a/src/Sweep/Sweep_NumShapeIterator.hxx b/src/Sweep/Sweep_NumShapeIterator.hxx index 9a064a4a41..1e37cd83cb 100644 --- a/src/Sweep/Sweep_NumShapeIterator.hxx +++ b/src/Sweep/Sweep_NumShapeIterator.hxx @@ -42,7 +42,7 @@ public: Standard_EXPORT Sweep_NumShapeIterator(); - //! Resest the NumShapeIterator on sub-shapes of . + //! Reset the NumShapeIterator on sub-shapes of . Standard_EXPORT void Init (const Sweep_NumShape& aShape); //! Returns True if there is a current sub-shape. diff --git a/src/gce/gce_MakeTranslation.cxx b/src/gce/gce_MakeTranslation.cxx index ea2a17a37c..ca6d87092e 100644 --- a/src/gce/gce_MakeTranslation.cxx +++ b/src/gce/gce_MakeTranslation.cxx @@ -21,7 +21,7 @@ #include //========================================================================= -// Creation d une translation 3d de gp de vecteur de tanslation Vec. + +// Creation d une translation 3d de gp de vecteur de translation Vec. + //========================================================================= gce_MakeTranslation:: gce_MakeTranslation(const gp_Vec& Vec ) { @@ -29,7 +29,7 @@ gce_MakeTranslation:: } //========================================================================= -// Creation d une translation 3d de gp de vecteur de tanslation le + +// Creation d une translation 3d de gp de vecteur de translation le + // vecteur reliant Point1 a Point2. + //========================================================================= diff --git a/src/gce/gce_MakeTranslation2d.cxx b/src/gce/gce_MakeTranslation2d.cxx index 63f0278a55..57ae25609a 100644 --- a/src/gce/gce_MakeTranslation2d.cxx +++ b/src/gce/gce_MakeTranslation2d.cxx @@ -21,7 +21,7 @@ #include //========================================================================= -// Creation d une translation 2d de gp de vecteur de tanslation Vec. + +// Creation d une translation 2d de gp de vecteur de translation Vec. + //========================================================================= gce_MakeTranslation2d:: gce_MakeTranslation2d(const gp_Vec2d& Vec ) { @@ -29,7 +29,7 @@ gce_MakeTranslation2d:: } //========================================================================= -// Creation d une translation 2d de gp de vecteur de tanslation le + +// Creation d une translation 2d de gp de vecteur de translation le + // vecteur reliant Point1 a Point2. + //========================================================================= diff --git a/src/gp/gp_Ax1.hxx b/src/gp/gp_Ax1.hxx index c358413d6b..3efc5e17fd 100644 --- a/src/gp/gp_Ax1.hxx +++ b/src/gp/gp_Ax1.hxx @@ -50,7 +50,7 @@ public: //! Creates an axis object representing Z axis of - //! the reference co-ordinate system. + //! the reference coordinate system. gp_Ax1(); diff --git a/src/gp/gp_Ax22d.hxx b/src/gp/gp_Ax22d.hxx index a249c162d6..5fdc7076aa 100644 --- a/src/gp/gp_Ax22d.hxx +++ b/src/gp/gp_Ax22d.hxx @@ -58,7 +58,7 @@ public: //! Creates an object representing the reference - //! co-ordinate system (OXY). + //! coordinate system (OXY). gp_Ax22d(); diff --git a/src/gp/gp_Ax2d.hxx b/src/gp/gp_Ax2d.hxx index 03b9ff26d7..a484c953d4 100644 --- a/src/gp/gp_Ax2d.hxx +++ b/src/gp/gp_Ax2d.hxx @@ -56,7 +56,7 @@ public: //! Creates an axis object representing X axis of - //! the reference co-ordinate system. + //! the reference coordinate system. gp_Ax2d(); diff --git a/src/gp/gp_EulerSequence.hxx b/src/gp/gp_EulerSequence.hxx index 39659f608c..572811e9cb 100644 --- a/src/gp/gp_EulerSequence.hxx +++ b/src/gp/gp_EulerSequence.hxx @@ -24,11 +24,11 @@ //! //! The name of the enumeration //! corresponds to order of rotations, prefixed by type -//! of co-ordinate system used: +//! of coordinate system used: //! - Intrinsic: rotations are made around axes of rotating -//! co-ordinate system associated with the object +//! coordinate system associated with the object //! - Extrinsic: rotations are made around axes of fixed -//! (static) co-ordinate system +//! (static) coordinate system //! //! Two specific values are provided for most frequently used //! conventions: classic Euler angles (intrinsic ZXZ) and