diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 3b29ed539e..182f61fd00 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -367,14 +367,14 @@ Each method **MUST** be preceded by: 2. An empty line after the separator ```cpp -//================================================================================================== +//================================================================================================= void MyClass::MyMethod(const TopoDS_Shape& theShape) { // Implementation } -//================================================================================================== +//================================================================================================= bool MyClass::AnotherMethod() { @@ -385,10 +385,10 @@ bool MyClass::AnotherMethod() **DO NOT use old-style function guards:** ```cpp // WRONG - Do not use this style: -//================================================================================================== +//================================================================================================= // purpose: Description of what the method does // function: MyClass::MyMethod -//================================================================================================== +//================================================================================================= ``` ### Technical Comments @@ -398,7 +398,7 @@ Place implementation notes inside the method body: - Inline where specific logic needs explanation ```cpp -//================================================================================================== +//================================================================================================= void MyClass::ComplexMethod(const TopoDS_Shape& theShape) { diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_Axis2Placement3dReducer.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_Axis2Placement3dReducer.cxx index 37e5c099df..e8cdb24aff 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_Axis2Placement3dReducer.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_Axis2Placement3dReducer.cxx @@ -27,7 +27,7 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_Axis2Placement3dReducer::StepTidy_Axis2Placement3dReducer( const occ::handle& theWS) @@ -52,7 +52,7 @@ StepTidy_Axis2Placement3dReducer::StepTidy_Axis2Placement3dReducer( registerReplacer(STANDARD_TYPE(StepGeom_SphericalSurface), replaceSphericalSurface); } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replacePlane( const occ::handle& theOldEntity, @@ -68,7 +68,7 @@ bool StepTidy_Axis2Placement3dReducer::replacePlane( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceItemDefinedTransformation( const occ::handle& theOldEntity, @@ -91,7 +91,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceItemDefinedTransformation( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceCylindricalSurface( const occ::handle& theOldEntity, @@ -108,7 +108,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceCylindricalSurface( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceShapeRepresentation( const occ::handle& theOldEntity, @@ -129,7 +129,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceShapeRepresentation( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceConstructiveGeometryRepresentation( const occ::handle& theOldEntity, @@ -150,7 +150,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceConstructiveGeometryRepresentation return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceCircle( const occ::handle& theOldEntity, @@ -167,7 +167,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceCircle( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replacePresentationLayerAssignment( const occ::handle& theOldEntity, @@ -190,7 +190,7 @@ bool StepTidy_Axis2Placement3dReducer::replacePresentationLayerAssignment( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceStyledItem( const occ::handle& theOldEntity, @@ -206,7 +206,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceStyledItem( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceEllipse( const occ::handle& theOldEntity, @@ -223,7 +223,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceEllipse( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceConicalSurface( const occ::handle& theOldEntity, @@ -240,7 +240,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceConicalSurface( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceToroidalSurface( const occ::handle& theOldEntity, @@ -257,7 +257,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceToroidalSurface( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceAdvancedBrepShapeRepresentation( const occ::handle& theOldEntity, @@ -278,7 +278,7 @@ bool StepTidy_Axis2Placement3dReducer::replaceAdvancedBrepShapeRepresentation( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_Axis2Placement3dReducer::replaceSphericalSurface( const occ::handle& theOldEntity, diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CartesianPointReducer.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CartesianPointReducer.cxx index 2d3588516a..17bcd48fbd 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CartesianPointReducer.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CartesianPointReducer.cxx @@ -27,7 +27,7 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_CartesianPointReducer::StepTidy_CartesianPointReducer( const occ::handle& theWS) @@ -50,7 +50,7 @@ StepTidy_CartesianPointReducer::StepTidy_CartesianPointReducer( registerReplacer(STANDARD_TYPE(StepRepr_Representation), replaceRepresentation); } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceAxis2Placement3d( const occ::handle& theOldEntity, @@ -67,7 +67,7 @@ bool StepTidy_CartesianPointReducer::replaceAxis2Placement3d( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceVertexPoint( const occ::handle& theOldEntity, @@ -83,7 +83,7 @@ bool StepTidy_CartesianPointReducer::replaceVertexPoint( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceGeometricCurveSet( const occ::handle& theOldEntity, @@ -104,7 +104,7 @@ bool StepTidy_CartesianPointReducer::replaceGeometricCurveSet( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replacePresentationLayerAssignment( const occ::handle& theOldEntity, @@ -126,7 +126,7 @@ bool StepTidy_CartesianPointReducer::replacePresentationLayerAssignment( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceStyledItem( const occ::handle& theOldEntity, @@ -142,7 +142,7 @@ bool StepTidy_CartesianPointReducer::replaceStyledItem( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceBSplineCurveWithKnots( const occ::handle& theOldEntity, @@ -165,7 +165,7 @@ bool StepTidy_CartesianPointReducer::replaceBSplineCurveWithKnots( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceLine( const occ::handle& theOldEntity, @@ -181,7 +181,7 @@ bool StepTidy_CartesianPointReducer::replaceLine( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceBSplineSurfaceWithKnots( const occ::handle& theOldEntity, @@ -209,7 +209,7 @@ bool StepTidy_CartesianPointReducer::replaceBSplineSurfaceWithKnots( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceAxis1Placement( const occ::handle& theOldEntity, @@ -226,7 +226,7 @@ bool StepTidy_CartesianPointReducer::replaceAxis1Placement( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceRepresentation( const occ::handle& theOldEntity, @@ -250,7 +250,7 @@ bool StepTidy_CartesianPointReducer::replaceRepresentation( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceBSplineCurveWithKnotsAndRationalBSplineCurve( const occ::handle& theOldEntity, @@ -273,7 +273,7 @@ bool StepTidy_CartesianPointReducer::replaceBSplineCurveWithKnotsAndRationalBSpl return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_CartesianPointReducer::replaceBSplineSurfaceWithKnotsAndRationalBSplineSurface( const occ::handle& theOldEntity, diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CircleReducer.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CircleReducer.cxx index 716fa93f96..0ffeff8e57 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CircleReducer.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_CircleReducer.cxx @@ -18,7 +18,7 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_CircleReducer::StepTidy_CircleReducer(const occ::handle& theWS) : StepTidy_EntityReducer(theWS) @@ -28,7 +28,7 @@ StepTidy_CircleReducer::StepTidy_CircleReducer(const occ::handle& theOldEntity, const occ::handle& theNewEntity, @@ -43,7 +43,7 @@ bool StepTidy_CircleReducer::replaceEdgeCurve(const occ::handle return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_CircleReducer::replaceSurfaceCurve(const occ::handle& theOldEntity, const occ::handle& theNewEntity, @@ -58,7 +58,7 @@ bool StepTidy_CircleReducer::replaceSurfaceCurve(const occ::handle& theOldEntity, const occ::handle& theNewEntity, diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DirectionReducer.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DirectionReducer.cxx index ec2bebfaa7..235409f8cc 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DirectionReducer.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DirectionReducer.cxx @@ -18,7 +18,7 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_DirectionReducer::StepTidy_DirectionReducer( const occ::handle& theWS) @@ -29,7 +29,7 @@ StepTidy_DirectionReducer::StepTidy_DirectionReducer( registerReplacer(STANDARD_TYPE(StepGeom_Vector), replaceVector); } -//================================================================================================== +//================================================================================================= bool StepTidy_DirectionReducer::replaceAxis1Placement( const occ::handle& theOldEntity, @@ -46,7 +46,7 @@ bool StepTidy_DirectionReducer::replaceAxis1Placement( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_DirectionReducer::replaceAxis2Placement3d( const occ::handle& theOldEntity, @@ -68,7 +68,7 @@ bool StepTidy_DirectionReducer::replaceAxis2Placement3d( return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_DirectionReducer::replaceVector(const occ::handle& theOldEntity, const occ::handle& theNewEntity, diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DuplicateCleaner.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DuplicateCleaner.cxx index bcfa045e7d..e01b2f0933 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DuplicateCleaner.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_DuplicateCleaner.cxx @@ -25,14 +25,14 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_DuplicateCleaner::StepTidy_DuplicateCleaner(occ::handle theWS) : myWS(std::move(theWS)) { } -//================================================================================================== +//================================================================================================= void StepTidy_DuplicateCleaner::Perform() { @@ -78,7 +78,7 @@ void StepTidy_DuplicateCleaner::Perform() removeEntities(aReplacedEntities); } -//================================================================================================== +//================================================================================================= void StepTidy_DuplicateCleaner::removeEntities( const NCollection_Map>& theToRemove) diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_EntityReducer.pxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_EntityReducer.pxx index 75b005305b..0fd1d36eec 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_EntityReducer.pxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_EntityReducer.pxx @@ -118,7 +118,7 @@ private: DuplicateMap myDuplicateMap; //!< Map of duplicate entities. }; -//================================================================================================== +//================================================================================================= template StepTidy_EntityReducer::StepTidy_EntityReducer( @@ -129,7 +129,7 @@ StepTidy_EntityReducer::StepTidy_EntityReduc { } -//================================================================================================== +//================================================================================================= template bool StepTidy_EntityReducer::ProcessEntity( @@ -161,7 +161,7 @@ bool StepTidy_EntityReducer::ProcessEntity( return true; } -//================================================================================================== +//================================================================================================= template void StepTidy_EntityReducer::Perform( @@ -194,7 +194,7 @@ void StepTidy_EntityReducer::Perform( } } -//================================================================================================== +//================================================================================================= template void StepTidy_EntityReducer::registerReplacer( @@ -204,7 +204,7 @@ void StepTidy_EntityReducer::registerReplace myReplacerMap.Bind(theType, theReplacer); } -//================================================================================================== +//================================================================================================= template bool StepTidy_EntityReducer::hasAllReplacers( @@ -221,7 +221,7 @@ bool StepTidy_EntityReducer::hasAllReplacers }); } -//================================================================================================== +//================================================================================================= template bool StepTidy_EntityReducer::replaceInSharings( const occ::handle& theOldEntity, diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_LineReducer.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_LineReducer.cxx index 630f168f0a..06595c28b1 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_LineReducer.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_LineReducer.cxx @@ -20,7 +20,7 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_LineReducer::StepTidy_LineReducer(const occ::handle& theWS) : StepTidy_EntityReducer(theWS) @@ -33,7 +33,7 @@ StepTidy_LineReducer::StepTidy_LineReducer(const occ::handle& theOldEntity, const occ::handle& theNewEntity, @@ -48,7 +48,7 @@ bool StepTidy_LineReducer::replaceEdgeCurve(const occ::handle& return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_LineReducer::replaceTrimmedCurve(const occ::handle& theOldEntity, const occ::handle& theNewEntity, @@ -63,7 +63,7 @@ bool StepTidy_LineReducer::replaceTrimmedCurve(const occ::handle& return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_LineReducer::replaceSurfaceCurve(const occ::handle& theOldEntity, const occ::handle& theNewEntity, @@ -78,7 +78,7 @@ bool StepTidy_LineReducer::replaceSurfaceCurve(const occ::handle& return false; } -//================================================================================================== +//================================================================================================= bool StepTidy_LineReducer::replaceDefinitionalRepresentation( const occ::handle& theOldEntity, @@ -102,7 +102,7 @@ bool StepTidy_LineReducer::replaceDefinitionalRepresentation( return isReplaced; } -//================================================================================================== +//================================================================================================= bool StepTidy_LineReducer::replaceSeamCurve(const occ::handle& theOldEntity, const occ::handle& theNewEntity, diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_PlaneReducer.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_PlaneReducer.cxx index e9623b0413..45ddfe99b0 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_PlaneReducer.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_PlaneReducer.cxx @@ -16,7 +16,7 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_PlaneReducer::StepTidy_PlaneReducer(const occ::handle& theWS) : StepTidy_EntityReducer(theWS) @@ -25,7 +25,7 @@ StepTidy_PlaneReducer::StepTidy_PlaneReducer(const occ::handle& theOldEntity, const occ::handle& theNewEntity, @@ -40,7 +40,7 @@ bool StepTidy_PlaneReducer::replaceAdvancedFace(const occ::handle& theOldEntity, const occ::handle& theNewEntity, const occ::handle& theSharing) diff --git a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_VectorReducer.cxx b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_VectorReducer.cxx index f0f76e8068..5556739183 100644 --- a/src/DataExchange/TKDESTEP/StepTidy/StepTidy_VectorReducer.cxx +++ b/src/DataExchange/TKDESTEP/StepTidy/StepTidy_VectorReducer.cxx @@ -17,7 +17,7 @@ #include #include -//================================================================================================== +//================================================================================================= StepTidy_VectorReducer::StepTidy_VectorReducer(const occ::handle& theWS) : StepTidy_EntityReducer(theWS) @@ -25,7 +25,7 @@ StepTidy_VectorReducer::StepTidy_VectorReducer(const occ::handle& theOldEntity, const occ::handle& theNewEntity, diff --git a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.cxx b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.cxx index e9fa1d8228..f4ae0ef717 100644 --- a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.cxx +++ b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib.cxx @@ -4646,7 +4646,7 @@ const double& BSplCLib::FlatBezierKnots(const int Degree) return knots[25 - Degree]; } -//================================================================================================== +//================================================================================================= namespace { @@ -4678,7 +4678,7 @@ NCollection_Array1 BSplCLib::UnitWeights(const int theNbElems) return aResult; } -//================================================================================================== +//================================================================================================= const double* BSplCLib::UnitWeightsData() { diff --git a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_1.cxx b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_1.cxx index 95e8a15f63..8457a2afd8 100644 --- a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_1.cxx +++ b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_1.cxx @@ -26,14 +26,14 @@ // Explicit template instantiations for 2D types // This replaces the old macro-based approach with modern C++ templates -//================================================================================================== +//================================================================================================= void BSplCLib::Reverse(NCollection_Array1& Poles, const int L) { BSplCLib_Reverse(Poles, L); } -//================================================================================================== +//================================================================================================= bool BSplCLib::RemoveKnot(const int Index, const int Mult, @@ -64,7 +64,7 @@ bool BSplCLib::RemoveKnot(const int Index, Tolerance); } -//================================================================================================== +//================================================================================================= void BSplCLib::InsertKnots(const int Degree, const bool Periodic, @@ -97,7 +97,7 @@ void BSplCLib::InsertKnots(const int Degree, Add); } -//================================================================================================== +//================================================================================================= void BSplCLib::InsertKnot(const int, const double U, @@ -124,7 +124,7 @@ void BSplCLib::InsertKnot(const int, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::RaiseMultiplicity(const int KnotIndex, const int Mult, @@ -149,7 +149,7 @@ void BSplCLib::RaiseMultiplicity(const int KnotIndex, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::IncreaseDegree(const int Degree, const int NewDegree, @@ -176,7 +176,7 @@ void BSplCLib::IncreaseDegree(const int Degree, NewMults); } -//================================================================================================== +//================================================================================================= void BSplCLib::Unperiodize(const int Degree, const NCollection_Array1& Mults, @@ -199,7 +199,7 @@ void BSplCLib::Unperiodize(const int Degree, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::Trimming(const int Degree, const bool Periodic, @@ -228,7 +228,7 @@ void BSplCLib::Trimming(const int Degree, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::BuildEval(const int Degree, const int Index, @@ -243,7 +243,7 @@ void BSplCLib::BuildEval(const int Degree, LP); } -//================================================================================================== +//================================================================================================= void BSplCLib::D0(const double U, const int Index, @@ -266,7 +266,7 @@ void BSplCLib::D0(const double U, P); } -//================================================================================================== +//================================================================================================= void BSplCLib::D1(const double U, const int Index, @@ -291,7 +291,7 @@ void BSplCLib::D1(const double U, V); } -//================================================================================================== +//================================================================================================= void BSplCLib::D2(const double U, const int Index, @@ -318,7 +318,7 @@ void BSplCLib::D2(const double U, V2); } -//================================================================================================== +//================================================================================================= void BSplCLib::D3(const double U, const int Index, @@ -347,7 +347,7 @@ void BSplCLib::D3(const double U, V3); } -//================================================================================================== +//================================================================================================= void BSplCLib::DN(const double U, const int N, @@ -372,7 +372,7 @@ void BSplCLib::DN(const double U, VN); } -//================================================================================================== +//================================================================================================= int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, const int UpperBandWidth, @@ -386,7 +386,7 @@ int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, PolesArray); } -//================================================================================================== +//================================================================================================= int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, const int UpperBandWidth, @@ -404,7 +404,7 @@ int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, WeightsArray); } -//================================================================================================== +//================================================================================================= void BSplCLib::Eval(const double Parameter, const bool PeriodicFlag, @@ -429,7 +429,7 @@ void BSplCLib::Eval(const double Parameter, aWeight); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD0(const double Parameter, const int Degree, @@ -448,7 +448,7 @@ void BSplCLib::CacheD0(const double Parameter, aPoint); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD1(const double Parameter, const int Degree, @@ -469,7 +469,7 @@ void BSplCLib::CacheD1(const double Parameter, aVector); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD2(const double Parameter, const int Degree, @@ -492,7 +492,7 @@ void BSplCLib::CacheD2(const double Parameter, aVector2); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD3(const double Parameter, const int Degree, @@ -517,7 +517,7 @@ void BSplCLib::CacheD3(const double Parameter, aVector3); } -//================================================================================================== +//================================================================================================= void BSplCLib::BuildCache(const double U, const double SpanDomain, @@ -540,7 +540,7 @@ void BSplCLib::BuildCache(const double U, CacheWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::BuildCache(const double theParameter, const double theSpanDomain, @@ -563,7 +563,7 @@ void BSplCLib::BuildCache(const double theParameter, theCacheArray); } -//================================================================================================== +//================================================================================================= void BSplCLib::Interpolate(const int Degree, const NCollection_Array1& FlatKnots, @@ -580,7 +580,7 @@ void BSplCLib::Interpolate(const int Degree, InversionProblem); } -//================================================================================================== +//================================================================================================= void BSplCLib::Interpolate(const int Degree, const NCollection_Array1& FlatKnots, @@ -599,7 +599,7 @@ void BSplCLib::Interpolate(const int Degree, InversionProblem); } -//================================================================================================== +//================================================================================================= void BSplCLib::MovePoint(const double U, const gp_Vec2d& Displ, @@ -626,7 +626,7 @@ void BSplCLib::MovePoint(const double U, NewPoles); } -//================================================================================================== +//================================================================================================= void BSplCLib::MovePointAndTangent(const double U, const gp_Vec2d& Delta, @@ -656,7 +656,7 @@ void BSplCLib::MovePointAndTangent(const double U, ErrorStatus); } -//================================================================================================== +//================================================================================================= void BSplCLib::Resolution(const NCollection_Array1& Poles, const NCollection_Array1* Weights, @@ -675,7 +675,7 @@ void BSplCLib::Resolution(const NCollection_Array1& Poles, UTolerance); } -//================================================================================================== +//================================================================================================= void BSplCLib::FunctionMultiply(const BSplCLib_EvaluatorFunction& FunctionPtr, const int BSplineDegree, @@ -696,7 +696,7 @@ void BSplCLib::FunctionMultiply(const BSplCLib_EvaluatorFunction& FunctionPtr, theStatus); } -//================================================================================================== +//================================================================================================= void BSplCLib::FunctionReparameterise(const BSplCLib_EvaluatorFunction& FunctionPtr, const int BSplineDegree, diff --git a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_3.cxx b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_3.cxx index e455b9d03b..db5e455b2d 100644 --- a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_3.cxx +++ b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_3.cxx @@ -31,14 +31,14 @@ // Explicit template instantiations for 3D types // This replaces the old macro-based approach with modern C++ templates -//================================================================================================== +//================================================================================================= void BSplCLib::Reverse(NCollection_Array1& Poles, const int L) { BSplCLib_Reverse(Poles, L); } -//================================================================================================== +//================================================================================================= bool BSplCLib::RemoveKnot(const int Index, const int Mult, @@ -69,7 +69,7 @@ bool BSplCLib::RemoveKnot(const int Index, Tolerance); } -//================================================================================================== +//================================================================================================= void BSplCLib::InsertKnots(const int Degree, const bool Periodic, @@ -102,7 +102,7 @@ void BSplCLib::InsertKnots(const int Degree, Add); } -//================================================================================================== +//================================================================================================= void BSplCLib::InsertKnot(const int, const double U, @@ -129,7 +129,7 @@ void BSplCLib::InsertKnot(const int, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::RaiseMultiplicity(const int KnotIndex, const int Mult, @@ -154,7 +154,7 @@ void BSplCLib::RaiseMultiplicity(const int KnotIndex, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::IncreaseDegree(const int Degree, const int NewDegree, @@ -181,7 +181,7 @@ void BSplCLib::IncreaseDegree(const int Degree, NewMults); } -//================================================================================================== +//================================================================================================= void BSplCLib::Unperiodize(const int Degree, const NCollection_Array1& Mults, @@ -204,7 +204,7 @@ void BSplCLib::Unperiodize(const int Degree, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::Trimming(const int Degree, const bool Periodic, @@ -233,7 +233,7 @@ void BSplCLib::Trimming(const int Degree, NewWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::BuildEval(const int Degree, const int Index, @@ -248,7 +248,7 @@ void BSplCLib::BuildEval(const int Degree, LP); } -//================================================================================================== +//================================================================================================= void BSplCLib::D0(const double U, const int Index, @@ -271,7 +271,7 @@ void BSplCLib::D0(const double U, P); } -//================================================================================================== +//================================================================================================= void BSplCLib::D1(const double U, const int Index, @@ -296,7 +296,7 @@ void BSplCLib::D1(const double U, V); } -//================================================================================================== +//================================================================================================= void BSplCLib::D2(const double U, const int Index, @@ -323,7 +323,7 @@ void BSplCLib::D2(const double U, V2); } -//================================================================================================== +//================================================================================================= void BSplCLib::D3(const double U, const int Index, @@ -352,7 +352,7 @@ void BSplCLib::D3(const double U, V3); } -//================================================================================================== +//================================================================================================= void BSplCLib::DN(const double U, const int N, @@ -377,7 +377,7 @@ void BSplCLib::DN(const double U, VN); } -//================================================================================================== +//================================================================================================= int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, const int UpperBandWidth, @@ -390,7 +390,7 @@ int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, PolesArray); } -//================================================================================================== +//================================================================================================= int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, const int UpperBandWidth, @@ -407,7 +407,7 @@ int BSplCLib::SolveBandedSystem(const math_Matrix& Matrix, WeightsArray); } -//================================================================================================== +//================================================================================================= void BSplCLib::Eval(const double Parameter, const bool PeriodicFlag, @@ -432,7 +432,7 @@ void BSplCLib::Eval(const double Parameter, aWeight); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD0(const double Parameter, const int Degree, @@ -451,7 +451,7 @@ void BSplCLib::CacheD0(const double Parameter, aPoint); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD1(const double Parameter, const int Degree, @@ -472,7 +472,7 @@ void BSplCLib::CacheD1(const double Parameter, aVector); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD2(const double Parameter, const int Degree, @@ -495,7 +495,7 @@ void BSplCLib::CacheD2(const double Parameter, aVector2); } -//================================================================================================== +//================================================================================================= void BSplCLib::CacheD3(const double Parameter, const int Degree, @@ -520,7 +520,7 @@ void BSplCLib::CacheD3(const double Parameter, aVector3); } -//================================================================================================== +//================================================================================================= void BSplCLib::BuildCache(const double U, const double SpanDomain, @@ -543,7 +543,7 @@ void BSplCLib::BuildCache(const double U, CacheWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib::BuildCache(const double theParameter, const double theSpanDomain, @@ -566,7 +566,7 @@ void BSplCLib::BuildCache(const double theParameter, theCacheArray); } -//================================================================================================== +//================================================================================================= void BSplCLib::Interpolate(const int Degree, const NCollection_Array1& FlatKnots, @@ -583,7 +583,7 @@ void BSplCLib::Interpolate(const int Degree, InversionProblem); } -//================================================================================================== +//================================================================================================= void BSplCLib::Interpolate(const int Degree, const NCollection_Array1& FlatKnots, @@ -602,7 +602,7 @@ void BSplCLib::Interpolate(const int Degree, InversionProblem); } -//================================================================================================== +//================================================================================================= void BSplCLib::MovePoint(const double U, const gp_Vec& Displ, @@ -629,7 +629,7 @@ void BSplCLib::MovePoint(const double U, NewPoles); } -//================================================================================================== +//================================================================================================= void BSplCLib::MovePointAndTangent(const double U, const gp_Vec& Delta, @@ -658,7 +658,7 @@ void BSplCLib::MovePointAndTangent(const double U, ErrorStatus); } -//================================================================================================== +//================================================================================================= void BSplCLib::Resolution(const NCollection_Array1& Poles, const NCollection_Array1* Weights, @@ -677,7 +677,7 @@ void BSplCLib::Resolution(const NCollection_Array1& Poles, UTolerance); } -//================================================================================================== +//================================================================================================= void BSplCLib::FunctionMultiply(const BSplCLib_EvaluatorFunction& FunctionPtr, const int BSplineDegree, @@ -698,7 +698,7 @@ void BSplCLib::FunctionMultiply(const BSplCLib_EvaluatorFunction& FunctionPtr, theStatus); } -//================================================================================================== +//================================================================================================= void BSplCLib::FunctionReparameterise(const BSplCLib_EvaluatorFunction& FunctionPtr, const int BSplineDegree, diff --git a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_Cache.cxx b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_Cache.cxx index f30a7b3893..14b890489e 100644 --- a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_Cache.cxx +++ b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_Cache.cxx @@ -23,7 +23,7 @@ IMPLEMENT_STANDARD_RTTIEXT(BSplCLib_Cache, Standard_Transient) -//================================================================================================== +//================================================================================================= BSplCLib_Cache::BSplCLib_Cache( const int& theDegree, @@ -37,7 +37,7 @@ BSplCLib_Cache::BSplCLib_Cache( { } -//================================================================================================== +//================================================================================================= BSplCLib_Cache::BSplCLib_Cache( const int& theDegree, @@ -51,14 +51,14 @@ BSplCLib_Cache::BSplCLib_Cache( { } -//================================================================================================== +//================================================================================================= bool BSplCLib_Cache::IsCacheValid(double theParameter) const { return myParams.IsCacheValid(theParameter); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::BuildCache(const double& theParameter, const NCollection_Array1& theFlatKnots, @@ -116,7 +116,7 @@ void BSplCLib_Cache::BuildCache(const double& theParameter, aPolesWeights); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::calculateDerivative(double theParameter, int theDerivative, @@ -127,7 +127,7 @@ void BSplCLib_Cache::calculateDerivative(double theParameter, calculateDerivativeLocal(aLocalParam, theDerivative, theDerivArray); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::calculateDerivativeLocal(double theLocalParam, int theDerivative, @@ -185,7 +185,7 @@ void BSplCLib_Cache::calculateDerivativeLocal(double theLocalParam, } } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D0(const double& theParameter, gp_Pnt2d& thePoint) const { @@ -194,7 +194,7 @@ void BSplCLib_Cache::D0(const double& theParameter, gp_Pnt2d& thePoint) const D0Local(aLocalParam, thePoint); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D0(const double& theParameter, gp_Pnt& thePoint) const { @@ -203,7 +203,7 @@ void BSplCLib_Cache::D0(const double& theParameter, gp_Pnt& thePoint) const D0Local(aLocalParam, thePoint); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D0Local(double theLocalParam, gp_Pnt& thePoint) const { @@ -238,7 +238,7 @@ void BSplCLib_Cache::D1(const double& theParameter, gp_Pnt& thePoint, gp_Vec& th D1Local(aLocalParam, thePoint, theTangent); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D1Local(double theLocalParam, gp_Pnt& thePoint, gp_Vec& theTangent) const { @@ -270,7 +270,7 @@ void BSplCLib_Cache::D2(const double& theParameter, D2Local(aLocalParam, thePoint, theTangent, theCurvature); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D2Local(double theLocalParam, gp_Pnt& thePoint, @@ -309,7 +309,7 @@ void BSplCLib_Cache::D3(const double& theParameter, D3Local(aLocalParam, thePoint, theTangent, theCurvature, theTorsion); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D3Local(double theLocalParam, gp_Pnt& thePoint, @@ -329,7 +329,7 @@ void BSplCLib_Cache::D3Local(double theLocalParam, theTorsion.SetCoord(aDerivArray[aShift3], aDerivArray[aShift3 + 1], aDerivArray[aShift3 + 2]); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D0Local(double theLocalParam, gp_Pnt2d& thePoint) const { @@ -349,7 +349,7 @@ void BSplCLib_Cache::D0Local(double theLocalParam, gp_Pnt2d& thePoint) const } } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D1Local(double theLocalParam, gp_Pnt2d& thePoint, gp_Vec2d& theTangent) const { @@ -361,7 +361,7 @@ void BSplCLib_Cache::D1Local(double theLocalParam, gp_Pnt2d& thePoint, gp_Vec2d& theTangent.SetCoord(aDerivArray[aDim], aDerivArray[aDim + 1]); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D2Local(double theLocalParam, gp_Pnt2d& thePoint, @@ -378,7 +378,7 @@ void BSplCLib_Cache::D2Local(double theLocalParam, theCurvature.SetCoord(aDerivArray[aShift], aDerivArray[aShift + 1]); } -//================================================================================================== +//================================================================================================= void BSplCLib_Cache::D3Local(double theLocalParam, gp_Pnt2d& thePoint, diff --git a/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.cxx b/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.cxx index 3641933e63..d7ab9d9cf7 100644 --- a/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.cxx +++ b/src/FoundationClasses/TKMath/BSplSLib/BSplSLib.cxx @@ -3845,7 +3845,7 @@ void BSplSLib::FunctionMultiply(const BSplSLib_EvaluatorFunction& Function, } } -//================================================================================================== +//================================================================================================= NCollection_Array2 BSplSLib::UnitWeights(const int theNbUPoles, const int theNbVPoles) { diff --git a/src/FoundationClasses/TKMath/BSplSLib/BSplSLib_Cache.cxx b/src/FoundationClasses/TKMath/BSplSLib/BSplSLib_Cache.cxx index 76c90c33bc..dd51d480eb 100644 --- a/src/FoundationClasses/TKMath/BSplSLib/BSplSLib_Cache.cxx +++ b/src/FoundationClasses/TKMath/BSplSLib/BSplSLib_Cache.cxx @@ -34,7 +34,7 @@ double* ConvertArray(const occ::handle>& theHArray) return (double*)&(anArray(anArray.LowerRow(), anArray.LowerCol())); } -//================================================================================================== +//================================================================================================= //! Computes local UV parameters for D0 evaluation (no derivative scaling needed). //! BSplSLib uses different convention for span parameters than BSplCLib @@ -76,7 +76,7 @@ std::pair toLocalParams(double theU, return {(aNewU - aSpanStartU) * theInvU, (aNewV - aSpanStartV) * theInvV}; } -//================================================================================================== +//================================================================================================= //! Evaluates the polynomials and their derivatives. //! @param[in] thePolesWeights handle to the array of poles and weights @@ -227,7 +227,7 @@ void EvaluatePolynomials(const occ::handle>& thePole } } // namespace -//================================================================================================== +//================================================================================================= BSplSLib_Cache::BSplSLib_Cache(const int& theDegreeU, const bool& thePeriodicU, @@ -247,14 +247,14 @@ BSplSLib_Cache::BSplSLib_Cache(const int& theDegreeU, new NCollection_HArray2(1, aMaxDegree + 1, 1, aPWColNumber * (aMinDegree + 1)); } -//================================================================================================== +//================================================================================================= bool BSplSLib_Cache::IsCacheValid(double theParameterU, double theParameterV) const { return myParamsU.IsCacheValid(theParameterU) && myParamsV.IsCacheValid(theParameterV); } -//================================================================================================== +//================================================================================================= void BSplSLib_Cache::BuildCache(const double& theParameterU, const double& theParameterV, @@ -296,7 +296,7 @@ void BSplSLib_Cache::BuildCache(const double& theParameterU, myPolesWeights->ChangeArray2()); } -//================================================================================================== +//================================================================================================= void BSplSLib_Cache::D0(const double& theU, const double& theV, gp_Pnt& thePoint) const { @@ -304,7 +304,7 @@ void BSplSLib_Cache::D0(const double& theU, const double& theV, gp_Pnt& thePoint D0Local(aLocalU, aLocalV, thePoint); } -//================================================================================================== +//================================================================================================= void BSplSLib_Cache::D0Local(double theLocalU, double theLocalV, gp_Pnt& thePoint) const { @@ -344,7 +344,7 @@ void BSplSLib_Cache::D0Local(double theLocalU, double theLocalV, gp_Pnt& thePoin } } -//================================================================================================== +//================================================================================================= void BSplSLib_Cache::D1Local(double theLocalU, double theLocalV, @@ -399,7 +399,7 @@ void BSplSLib_Cache::D1Local(double theLocalU, theTangentV.Divide(aSpanLengthV); } -//================================================================================================== +//================================================================================================= void BSplSLib_Cache::D2Local(double theLocalU, double theLocalV, @@ -470,7 +470,7 @@ void BSplSLib_Cache::D2Local(double theLocalU, theCurvatureUV.Divide(aSpanLengthU * aSpanLengthV); } -//================================================================================================== +//================================================================================================= void BSplSLib_Cache::D1(const double& theU, const double& theV, @@ -521,7 +521,7 @@ void BSplSLib_Cache::D1(const double& theU, theTangentV.Multiply(anInvV); } -//================================================================================================== +//================================================================================================= void BSplSLib_Cache::D2(const double& theU, const double& theV, diff --git a/src/FoundationClasses/TKMath/Bnd/Bnd_BoundSortBox.cxx b/src/FoundationClasses/TKMath/Bnd/Bnd_BoundSortBox.cxx index 072bc25c9f..d9f4019b77 100644 --- a/src/FoundationClasses/TKMath/Bnd/Bnd_BoundSortBox.cxx +++ b/src/FoundationClasses/TKMath/Bnd/Bnd_BoundSortBox.cxx @@ -23,7 +23,7 @@ #include #include -//================================================================================================== +//================================================================================================= //-- lbr le 27 fev 97 //-- //-- @@ -89,9 +89,9 @@ //-- it takes much time to parse the tables. The slowly written, but quickly read //-- structures are thus better. //-- -//================================================================================================== +//================================================================================================= -//================================================================================================== +//================================================================================================= // This function determines the resolution of the voxel grid based on the number of boxes. // The resolution is a power of 2 as in the original code. Current implementation supports @@ -119,7 +119,7 @@ static int getBnd_VoxelGridResolution(const int theBoxesCount) return 8; } -//================================================================================================== +//================================================================================================= // This class represents a 3D voxel grid used for spatial partitioning of boxes. // It provides methods to add boxes, check occupancy, and retrieve slices of the grid. @@ -210,7 +210,7 @@ private: IMPLEMENT_STANDARD_RTTIEXT(Bnd_VoxelGrid, Standard_Transient) -//================================================================================================== +//================================================================================================= Bnd_VoxelGrid::Bnd_VoxelGrid(const int theResolution, const int theExpectedBoxCount) : myAllocator(new NCollection_IncAllocator()), @@ -229,7 +229,7 @@ Bnd_VoxelGrid::Bnd_VoxelGrid(const int theResolution, const int theExpectedBoxCo } } -//================================================================================================== +//================================================================================================= void Bnd_VoxelGrid::AddBox(const int theBoxIndex, const std::array& theVoxelBox) { @@ -245,7 +245,7 @@ void Bnd_VoxelGrid::AddBox(const int theBoxIndex, const std::array& theV AppendSliceZ(aMinVoxelZ, aMaxVoxelZ, theBoxIndex); } -//================================================================================================== +//================================================================================================= const Bnd_VoxelGrid::VectorInt* Bnd_VoxelGrid::GetSliceX(const int theVoxelIndex) const { @@ -253,7 +253,7 @@ const Bnd_VoxelGrid::VectorInt* Bnd_VoxelGrid::GetSliceX(const int theVoxelIndex return aSlice.IsEmpty() ? nullptr : &aSlice; } -//================================================================================================== +//================================================================================================= const Bnd_VoxelGrid::VectorInt* Bnd_VoxelGrid::GetSliceY(const int theVoxelIndex) const { @@ -261,7 +261,7 @@ const Bnd_VoxelGrid::VectorInt* Bnd_VoxelGrid::GetSliceY(const int theVoxelIndex return aSlice.IsEmpty() ? nullptr : &aSlice; } -//================================================================================================== +//================================================================================================= const Bnd_VoxelGrid::VectorInt* Bnd_VoxelGrid::GetSliceZ(const int theVoxelIndex) const { @@ -269,7 +269,7 @@ const Bnd_VoxelGrid::VectorInt* Bnd_VoxelGrid::GetSliceZ(const int theVoxelIndex return aSlice.IsEmpty() ? nullptr : &aSlice; } -//================================================================================================== +//================================================================================================= void Bnd_VoxelGrid::AppendSliceX(const int theVoxelIndexMin, const int theVoxelIndexMax, @@ -281,7 +281,7 @@ void Bnd_VoxelGrid::AppendSliceX(const int theVoxelIndexMin, } } -//================================================================================================== +//================================================================================================= void Bnd_VoxelGrid::AppendSliceY(const int theVoxelIndexMin, const int theVoxelIndexMax, @@ -293,7 +293,7 @@ void Bnd_VoxelGrid::AppendSliceY(const int theVoxelIndexMin, } } -//================================================================================================== +//================================================================================================= void Bnd_VoxelGrid::AppendSliceZ(const int theVoxelIndexMin, const int theVoxelIndexMax, @@ -305,7 +305,7 @@ void Bnd_VoxelGrid::AppendSliceZ(const int theVoxelIndexMin, } } -//================================================================================================== +//================================================================================================= Bnd_BoundSortBox::Bnd_BoundSortBox() : myBoxes(nullptr), @@ -318,7 +318,7 @@ Bnd_BoundSortBox::Bnd_BoundSortBox() { } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::Initialize(const occ::handle>& theSetOfBoxes) { @@ -346,7 +346,7 @@ void Bnd_BoundSortBox::Initialize(const occ::handle sortBoxes(); } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::Initialize(const Bnd_Box& theEnclosingBox, const occ::handle>& theSetOfBoxes) @@ -366,7 +366,7 @@ void Bnd_BoundSortBox::Initialize(const Bnd_Box& sortBoxes(); } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::Initialize(const Bnd_Box& theEnclosingBox, const int theNbBoxes) { @@ -388,7 +388,7 @@ void Bnd_BoundSortBox::Initialize(const Bnd_Box& theEnclosingBox, const int theN resetVoxelGrid(); } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::Add(const Bnd_Box& theBox, const int theIndex) { @@ -404,7 +404,7 @@ void Bnd_BoundSortBox::Add(const Bnd_Box& theBox, const int theIndex) addBox(theBox, theIndex); } -//================================================================================================== +//================================================================================================= const NCollection_List& Bnd_BoundSortBox::Compare(const Bnd_Box& theBox) @@ -501,7 +501,7 @@ const NCollection_List& Bnd_BoundSortBox::Compare(const Bnd_Box& theBox) return myLastResult; } -//================================================================================================== +//================================================================================================= const NCollection_List& Bnd_BoundSortBox::Compare(const gp_Pln& thePlane) @@ -518,7 +518,7 @@ const NCollection_List& Bnd_BoundSortBox::Compare(const gp_Pln& thePlane) return myLastResult; } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::calculateCoefficients() { @@ -529,7 +529,7 @@ void Bnd_BoundSortBox::calculateCoefficients() myCoeffZ = (aZmax - aZmin == 0. ? 0. : myResolution / (aZmax - aZmin)); } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::resetVoxelGrid() { @@ -539,7 +539,7 @@ void Bnd_BoundSortBox::resetVoxelGrid() myLargeBoxes.SetIncrement(std::max(myBoxes->Length() / 16, 16)); } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::sortBoxes() { @@ -549,7 +549,7 @@ void Bnd_BoundSortBox::sortBoxes() } } -//================================================================================================== +//================================================================================================= std::array Bnd_BoundSortBox::getBoundingVoxels(const Bnd_Box& theBox) const { @@ -593,7 +593,7 @@ std::array Bnd_BoundSortBox::getBoundingVoxels(const Bnd_Box& theBox) co return {aXMinIndex, aYMinIndex, aZMinIndex, aXMaxIndex, aYMaxIndex, aZMaxIndex}; } -//================================================================================================== +//================================================================================================= void Bnd_BoundSortBox::addBox(const Bnd_Box& theBox, const int theIndex) { diff --git a/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurves2dToBSplineCurve2d.cxx b/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurves2dToBSplineCurve2d.cxx index 0896b95cfc..71e61cd300 100644 --- a/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurves2dToBSplineCurve2d.cxx +++ b/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurves2dToBSplineCurve2d.cxx @@ -16,7 +16,7 @@ #include -//================================================================================================== +//================================================================================================= Convert_CompBezierCurves2dToBSplineCurve2d::Convert_CompBezierCurves2dToBSplineCurve2d( const double theAngularTolerance) diff --git a/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurvesToBSplineCurve.cxx b/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurvesToBSplineCurve.cxx index 23a9fdb1ef..a71530aef6 100644 --- a/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurvesToBSplineCurve.cxx +++ b/src/FoundationClasses/TKMath/Convert/Convert_CompBezierCurvesToBSplineCurve.cxx @@ -16,7 +16,7 @@ #include -//================================================================================================== +//================================================================================================= Convert_CompBezierCurvesToBSplineCurve::Convert_CompBezierCurvesToBSplineCurve( const double theAngularTolerance) diff --git a/src/FoundationClasses/TKMath/Convert/Convert_CompPolynomialToPoles.cxx b/src/FoundationClasses/TKMath/Convert/Convert_CompPolynomialToPoles.cxx index b8b9c9f0b3..b31c6bcaa0 100644 --- a/src/FoundationClasses/TKMath/Convert/Convert_CompPolynomialToPoles.cxx +++ b/src/FoundationClasses/TKMath/Convert/Convert_CompPolynomialToPoles.cxx @@ -31,7 +31,7 @@ #include #include -//================================================================================================== +//================================================================================================= Convert_CompPolynomialToPoles::Convert_CompPolynomialToPoles( const int NumCurves, @@ -260,7 +260,7 @@ void Convert_CompPolynomialToPoles::Perform(const int Nu myDone = true; } -//================================================================================================== +//================================================================================================= int Convert_CompPolynomialToPoles::NbPoles() const { @@ -271,7 +271,7 @@ int Convert_CompPolynomialToPoles::NbPoles() const return 0; } -//================================================================================================== +//================================================================================================= const NCollection_Array2& Convert_CompPolynomialToPoles::Poles() const { @@ -279,7 +279,7 @@ const NCollection_Array2& Convert_CompPolynomialToPoles::Poles() const return myPoles; } -//================================================================================================== +//================================================================================================= Standard_DISABLE_DEPRECATION_WARNINGS void Convert_CompPolynomialToPoles::Poles( occ::handle>& P) const @@ -290,7 +290,7 @@ Standard_DISABLE_DEPRECATION_WARNINGS void Convert_CompPolynomialToPoles::Poles( } } -//================================================================================================== +//================================================================================================= int Convert_CompPolynomialToPoles::NbKnots() const { @@ -301,7 +301,7 @@ int Convert_CompPolynomialToPoles::NbKnots() const return 0; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_CompPolynomialToPoles::Knots() const { @@ -309,7 +309,7 @@ const NCollection_Array1& Convert_CompPolynomialToPoles::Knots() const return myKnots; } -//================================================================================================== +//================================================================================================= void Convert_CompPolynomialToPoles::Knots(occ::handle>& K) const { @@ -319,7 +319,7 @@ void Convert_CompPolynomialToPoles::Knots(occ::handle& Convert_CompPolynomialToPoles::Multiplicities() const { @@ -327,7 +327,7 @@ const NCollection_Array1& Convert_CompPolynomialToPoles::Multiplicities() c return myMults; } -//================================================================================================== +//================================================================================================= void Convert_CompPolynomialToPoles::Multiplicities(occ::handle>& M) const { @@ -339,7 +339,7 @@ void Convert_CompPolynomialToPoles::Multiplicities(occ::handle #include -//================================================================================================== +//================================================================================================= Convert_ConicToBSplineCurve::Convert_ConicToBSplineCurve(const int theNumberOfPoles, const int theNumberOfKnots, @@ -46,35 +46,35 @@ Convert_ConicToBSplineCurve::Convert_ConicToBSplineCurve(const int theNumberOfPo } } -//================================================================================================== +//================================================================================================= int Convert_ConicToBSplineCurve::Degree() const { return myDegree; } -//================================================================================================== +//================================================================================================= int Convert_ConicToBSplineCurve::NbPoles() const { return myPoles.Length(); } -//================================================================================================== +//================================================================================================= int Convert_ConicToBSplineCurve::NbKnots() const { return myKnots.Length(); } -//================================================================================================== +//================================================================================================= bool Convert_ConicToBSplineCurve::IsPeriodic() const { return myIsPeriodic; } -//================================================================================================== +//================================================================================================= Standard_DISABLE_DEPRECATION_WARNINGS gp_Pnt2d Convert_ConicToBSplineCurve::Pole(const int theIndex) const @@ -84,7 +84,7 @@ Standard_DISABLE_DEPRECATION_WARNINGS gp_Pnt2d return myPoles(theIndex); } -//================================================================================================== +//================================================================================================= double Convert_ConicToBSplineCurve::Weight(const int theIndex) const { @@ -93,7 +93,7 @@ double Convert_ConicToBSplineCurve::Weight(const int theIndex) const return myWeights(theIndex); } -//================================================================================================== +//================================================================================================= double Convert_ConicToBSplineCurve::Knot(const int theIndex) const { @@ -102,7 +102,7 @@ double Convert_ConicToBSplineCurve::Knot(const int theIndex) const return myKnots(theIndex); } -//================================================================================================== +//================================================================================================= int Convert_ConicToBSplineCurve::Multiplicity(const int theIndex) const { @@ -113,7 +113,7 @@ int Convert_ConicToBSplineCurve::Multiplicity(const int theIndex) const Standard_ENABLE_DEPRECATION_WARNINGS - //================================================================================================== + //================================================================================================= const NCollection_Array1& Convert_ConicToBSplineCurve::Poles() const @@ -121,28 +121,28 @@ Standard_ENABLE_DEPRECATION_WARNINGS return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_ConicToBSplineCurve::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_ConicToBSplineCurve::Knots() const { return myKnots; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_ConicToBSplineCurve::Multiplicities() const { return myMults; } -//================================================================================================== +//================================================================================================= void Convert_ConicToBSplineCurve::BuildCosAndSin( const Convert_ParameterisationType theParametrisation, @@ -172,7 +172,7 @@ void Convert_ConicToBSplineCurve::BuildCosAndSin( theMults = new NCollection_HArray1(aMults); } -//================================================================================================== +//================================================================================================= void Convert_ConicToBSplineCurve::BuildCosAndSin( const Convert_ParameterisationType theParametrisation, @@ -346,7 +346,7 @@ static void AlgorithmicCosAndSin(int Degree, } } -//================================================================================================== +//================================================================================================= void Convert_ConicToBSplineCurve::BuildCosAndSin( const Convert_ParameterisationType Parameterisation, @@ -613,7 +613,7 @@ void Convert_ConicToBSplineCurve::BuildCosAndSin( } } -//================================================================================================== +//================================================================================================= void Convert_ConicToBSplineCurve::BuildCosAndSin( const Convert_ParameterisationType Parameterisation, diff --git a/src/FoundationClasses/TKMath/Convert/Convert_ElementarySurfaceToBSplineSurface.cxx b/src/FoundationClasses/TKMath/Convert/Convert_ElementarySurfaceToBSplineSurface.cxx index 50755a0872..fb65391e57 100644 --- a/src/FoundationClasses/TKMath/Convert/Convert_ElementarySurfaceToBSplineSurface.cxx +++ b/src/FoundationClasses/TKMath/Convert/Convert_ElementarySurfaceToBSplineSurface.cxx @@ -18,7 +18,7 @@ #include #include -//================================================================================================== +//================================================================================================= void Convert_ElementarySurfaceToBSplineSurface::Finalize() { @@ -49,7 +49,7 @@ void Convert_ElementarySurfaceToBSplineSurface::Finalize() } } -//================================================================================================== +//================================================================================================= Convert_ElementarySurfaceToBSplineSurface::Convert_ElementarySurfaceToBSplineSurface( const int theNbUPoles, @@ -73,63 +73,63 @@ Convert_ElementarySurfaceToBSplineSurface::Convert_ElementarySurfaceToBSplineSur { } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::UDegree() const { return myUDegree; } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::VDegree() const { return myVDegree; } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::NbUPoles() const { return myNbUPoles; } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::NbVPoles() const { return myNbVPoles; } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::NbUKnots() const { return myNbUKnots; } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::NbVKnots() const { return myNbVKnots; } -//================================================================================================== +//================================================================================================= bool Convert_ElementarySurfaceToBSplineSurface::IsUPeriodic() const { return myIsUPeriodic; } -//================================================================================================== +//================================================================================================= bool Convert_ElementarySurfaceToBSplineSurface::IsVPeriodic() const { return myIsVPeriodic; } -//================================================================================================== +//================================================================================================= Standard_DISABLE_DEPRECATION_WARNINGS gp_Pnt Convert_ElementarySurfaceToBSplineSurface::Pole(const int UIndex, const int VIndex) const @@ -140,7 +140,7 @@ Standard_DISABLE_DEPRECATION_WARNINGS gp_Pnt return myPoles(UIndex, VIndex); } -//================================================================================================== +//================================================================================================= double Convert_ElementarySurfaceToBSplineSurface::Weight(const int UIndex, const int VIndex) const { @@ -150,7 +150,7 @@ double Convert_ElementarySurfaceToBSplineSurface::Weight(const int UIndex, const return myWeights(UIndex, VIndex); } -//================================================================================================== +//================================================================================================= double Convert_ElementarySurfaceToBSplineSurface::UKnot(const int UIndex) const { @@ -160,7 +160,7 @@ double Convert_ElementarySurfaceToBSplineSurface::UKnot(const int UIndex) const return myUKnots(UIndex); } -//================================================================================================== +//================================================================================================= double Convert_ElementarySurfaceToBSplineSurface::VKnot(const int VIndex) const { @@ -170,7 +170,7 @@ double Convert_ElementarySurfaceToBSplineSurface::VKnot(const int VIndex) const return myVKnots(VIndex); } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::UMultiplicity(const int UIndex) const { @@ -180,7 +180,7 @@ int Convert_ElementarySurfaceToBSplineSurface::UMultiplicity(const int UIndex) c return myUMults(UIndex); } -//================================================================================================== +//================================================================================================= int Convert_ElementarySurfaceToBSplineSurface::VMultiplicity(const int VIndex) const { @@ -192,7 +192,7 @@ int Convert_ElementarySurfaceToBSplineSurface::VMultiplicity(const int VIndex) c Standard_ENABLE_DEPRECATION_WARNINGS - //================================================================================================== + //================================================================================================= const NCollection_Array2& Convert_ElementarySurfaceToBSplineSurface::Poles() const @@ -200,35 +200,35 @@ Standard_ENABLE_DEPRECATION_WARNINGS return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array2& Convert_ElementarySurfaceToBSplineSurface::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_ElementarySurfaceToBSplineSurface::UKnots() const { return myUKnots; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_ElementarySurfaceToBSplineSurface::VKnots() const { return myVKnots; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_ElementarySurfaceToBSplineSurface::UMultiplicities() const { return myUMults; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_ElementarySurfaceToBSplineSurface::VMultiplicities() const { diff --git a/src/FoundationClasses/TKMath/Convert/Convert_GridPolynomialToPoles.cxx b/src/FoundationClasses/TKMath/Convert/Convert_GridPolynomialToPoles.cxx index 6d82e8c752..45610d98e3 100644 --- a/src/FoundationClasses/TKMath/Convert/Convert_GridPolynomialToPoles.cxx +++ b/src/FoundationClasses/TKMath/Convert/Convert_GridPolynomialToPoles.cxx @@ -278,7 +278,7 @@ void Convert_GridPolynomialToPoles::BuildArray(const int BSplCLib::BuildSchoenbergPoints(Degree, FlatKnots, Parameters); } -//================================================================================================== +//================================================================================================= int Convert_GridPolynomialToPoles::NbUPoles() const { @@ -286,7 +286,7 @@ int Convert_GridPolynomialToPoles::NbUPoles() const return myPoles.ColLength(); } -//================================================================================================== +//================================================================================================= int Convert_GridPolynomialToPoles::NbVPoles() const { @@ -294,7 +294,7 @@ int Convert_GridPolynomialToPoles::NbVPoles() const return myPoles.RowLength(); } -//================================================================================================== +//================================================================================================= const NCollection_Array2& Convert_GridPolynomialToPoles::Poles() const { @@ -302,7 +302,7 @@ const NCollection_Array2& Convert_GridPolynomialToPoles::Poles() const return myPoles; } -//================================================================================================== +//================================================================================================= int Convert_GridPolynomialToPoles::UDegree() const { @@ -310,7 +310,7 @@ int Convert_GridPolynomialToPoles::UDegree() const return myUDegree; } -//================================================================================================== +//================================================================================================= int Convert_GridPolynomialToPoles::VDegree() const { @@ -318,7 +318,7 @@ int Convert_GridPolynomialToPoles::VDegree() const return myVDegree; } -//================================================================================================== +//================================================================================================= int Convert_GridPolynomialToPoles::NbUKnots() const { @@ -326,7 +326,7 @@ int Convert_GridPolynomialToPoles::NbUKnots() const return myUKnots.Length(); } -//================================================================================================== +//================================================================================================= int Convert_GridPolynomialToPoles::NbVKnots() const { @@ -334,7 +334,7 @@ int Convert_GridPolynomialToPoles::NbVKnots() const return myVKnots.Length(); } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_GridPolynomialToPoles::UKnots() const { @@ -342,7 +342,7 @@ const NCollection_Array1& Convert_GridPolynomialToPoles::UKnots() const return myUKnots; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_GridPolynomialToPoles::VKnots() const { @@ -350,7 +350,7 @@ const NCollection_Array1& Convert_GridPolynomialToPoles::VKnots() const return myVKnots; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_GridPolynomialToPoles::UMultiplicities() const { @@ -358,7 +358,7 @@ const NCollection_Array1& Convert_GridPolynomialToPoles::UMultiplicities() return myUMults; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Convert_GridPolynomialToPoles::VMultiplicities() const { @@ -366,7 +366,7 @@ const NCollection_Array1& Convert_GridPolynomialToPoles::VMultiplicities() return myVMults; } -//================================================================================================== +//================================================================================================= bool Convert_GridPolynomialToPoles::IsDone() const { diff --git a/src/FoundationClasses/TKMath/Convert/Convert_HyperbolaToBSplineCurve.cxx b/src/FoundationClasses/TKMath/Convert/Convert_HyperbolaToBSplineCurve.cxx index a39c6c359b..9d1ee984d8 100644 --- a/src/FoundationClasses/TKMath/Convert/Convert_HyperbolaToBSplineCurve.cxx +++ b/src/FoundationClasses/TKMath/Convert/Convert_HyperbolaToBSplineCurve.cxx @@ -27,7 +27,7 @@ constexpr int TheDegree = 2; constexpr int MaxNbKnots = 2; constexpr int MaxNbPoles = 3; -//================================================================================================== +//================================================================================================= Convert_HyperbolaToBSplineCurve::Convert_HyperbolaToBSplineCurve(const gp_Hypr2d& H, const double U1, diff --git a/src/FoundationClasses/TKMath/Convert/Convert_ParabolaToBSplineCurve.cxx b/src/FoundationClasses/TKMath/Convert/Convert_ParabolaToBSplineCurve.cxx index 3972a88bd2..60a337d82b 100644 --- a/src/FoundationClasses/TKMath/Convert/Convert_ParabolaToBSplineCurve.cxx +++ b/src/FoundationClasses/TKMath/Convert/Convert_ParabolaToBSplineCurve.cxx @@ -27,7 +27,7 @@ constexpr int TheDegree = 2; constexpr int MaxNbKnots = 2; constexpr int MaxNbPoles = 3; -//================================================================================================== +//================================================================================================= Convert_ParabolaToBSplineCurve::Convert_ParabolaToBSplineCurve(const gp_Parab2d& Prb, const double U1, diff --git a/src/FoundationClasses/TKMath/GTests/BSplCLib_Cache_Test.cxx b/src/FoundationClasses/TKMath/GTests/BSplCLib_Cache_Test.cxx index 8fd6f5f28a..21532077c9 100644 --- a/src/FoundationClasses/TKMath/GTests/BSplCLib_Cache_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/BSplCLib_Cache_Test.cxx @@ -29,9 +29,9 @@ namespace constexpr double THE_TOLERANCE = 1e-10; } -//================================================================================================== +//================================================================================================= // Test fixture for BSplCLib_Cache tests -//================================================================================================== +//================================================================================================= class BSplCLib_CacheTest : public ::testing::Test { @@ -54,9 +54,9 @@ protected: } }; -//================================================================================================== +//================================================================================================= // Non-rational 3D curve tests -//================================================================================================== +//================================================================================================= TEST_F(BSplCLib_CacheTest, D0_NonRationalCurve3D) { @@ -236,9 +236,9 @@ TEST_F(BSplCLib_CacheTest, D2_NonRationalCurve3D) } } -//================================================================================================== +//================================================================================================= // Rational 3D curve tests -//================================================================================================== +//================================================================================================= TEST_F(BSplCLib_CacheTest, D0_RationalCurve3D) { @@ -445,9 +445,9 @@ TEST_F(BSplCLib_CacheTest, D2_RationalCurve3D) } } -//================================================================================================== +//================================================================================================= // Test D3 for completeness -//================================================================================================== +//================================================================================================= TEST_F(BSplCLib_CacheTest, D3_NonRationalCurve3D) { diff --git a/src/FoundationClasses/TKMath/GTests/BSplSLib_Cache_Test.cxx b/src/FoundationClasses/TKMath/GTests/BSplSLib_Cache_Test.cxx index 87509a1d3b..35bf5d3e38 100644 --- a/src/FoundationClasses/TKMath/GTests/BSplSLib_Cache_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/BSplSLib_Cache_Test.cxx @@ -28,9 +28,9 @@ namespace constexpr double THE_TOLERANCE = 1e-10; } -//================================================================================================== +//================================================================================================= // Test fixture for BSplSLib_Cache tests -//================================================================================================== +//================================================================================================= class BSplSLib_CacheTest : public ::testing::Test { @@ -53,9 +53,9 @@ protected: } }; -//================================================================================================== +//================================================================================================= // Non-rational surface tests -//================================================================================================== +//================================================================================================= TEST_F(BSplSLib_CacheTest, D0_NonRationalSurface) { @@ -404,9 +404,9 @@ TEST_F(BSplSLib_CacheTest, D2_NonRationalSurface) } } -//================================================================================================== +//================================================================================================= // Rational surface tests -//================================================================================================== +//================================================================================================= TEST_F(BSplSLib_CacheTest, D0_RationalSurface) { @@ -791,9 +791,9 @@ TEST_F(BSplSLib_CacheTest, D2_RationalSurface) } } -//================================================================================================== +//================================================================================================= // Test with different degrees in U and V -//================================================================================================== +//================================================================================================= TEST_F(BSplSLib_CacheTest, D1_DifferentDegrees_UGreaterV) { diff --git a/src/FoundationClasses/TKMath/GTests/Bnd_BoundSortBox_Test.cxx b/src/FoundationClasses/TKMath/GTests/Bnd_BoundSortBox_Test.cxx index 7d32d0e4f3..9e53ed1b25 100644 --- a/src/FoundationClasses/TKMath/GTests/Bnd_BoundSortBox_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/Bnd_BoundSortBox_Test.cxx @@ -75,7 +75,7 @@ protected: occ::handle> myBoxes; }; -//================================================================================================== +//================================================================================================= // Test initialization with set of boxes TEST_F(Bnd_BoundSortBoxTest, InitializeWithBoxes) @@ -103,7 +103,7 @@ TEST_F(Bnd_BoundSortBoxTest, InitializeWithBoxes) EXPECT_TRUE(foundLarge) << "Large box (index 2) should be in the result"; } -//================================================================================================== +//================================================================================================= // Test initialization with provided enclosing box TEST_F(Bnd_BoundSortBoxTest, InitializeWithEnclosingBox) @@ -130,7 +130,7 @@ TEST_F(Bnd_BoundSortBoxTest, InitializeWithEnclosingBox) EXPECT_TRUE(foundOffset) << "Offset box (index 3) should be in the result"; } -//================================================================================================== +//================================================================================================= // Test initialization with enclosing box and expected count TEST_F(Bnd_BoundSortBoxTest, InitializeWithCount) @@ -153,7 +153,7 @@ TEST_F(Bnd_BoundSortBoxTest, InitializeWithCount) EXPECT_EQ(2, result.First()) << "Large box (index 2) should be the only result"; } -//================================================================================================== +//================================================================================================= // Test comparing with a plane TEST_F(Bnd_BoundSortBoxTest, CompareWithPlane) @@ -173,7 +173,7 @@ TEST_F(Bnd_BoundSortBoxTest, CompareWithPlane) EXPECT_EQ(2, result.First()) << "Large box (index 2) should be the only result"; } -//================================================================================================== +//================================================================================================= // Test with void boxes TEST_F(Bnd_BoundSortBoxTest, VoidBoxes) @@ -197,7 +197,7 @@ TEST_F(Bnd_BoundSortBoxTest, VoidBoxes) EXPECT_EQ(0, void_result.Extent()) << "Expected to find 0 intersections with void box"; } -//================================================================================================== +//================================================================================================= // Test with touching boxes TEST_F(Bnd_BoundSortBoxTest, TouchingBoxes) @@ -222,7 +222,7 @@ TEST_F(Bnd_BoundSortBoxTest, TouchingBoxes) EXPECT_EQ(2, result2.Extent()) << "Expected to find 2 intersections"; } -//================================================================================================== +//================================================================================================= // Test with boxes that are far apart TEST_F(Bnd_BoundSortBoxTest, DisjointBoxes) @@ -247,7 +247,7 @@ TEST_F(Bnd_BoundSortBoxTest, DisjointBoxes) EXPECT_EQ(1, result.First()) << "Small box (index 1) should be the only result"; } -//================================================================================================== +//================================================================================================= // Test with degenerate boxes (points, lines, planes) TEST_F(Bnd_BoundSortBoxTest, DegenerateBoxes) @@ -284,7 +284,7 @@ TEST_F(Bnd_BoundSortBoxTest, DegenerateBoxes) EXPECT_EQ(1, pointResult.First()) << "Point box (index 1) should be the only result"; } -//================================================================================================== +//================================================================================================= // Test BUC60729: Initialize Bnd_BoundSortBox with face boxes from a solid // Migrated from QABugs_3.cxx diff --git a/src/FoundationClasses/TKMath/GTests/Bnd_Box_Test.cxx b/src/FoundationClasses/TKMath/GTests/Bnd_Box_Test.cxx index 77081b285f..ad48454e0f 100644 --- a/src/FoundationClasses/TKMath/GTests/Bnd_Box_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/Bnd_Box_Test.cxx @@ -24,9 +24,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Constructor Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, DefaultConstructor) { @@ -58,9 +58,9 @@ TEST(Bnd_BoxTest, PointConstructor) EXPECT_DOUBLE_EQ(6.0, aZmax) << "Zmax should match constructor input"; } -//================================================================================================== +//================================================================================================= // Set and Update Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, SetWithPoint) { @@ -156,9 +156,9 @@ TEST(Bnd_BoxTest, UpdateExpansion) EXPECT_DOUBLE_EQ(2.0, aZmax) << "Box should expand to include new bounds"; } -//================================================================================================== +//================================================================================================= // Gap and Tolerance Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, GapOperations) { @@ -179,9 +179,9 @@ TEST(Bnd_BoxTest, GapOperations) EXPECT_DOUBLE_EQ(1.0, aBox.GetGap()) << "Enlarge should use absolute value"; } -//================================================================================================== +//================================================================================================= // Corner Methods Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, CornerMethods) { @@ -225,9 +225,9 @@ TEST(Bnd_BoxTest, CornerMethodsOpenBox) EXPECT_DOUBLE_EQ(1e100, aCornerMax.X()) << "Open Xmax should return +infinite"; } -//================================================================================================== +//================================================================================================= // Thin Methods Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, ThinnessMethods) { @@ -269,9 +269,9 @@ TEST(Bnd_BoxTest, ThinnessWithOpenBox) EXPECT_FALSE(aBox.IsThin(0.1)) << "Whole box should not be considered thin"; } -//================================================================================================== +//================================================================================================= // Transformation Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, TransformationIdentity) { @@ -329,9 +329,9 @@ TEST(Bnd_BoxTest, TransformationVoidBox) EXPECT_TRUE(aTransformed.IsVoid()) << "Transformed void box should remain void"; } -//================================================================================================== +//================================================================================================= // Add Methods Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, AddBox) { @@ -436,9 +436,9 @@ TEST(Bnd_BoxTest, AddPointWithDirection) EXPECT_FALSE(aBox.IsOpenXmax()) << "Negative X direction should not open Xmax"; } -//================================================================================================== +//================================================================================================= // IsOut Methods Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, IsOutPoint) { @@ -534,9 +534,9 @@ TEST(Bnd_BoxTest, IsOutLine) EXPECT_TRUE(aBox.IsOut(aSeparateLin)) << "Separate line should be out"; } -//================================================================================================== +//================================================================================================= // Distance Method Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, Distance) { @@ -557,9 +557,9 @@ TEST(Bnd_BoxTest, Distance) EXPECT_DOUBLE_EQ(0.0, anOverlapDistance) << "Distance between overlapping boxes should be 0.0"; } -//================================================================================================== +//================================================================================================= // Open/Close Methods Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, OpenCloseMethods) { @@ -586,9 +586,9 @@ TEST(Bnd_BoxTest, OpenCloseMethods) EXPECT_TRUE(aBox.IsWhole()) << "Box open in all directions should be whole"; } -//================================================================================================== +//================================================================================================= // Void/Whole State Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, VoidWholeStates) { @@ -612,9 +612,9 @@ TEST(Bnd_BoxTest, VoidWholeStates) EXPECT_TRUE(aBox.HasFinitePart()) << "Bounded box should have finite part"; } -//================================================================================================== +//================================================================================================= // Edge Cases and Error Conditions -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, EdgeCases) { @@ -649,9 +649,9 @@ TEST(Bnd_BoxTest, TransformationWithOpenBox) EXPECT_FALSE(aTransformed.IsVoid()) << "Transformed open box should have finite part"; } -//================================================================================================== +//================================================================================================= // Additional Coverage Tests -//================================================================================================== +//================================================================================================= TEST(Bnd_BoxTest, SquareExtent) { @@ -814,9 +814,9 @@ TEST(Bnd_BoxTest, DumpJsonAndInitFromJson) << "Deserialized gap should match original"; } -//================================================================================================== +//================================================================================================= // Regression Tests -//================================================================================================== +//================================================================================================= // Test OCC16485: Bnd_Box tolerance issue with cumulative enlargement // Migrated from QABugs_14.cxx diff --git a/src/FoundationClasses/TKMath/GTests/MathLin_Comparison_Test.cxx b/src/FoundationClasses/TKMath/GTests/MathLin_Comparison_Test.cxx index 84b0409c68..3fa95335e3 100644 --- a/src/FoundationClasses/TKMath/GTests/MathLin_Comparison_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/MathLin_Comparison_Test.cxx @@ -25,9 +25,9 @@ namespace constexpr double THE_TOLERANCE = 1.0e-10; } -//================================================================================================== +//================================================================================================= // Test: Solve 3x3 system - compare new API with legacy math_Gauss -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Solve_3x3System) { @@ -68,9 +68,9 @@ TEST(MathLin_ComparisonTest, Solve_3x3System) } } -//================================================================================================== +//================================================================================================= // Test: Solve larger system (5x5) -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Solve_5x5System) { @@ -114,9 +114,9 @@ TEST(MathLin_ComparisonTest, Solve_5x5System) } } -//================================================================================================== +//================================================================================================= // Test: Determinant comparison -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Determinant_3x3Matrix) { @@ -148,9 +148,9 @@ TEST(MathLin_ComparisonTest, Determinant_3x3Matrix) EXPECT_NEAR(*aNewResult.Determinant, -306.0, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Test: Determinant of identity matrix -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Determinant_IdentityMatrix) { @@ -175,9 +175,9 @@ TEST(MathLin_ComparisonTest, Determinant_IdentityMatrix) EXPECT_NEAR(aOldDet, 1.0, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Test: Matrix inversion comparison -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Invert_3x3Matrix) { @@ -215,9 +215,9 @@ TEST(MathLin_ComparisonTest, Invert_3x3Matrix) } } -//================================================================================================== +//================================================================================================= // Test: Verify inverse by multiplication A * A^-1 = I -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Invert_VerifyByMultiplication) { @@ -251,9 +251,9 @@ TEST(MathLin_ComparisonTest, Invert_VerifyByMultiplication) } } -//================================================================================================== +//================================================================================================= // Test: LU decomposition - verify via solving a system -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, LU_Decomposition) { @@ -317,9 +317,9 @@ TEST(MathLin_ComparisonTest, LU_Decomposition) } } -//================================================================================================== +//================================================================================================= // Test: Singular matrix detection -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, SingularMatrix_Detection) { @@ -344,9 +344,9 @@ TEST(MathLin_ComparisonTest, SingularMatrix_Detection) EXPECT_FALSE(aOldGauss.IsDone()); } -//================================================================================================== +//================================================================================================= // Test: Hilbert matrix (ill-conditioned) -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, IllConditioned_HilbertMatrix) { @@ -387,9 +387,9 @@ TEST(MathLin_ComparisonTest, IllConditioned_HilbertMatrix) } } -//================================================================================================== +//================================================================================================= // Test: Determinant comparison for multiple matrices -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Determinant_MultipleMatrices) { @@ -426,9 +426,9 @@ TEST(MathLin_ComparisonTest, Determinant_MultipleMatrices) } } -//================================================================================================== +//================================================================================================= // Test: Solution accuracy with known answer -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Solve_KnownSolution) { @@ -463,9 +463,9 @@ TEST(MathLin_ComparisonTest, Solve_KnownSolution) } } -//================================================================================================== +//================================================================================================= // Test: Solve with more complex known solution -//================================================================================================== +//================================================================================================= TEST(MathLin_ComparisonTest, Solve_ComplexKnownSolution) { diff --git a/src/FoundationClasses/TKMath/GTests/MathRoot_Multiple_Test.cxx b/src/FoundationClasses/TKMath/GTests/MathRoot_Multiple_Test.cxx index 396b26f60f..9fd4dc0389 100644 --- a/src/FoundationClasses/TKMath/GTests/MathRoot_Multiple_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/MathRoot_Multiple_Test.cxx @@ -24,9 +24,9 @@ constexpr double THE_TOLERANCE = 1e-8; constexpr double THE_PI = 3.14159265358979323846; } // namespace -//================================================================================================== +//================================================================================================= // FindAllRoots Tests (Value-only interface) -//================================================================================================== +//================================================================================================= TEST(MathRoot_Multiple, FindAllRoots_NoRoots) { @@ -158,9 +158,9 @@ TEST(MathRoot_Multiple, FindAllRoots_LambdaFunction) EXPECT_NEAR(aResult.Roots[1], 5.0 * THE_PI / 3.0, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // FindAllRootsWithDerivative Tests -//================================================================================================== +//================================================================================================= TEST(MathRoot_Multiple, FindAllRootsWithDerivative_ThreeRoots) { @@ -229,9 +229,9 @@ TEST(MathRoot_Multiple, FindAllRootsWithDerivative_SineFunction) EXPECT_NEAR(aResult.Roots[2], 2.0 * THE_PI, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Comparison with Legacy math_FunctionRoots -//================================================================================================== +//================================================================================================= TEST(MathRoot_Multiple, CompareWithLegacy_Polynomial) { diff --git a/src/FoundationClasses/TKMath/GTests/MathSys_Comparison_Test.cxx b/src/FoundationClasses/TKMath/GTests/MathSys_Comparison_Test.cxx index 63e0d60a76..19913a36b4 100644 --- a/src/FoundationClasses/TKMath/GTests/MathSys_Comparison_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/MathSys_Comparison_Test.cxx @@ -156,9 +156,9 @@ public: }; } // namespace -//================================================================================================== +//================================================================================================= // Test: Simple circle-line system - compare new API with legacy -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, Newton_CircleLineSystem) { @@ -196,9 +196,9 @@ TEST(MathSys_ComparisonTest, Newton_CircleLineSystem) EXPECT_NEAR((*aNewResult.Solution)(2), aOldRoot(2), THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Test: Rosenbrock system -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, Newton_RosenbrockSystem) { @@ -233,9 +233,9 @@ TEST(MathSys_ComparisonTest, Newton_RosenbrockSystem) EXPECT_NEAR((*aNewResult.Solution)(2), aOldRoot(2), THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Test: 3D linear system -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, Newton_Linear3System) { @@ -272,9 +272,9 @@ TEST(MathSys_ComparisonTest, Newton_Linear3System) } } -//================================================================================================== +//================================================================================================= // Test: Polynomial system finding (1,1) solution -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, Newton_PolynomialSystem) { @@ -308,9 +308,9 @@ TEST(MathSys_ComparisonTest, Newton_PolynomialSystem) EXPECT_NEAR((*aNewResult.Solution)(2), aOldRoot(2), THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Test: Bounded Newton with simple system -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, NewtonBounded_CircleLineSystem) { @@ -353,9 +353,9 @@ TEST(MathSys_ComparisonTest, NewtonBounded_CircleLineSystem) EXPECT_NEAR((*aNewResult.Solution)(2), aOldRoot(2), THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Test: Verify function values at solution are near zero -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, Newton_VerifyFunctionValues) { @@ -377,9 +377,9 @@ TEST(MathSys_ComparisonTest, Newton_VerifyFunctionValues) EXPECT_NEAR(aF(2), 0.0, 1.0e-8); } -//================================================================================================== +//================================================================================================= // Test: Iteration count comparison -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, IterationCount_NewVsOld) { @@ -411,9 +411,9 @@ TEST(MathSys_ComparisonTest, IterationCount_NewVsOld) EXPECT_NEAR(static_cast(aNewResult.NbIterations), aOldIter, 5); } -//================================================================================================== +//================================================================================================= // Test: Simplified Newton interface with uniform tolerance -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, Newton_UniformTolerance) { @@ -433,9 +433,9 @@ TEST(MathSys_ComparisonTest, Newton_UniformTolerance) EXPECT_NEAR((*aResult.Solution)(2), aExpected, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Test: Different starting points -//================================================================================================== +//================================================================================================= TEST(MathSys_ComparisonTest, Newton_DifferentStartingPoints) { diff --git a/src/FoundationClasses/TKMath/GTests/MathUtils_Functor_Test.cxx b/src/FoundationClasses/TKMath/GTests/MathUtils_Functor_Test.cxx index 73c4faeff8..f14c945cb5 100644 --- a/src/FoundationClasses/TKMath/GTests/MathUtils_Functor_Test.cxx +++ b/src/FoundationClasses/TKMath/GTests/MathUtils_Functor_Test.cxx @@ -28,9 +28,9 @@ constexpr double THE_TOLERANCE = 1e-10; constexpr double THE_PI = 3.14159265358979323846; } // namespace -//================================================================================================== +//================================================================================================= // Scalar Functor Tests -//================================================================================================== +//================================================================================================= TEST(MathUtils_Functor_Scalar, ScalarLambda_Value) { @@ -349,9 +349,9 @@ TEST(MathUtils_Functor_Scalar, Gaussian_Value) EXPECT_NEAR(aValue, std::exp(-0.5), THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Vector Functor Tests -//================================================================================================== +//================================================================================================= TEST(MathUtils_Functor_Vector, VectorLambda_Value) { @@ -617,9 +617,9 @@ TEST(MathUtils_Functor_Vector, LinearResidual_NonZero) EXPECT_NEAR(aValue, 25.0, THE_TOLERANCE); // ||[3,4]||^2 = 25 } -//================================================================================================== +//================================================================================================= // Integration Tests - Functors with Solvers -//================================================================================================== +//================================================================================================= TEST(MathUtils_Functor_Integration, Polynomial_WithBrent) { diff --git a/src/FoundationClasses/TKMath/MathUtils/MathUtils_Config.hxx b/src/FoundationClasses/TKMath/MathUtils/MathUtils_Config.hxx index 1948911aa1..36a6b3106a 100644 --- a/src/FoundationClasses/TKMath/MathUtils/MathUtils_Config.hxx +++ b/src/FoundationClasses/TKMath/MathUtils/MathUtils_Config.hxx @@ -29,10 +29,10 @@ constexpr double THE_NEWTON_STEP_TOL_FACTOR = 1.0e-16; //! Default maximum iterations for Newton solvers. constexpr size_t THE_NEWTON_MAX_ITER = 100; -//================================================================================================== +//================================================================================================= //! @name Newton 2D Solver Constants //! Constants for 2D Newton-Raphson solver (MathSys_Newton2D). -//================================================================================================== +//================================================================================================= //! Determinant threshold below which 2x2 Jacobian matrix is considered singular. //! When |det(J)| < threshold, falls back to SVD or gradient descent. @@ -79,10 +79,10 @@ constexpr double THE_NEWTON2D_BACKTRACK_ACCEPT = 1.2; //! Maximum relaxation factor for solutions at max iterations. constexpr double THE_NEWTON2D_MAXITER_RELAX = 10.0; -//================================================================================================== +//================================================================================================= //! @name Hessian Classification Constants //! Constants for extremum classification using second derivatives. -//================================================================================================== +//================================================================================================= //! Relative tolerance for Hessian degeneracy detection. //! If |det(H)| < threshold * |H_ii| * |H_jj|, Hessian is considered degenerate. @@ -92,10 +92,10 @@ constexpr double THE_HESSIAN_DEGENERACY_REL = 1.0e-8; //! Minimum threshold for determinant comparison. constexpr double THE_HESSIAN_DEGENERACY_ABS = 1.0e-20; -//================================================================================================== +//================================================================================================= //! @name Line Search Constants //! Constants for line search acceptance conditions. -//================================================================================================== +//================================================================================================= //! Armijo condition constant (sufficient decrease). //! Step accepted if: f(x + alpha*d) <= f(x) + c1 * alpha * grad_f . d diff --git a/src/FoundationClasses/TKMath/MathUtils/MathUtils_GaussKronrodWeights.cxx b/src/FoundationClasses/TKMath/MathUtils/MathUtils_GaussKronrodWeights.cxx index 726850690f..6ac1a02394 100644 --- a/src/FoundationClasses/TKMath/MathUtils/MathUtils_GaussKronrodWeights.cxx +++ b/src/FoundationClasses/TKMath/MathUtils/MathUtils_GaussKronrodWeights.cxx @@ -14,7 +14,7 @@ #include "MathUtils_GaussKronrodWeights.hxx" #include -//================================================================================================== +//================================================================================================= bool MathUtils::GetKronrodPointsAndWeights(int theNbKronrod, math_Vector& thePoints, @@ -23,7 +23,7 @@ bool MathUtils::GetKronrodPointsAndWeights(int theNbKronrod, return math::KronrodPointsAndWeights(theNbKronrod, thePoints, theWeights); } -//================================================================================================== +//================================================================================================= bool MathUtils::GetOrderedGaussPointsAndWeights(int theNbGauss, math_Vector& thePoints, diff --git a/src/FoundationClasses/TKMath/gp/gp_Pln.cxx b/src/FoundationClasses/TKMath/gp/gp_Pln.cxx index 97ab0d55c4..4110fd0b13 100644 --- a/src/FoundationClasses/TKMath/gp/gp_Pln.cxx +++ b/src/FoundationClasses/TKMath/gp/gp_Pln.cxx @@ -30,7 +30,7 @@ #include #include -//================================================================================================== +//================================================================================================= gp_Pln::gp_Pln(const gp_Pnt& theP, const gp_Dir& theV) { @@ -69,7 +69,7 @@ gp_Pln::gp_Pln(const gp_Pnt& theP, const gp_Dir& theV) } } -//================================================================================================== +//================================================================================================= gp_Pln::gp_Pln(const double theA, const double theB, const double theC, const double theD) { @@ -105,49 +105,49 @@ gp_Pln::gp_Pln(const double theA, const double theB, const double theC, const do } } -//================================================================================================== +//================================================================================================= void gp_Pln::Mirror(const gp_Pnt& theP) noexcept { myPosition.Mirror(theP); } -//================================================================================================== +//================================================================================================= gp_Pln gp_Pln::Mirrored(const gp_Pnt& theP) const noexcept { return gp_Pln(myPosition.Mirrored(theP)); } -//================================================================================================== +//================================================================================================= void gp_Pln::Mirror(const gp_Ax1& theA1) noexcept { myPosition.Mirror(theA1); } -//================================================================================================== +//================================================================================================= gp_Pln gp_Pln::Mirrored(const gp_Ax1& theA1) const noexcept { return gp_Pln(myPosition.Mirrored(theA1)); } -//================================================================================================== +//================================================================================================= void gp_Pln::Mirror(const gp_Ax2& theA2) noexcept { myPosition.Mirror(theA2); } -//================================================================================================== +//================================================================================================= gp_Pln gp_Pln::Mirrored(const gp_Ax2& theA2) const noexcept { return gp_Pln(myPosition.Mirrored(theA2)); } -//================================================================================================== +//================================================================================================= void gp_Pln::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/FoundationClasses/TKMath/math/math_Matrix.cxx b/src/FoundationClasses/TKMath/math/math_Matrix.cxx index 7bb64f4bf5..68b6f867a6 100644 --- a/src/FoundationClasses/TKMath/math/math_Matrix.cxx +++ b/src/FoundationClasses/TKMath/math/math_Matrix.cxx @@ -19,7 +19,7 @@ #include #include -//================================================================================================== +//================================================================================================= void math_Matrix::SetRow(const int Row, const math_Vector& V) { @@ -37,7 +37,7 @@ void math_Matrix::SetRow(const int Row, const math_Vector& V) } } -//================================================================================================== +//================================================================================================= void math_Matrix::SetCol(const int Col, const math_Vector& V) { @@ -55,7 +55,7 @@ void math_Matrix::SetCol(const int Col, const math_Vector& V) } } -//================================================================================================== +//================================================================================================= math_Vector math_Matrix::Row(const int Row) const { @@ -71,7 +71,7 @@ math_Vector math_Matrix::Row(const int Row) const return Result; } -//================================================================================================== +//================================================================================================= math_Vector math_Matrix::Col(const int Col) const { @@ -87,7 +87,7 @@ math_Vector math_Matrix::Col(const int Col) const return Result; } -//================================================================================================== +//================================================================================================= void math_Matrix::SwapRow(const int Row1, const int Row2) { @@ -97,7 +97,7 @@ void math_Matrix::SwapRow(const int Row1, const int Row2) SetRow(Row2, V1); } -//================================================================================================== +//================================================================================================= void math_Matrix::SwapCol(const int Col1, const int Col2) { @@ -107,7 +107,7 @@ void math_Matrix::SwapCol(const int Col1, const int Col2) SetCol(Col2, V1); } -//================================================================================================== +//================================================================================================= void math_Matrix::Multiply(const math_Vector& Left, const math_Vector& Right) { @@ -129,7 +129,7 @@ void math_Matrix::Multiply(const math_Vector& Left, const math_Vector& Right) } } -//================================================================================================== +//================================================================================================= math_Vector math_Matrix::Multiplied(const math_Vector& Right) const { @@ -157,14 +157,14 @@ math_Vector math_Matrix::Multiplied(const math_Vector& Right) const return Result; } -//================================================================================================== +//================================================================================================= math_Vector math_Matrix::operator*(const math_Vector& Right) const { return Multiplied(Right); } -//================================================================================================== +//================================================================================================= double math_Matrix::Determinant() const { @@ -180,7 +180,7 @@ double math_Matrix::Determinant() const } } -//================================================================================================== +//================================================================================================= void math_Matrix::Invert() { @@ -198,7 +198,7 @@ void math_Matrix::Invert() } } -//================================================================================================== +//================================================================================================= math_Matrix math_Matrix::Inverse() const { diff --git a/src/FoundationClasses/TKMath/math/math_Matrix.lxx b/src/FoundationClasses/TKMath/math/math_Matrix.lxx index b5ce4ec729..ba88b69da3 100644 --- a/src/FoundationClasses/TKMath/math/math_Matrix.lxx +++ b/src/FoundationClasses/TKMath/math/math_Matrix.lxx @@ -16,7 +16,7 @@ #include #include -//================================================================================================== +//================================================================================================= inline Standard_OStream& operator<<(Standard_OStream& o, const math_Matrix& mat) { @@ -24,70 +24,70 @@ inline Standard_OStream& operator<<(Standard_OStream& o, const math_Matrix& mat) return o; } -//================================================================================================== +//================================================================================================= inline math_Matrix operator*(const double Left, const math_Matrix& Right) { return Right.Multiplied(Left); } -//================================================================================================== +//================================================================================================= inline const double& math_Matrix::Value(const int Row, const int Col) const { return Array.Value(Row, Col); } -//================================================================================================== +//================================================================================================= inline double& math_Matrix::Value(const int Row, const int Col) { return Array.Value(Row, Col); } -//================================================================================================== +//================================================================================================= inline int math_Matrix::RowNumber() const noexcept { return Array.NbRows(); } -//================================================================================================== +//================================================================================================= inline int math_Matrix::ColNumber() const noexcept { return Array.NbColumns(); } -//================================================================================================== +//================================================================================================= inline int math_Matrix::LowerRow() const noexcept { return Array.LowerRow(); } -//================================================================================================== +//================================================================================================= inline int math_Matrix::UpperRow() const noexcept { return Array.UpperRow(); } -//================================================================================================== +//================================================================================================= inline int math_Matrix::LowerCol() const noexcept { return Array.LowerCol(); } -//================================================================================================== +//================================================================================================= inline int math_Matrix::UpperCol() const noexcept { return Array.UpperCol(); } -//================================================================================================== +//================================================================================================= inline void math_Matrix::SetLower(const int LowerRow, const int LowerCol) noexcept { @@ -95,7 +95,7 @@ inline void math_Matrix::SetLower(const int LowerRow, const int LowerCol) noexce SetLowerCol(LowerCol); } -//================================================================================================== +//================================================================================================= inline math_Matrix::math_Matrix(const int LowerRow, const int UpperRow, @@ -105,7 +105,7 @@ inline math_Matrix::math_Matrix(const int LowerRow, { } -//================================================================================================== +//================================================================================================= inline math_Matrix::math_Matrix(const int LowerRow, const int UpperRow, @@ -117,7 +117,7 @@ inline math_Matrix::math_Matrix(const int LowerRow, Array.Init(InitialValue); } -//================================================================================================== +//================================================================================================= inline math_Matrix::math_Matrix(void* const Tab, const int LowerRow, @@ -128,41 +128,41 @@ inline math_Matrix::math_Matrix(void* const Tab, { } -//================================================================================================== +//================================================================================================= inline math_Matrix::math_Matrix(const math_Matrix& Other) = default; -//================================================================================================== +//================================================================================================= inline math_Matrix::math_Matrix(math_Matrix&& Other) noexcept : Array(std::move(Other.Array)) { } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Init(const double InitialValue) noexcept { Array.Init(InitialValue); } -//================================================================================================== +//================================================================================================= inline void math_Matrix::SetLowerRow(const int LowerRow) noexcept { Array.SetLowerRow(LowerRow); } -//================================================================================================== +//================================================================================================= inline void math_Matrix::SetLowerCol(const int LowerCol) noexcept { Array.SetLowerCol(LowerCol); } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Multiply(const double Right) noexcept { @@ -180,7 +180,7 @@ inline void math_Matrix::Multiply(const double Right) noexcept } } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::Multiplied(const double Right) const noexcept { @@ -200,7 +200,7 @@ inline math_Matrix math_Matrix::Multiplied(const double Right) const noexcept return Result; } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::TMultiplied(const double Right) const noexcept { @@ -220,7 +220,7 @@ inline math_Matrix math_Matrix::TMultiplied(const double Right) const noexcept return Result; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Divide(const double Right) { @@ -241,7 +241,7 @@ inline void math_Matrix::Divide(const double Right) } } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::Divided(const double Right) const { @@ -251,7 +251,7 @@ inline math_Matrix math_Matrix::Divided(const double Right) const return temp; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Add(const math_Matrix& Right) { @@ -277,7 +277,7 @@ inline void math_Matrix::Add(const math_Matrix& Right) } } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::Added(const math_Matrix& Right) const { @@ -306,7 +306,7 @@ inline math_Matrix math_Matrix::Added(const math_Matrix& Right) const return Result; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Add(const math_Matrix& Left, const math_Matrix& Right) { @@ -337,7 +337,7 @@ inline void math_Matrix::Add(const math_Matrix& Left, const math_Matrix& Right) } } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Subtract(const math_Matrix& Right) { @@ -363,7 +363,7 @@ inline void math_Matrix::Subtract(const math_Matrix& Right) } } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::Subtracted(const math_Matrix& Right) const { @@ -392,7 +392,7 @@ inline math_Matrix math_Matrix::Subtracted(const math_Matrix& Right) const return Result; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Subtract(const math_Matrix& Left, const math_Matrix& Right) { @@ -423,7 +423,7 @@ inline void math_Matrix::Subtract(const math_Matrix& Left, const math_Matrix& Ri } } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::Opposite() const { @@ -444,7 +444,7 @@ inline math_Matrix math_Matrix::Opposite() const return Result; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Set(const int I1, const int I2, @@ -469,7 +469,7 @@ inline void math_Matrix::Set(const int I1, } } -//================================================================================================== +//================================================================================================= inline void math_Matrix::SetDiag(const double Value) { @@ -485,7 +485,7 @@ inline void math_Matrix::SetDiag(const double Value) } } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::Transposed() const { @@ -506,7 +506,7 @@ inline math_Matrix math_Matrix::Transposed() const return Result; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Multiply(const math_Matrix& Left, const math_Matrix& Right) { @@ -546,7 +546,7 @@ inline void math_Matrix::Multiply(const math_Matrix& Left, const math_Matrix& Ri } } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Multiply(const math_Matrix& Right) { @@ -584,7 +584,7 @@ inline void math_Matrix::Multiply(const math_Matrix& Right) } } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::Multiplied(const math_Matrix& Right) const { @@ -621,7 +621,7 @@ inline math_Matrix math_Matrix::Multiplied(const math_Matrix& Right) const return Result; } -//================================================================================================== +//================================================================================================= inline math_Matrix math_Matrix::TMultiply(const math_Matrix& Right) const { @@ -654,7 +654,7 @@ inline math_Matrix math_Matrix::TMultiply(const math_Matrix& Right) const return Result; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::TMultiply(const math_Matrix& TLeft, const math_Matrix& Right) { @@ -691,7 +691,7 @@ inline void math_Matrix::TMultiply(const math_Matrix& TLeft, const math_Matrix& } } -//================================================================================================== +//================================================================================================= inline math_Matrix& math_Matrix::Initialized(const math_Matrix& Other) { @@ -703,7 +703,7 @@ inline math_Matrix& math_Matrix::Initialized(const math_Matrix& Other) return *this; } -//================================================================================================== +//================================================================================================= inline math_Matrix& math_Matrix::operator=(math_Matrix&& Other) { @@ -725,7 +725,7 @@ inline math_Matrix& math_Matrix::operator=(math_Matrix&& Other) return *this; } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Transpose() { @@ -754,7 +754,7 @@ inline void math_Matrix::Transpose() SetLowerCol(Row); } -//================================================================================================== +//================================================================================================= inline void math_Matrix::Dump(Standard_OStream& o) const { diff --git a/src/FoundationClasses/TKernel/GTests/NCollection_FlatDataMap_Test.cxx b/src/FoundationClasses/TKernel/GTests/NCollection_FlatDataMap_Test.cxx index d3c453b2cf..43f24e0916 100644 --- a/src/FoundationClasses/TKernel/GTests/NCollection_FlatDataMap_Test.cxx +++ b/src/FoundationClasses/TKernel/GTests/NCollection_FlatDataMap_Test.cxx @@ -17,9 +17,9 @@ #include #include -//================================================================================================== +//================================================================================================= // NCollection_FlatDataMap Tests -//================================================================================================== +//================================================================================================= class NCollection_FlatDataMapTest : public testing::Test { diff --git a/src/FoundationClasses/TKernel/GTests/NCollection_FlatMap_Test.cxx b/src/FoundationClasses/TKernel/GTests/NCollection_FlatMap_Test.cxx index ac2446f652..f1b2fc9ed3 100644 --- a/src/FoundationClasses/TKernel/GTests/NCollection_FlatMap_Test.cxx +++ b/src/FoundationClasses/TKernel/GTests/NCollection_FlatMap_Test.cxx @@ -17,9 +17,9 @@ #include #include -//================================================================================================== +//================================================================================================= // NCollection_FlatMap Tests -//================================================================================================== +//================================================================================================= class NCollection_FlatMapTest : public testing::Test { diff --git a/src/FoundationClasses/TKernel/GTests/NCollection_PackedMap_Test.cxx b/src/FoundationClasses/TKernel/GTests/NCollection_PackedMap_Test.cxx index 745b5744cd..6494f13a56 100644 --- a/src/FoundationClasses/TKernel/GTests/NCollection_PackedMap_Test.cxx +++ b/src/FoundationClasses/TKernel/GTests/NCollection_PackedMap_Test.cxx @@ -19,9 +19,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Type-parameterized tests for NCollection_PackedMap -//================================================================================================== +//================================================================================================= template class NCollection_PackedMapTypedTest : public testing::Test @@ -34,9 +34,9 @@ using TestedTypes = ::testing::Types; TYPED_TEST_SUITE(NCollection_PackedMapTypedTest, TestedTypes); -//================================================================================================== +//================================================================================================= // Basic Construction Tests -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, DefaultConstructor) { @@ -124,9 +124,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, MoveAssignment) EXPECT_TRUE(aMap1.IsEmpty()); } -//================================================================================================== +//================================================================================================= // Basic Operations Tests -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, AddAndContains) { @@ -191,9 +191,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, Clear) EXPECT_TRUE(aMap.Contains(TypeParam(100))); } -//================================================================================================== +//================================================================================================= // Edge Cases and Special Values -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, ZeroValue) { @@ -261,9 +261,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, BlockBoundary) EXPECT_TRUE(aMap.Contains(static_cast(aBitsPerBlock + 1))); } -//================================================================================================== +//================================================================================================= // Min/Max Queries -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, GetMinimalMapped) { @@ -297,9 +297,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, GetMaximalMapped) EXPECT_EQ(aMap.GetMaximalMapped(), TypeParam(75)); } -//================================================================================================== +//================================================================================================= // Boolean Operations - Union -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, Union) { @@ -366,9 +366,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, UniteInPlace) EXPECT_TRUE(aMap1.Contains(TypeParam(3))); } -//================================================================================================== +//================================================================================================= // Boolean Operations - Intersection -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, Intersection) { @@ -449,9 +449,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, IntersectionDisjoint) EXPECT_TRUE(aResult.IsEmpty()); } -//================================================================================================== +//================================================================================================= // Boolean Operations - Subtraction -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, Subtraction) { @@ -514,9 +514,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, SubtractInPlace) EXPECT_FALSE(aMap1.Contains(TypeParam(2))); } -//================================================================================================== +//================================================================================================= // Boolean Operations - Difference (XOR) -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, Difference) { @@ -577,9 +577,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, DifferInPlace) EXPECT_FALSE(aMap1.Contains(TypeParam(2))); } -//================================================================================================== +//================================================================================================= // Comparison Operations -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, IsEqual) { @@ -668,9 +668,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, HasIntersection) EXPECT_FALSE(NCollection_PackedMapAlgo::HasIntersection(aMap1, aMap3)); } -//================================================================================================== +//================================================================================================= // Iterator Tests -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, IteratorBasic) { @@ -759,9 +759,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, IteratorReset) EXPECT_EQ(aCount2, 2); } -//================================================================================================== +//================================================================================================= // Resize and Performance Tests -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, ReSize) { @@ -794,9 +794,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, LargeValues) EXPECT_TRUE(aMap.Contains(TypeParam(3000000))); } -//================================================================================================== +//================================================================================================= // Self-Operations Tests -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, UnionWithSelf) { @@ -852,9 +852,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, DifferenceWithSelf) EXPECT_TRUE(aResult.IsEmpty()); } -//================================================================================================== +//================================================================================================= // Empty Map Operations -//================================================================================================== +//================================================================================================= TYPED_TEST(NCollection_PackedMapTypedTest, UnionWithEmpty) { @@ -903,9 +903,9 @@ TYPED_TEST(NCollection_PackedMapTypedTest, SubtractionEmpty) EXPECT_TRUE(aResult2.IsEmpty()); } -//================================================================================================== +//================================================================================================= // Signed Integer Specific Tests (only run for signed types) -//================================================================================================== +//================================================================================================= template class NCollection_PackedMapSignedTest : public testing::Test @@ -965,9 +965,9 @@ TYPED_TEST(NCollection_PackedMapSignedTest, MinMaxWithNegatives) EXPECT_EQ(aMap.GetMaximalMapped(), TypeParam(100)); } -//================================================================================================== +//================================================================================================= // 64-bit Type Specific Tests -//================================================================================================== +//================================================================================================= TEST(NCollection_PackedMap64BitTest, LargeValues64Bit) { @@ -1022,9 +1022,9 @@ TEST(NCollection_PackedMap64BitTest, SizeTypeValues) EXPECT_TRUE(aMap.Contains(std::numeric_limits::max() / 2)); } -//================================================================================================== +//================================================================================================= // Type Configuration Verification Tests -//================================================================================================== +//================================================================================================= TEST(NCollection_PackedMapConfigTest, ConfigFor32BitTypes) { diff --git a/src/FoundationClasses/TKernel/GTests/OSD_Path_Test.cxx b/src/FoundationClasses/TKernel/GTests/OSD_Path_Test.cxx index 718881b693..985e964465 100644 --- a/src/FoundationClasses/TKernel/GTests/OSD_Path_Test.cxx +++ b/src/FoundationClasses/TKernel/GTests/OSD_Path_Test.cxx @@ -276,6 +276,6 @@ TEST_F(OSD_PathTest, OCC309_CurrentDirectoryAndUpTrek) EXPECT_LT(aSystemName2.Length(), aSystemName1.Length()); } -//================================================================================================== +//================================================================================================= // Validation Tests -//================================================================================================== \ No newline at end of file +//================================================================================================= \ No newline at end of file diff --git a/src/FoundationClasses/TKernel/GTests/OSD_PerfMeter_Test.cxx b/src/FoundationClasses/TKernel/GTests/OSD_PerfMeter_Test.cxx index ab7f481a8b..1f8ddc56a1 100644 --- a/src/FoundationClasses/TKernel/GTests/OSD_PerfMeter_Test.cxx +++ b/src/FoundationClasses/TKernel/GTests/OSD_PerfMeter_Test.cxx @@ -66,7 +66,7 @@ protected: } }; -//================================================================================================== +//================================================================================================= // Test basic creation and auto-start functionality TEST_F(OSD_PerfMeterTest, BasicCreationWithAutoStart) @@ -85,7 +85,7 @@ TEST_F(OSD_PerfMeterTest, BasicCreationWithAutoStart) EXPECT_GT(elapsed, 0.0) << "Elapsed time should be positive"; } -//================================================================================================== +//================================================================================================= // Test manual start/stop functionality TEST_F(OSD_PerfMeterTest, ManualStartStop) @@ -107,7 +107,7 @@ TEST_F(OSD_PerfMeterTest, ManualStartStop) EXPECT_GT(elapsed, 0.0) << "Elapsed time should be positive"; } -//================================================================================================== +//================================================================================================= // Test default constructor and Init TEST_F(OSD_PerfMeterTest, DefaultConstructorAndInit) @@ -129,7 +129,7 @@ TEST_F(OSD_PerfMeterTest, DefaultConstructorAndInit) EXPECT_GT(meter.Elapsed(), 0.0) << "Initialized meter should have positive elapsed time"; } -//================================================================================================== +//================================================================================================= // Test that two meters with the same name refer to the same internal meter TEST_F(OSD_PerfMeterTest, SharedMetersByName) @@ -163,7 +163,7 @@ TEST_F(OSD_PerfMeterTest, SharedMetersByName) EXPECT_DOUBLE_EQ(elapsed, elapsed2) << "Both meter instances should show same elapsed time"; } -//================================================================================================== +//================================================================================================= // Test restarting a meter TEST_F(OSD_PerfMeterTest, RestartMeter) @@ -194,7 +194,7 @@ TEST_F(OSD_PerfMeterTest, RestartMeter) EXPECT_NE(elapsed1, elapsed2) << "After restart, elapsed time should be different"; } -//================================================================================================== +//================================================================================================= // Test relative timing accuracy TEST_F(OSD_PerfMeterTest, RelativeTimingAccuracy) @@ -220,7 +220,7 @@ TEST_F(OSD_PerfMeterTest, RelativeTimingAccuracy) EXPECT_GT(longElapsed, shortElapsed) << "Long work should take more time than short work"; } -//================================================================================================== +//================================================================================================= // Test the static PrintALL method TEST_F(OSD_PerfMeterTest, PrintALL) @@ -250,7 +250,7 @@ TEST_F(OSD_PerfMeterTest, PrintALL) << "PrintALL output should contain Meter3"; } -//================================================================================================== +//================================================================================================= // Test the static ResetALL method TEST_F(OSD_PerfMeterTest, ResetALL) @@ -276,7 +276,7 @@ TEST_F(OSD_PerfMeterTest, ResetALL) EXPECT_EQ(meter2.Elapsed(), 0.0) << "Elapsed time should be zero after ResetALL"; } -//================================================================================================== +//================================================================================================= // Test unused meter behavior TEST_F(OSD_PerfMeterTest, UnusedMeter) @@ -292,7 +292,7 @@ TEST_F(OSD_PerfMeterTest, UnusedMeter) EXPECT_EQ(meter.Elapsed(), 0.0) << "Stopping an unused meter should leave elapsed time at zero"; } -//================================================================================================== +//================================================================================================= // Test the Print() method TEST_F(OSD_PerfMeterTest, PrintMethod) @@ -323,7 +323,7 @@ TEST_F(OSD_PerfMeterTest, PrintMethod) << "Print output should contain millisecond units"; } -//================================================================================================== +//================================================================================================= // Test the Kill() method TEST_F(OSD_PerfMeterTest, KillMethod) @@ -354,7 +354,7 @@ TEST_F(OSD_PerfMeterTest, KillMethod) << "Killed meter should not appear in PrintALL output"; } -//================================================================================================== +//================================================================================================= // Test Kill method on a running meter TEST_F(OSD_PerfMeterTest, KillRunningMeter) diff --git a/src/FoundationClasses/TKernel/GTests/Standard_Dump_Test.cxx b/src/FoundationClasses/TKernel/GTests/Standard_Dump_Test.cxx index b2164d948a..f4f355f1a6 100644 --- a/src/FoundationClasses/TKernel/GTests/Standard_Dump_Test.cxx +++ b/src/FoundationClasses/TKernel/GTests/Standard_Dump_Test.cxx @@ -19,9 +19,9 @@ #include #include -//================================================================================================== +//================================================================================================= // AddValuesSeparator Direct Tests -//================================================================================================== +//================================================================================================= TEST(Standard_DumpTest, AddValuesSeparator_EmptyStream) { @@ -92,9 +92,9 @@ TEST(Standard_DumpTest, AddValuesSeparator_MultipleFields) << "Separators should be added between fields. Got: '" << aResult << "'"; } -//================================================================================================== +//================================================================================================= // Test with Real OCCT Classes -//================================================================================================== +//================================================================================================= TEST(Standard_DumpTest, gp_Pnt_DumpAndInit) { @@ -210,9 +210,9 @@ TEST(Standard_DumpTest, Bnd_Box_ComplexDump) EXPECT_DOUBLE_EQ(aBox.GetGap(), aDeserializedBox.GetGap()); } -//================================================================================================== +//================================================================================================= // Edge Cases and Stream Position Tests -//================================================================================================== +//================================================================================================= TEST(Standard_DumpTest, TellP_BehaviorValidation) { diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_EBTree.hxx b/src/FoundationClasses/TKernel/NCollection/NCollection_EBTree.hxx index 90afb1cde3..4d893bc731 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_EBTree.hxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_EBTree.hxx @@ -139,7 +139,7 @@ private: NCollection_DataMap myObjNodeMap; ///< map of object to node pointer }; -//================================================================================================== +//================================================================================================= template bool NCollection_EBTree::Remove(const TheObjType& theObj) diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_ItemsView.hxx b/src/FoundationClasses/TKernel/NCollection/NCollection_ItemsView.hxx index 4697c65721..0f1375eedb 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_ItemsView.hxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_ItemsView.hxx @@ -30,7 +30,7 @@ namespace NCollection_ItemsView { -//================================================================================================== +//================================================================================================= //! Key-value pair reference for structured binding support. //! Enables: for (auto [key, value] : map.Items()) @@ -55,7 +55,7 @@ struct KeyValueRef } }; -//================================================================================================== +//================================================================================================= //! Key-value-index tuple reference for structured binding support. //! Enables: for (auto [key, value, index] : map.IndexedItems()) @@ -83,7 +83,7 @@ struct KeyValueIndexRef } }; -//================================================================================================== +//================================================================================================= //! Key-index pair reference for structured binding support (key-only indexed maps). //! Enables: for (auto [key, index] : map.IndexedItems()) @@ -104,7 +104,7 @@ struct KeyIndexRef } }; -//================================================================================================== +//================================================================================================= //! Generic forward iterator for View classes. //! @tparam BaseIterator the map's native Iterator type @@ -162,7 +162,7 @@ private: mutable BaseIterator myInner; }; -//================================================================================================== +//================================================================================================= //! Generic view class for Items() iteration. //! @tparam MapType the map class type @@ -194,7 +194,7 @@ private: } // namespace NCollection_ItemsView -//================================================================================================== +//================================================================================================= // Structured binding support (std::tuple_size and std::tuple_element specializations) diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_SparseArrayBase.cxx b/src/FoundationClasses/TKernel/NCollection/NCollection_SparseArrayBase.cxx index ff9d1544f2..4199728b4f 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_SparseArrayBase.cxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_SparseArrayBase.cxx @@ -19,7 +19,7 @@ #include #include -//================================================================================================== +//================================================================================================= void NCollection_SparseArrayBase::allocData(const size_t iBlock) { @@ -42,7 +42,7 @@ void NCollection_SparseArrayBase::allocData(const size_t iBlock) myNbBlocks = newNbBlocks; } -//================================================================================================== +//================================================================================================= void NCollection_SparseArrayBase::freeBlock(const size_t iBlock, DestroyItemFunc theDestroyItem) { @@ -64,7 +64,7 @@ void NCollection_SparseArrayBase::freeBlock(const size_t iBlock, DestroyItemFunc anAddr = nullptr; } -//================================================================================================== +//================================================================================================= void NCollection_SparseArrayBase::clearItems(DestroyItemFunc theDestroyItem) { @@ -84,7 +84,7 @@ void NCollection_SparseArrayBase::clearItems(DestroyItemFunc theDestroyItem) mySize = 0; } -//================================================================================================== +//================================================================================================= void NCollection_SparseArrayBase::assign(const NCollection_SparseArrayBase& theOther, CreateItemFunc theCreateItem, @@ -172,7 +172,7 @@ void NCollection_SparseArrayBase::assign(const NCollection_SparseArrayBase& theO freeBlock(iBlock, theDestroyItem); } -//================================================================================================== +//================================================================================================= void NCollection_SparseArrayBase::exchange(NCollection_SparseArrayBase& theOther) noexcept { @@ -188,7 +188,7 @@ void NCollection_SparseArrayBase::exchange(NCollection_SparseArrayBase& theOther std::swap(myDestroyItem, theOther.myDestroyItem); } -//================================================================================================== +//================================================================================================= void* NCollection_SparseArrayBase::setValue(const size_t theIndex, void* const theValue, @@ -232,7 +232,7 @@ void* NCollection_SparseArrayBase::setValue(const size_t theIndex, return anItem; } -//================================================================================================== +//================================================================================================= bool NCollection_SparseArrayBase::HasValue(const size_t theIndex) const { @@ -242,7 +242,7 @@ bool NCollection_SparseArrayBase::HasValue(const size_t theIndex) const return getBlock(myData[iBlock]).IsSet(theIndex % myBlockSize) != 0; } -//================================================================================================== +//================================================================================================= bool NCollection_SparseArrayBase::unsetValue(const size_t theIndex, DestroyItemFunc theDestroyItem) { @@ -268,7 +268,7 @@ bool NCollection_SparseArrayBase::unsetValue(const size_t theIndex, DestroyItemF return true; } -//================================================================================================== +//================================================================================================= NCollection_SparseArrayBase::Iterator::Iterator(const NCollection_SparseArrayBase* theArray) : myArr((NCollection_SparseArrayBase*)theArray), @@ -280,7 +280,7 @@ NCollection_SparseArrayBase::Iterator::Iterator(const NCollection_SparseArrayBas init(theArray); } -//================================================================================================== +//================================================================================================= void NCollection_SparseArrayBase::Iterator::Next() { @@ -314,7 +314,7 @@ void NCollection_SparseArrayBase::Iterator::Next() } } -//================================================================================================== +//================================================================================================= void NCollection_SparseArrayBase::Iterator::init(const NCollection_SparseArrayBase* theArray) { diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_UBTree.hxx b/src/FoundationClasses/TKernel/NCollection/NCollection_UBTree.hxx index 7acfef43e0..a519f5c2b6 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_UBTree.hxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_UBTree.hxx @@ -416,7 +416,7 @@ private: occ::handle myAlloc; ///< Allocator for TreeNode }; -//================================================================================================== +//================================================================================================= template bool NCollection_UBTree::Add(const TheObjType& theObj, @@ -474,7 +474,7 @@ bool NCollection_UBTree::Add(const TheObjType& theObj, return true; } -//================================================================================================== +//================================================================================================= template int NCollection_UBTree::Select(const TreeNode& theBranch, diff --git a/src/FoundationClasses/TKernel/OSD/OSD_PerfMeter.cxx b/src/FoundationClasses/TKernel/OSD/OSD_PerfMeter.cxx index fd238cb4c2..2923c3b7a3 100644 --- a/src/FoundationClasses/TKernel/OSD/OSD_PerfMeter.cxx +++ b/src/FoundationClasses/TKernel/OSD/OSD_PerfMeter.cxx @@ -62,7 +62,7 @@ private: // currently running. }; -//================================================================================================== +//================================================================================================= Stopwatch::Stopwatch() : myStartTime(getTime()), @@ -71,7 +71,7 @@ Stopwatch::Stopwatch() { } -//================================================================================================== +//================================================================================================= void Stopwatch::Start() { @@ -79,7 +79,7 @@ void Stopwatch::Start() myIsTicking = true; } -//================================================================================================== +//================================================================================================= void Stopwatch::Stop() { @@ -92,7 +92,7 @@ void Stopwatch::Stop() myIsTicking = false; } -//================================================================================================== +//================================================================================================= double Stopwatch::Elapsed() const { @@ -100,21 +100,21 @@ double Stopwatch::Elapsed() const return anEndTime - myStartTime; } -//================================================================================================== +//================================================================================================= bool Stopwatch::IsRunning() const { return myIsTicking; } -//================================================================================================== +//================================================================================================= bool Stopwatch::IsActive() const { return myIsTicking || (myEndTime - myStartTime) > 0.0; } -//================================================================================================== +//================================================================================================= double Stopwatch::getTime() { @@ -125,7 +125,7 @@ double Stopwatch::getTime() return aUserSeconds; } -//================================================================================================== +//================================================================================================= // Singleton class to manage multiple stopwatches. // It provides methods to create, retrieve, and print stopwatches by name. @@ -206,7 +206,7 @@ private: NCollection_DataMap myStopwatches; }; -//================================================================================================== +//================================================================================================= StopwatchStorage& StopwatchStorage::Instance() { @@ -214,42 +214,42 @@ StopwatchStorage& StopwatchStorage::Instance() return instance; } -//=================================================================================================== +//================================================================================================== Stopwatch* StopwatchStorage::GetStopwatch(const TCollection_AsciiString& theName) { return myStopwatches.ChangeSeek(theName); } -//=================================================================================================== +//================================================================================================== Stopwatch& StopwatchStorage::CreateStopwatch(const TCollection_AsciiString& theName) { return *myStopwatches.Bound(theName, Stopwatch()); } -//=================================================================================================== +//================================================================================================== bool StopwatchStorage::HasStopwatch(const TCollection_AsciiString& theName) const { return myStopwatches.IsBound(theName); } -//=================================================================================================== +//================================================================================================== void StopwatchStorage::KillStopwatch(const TCollection_AsciiString& theName) { myStopwatches.UnBind(theName); } -//=================================================================================================== +//================================================================================================== void StopwatchStorage::Clear() { myStopwatches.Clear(); } -//=================================================================================================== +//================================================================================================== TCollection_AsciiString StopwatchStorage::Print(const TCollection_AsciiString& theName) const { @@ -261,7 +261,7 @@ TCollection_AsciiString StopwatchStorage::Print(const TCollection_AsciiString& t return anOutput; } -//=================================================================================================== +//================================================================================================== TCollection_AsciiString StopwatchStorage::PrintAll() const { @@ -275,7 +275,7 @@ TCollection_AsciiString StopwatchStorage::PrintAll() const return anOutput; } -//=================================================================================================== +//================================================================================================== void StopwatchStorage::print(const TCollection_AsciiString& theName, TCollection_AsciiString& theOutput) const @@ -301,7 +301,7 @@ void StopwatchStorage::print(const TCollection_AsciiString& theName, + TCollection_AsciiString(aStopwatch->Elapsed()) + " sec\n"; } -//================================================================================================== +//================================================================================================= OSD_PerfMeter::OSD_PerfMeter(const TCollection_AsciiString& theMeterName, const bool theToAutoStart) { @@ -313,11 +313,11 @@ OSD_PerfMeter::OSD_PerfMeter(const TCollection_AsciiString& theMeterName, const } } -//================================================================================================== +//================================================================================================= OSD_PerfMeter::~OSD_PerfMeter() = default; -//================================================================================================== +//================================================================================================= void OSD_PerfMeter::Init(const TCollection_AsciiString& theMeterName) { @@ -328,7 +328,7 @@ void OSD_PerfMeter::Init(const TCollection_AsciiString& theMeterName) } } -//================================================================================================== +//================================================================================================= void OSD_PerfMeter::Start() const { @@ -339,7 +339,7 @@ void OSD_PerfMeter::Start() const } } -//================================================================================================== +//================================================================================================= void OSD_PerfMeter::Stop() const { @@ -350,7 +350,7 @@ void OSD_PerfMeter::Stop() const } } -//================================================================================================== +//================================================================================================= double OSD_PerfMeter::Elapsed() const { @@ -358,14 +358,14 @@ double OSD_PerfMeter::Elapsed() const return aStopwatch ? aStopwatch->Elapsed() : 0.0; } -//================================================================================================== +//================================================================================================= void OSD_PerfMeter::Kill() const { StopwatchStorage::Instance().KillStopwatch(myMeterName); } -//================================================================================================== +//================================================================================================= TCollection_AsciiString OSD_PerfMeter::Print() const { @@ -377,14 +377,14 @@ TCollection_AsciiString OSD_PerfMeter::Print() const return ""; } -//================================================================================================== +//================================================================================================= TCollection_AsciiString OSD_PerfMeter::PrintALL() { return StopwatchStorage::Instance().PrintAll(); } -//================================================================================================== +//================================================================================================= void OSD_PerfMeter::ResetALL() { diff --git a/src/FoundationClasses/TKernel/Standard/Standard_Real.cxx b/src/FoundationClasses/TKernel/Standard/Standard_Real.cxx index 0179c01fc2..db31cc9667 100644 --- a/src/FoundationClasses/TKernel/Standard/Standard_Real.cxx +++ b/src/FoundationClasses/TKernel/Standard/Standard_Real.cxx @@ -15,7 +15,7 @@ #include #include -//================================================================================================== +//================================================================================================= inline double apx_for_ACosApprox(const double theValue) { @@ -31,7 +31,7 @@ inline double apx_for_ACosApprox(const double theValue) / sqrt(2 * theValue); } -//================================================================================================== +//================================================================================================= double ACosApprox(const double theValue) { diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx b/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx index ef2736bb0a..252a3ccc68 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx @@ -107,14 +107,14 @@ struct FormattedReal } // namespace -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString() noexcept { allocate(0); } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const char* const theString, const bool theIsMultiByte) @@ -144,7 +144,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const char* const theStri } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const char16_t* const theString) { @@ -160,7 +160,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const char16_t* const the memcpy(myString, theString, myLength * sizeof(char16_t)); } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const char16_t* theString, const int theLength) @@ -181,7 +181,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const char16_t* theString } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const wchar_t* theStringUtf) { @@ -193,7 +193,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const wchar_t* theStringU myString = fromWideString(theStringUtf, myLength); } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const char theChar) { @@ -208,7 +208,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const char theChar) } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const char16_t theChar) { @@ -223,7 +223,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const char16_t theChar) } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const int theLength, const char16_t theFiller) @@ -239,7 +239,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const int theLength, } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const int theValue) { @@ -251,7 +251,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const int theValue) } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const double theValue) { @@ -263,7 +263,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const double theValue) } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const TCollection_ExtendedString& theString) { @@ -271,7 +271,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const TCollection_Extende memcpy(myString, theString.myString, myLength * sizeof(char16_t)); } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString( TCollection_ExtendedString&& theOther) noexcept @@ -289,7 +289,7 @@ TCollection_ExtendedString::TCollection_ExtendedString( theOther.myLength = 0; } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::TCollection_ExtendedString(const TCollection_AsciiString& theString, const bool theIsMultiByte) @@ -307,7 +307,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const TCollection_AsciiSt } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::AssignCat(const TCollection_ExtendedString& theOther) { @@ -331,7 +331,7 @@ void TCollection_ExtendedString::AssignCat(const TCollection_ExtendedString& the memcpy(myString + anOldLength, theOther.myString, anOtherLength * sizeof(char16_t)); } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::AssignCat(const char16_t theChar) { @@ -342,7 +342,7 @@ void TCollection_ExtendedString::AssignCat(const char16_t theChar) } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::AssignCat(const char16_t* theString, const int theLength) { @@ -371,7 +371,7 @@ void TCollection_ExtendedString::AssignCat(const char16_t* theString, const int } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString TCollection_ExtendedString::Cat(const char16_t* theOther, const int theLength) const @@ -388,7 +388,7 @@ TCollection_ExtendedString TCollection_ExtendedString::Cat(const char16_t* theOt return aResult; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::ChangeAll(const char16_t theChar, const char16_t theNewChar) { @@ -397,14 +397,14 @@ void TCollection_ExtendedString::ChangeAll(const char16_t theChar, const char16_ myString[i] = theNewChar; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Clear() { deallocate(); } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Copy(const char16_t* theString, const int theLength) { @@ -422,7 +422,7 @@ void TCollection_ExtendedString::Copy(const char16_t* theString, const int theLe memcpy(myString, theString, theLength * sizeof(char16_t)); } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Move(TCollection_ExtendedString&& theOther) { @@ -447,7 +447,7 @@ void TCollection_ExtendedString::Move(TCollection_ExtendedString&& theOther) theOther.myLength = 0; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Swap(TCollection_ExtendedString& theOther) { @@ -459,14 +459,14 @@ void TCollection_ExtendedString::Swap(TCollection_ExtendedString& theOther) std::swap(myLength, theOther.myLength); } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString::~TCollection_ExtendedString() { deallocate(); } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Insert(const int theWhere, const char16_t theWhat) { @@ -485,7 +485,7 @@ void TCollection_ExtendedString::Insert(const int theWhere, const char16_t theWh myString[theWhere - 1] = theWhat; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Insert(const int theWhere, const char16_t* theWhat, @@ -521,7 +521,7 @@ void TCollection_ExtendedString::Insert(const int theWhere, } } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsEqual(const char16_t* const theOther, const int theLength) const { @@ -544,7 +544,7 @@ bool TCollection_ExtendedString::IsEqual(const char16_t* const theOther, const i return memcmp(myString, theOther, theLength * sizeof(char16_t)) == 0; } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsDifferent(const char16_t* const theOther, const int theLength) const @@ -568,7 +568,7 @@ bool TCollection_ExtendedString::IsDifferent(const char16_t* const theOther, return memcmp(myString, theOther, theLength * sizeof(char16_t)) != 0; } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsLess(const char16_t* const theOther, const int theLength) const { @@ -595,7 +595,7 @@ bool TCollection_ExtendedString::IsLess(const char16_t* const theOther, const in return myLength < theLength; } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsGreater(const char16_t* const theOther, const int theLength) const @@ -623,7 +623,7 @@ bool TCollection_ExtendedString::IsGreater(const char16_t* const theOther, return myLength > theLength; } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::StartsWith(const char16_t* const theStartString, const int theLength) const @@ -647,7 +647,7 @@ bool TCollection_ExtendedString::StartsWith(const char16_t* const theStartString return memcmp(myString, theStartString, theLength * sizeof(char16_t)) == 0; } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::EndsWith(const char16_t* const theEndString, const int theLength) const @@ -671,7 +671,7 @@ bool TCollection_ExtendedString::EndsWith(const char16_t* const theEndString, return memcmp(myString + myLength - theLength, theEndString, theLength * sizeof(char16_t)) == 0; } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsAscii() const { @@ -681,14 +681,14 @@ bool TCollection_ExtendedString::IsAscii() const return true; } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::Length() const { return myLength; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Print(Standard_OStream& theStream) const { @@ -699,7 +699,7 @@ void TCollection_ExtendedString::Print(Standard_OStream& theStream) const } } -//================================================================================================== +//================================================================================================= Standard_OStream& operator<<(Standard_OStream& theStream, const TCollection_ExtendedString& theString) @@ -708,7 +708,7 @@ Standard_OStream& operator<<(Standard_OStream& theStream, return theStream; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::RemoveAll(const char16_t theWhat) @@ -723,7 +723,7 @@ void TCollection_ExtendedString::RemoveAll(const char16_t theWhat) myString[myLength] = u'\0'; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Remove(const int theWhere, const int theHowMany) { @@ -746,7 +746,7 @@ void TCollection_ExtendedString::Remove(const int theWhere, const int theHowMany myString[myLength] = u'\0'; } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::Search(const char16_t* const theWhat, const int theLength) const { @@ -781,7 +781,7 @@ int TCollection_ExtendedString::Search(const char16_t* const theWhat, const int return -1; } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::SearchFromEnd(const char16_t* const theWhat, const int theLength) const @@ -817,7 +817,7 @@ int TCollection_ExtendedString::SearchFromEnd(const char16_t* const theWhat, return -1; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::SetValue(const int theWhere, const char16_t theWhat) { @@ -831,7 +831,7 @@ void TCollection_ExtendedString::SetValue(const int theWhere, const char16_t the } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::SetValue(const int theWhere, const char16_t* const theWhat, @@ -857,7 +857,7 @@ void TCollection_ExtendedString::SetValue(const int theWhere, } } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString TCollection_ExtendedString::SubString(const int theFromIndex, const int theToIndex) const @@ -879,7 +879,7 @@ TCollection_ExtendedString TCollection_ExtendedString::SubString(const int theFr return TCollection_ExtendedString(myString + theFromIndex - 1, aSubLen); } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString TCollection_ExtendedString::Split(const int theWhere) { @@ -892,7 +892,7 @@ TCollection_ExtendedString TCollection_ExtendedString::Split(const int theWhere) throw Standard_OutOfRange("TCollection_ExtendedString::Split index"); } -//================================================================================================== +//================================================================================================= TCollection_ExtendedString TCollection_ExtendedString::Token(const char16_t* const theSeparators, const int theWhichOne) const @@ -984,14 +984,14 @@ TCollection_ExtendedString TCollection_ExtendedString::Token(const char16_t* con return res; } -//================================================================================================== +//================================================================================================= const char16_t* TCollection_ExtendedString::ToExtString() const { return myString; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Trunc(const int theHowMany) { @@ -1002,7 +1002,7 @@ void TCollection_ExtendedString::Trunc(const int theHowMany) myString[myLength] = u'\0'; } -//================================================================================================== +//================================================================================================= char16_t TCollection_ExtendedString::Value(const int theWhere) const { @@ -1017,7 +1017,7 @@ char16_t TCollection_ExtendedString::Value(const int theWhere) const "parameter theWhere"); } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::ConvertToUnicode(const char* theString) { @@ -1041,7 +1041,7 @@ bool TCollection_ExtendedString::ConvertToUnicode(const char* theString) return true; } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::LengthOfCString() const { @@ -1053,7 +1053,7 @@ int TCollection_ExtendedString::LengthOfCString() const return aSizeBytes; } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::ToUTF8CString(Standard_PCharacter& theCString) const { @@ -1073,7 +1073,7 @@ int TCollection_ExtendedString::ToUTF8CString(Standard_PCharacter& theCString) c return int(anIterWrite - theCString); } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::allocate(const int theLength) { @@ -1090,7 +1090,7 @@ void TCollection_ExtendedString::allocate(const int theLength) } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::reallocate(const int theLength) { @@ -1119,7 +1119,7 @@ void TCollection_ExtendedString::reallocate(const int theLength) myLength = theLength; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::deallocate() { @@ -1131,7 +1131,7 @@ void TCollection_ExtendedString::deallocate() myString = THE_DEFAULT_EXT_CHAR_STRING; } -//================================================================================================== +//================================================================================================= const TCollection_ExtendedString& TCollection_ExtendedString::EmptyString() noexcept { @@ -1139,7 +1139,7 @@ const TCollection_ExtendedString& TCollection_ExtendedString::EmptyString() noex return THE_EMPTY_STRING; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::LeftAdjust() { @@ -1162,7 +1162,7 @@ void TCollection_ExtendedString::LeftAdjust() } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::RightAdjust() { @@ -1178,7 +1178,7 @@ void TCollection_ExtendedString::RightAdjust() myString[myLength] = u'\0'; } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::LeftJustify(const int theWidth, const char16_t theFiller) { @@ -1198,7 +1198,7 @@ void TCollection_ExtendedString::LeftJustify(const int theWidth, const char16_t } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::RightJustify(const int theWidth, const char16_t theFiller) { @@ -1222,7 +1222,7 @@ void TCollection_ExtendedString::RightJustify(const int theWidth, const char16_t } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Center(const int theWidth, const char16_t theFiller) { @@ -1253,7 +1253,7 @@ void TCollection_ExtendedString::Center(const int theWidth, const char16_t theFi } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Capitalize() { @@ -1278,7 +1278,7 @@ void TCollection_ExtendedString::Capitalize() } } -//================================================================================================== +//================================================================================================= void TCollection_ExtendedString::Prepend(const char16_t* const theOther, const int theLength) { @@ -1312,7 +1312,7 @@ void TCollection_ExtendedString::Prepend(const char16_t* const theOther, const i } } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::FirstLocationInSet(const TCollection_ExtendedString& theSet, const int theFromIndex, @@ -1344,7 +1344,7 @@ int TCollection_ExtendedString::FirstLocationInSet(const TCollection_ExtendedStr return 0; } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::FirstLocationNotInSet(const TCollection_ExtendedString& theSet, const int theFromIndex, @@ -1382,7 +1382,7 @@ int TCollection_ExtendedString::FirstLocationNotInSet(const TCollection_Extended return 0; } -//================================================================================================== +//================================================================================================= int TCollection_ExtendedString::IntegerValue() const { @@ -1395,7 +1395,7 @@ int TCollection_ExtendedString::IntegerValue() const return anAscii.IntegerValue(); } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsIntegerValue() const { @@ -1408,7 +1408,7 @@ bool TCollection_ExtendedString::IsIntegerValue() const return anAscii.IsIntegerValue(); } -//================================================================================================== +//================================================================================================= double TCollection_ExtendedString::RealValue() const { @@ -1421,7 +1421,7 @@ double TCollection_ExtendedString::RealValue() const return anAscii.RealValue(); } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsRealValue(bool theToCheckFull) const { @@ -1434,7 +1434,7 @@ bool TCollection_ExtendedString::IsRealValue(bool theToCheckFull) const return anAscii.IsRealValue(theToCheckFull); } -//================================================================================================== +//================================================================================================= bool TCollection_ExtendedString::IsSameString(const TCollection_ExtendedString& theOther, const bool theIsCaseSensitive) const diff --git a/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_BOP_Test.cxx b/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_BOP_Test.cxx index 737a4b803e..9843d01fdc 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_BOP_Test.cxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_BOP_Test.cxx @@ -13,9 +13,9 @@ #include "BOPTest_Utilities.pxx" -//================================================================================================== +//================================================================================================= // Direct BOP Operations Tests (equivalent to bcut, bfuse, bcommon, btuc commands) -//================================================================================================== +//================================================================================================= class BOPAlgo_DirectOperationsTest : public BOPAlgo_TestBase { @@ -84,9 +84,9 @@ TEST_F(BOPAlgo_DirectOperationsTest, DirectCut_NurbsBoxMinusBox) EXPECT_GT(aSurfaceArea, 0.0) << "NURBS cut result should have positive surface area"; } -//================================================================================================== +//================================================================================================= // Two-step BOP Operations Tests (equivalent to bop + bopXXX commands) -//================================================================================================== +//================================================================================================= class BOPAlgo_TwoStepOperationsTest : public BOPAlgo_TestBase { @@ -139,9 +139,9 @@ TEST_F(BOPAlgo_TwoStepOperationsTest, TwoStepTUC_IdenticalBoxes) ValidateResult(aResult, -1.0, -1.0, true); // Expected empty } -//================================================================================================== +//================================================================================================= // Complex Operations Tests -//================================================================================================== +//================================================================================================= class BOPAlgo_ComplexOperationsTest : public BOPAlgo_TestBase { diff --git a/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_PaveFiller_Test.cxx b/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_PaveFiller_Test.cxx index 6f3436ff66..2f8d1d2928 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_PaveFiller_Test.cxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BOPAlgo_PaveFiller_Test.cxx @@ -44,9 +44,9 @@ #include #include -//================================================================================================== +//================================================================================================= // BOPAlgo_PaveFiller Tests - Regression tests for edge cases in Boolean operations -//================================================================================================== +//================================================================================================= class BOPAlgo_PaveFillerTest : public ::testing::Test { diff --git a/src/ModelingAlgorithms/TKBO/GTests/BOPTest_Utilities.pxx b/src/ModelingAlgorithms/TKBO/GTests/BOPTest_Utilities.pxx index 53bbbcf914..02a88c9e65 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BOPTest_Utilities.pxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BOPTest_Utilities.pxx @@ -69,9 +69,9 @@ #define M_PI 3.14159265358979323846 #endif -//================================================================================================== +//================================================================================================= //! Base utility class for BOP testing with common helper functions -//================================================================================================== +//================================================================================================= class BOPTest_Utilities { public: @@ -791,9 +791,9 @@ public: } }; -//================================================================================================== +//================================================================================================= //! Base test class for BRepAlgoAPI operations -//================================================================================================== +//================================================================================================= class BRepAlgoAPI_TestBase : public ::testing::Test { protected: @@ -854,9 +854,9 @@ protected: double myTolerance; }; -//================================================================================================== +//================================================================================================= //! Base test class for BOPAlgo_BOP operations (direct and two-step) -//================================================================================================== +//================================================================================================= class BOPAlgo_TestBase : public ::testing::Test { protected: diff --git a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_BuilderAlgo_Test.cxx b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_BuilderAlgo_Test.cxx index 0985478c1e..229102ca18 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_BuilderAlgo_Test.cxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_BuilderAlgo_Test.cxx @@ -23,11 +23,11 @@ #include #include -//================================================================================================== +//================================================================================================= // BRepAlgoAPI_BuilderAlgo Non-Copyability Tests // These tests verify that BRepAlgoAPI_BuilderAlgo and its derived classes // are not copyable or movable, preventing double-free issues with raw pointers. -//================================================================================================== +//================================================================================================= // Test that BRepAlgoAPI_BuilderAlgo is not copy constructible TEST(BRepAlgoAPI_BuilderAlgoTest, NotCopyConstructible) diff --git a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Common_Test.cxx b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Common_Test.cxx index d3ed7ea601..72ad4202ff 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Common_Test.cxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Common_Test.cxx @@ -13,9 +13,9 @@ #include "BOPTest_Utilities.pxx" -//================================================================================================== +//================================================================================================= // BOPCommon Simple Tests - migrating from /tests/boolean/bopcommon_simple/ -//================================================================================================== +//================================================================================================= class BOPCommonSimpleTest : public BRepAlgoAPI_TestBase { diff --git a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test.cxx b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test.cxx index aaac147f29..a9fe30263b 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test.cxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test.cxx @@ -17,9 +17,9 @@ #define M_SQRT2 1.41421356237309504880168872420969808 #endif -//================================================================================================== +//================================================================================================= // BCut Simple Tests - migrating from /tests/boolean/bcut_simple/ -//================================================================================================== +//================================================================================================= class BCutSimpleTest : public BRepAlgoAPI_TestBase { diff --git a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test_1.cxx b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test_1.cxx index d511d7b8e4..36e48c6549 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test_1.cxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Cut_Test_1.cxx @@ -13,10 +13,10 @@ #include "BOPTest_Utilities.pxx" -//================================================================================================== +//================================================================================================= // BCut Simple Tests - migrating from /tests/boolean/bcut_simple/ (continued) // File 1 of BRepAlgoAPI_Cut_Test series - contains remaining tests J1-Z9 -//================================================================================================== +//================================================================================================= class BCutSimpleTest1 : public BRepAlgoAPI_TestBase { diff --git a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Fuse_Test.cxx b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Fuse_Test.cxx index eb0a080ac7..a337d49c56 100644 --- a/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Fuse_Test.cxx +++ b/src/ModelingAlgorithms/TKBO/GTests/BRepAlgoAPI_Fuse_Test.cxx @@ -17,9 +17,9 @@ #define M_SQRT2 1.41421356237309504880168872420969808 #endif -//================================================================================================== +//================================================================================================= // BFuse Simple Tests - migrating from /tests/boolean/bfuse_simple/ -//================================================================================================== +//================================================================================================= class BFuseSimpleTest : public BRepAlgoAPI_TestBase { @@ -2029,9 +2029,9 @@ TEST_F(BFuseSimpleTest, BlendBoxWithCylinderBottomNegY_K9) ValidateResult(aResult, 322832); } -//================================================================================================== +//================================================================================================= // Additional Tests -//================================================================================================== +//================================================================================================= TEST_F(BFuseSimpleTest, OCC277_FuseAndCommonOfOverlappingBoxes) { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx index 98249a1e54..bac1c63f6f 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx @@ -2166,10 +2166,10 @@ int TopOpeBRepBuild_Builder::KPreturn(const int b) } // modified by NIZHNY-MKK Tue May 23 09:48:47 2000.BEGIN -//====================================================================================================== +//===================================================================================================== // static function : LocalKPisdisjanalyse // purpose: -//====================================================================================================== +//===================================================================================================== static void LocalKPisdisjanalyse(const TopAbs_State Stsol1, const TopAbs_State Stsol2, const TopOpeBRepBuild_KPart_Operation& theOperation, @@ -2267,10 +2267,10 @@ static void LocalKPisdisjanalyse(const TopAbs_State Stsol1, } // end switch } -//====================================================================================================== +//===================================================================================================== // static function : BuildNewSolid // purpose: Build new solid based on sol1 and sol2 according to the states -//====================================================================================================== +//===================================================================================================== static TopoDS_Solid BuildNewSolid(const TopoDS_Solid& sol1, const TopoDS_Solid& sol2, const TopAbs_State stsol1, @@ -2409,11 +2409,11 @@ static TopoDS_Solid BuildNewSolid(const TopoDS_Solid& sol1, return newsol; } -//====================================================================================================== +//===================================================================================================== // static function : disjPerformFuse // purpose: is needed in case of KPart==2 // attention: theMapOfResult is cleared before computations -//====================================================================================================== +//===================================================================================================== static bool disjPerformFuse( const NCollection_IndexedMap& theMapOfSolid1, const NCollection_IndexedMap& theMapOfSolid2, @@ -2520,11 +2520,11 @@ static bool disjPerformFuse( return true; } -//====================================================================================================== +//===================================================================================================== // static function : disjPerformCommon // purpose: is needed in case of KPart==2 // attention: theMapOfResult is cleared before computations -//====================================================================================================== +//===================================================================================================== static bool disjPerformCommon( const NCollection_IndexedMap& theMapOfSolid1, const NCollection_IndexedMap& theMapOfSolid2, @@ -2610,11 +2610,11 @@ static bool disjPerformCommon( return true; } -//====================================================================================================== +//===================================================================================================== // static function : disjPerformCut // purpose: is needed in case of KPart==2 // attention: theMapOfResult is cleared before computations -//====================================================================================================== +//===================================================================================================== static bool disjPerformCut( const NCollection_IndexedMap& theMapOfSolid1, const NCollection_IndexedMap& theMapOfSolid2, diff --git a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_AppFuncRoot.cxx b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_AppFuncRoot.cxx index 9d6ea7bba8..5e1673a133 100644 --- a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_AppFuncRoot.cxx +++ b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_AppFuncRoot.cxx @@ -79,7 +79,7 @@ BRepBlend_AppFuncRoot::BRepBlend_AppFuncRoot(occ::handle& Line, mySolver = std::make_unique(Func, myTolerance, 30); } -//================================================================================================== +//================================================================================================= BRepBlend_AppFuncRoot::~BRepBlend_AppFuncRoot() = default; diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GTests/GeomFill_CorrectedFrenet_Test.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GTests/GeomFill_CorrectedFrenet_Test.cxx index 05613b27c4..27bbddd8a3 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GTests/GeomFill_CorrectedFrenet_Test.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GTests/GeomFill_CorrectedFrenet_Test.cxx @@ -28,7 +28,7 @@ #include -//================================================================================================== +//================================================================================================= TEST(GeomFill_CorrectedFrenet, EndlessLoopPrevention) { @@ -72,7 +72,7 @@ TEST(GeomFill_CorrectedFrenet, EndlessLoopPrevention) EXPECT_GT(aBinormal2.Magnitude(), 1e-10); } -//================================================================================================== +//================================================================================================= TEST(GeomFill_CorrectedFrenet, SmallStepHandling) { @@ -99,7 +99,7 @@ TEST(GeomFill_CorrectedFrenet, SmallStepHandling) EXPECT_NO_THROW({ aCorrectedFrenet.D0(0.5, aTangent, aNormal, aBinormal); }); } -//================================================================================================== +//================================================================================================= TEST(GeomFill_CorrectedFrenet, ParameterProgressionGuarantee) { @@ -134,7 +134,7 @@ TEST(GeomFill_CorrectedFrenet, ParameterProgressionGuarantee) } } -//================================================================================================== +//================================================================================================= TEST(GeomFill_CorrectedFrenet, ActualReproducerCase) { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_HInter.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_HInter.cxx index 04e04f0e25..1ef15c81b7 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_HInter.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_HInter.cxx @@ -51,11 +51,11 @@ using TheCSFunction = IntCurveSurface_TheCSFunctionOfHInter; using TheExactInter = IntCurveSurface_TheExactHInter; using TheQuadCurvExactInter = IntCurveSurface_TheQuadCurvExactHInter; -//================================================================================================== +//================================================================================================= IntCurveSurface_HInter::IntCurveSurface_HInter() = default; -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::DoSurface(const TheSurface& surface, const double u0, @@ -76,7 +76,7 @@ void IntCurveSurface_HInter::DoSurface(const TheSurface& surface, gap); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::DoNewBounds(const TheSurface& surface, const double u0, @@ -101,7 +101,7 @@ void IntCurveSurface_HInter::DoNewBounds(const TheSurface& surfa Bounds); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::Perform(const TheCurve& curve, const TheSurface& surface) { @@ -115,7 +115,7 @@ void IntCurveSurface_HInter::Perform(const TheCurve& curve, const TheSurface& su }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::Perform(const TheCurve& curve, const TheSurface& surface, @@ -149,7 +149,7 @@ void IntCurveSurface_HInter::Perform(const TheCurve& curve, [this](const TheCurve& c, const TheSurface& s) { this->InternalPerformCurveQuadric(c, s); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::Perform(const TheCurve& curve, const ThePolygon& polygon, @@ -167,7 +167,7 @@ void IntCurveSurface_HInter::Perform(const TheCurve& curve, }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::Perform(const TheCurve& curve, const TheSurface& surface, @@ -189,7 +189,7 @@ void IntCurveSurface_HInter::Perform(const TheCurve& curve, }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::Perform(const TheCurve& curve, const ThePolygon& polygon, @@ -218,7 +218,7 @@ void IntCurveSurface_HInter::Perform(const TheCurve& curve, double v2) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::Perform(const TheCurve& curve, const ThePolygon& polygon, @@ -250,7 +250,7 @@ void IntCurveSurface_HInter::Perform(const TheCurve& curve, Bnd_BoundSortBox& bsb) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2, bsb); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::InternalPerform(const TheCurve& curve, const ThePolygon& polygon, @@ -283,7 +283,7 @@ void IntCurveSurface_HInter::InternalPerform(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::InternalPerform(const TheCurve& curve, const ThePolygon& polygon, @@ -314,7 +314,7 @@ void IntCurveSurface_HInter::InternalPerform(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::InternalPerformCurveQuadric(const TheCurve& curve, const TheSurface& surface) @@ -329,7 +329,7 @@ void IntCurveSurface_HInter::InternalPerformCurveQuadric(const TheCurve& curve [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::InternalPerform(const TheCurve& curve, const ThePolygon& polygon, @@ -364,7 +364,7 @@ void IntCurveSurface_HInter::InternalPerform(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::PerformConicSurf(const gp_Lin& Line, const TheCurve& curve, @@ -401,7 +401,7 @@ void IntCurveSurface_HInter::PerformConicSurf(const gp_Lin& Line, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::PerformConicSurf(const gp_Circ& Circle, const TheCurve& curve, @@ -432,7 +432,7 @@ void IntCurveSurface_HInter::PerformConicSurf(const gp_Circ& Circle, double v2) { this->InternalPerform(c, p, s, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::PerformConicSurf(const gp_Elips& Ellipse, const TheCurve& curve, @@ -463,7 +463,7 @@ void IntCurveSurface_HInter::PerformConicSurf(const gp_Elips& Ellipse, double v2) { this->InternalPerform(c, p, s, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::PerformConicSurf(const gp_Parab& Parab, const TheCurve& curve, @@ -499,7 +499,7 @@ void IntCurveSurface_HInter::PerformConicSurf(const gp_Parab& Parab, double v2) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::PerformConicSurf(const gp_Hypr& Hypr, const TheCurve& curve, @@ -535,7 +535,7 @@ void IntCurveSurface_HInter::PerformConicSurf(const gp_Hypr& Hypr, double v2) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::AppendIntAna(const TheCurve& curve, const TheSurface& surface, @@ -549,7 +549,7 @@ void IntCurveSurface_HInter::AppendIntAna(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::AppendPoint(const TheCurve& curve, const double lw, @@ -570,7 +570,7 @@ void IntCurveSurface_HInter::AppendPoint(const TheCurve& curve, } } -//================================================================================================== +//================================================================================================= void IntCurveSurface_HInter::AppendSegment(const TheCurve&, const double, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolygonOfHInter.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolygonOfHInter.cxx index e38d4b9a3f..07d8197c7e 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolygonOfHInter.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolygonOfHInter.cxx @@ -23,7 +23,7 @@ #include #include -//================================================================================================== +//================================================================================================= IntCurveSurface_ThePolygonOfHInter::IntCurveSurface_ThePolygonOfHInter( const occ::handle& Curve, @@ -37,7 +37,7 @@ IntCurveSurface_ThePolygonOfHInter::IntCurveSurface_ThePolygonOfHInter( Init(Curve); } -//================================================================================================== +//================================================================================================= IntCurveSurface_ThePolygonOfHInter::IntCurveSurface_ThePolygonOfHInter( const occ::handle& Curve, @@ -53,7 +53,7 @@ IntCurveSurface_ThePolygonOfHInter::IntCurveSurface_ThePolygonOfHInter( Init(Curve); } -//================================================================================================== +//================================================================================================= IntCurveSurface_ThePolygonOfHInter::IntCurveSurface_ThePolygonOfHInter( const occ::handle& Curve, @@ -67,7 +67,7 @@ IntCurveSurface_ThePolygonOfHInter::IntCurveSurface_ThePolygonOfHInter( Init(Curve, Upars); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolygonOfHInter::Init(const occ::handle& Curve) { @@ -82,7 +82,7 @@ void IntCurveSurface_ThePolygonOfHInter::Init(const occ::handle ClosedPolygon = false; } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolygonOfHInter::Init(const occ::handle& Curve, const NCollection_Array1& Upars) @@ -98,7 +98,7 @@ void IntCurveSurface_ThePolygonOfHInter::Init(const occ::handle ClosedPolygon = false; } -//================================================================================================== +//================================================================================================= double IntCurveSurface_ThePolygonOfHInter::ApproxParamOnCurve(const int Index, const double ParamOnLine) const @@ -111,6 +111,6 @@ double IntCurveSurface_ThePolygonOfHInter::ApproxParamOnCurve(const int Index myParams); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolygonOfHInter::Dump() const {} diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.cxx index aeab0af78b..f6e1fe9fda 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_ThePolyhedronOfHInter.cxx @@ -31,7 +31,7 @@ // Namespace alias for brevity namespace PolyUtils = IntCurveSurface_PolyhedronUtils; -//================================================================================================== +//================================================================================================= IntCurveSurface_ThePolyhedronOfHInter::IntCurveSurface_ThePolyhedronOfHInter( const occ::handle& Surface, @@ -53,7 +53,7 @@ IntCurveSurface_ThePolyhedronOfHInter::IntCurveSurface_ThePolyhedronOfHInter( Init(Surface, u1, v1, u2, v2); } -//================================================================================================== +//================================================================================================= IntCurveSurface_ThePolyhedronOfHInter::IntCurveSurface_ThePolyhedronOfHInter( const occ::handle& Surface, @@ -71,14 +71,14 @@ IntCurveSurface_ThePolyhedronOfHInter::IntCurveSurface_ThePolyhedronOfHInter( Init(Surface, Upars, Vpars); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::Destroy() { PolyUtils::Destroy(C_MyPnts, C_MyU, C_MyV, C_MyIsOnBounds); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::Init(const occ::handle& Surface, const double U0, @@ -110,7 +110,7 @@ void IntCurveSurface_ThePolyhedronOfHInter::Init(const occ::handle& Surface, const NCollection_Array1& Upars, @@ -143,35 +143,35 @@ void IntCurveSurface_ThePolyhedronOfHInter::Init(const occ::handle>& IntCurveSurface_ThePolyhedronOfHInter:: ComponentsBounding() const @@ -191,21 +191,21 @@ const occ::handle>& IntCurveSurface_ThePolyhedronOf return TheComponentsBnd; } -//================================================================================================== +//================================================================================================= int IntCurveSurface_ThePolyhedronOfHInter::NbTriangles() const { return PolyUtils::NbTriangles(nbdeltaU, nbdeltaV); } -//================================================================================================== +//================================================================================================= int IntCurveSurface_ThePolyhedronOfHInter::NbPoints() const { return PolyUtils::NbPoints(nbdeltaU, nbdeltaV); } -//================================================================================================== +//================================================================================================= int IntCurveSurface_ThePolyhedronOfHInter::TriConnex(const int Triang, const int Pivot, @@ -216,7 +216,7 @@ int IntCurveSurface_ThePolyhedronOfHInter::TriConnex(const int Triang, return PolyUtils::TriConnex(Triang, Pivot, Pedge, TriCon, OtherP, nbdeltaU, nbdeltaV); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::PlaneEquation(const int Triang, gp_XYZ& NormalVector, @@ -227,7 +227,7 @@ void IntCurveSurface_ThePolyhedronOfHInter::PlaneEquation(const int Triang, PolyUtils::PlaneEquation(Point(i1), Point(i2), Point(i3), NormalVector, PolarDistance); } -//================================================================================================== +//================================================================================================= bool IntCurveSurface_ThePolyhedronOfHInter::Contain(const int Triang, const gp_Pnt& ThePnt) const { @@ -236,11 +236,11 @@ bool IntCurveSurface_ThePolyhedronOfHInter::Contain(const int Triang, const gp_P return PolyUtils::Contain(Point(i1), Point(i2), Point(i3), ThePnt); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::Dump() const {} -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::Size(int& nbdu, int& nbdv) const { @@ -248,7 +248,7 @@ void IntCurveSurface_ThePolyhedronOfHInter::Size(int& nbdu, int& nbdv) const nbdv = nbdeltaV; } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::Triangle(const int Index, int& P1, @@ -258,7 +258,7 @@ void IntCurveSurface_ThePolyhedronOfHInter::Triangle(const int Index, PolyUtils::Triangle(Index, P1, P2, P3, nbdeltaV); } -//================================================================================================== +//================================================================================================= const gp_Pnt& IntCurveSurface_ThePolyhedronOfHInter::Point(const int Index, double& U, @@ -267,14 +267,14 @@ const gp_Pnt& IntCurveSurface_ThePolyhedronOfHInter::Point(const int Index, return PolyUtils::Point(Index, C_MyPnts, C_MyU, C_MyV, U, V); } -//================================================================================================== +//================================================================================================= const gp_Pnt& IntCurveSurface_ThePolyhedronOfHInter::Point(const int Index) const { return PolyUtils::Point(Index, C_MyPnts); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::Point(const gp_Pnt&, const int, @@ -284,14 +284,14 @@ void IntCurveSurface_ThePolyhedronOfHInter::Point(const gp_Pnt&, { } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::Point(const int Index, gp_Pnt& P) const { PolyUtils::Point(Index, C_MyPnts, P); } -//================================================================================================== +//================================================================================================= bool IntCurveSurface_ThePolyhedronOfHInter::IsOnBound(const int Index1, const int Index2) const { @@ -302,56 +302,56 @@ bool IntCurveSurface_ThePolyhedronOfHInter::IsOnBound(const int Index1, const in nbdeltaV); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::UMinSingularity(const bool Sing) { UMinSingular = Sing; } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::UMaxSingularity(const bool Sing) { UMaxSingular = Sing; } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::VMinSingularity(const bool Sing) { VMinSingular = Sing; } -//================================================================================================== +//================================================================================================= void IntCurveSurface_ThePolyhedronOfHInter::VMaxSingularity(const bool Sing) { VMaxSingular = Sing; } -//================================================================================================== +//================================================================================================= bool IntCurveSurface_ThePolyhedronOfHInter::HasUMinSingularity() const { return UMinSingular; } -//================================================================================================== +//================================================================================================= bool IntCurveSurface_ThePolyhedronOfHInter::HasUMaxSingularity() const { return UMaxSingular; } -//================================================================================================== +//================================================================================================= bool IntCurveSurface_ThePolyhedronOfHInter::HasVMinSingularity() const { return VMinSingular; } -//================================================================================================== +//================================================================================================= bool IntCurveSurface_ThePolyhedronOfHInter::HasVMaxSingularity() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_TheQuadCurvExactHInter.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_TheQuadCurvExactHInter.cxx index a652225c45..d7b7b0c86e 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_TheQuadCurvExactHInter.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_TheQuadCurvExactHInter.cxx @@ -24,7 +24,7 @@ #include "IntCurveSurface_QuadricCurveExactInterUtils.pxx" -//================================================================================================== +//================================================================================================= IntCurveSurface_TheQuadCurvExactHInter::IntCurveSurface_TheQuadCurvExactHInter( const occ::handle& S, @@ -40,35 +40,35 @@ IntCurveSurface_TheQuadCurvExactHInter::IntCurveSurface_TheQuadCurvExactHInter( IntCurveSurface_TheQuadCurvFuncOfTheQuadCurvExactHInter>(S, C, pnts, intv, nbpnts, nbintv); } -//================================================================================================== +//================================================================================================= bool IntCurveSurface_TheQuadCurvExactHInter::IsDone() const { return (nbpnts != -1); } -//================================================================================================== +//================================================================================================= int IntCurveSurface_TheQuadCurvExactHInter::NbRoots() const { return nbpnts; } -//================================================================================================== +//================================================================================================= int IntCurveSurface_TheQuadCurvExactHInter::NbIntervals() const { return nbintv; } -//================================================================================================== +//================================================================================================= double IntCurveSurface_TheQuadCurvExactHInter::Root(const int Index) const { return pnts(Index); } -//================================================================================================== +//================================================================================================= void IntCurveSurface_TheQuadCurvExactHInter::Intervals(const int Index, double& a, double& b) const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_InterCSurf.cxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_InterCSurf.cxx index 47ed597a12..325d5a327a 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_InterCSurf.cxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_InterCSurf.cxx @@ -52,11 +52,11 @@ using TheCSFunction = HLRBRep_TheCSFunctionOfInterCSurf; using TheExactInter = HLRBRep_TheExactInterCSurf; using TheQuadCurvExactInter = HLRBRep_TheQuadCurvExactInterCSurf; -//================================================================================================== +//================================================================================================= HLRBRep_InterCSurf::HLRBRep_InterCSurf() = default; -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::DoSurface(TheSurface surface, const double u0, @@ -77,7 +77,7 @@ void HLRBRep_InterCSurf::DoSurface(TheSurface surface, gap); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::DoNewBounds(TheSurface surface, const double u0, @@ -102,7 +102,7 @@ void HLRBRep_InterCSurf::DoNewBounds(TheSurface surface, Bounds); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::Perform(const TheCurve& curve, TheSurface surface) { @@ -116,7 +116,7 @@ void HLRBRep_InterCSurf::Perform(const TheCurve& curve, TheSurface surface) }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::Perform(const TheCurve& curve, TheSurface surface, @@ -150,7 +150,7 @@ void HLRBRep_InterCSurf::Perform(const TheCurve& curve, [this](const TheCurve& c, TheSurface s) { this->InternalPerformCurveQuadric(c, s); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::Perform(const TheCurve& curve, const ThePolygon& polygon, @@ -168,7 +168,7 @@ void HLRBRep_InterCSurf::Perform(const TheCurve& curve, }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::Perform(const TheCurve& curve, TheSurface surface, @@ -190,7 +190,7 @@ void HLRBRep_InterCSurf::Perform(const TheCurve& curve, }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::Perform(const TheCurve& curve, const ThePolygon& polygon, @@ -219,7 +219,7 @@ void HLRBRep_InterCSurf::Perform(const TheCurve& curve, double v2) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::Perform(const TheCurve& curve, const ThePolygon& polygon, @@ -251,7 +251,7 @@ void HLRBRep_InterCSurf::Perform(const TheCurve& curve, Bnd_BoundSortBox& bsb) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2, bsb); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::InternalPerform(const TheCurve& curve, const ThePolygon& polygon, @@ -284,7 +284,7 @@ void HLRBRep_InterCSurf::InternalPerform(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::InternalPerform(const TheCurve& curve, const ThePolygon& polygon, @@ -315,7 +315,7 @@ void HLRBRep_InterCSurf::InternalPerform(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::InternalPerformCurveQuadric(const TheCurve& curve, TheSurface surface) { @@ -329,7 +329,7 @@ void HLRBRep_InterCSurf::InternalPerformCurveQuadric(const TheCurve& curve, TheS [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::InternalPerform(const TheCurve& curve, const ThePolygon& polygon, @@ -364,7 +364,7 @@ void HLRBRep_InterCSurf::InternalPerform(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::PerformConicSurf(const gp_Lin& Line, const TheCurve& curve, @@ -401,7 +401,7 @@ void HLRBRep_InterCSurf::PerformConicSurf(const gp_Lin& Line, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::PerformConicSurf(const gp_Circ& Circle, const TheCurve& curve, @@ -432,7 +432,7 @@ void HLRBRep_InterCSurf::PerformConicSurf(const gp_Circ& Circle, double v2) { this->InternalPerform(c, p, s, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::PerformConicSurf(const gp_Elips& Ellipse, const TheCurve& curve, @@ -463,7 +463,7 @@ void HLRBRep_InterCSurf::PerformConicSurf(const gp_Elips& Ellipse, double v2) { this->InternalPerform(c, p, s, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::PerformConicSurf(const gp_Parab& Parab, const TheCurve& curve, @@ -499,7 +499,7 @@ void HLRBRep_InterCSurf::PerformConicSurf(const gp_Parab& Parab, double v2) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::PerformConicSurf(const gp_Hypr& Hypr, const TheCurve& curve, @@ -535,7 +535,7 @@ void HLRBRep_InterCSurf::PerformConicSurf(const gp_Hypr& Hypr, double v2) { this->InternalPerform(c, p, s, ph, u1, v1, u2, v2); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::AppendIntAna(const TheCurve& curve, TheSurface surface, @@ -549,7 +549,7 @@ void HLRBRep_InterCSurf::AppendIntAna(const TheCurve& curve, [this](const IntCurveSurface_IntersectionPoint& pt) { this->Append(pt); }); } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::AppendPoint(const TheCurve& curve, const double lw, @@ -570,7 +570,7 @@ void HLRBRep_InterCSurf::AppendPoint(const TheCurve& curve, } } -//================================================================================================== +//================================================================================================= void HLRBRep_InterCSurf::AppendSegment(const TheCurve&, const double, const double, TheSurface) { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolygonOfInterCSurf.cxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolygonOfInterCSurf.cxx index d3fde430ef..22cc15507f 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolygonOfInterCSurf.cxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolygonOfInterCSurf.cxx @@ -23,7 +23,7 @@ #include "../../TKGeomAlgo/IntCurveSurface/IntCurveSurface_PolygonUtils.pxx" #include -//================================================================================================== +//================================================================================================= HLRBRep_ThePolygonOfInterCSurf::HLRBRep_ThePolygonOfInterCSurf(const gp_Lin& Curve, const int NbPnt) : ThePnts(1, (NbPnt < 5) ? 5 : NbPnt), @@ -35,7 +35,7 @@ HLRBRep_ThePolygonOfInterCSurf::HLRBRep_ThePolygonOfInterCSurf(const gp_Lin& Cur Init(Curve); } -//================================================================================================== +//================================================================================================= HLRBRep_ThePolygonOfInterCSurf::HLRBRep_ThePolygonOfInterCSurf(const gp_Lin& Curve, const double U1, @@ -50,7 +50,7 @@ HLRBRep_ThePolygonOfInterCSurf::HLRBRep_ThePolygonOfInterCSurf(const gp_Lin& Cur Init(Curve); } -//================================================================================================== +//================================================================================================= HLRBRep_ThePolygonOfInterCSurf::HLRBRep_ThePolygonOfInterCSurf( const gp_Lin& Curve, @@ -64,7 +64,7 @@ HLRBRep_ThePolygonOfInterCSurf::HLRBRep_ThePolygonOfInterCSurf( Init(Curve, Upars); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolygonOfInterCSurf::Init(const gp_Lin& Curve) { @@ -78,7 +78,7 @@ void HLRBRep_ThePolygonOfInterCSurf::Init(const gp_Lin& Curve) ClosedPolygon = false; } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolygonOfInterCSurf::Init(const gp_Lin& Curve, const NCollection_Array1& Upars) @@ -93,7 +93,7 @@ void HLRBRep_ThePolygonOfInterCSurf::Init(const gp_Lin& Curv ClosedPolygon = false; } -//================================================================================================== +//================================================================================================= double HLRBRep_ThePolygonOfInterCSurf::ApproxParamOnCurve(const int Index, const double ParamOnLine) const @@ -106,6 +106,6 @@ double HLRBRep_ThePolygonOfInterCSurf::ApproxParamOnCurve(const int Index, myParams); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolygonOfInterCSurf::Dump() const {} diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.cxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.cxx index 2d2a325b41..1f317162ef 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.cxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_ThePolyhedronOfInterCSurf.cxx @@ -31,7 +31,7 @@ // Namespace alias for brevity namespace PolyUtils = IntCurveSurface_PolyhedronUtils; -//================================================================================================== +//================================================================================================= HLRBRep_ThePolyhedronOfInterCSurf::HLRBRep_ThePolyhedronOfInterCSurf(HLRBRep_Surface* Surface, const int nbdU, @@ -52,7 +52,7 @@ HLRBRep_ThePolyhedronOfInterCSurf::HLRBRep_ThePolyhedronOfInterCSurf(HLRBRep_Sur Init(Surface, u1, v1, u2, v2); } -//================================================================================================== +//================================================================================================= HLRBRep_ThePolyhedronOfInterCSurf::HLRBRep_ThePolyhedronOfInterCSurf( HLRBRep_Surface* Surface, @@ -70,14 +70,14 @@ HLRBRep_ThePolyhedronOfInterCSurf::HLRBRep_ThePolyhedronOfInterCSurf( Init(Surface, Upars, Vpars); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Destroy() { PolyUtils::Destroy(C_MyPnts, C_MyU, C_MyV, C_MyIsOnBounds); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Init(HLRBRep_Surface* Surface, const double U0, @@ -109,7 +109,7 @@ void HLRBRep_ThePolyhedronOfInterCSurf::Init(HLRBRep_Surface* Surface, PolyUtils::ComputeMaxBorderDeflection(anEval, U0, V0, U1, V1, nbdeltaU, nbdeltaV); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Init(HLRBRep_Surface* Surface, const NCollection_Array1& Upars, @@ -142,35 +142,35 @@ void HLRBRep_ThePolyhedronOfInterCSurf::Init(HLRBRep_Surface* S nbdeltaV); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Parameters(const int Index, double& U, double& V) const { PolyUtils::Parameters(Index, C_MyU, C_MyV, U, V); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::DeflectionOverEstimation(const double flec) { PolyUtils::SetDeflectionOverEstimation(flec, TheDeflection, TheBnd); } -//================================================================================================== +//================================================================================================= double HLRBRep_ThePolyhedronOfInterCSurf::DeflectionOverEstimation() const { return TheDeflection; } -//================================================================================================== +//================================================================================================= const Bnd_Box& HLRBRep_ThePolyhedronOfInterCSurf::Bounding() const { return TheBnd; } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::FillBounding() { @@ -182,7 +182,7 @@ void HLRBRep_ThePolyhedronOfInterCSurf::FillBounding() TheComponentsBnd); } -//================================================================================================== +//================================================================================================= const occ::handle>& HLRBRep_ThePolyhedronOfInterCSurf:: ComponentsBounding() const @@ -190,21 +190,21 @@ const occ::handle>& HLRBRep_ThePolyhedronOfInterCSu return TheComponentsBnd; } -//================================================================================================== +//================================================================================================= int HLRBRep_ThePolyhedronOfInterCSurf::NbTriangles() const { return PolyUtils::NbTriangles(nbdeltaU, nbdeltaV); } -//================================================================================================== +//================================================================================================= int HLRBRep_ThePolyhedronOfInterCSurf::NbPoints() const { return PolyUtils::NbPoints(nbdeltaU, nbdeltaV); } -//================================================================================================== +//================================================================================================= int HLRBRep_ThePolyhedronOfInterCSurf::TriConnex(const int Triang, const int Pivot, @@ -215,7 +215,7 @@ int HLRBRep_ThePolyhedronOfInterCSurf::TriConnex(const int Triang, return PolyUtils::TriConnex(Triang, Pivot, Pedge, TriCon, OtherP, nbdeltaU, nbdeltaV); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::PlaneEquation(const int Triang, gp_XYZ& NormalVector, @@ -226,7 +226,7 @@ void HLRBRep_ThePolyhedronOfInterCSurf::PlaneEquation(const int Triang, PolyUtils::PlaneEquation(Point(i1), Point(i2), Point(i3), NormalVector, PolarDistance); } -//================================================================================================== +//================================================================================================= bool HLRBRep_ThePolyhedronOfInterCSurf::Contain(const int Triang, const gp_Pnt& ThePnt) const { @@ -235,11 +235,11 @@ bool HLRBRep_ThePolyhedronOfInterCSurf::Contain(const int Triang, const gp_Pnt& return PolyUtils::Contain(Point(i1), Point(i2), Point(i3), ThePnt); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Dump() const {} -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Size(int& nbdu, int& nbdv) const { @@ -247,28 +247,28 @@ void HLRBRep_ThePolyhedronOfInterCSurf::Size(int& nbdu, int& nbdv) const nbdv = nbdeltaV; } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Triangle(const int Index, int& P1, int& P2, int& P3) const { PolyUtils::Triangle(Index, P1, P2, P3, nbdeltaV); } -//================================================================================================== +//================================================================================================= const gp_Pnt& HLRBRep_ThePolyhedronOfInterCSurf::Point(const int Index, double& U, double& V) const { return PolyUtils::Point(Index, C_MyPnts, C_MyU, C_MyV, U, V); } -//================================================================================================== +//================================================================================================= const gp_Pnt& HLRBRep_ThePolyhedronOfInterCSurf::Point(const int Index) const { return PolyUtils::Point(Index, C_MyPnts); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Point(const gp_Pnt&, const int, @@ -278,14 +278,14 @@ void HLRBRep_ThePolyhedronOfInterCSurf::Point(const gp_Pnt&, { } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::Point(const int Index, gp_Pnt& P) const { PolyUtils::Point(Index, C_MyPnts, P); } -//================================================================================================== +//================================================================================================= bool HLRBRep_ThePolyhedronOfInterCSurf::IsOnBound(const int Index1, const int Index2) const { @@ -296,56 +296,56 @@ bool HLRBRep_ThePolyhedronOfInterCSurf::IsOnBound(const int Index1, const int In nbdeltaV); } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::UMinSingularity(const bool Sing) { UMinSingular = Sing; } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::UMaxSingularity(const bool Sing) { UMaxSingular = Sing; } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::VMinSingularity(const bool Sing) { VMinSingular = Sing; } -//================================================================================================== +//================================================================================================= void HLRBRep_ThePolyhedronOfInterCSurf::VMaxSingularity(const bool Sing) { VMaxSingular = Sing; } -//================================================================================================== +//================================================================================================= bool HLRBRep_ThePolyhedronOfInterCSurf::HasUMinSingularity() const { return UMinSingular; } -//================================================================================================== +//================================================================================================= bool HLRBRep_ThePolyhedronOfInterCSurf::HasUMaxSingularity() const { return UMaxSingular; } -//================================================================================================== +//================================================================================================= bool HLRBRep_ThePolyhedronOfInterCSurf::HasVMinSingularity() const { return VMinSingular; } -//================================================================================================== +//================================================================================================= bool HLRBRep_ThePolyhedronOfInterCSurf::HasVMaxSingularity() const { diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_TheQuadCurvExactInterCSurf.cxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_TheQuadCurvExactInterCSurf.cxx index 408e5dd99d..5b6d58fe42 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_TheQuadCurvExactInterCSurf.cxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_TheQuadCurvExactInterCSurf.cxx @@ -24,7 +24,7 @@ #include "../../TKGeomAlgo/IntCurveSurface/IntCurveSurface_QuadricCurveExactInterUtils.pxx" -//================================================================================================== +//================================================================================================= HLRBRep_TheQuadCurvExactInterCSurf::HLRBRep_TheQuadCurvExactInterCSurf(HLRBRep_Surface* S, const gp_Lin& C) @@ -39,35 +39,35 @@ HLRBRep_TheQuadCurvExactInterCSurf::HLRBRep_TheQuadCurvExactInterCSurf(HLRBRep_S HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf>(S, C, pnts, intv, nbpnts, nbintv); } -//================================================================================================== +//================================================================================================= bool HLRBRep_TheQuadCurvExactInterCSurf::IsDone() const { return (nbpnts != -1); } -//================================================================================================== +//================================================================================================= int HLRBRep_TheQuadCurvExactInterCSurf::NbRoots() const { return nbpnts; } -//================================================================================================== +//================================================================================================= int HLRBRep_TheQuadCurvExactInterCSurf::NbIntervals() const { return nbintv; } -//================================================================================================== +//================================================================================================= double HLRBRep_TheQuadCurvExactInterCSurf::Root(const int Index) const { return pnts(Index); } -//================================================================================================== +//================================================================================================= void HLRBRep_TheQuadCurvExactInterCSurf::Intervals(const int Index, double& a, double& b) const { diff --git a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretAlgoFactory.cxx b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretAlgoFactory.cxx index 3c00371272..0467924971 100644 --- a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretAlgoFactory.cxx +++ b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretAlgoFactory.cxx @@ -26,7 +26,7 @@ static NCollection_List>& getFactories( } } // namespace -//================================================================================================== +//================================================================================================= const NCollection_List>& BRepMesh_DiscretAlgoFactory:: Factories() @@ -34,7 +34,7 @@ const NCollection_List>& BRepMesh_Discr return getFactories(); } -//================================================================================================== +//================================================================================================= void BRepMesh_DiscretAlgoFactory::RegisterFactory( const occ::handle& theFactory, @@ -61,7 +61,7 @@ void BRepMesh_DiscretAlgoFactory::RegisterFactory( aFactories.Append(theFactory); } -//================================================================================================== +//================================================================================================= void BRepMesh_DiscretAlgoFactory::UnregisterFactory(const TCollection_AsciiString& theName) { @@ -80,7 +80,7 @@ void BRepMesh_DiscretAlgoFactory::UnregisterFactory(const TCollection_AsciiStrin } } -//================================================================================================== +//================================================================================================= occ::handle BRepMesh_DiscretAlgoFactory::DefaultFactory() { @@ -88,7 +88,7 @@ occ::handle BRepMesh_DiscretAlgoFactory::DefaultFac return !aFactories.IsEmpty() ? aFactories.First() : occ::handle(); } -//================================================================================================== +//================================================================================================= occ::handle BRepMesh_DiscretAlgoFactory::FindFactory( const TCollection_AsciiString& theName) @@ -106,7 +106,7 @@ occ::handle BRepMesh_DiscretAlgoFactory::FindFactor return occ::handle(); } -//================================================================================================== +//================================================================================================= BRepMesh_DiscretAlgoFactory::BRepMesh_DiscretAlgoFactory(const TCollection_AsciiString& theName) : myName(theName) diff --git a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretFactory.cxx b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretFactory.cxx index c7e24e3eaa..f0f7b12bd5 100644 --- a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretFactory.cxx +++ b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_DiscretFactory.cxx @@ -17,14 +17,14 @@ #include -//================================================================================================== +//================================================================================================= BRepMesh_DiscretFactory::BRepMesh_DiscretFactory() : myDefaultName("FastDiscret") { } -//================================================================================================== +//================================================================================================= BRepMesh_DiscretFactory& BRepMesh_DiscretFactory::Get() { @@ -32,7 +32,7 @@ BRepMesh_DiscretFactory& BRepMesh_DiscretFactory::Get() return THE_GLOBAL_FACTORY; } -//================================================================================================== +//================================================================================================= bool BRepMesh_DiscretFactory::SetDefaultName(const TCollection_AsciiString& theName) { @@ -47,7 +47,7 @@ bool BRepMesh_DiscretFactory::SetDefaultName(const TCollection_AsciiString& theN return true; } -//================================================================================================== +//================================================================================================= occ::handle BRepMesh_DiscretFactory::Discret(const TopoDS_Shape& theShape, double theLinDeflection, diff --git a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_IncrementalMeshFactory.cxx b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_IncrementalMeshFactory.cxx index a7f39803be..826d68c8a9 100644 --- a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_IncrementalMeshFactory.cxx +++ b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_IncrementalMeshFactory.cxx @@ -37,7 +37,7 @@ struct FactoryInitializer static FactoryInitializer THE_FACTORY_INIT; } // namespace -//================================================================================================== +//================================================================================================= BRepMesh_IncrementalMeshFactory::BRepMesh_IncrementalMeshFactory() : BRepMesh_DiscretAlgoFactory("FastDiscret") @@ -45,7 +45,7 @@ BRepMesh_IncrementalMeshFactory::BRepMesh_IncrementalMeshFactory() RegisterFactory(this, true); } -//================================================================================================== +//================================================================================================= occ::handle BRepMesh_IncrementalMeshFactory::CreateAlgorithm( const TopoDS_Shape& theShape, diff --git a/src/ModelingAlgorithms/TKMesh/BRepMeshData/BRepMeshData_Edge.cxx b/src/ModelingAlgorithms/TKMesh/BRepMeshData/BRepMeshData_Edge.cxx index c64b8aee38..a1cd44bc5c 100644 --- a/src/ModelingAlgorithms/TKMesh/BRepMeshData/BRepMeshData_Edge.cxx +++ b/src/ModelingAlgorithms/TKMesh/BRepMeshData/BRepMeshData_Edge.cxx @@ -85,7 +85,7 @@ const IMeshData::IPCurveHandle& BRepMeshData_Edge::GetPCurve(const int theIndex) return myPCurves(theIndex); } -//================================================================================================== +//================================================================================================= const IMeshData::ListOfInteger& BRepMeshData_Edge::GetPCurves( const IMeshData::IFacePtr& theDFace) const diff --git a/src/ModelingAlgorithms/TKOffset/GTests/BRepOffset_MakeOffset_Test.cxx b/src/ModelingAlgorithms/TKOffset/GTests/BRepOffset_MakeOffset_Test.cxx index 4fe85a5868..6c3bfe598c 100644 --- a/src/ModelingAlgorithms/TKOffset/GTests/BRepOffset_MakeOffset_Test.cxx +++ b/src/ModelingAlgorithms/TKOffset/GTests/BRepOffset_MakeOffset_Test.cxx @@ -41,9 +41,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Helper function to create a circular wire -//================================================================================================== +//================================================================================================= static TopoDS_Wire MakeCircularWire(const gp_Pnt& theCenter, const gp_Dir& theNormal, @@ -67,9 +67,9 @@ static TopoDS_Wire MakeCircularWire(const gp_Pnt& theCenter, return aWireMaker.Wire(); } -//================================================================================================== +//================================================================================================= // Helper function to create a rectangular wire -//================================================================================================== +//================================================================================================= static TopoDS_Wire MakeRectangularWire(const gp_Pnt& theCenter, const gp_Dir& theNormal, @@ -103,11 +103,11 @@ static TopoDS_Wire MakeRectangularWire(const gp_Pnt& theCenter, return aWireMaker.Wire(); } -//================================================================================================== +//================================================================================================= // Test: Loft from circle to rectangle - thickness operation // This test reproduces a regression introduced by commit 44be1230391 // where a "mixed connectivity" error is incorrectly reported for valid loft geometry. -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft) { @@ -177,10 +177,10 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft) } } -//================================================================================================== +//================================================================================================= // Test: Loft from circle to rectangle - thickness with intersection mode // Intersection mode was specifically mentioned in the original bug report (0030055) -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_IntersectionMode) { @@ -243,9 +243,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_IntersectionMod } } -//================================================================================================== +//================================================================================================= // Test: Simple box thickness - should always work (baseline test) -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_SimpleBox_Baseline) { @@ -295,9 +295,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_SimpleBox_Baseline) } } -//================================================================================================== +//================================================================================================= // Helper function to create an elliptical wire -//================================================================================================== +//================================================================================================= static TopoDS_Wire MakeEllipticalWire(const gp_Pnt& theCenter, const gp_Dir& theNormal, @@ -322,9 +322,9 @@ static TopoDS_Wire MakeEllipticalWire(const gp_Pnt& theCenter, return aWireMaker.Wire(); } -//================================================================================================== +//================================================================================================= // Helper function to create a polygonal wire (regular polygon) -//================================================================================================== +//================================================================================================= static TopoDS_Wire MakePolygonalWire(const gp_Pnt& theCenter, const gp_Dir& theNormal, @@ -355,9 +355,9 @@ static TopoDS_Wire MakePolygonalWire(const gp_Pnt& theCenter, return aPolygon.Wire(); } -//================================================================================================== +//================================================================================================= // Test: Loft from circle to ellipse - smooth transition, should work -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToEllipseLoft) { @@ -400,9 +400,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToEllipseLoft) << "This is a smooth transition and should not trigger mixed connectivity."; } -//================================================================================================== +//================================================================================================= // Test: Loft from circle to hexagon - sharp corners transition -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToHexagonLoft) { @@ -444,9 +444,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToHexagonLoft) << "This may be affected by the mixed connectivity regression."; } -//================================================================================================== +//================================================================================================= // Test: Loft from circle to square - 4 corners, most problematic case -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToSquareLoft) { @@ -488,9 +488,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToSquareLoft) << "This is a regression from commit 44be1230391."; } -//================================================================================================== +//================================================================================================= // Test: Loft from ellipse to rectangle - both have different aspect ratios -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_EllipseToRectangleLoft) { @@ -531,9 +531,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_EllipseToRectangleLoft) << "This may be affected by the mixed connectivity regression."; } -//================================================================================================== +//================================================================================================= // Test: Loft with three sections - circle, ellipse, rectangle -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_ThreeSectionLoft) { @@ -577,9 +577,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_ThreeSectionLoft) << "Complex multi-section lofts are prone to mixed connectivity issues."; } -//================================================================================================== +//================================================================================================= // Test: Ruled loft from circle to rectangle (should be less problematic) -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_Ruled) { @@ -621,9 +621,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_Ruled) EXPECT_TRUE(aThickMaker.IsDone()) << "ThickSolid on ruled circle-to-rectangle loft failed."; } -//================================================================================================== +//================================================================================================= // Test: Small offset value - edge case for tolerance -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_SmallOffset) { @@ -664,9 +664,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_SmallOffset) << "ThickSolid with small offset failed on circle-to-rectangle loft."; } -//================================================================================================== +//================================================================================================= // Test: Large offset value - stress test -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_LargeOffset) { @@ -707,9 +707,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_LargeOffset) << "ThickSolid with large offset failed on circle-to-rectangle loft."; } -//================================================================================================== +//================================================================================================= // Test: Negative offset (inward thickness) -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_NegativeOffset) { @@ -750,9 +750,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangleLoft_NegativeOffset) << "ThickSolid with negative offset failed on circle-to-rectangle loft."; } -//================================================================================================== +//================================================================================================= // Test: Cylinder thickness - baseline for analytic surfaces (should always work) -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_Cylinder_Baseline) { @@ -783,9 +783,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_Cylinder_Baseline) } } -//================================================================================================== +//================================================================================================= // Test: Sphere thickness - baseline for analytic surfaces -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_Sphere_Baseline) { @@ -815,9 +815,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_Sphere_Baseline) } } -//================================================================================================== +//================================================================================================= // Test: Fused box and cylinder - mixed analytic surfaces -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_FusedBoxCylinder) { @@ -851,11 +851,11 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_FusedBoxCylinder) EXPECT_TRUE(aThickMaker.IsDone()) << "ThickSolid on fused box+cylinder failed."; } -//================================================================================================== +//================================================================================================= // Test: Very thin loft (small height) - edge case // This tests that the algorithm doesn't crash on very thin lofts where edges may not // have valid PCurves on all faces. -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangle_ThinLoft) { @@ -901,9 +901,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangle_ThinLoft) (void)aThickMaker.IsDone(); // Suppress unused warning } -//================================================================================================== +//================================================================================================= // Test: Tall loft (large height) - edge case -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangle_TallLoft) { @@ -943,9 +943,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToRectangle_TallLoft) EXPECT_TRUE(aThickMaker.IsDone()) << "ThickSolid on tall circle-to-rectangle loft failed."; } -//================================================================================================== +//================================================================================================= // Test: Circle to triangle - most extreme corner case (3 corners) -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToTriangleLoft) { @@ -986,9 +986,9 @@ TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToTriangleLoft) << "Triangle corners create extreme curvature transitions."; } -//================================================================================================== +//================================================================================================= // Test: Circle to octagon - many corners but more gradual -//================================================================================================== +//================================================================================================= TEST(BRepOffset_MakeOffsetTest, ThickSolid_CircleToOctagonLoft) { diff --git a/src/ModelingAlgorithms/TKShHealing/GTests/ShapeAnalysis_CanonicalRecognition_Test.cxx b/src/ModelingAlgorithms/TKShHealing/GTests/ShapeAnalysis_CanonicalRecognition_Test.cxx index 6546709de2..9056292a7e 100644 --- a/src/ModelingAlgorithms/TKShHealing/GTests/ShapeAnalysis_CanonicalRecognition_Test.cxx +++ b/src/ModelingAlgorithms/TKShHealing/GTests/ShapeAnalysis_CanonicalRecognition_Test.cxx @@ -64,9 +64,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Surface Recognition Tests (cr/approx tests) -//================================================================================================== +//================================================================================================= class CanonicalRecognitionApproxTest : public ::testing::Test { @@ -190,9 +190,9 @@ TEST_F(CanonicalRecognitionApproxTest, SphericalSurfaceRecognition_A4) EXPECT_NEAR(aResultSphere.Radius(), 1.0, myTolerance) << "Sphere radius should match"; } -//================================================================================================== +//================================================================================================= // Curve Recognition Tests (cr/base A-series tests) -//================================================================================================== +//================================================================================================= class CanonicalRecognitionBaseCurveTest : public ::testing::Test { @@ -392,9 +392,9 @@ TEST_F(CanonicalRecognitionBaseCurveTest, MultiSegmentEllipseWireRecognition_A6) EXPECT_NEAR(aResultEllipse.MinorRadius(), 0.5, 1.0e-7) << "Minor radius should match"; } -//================================================================================================== +//================================================================================================= // Surface Recognition Tests (cr/base B-series tests) -//================================================================================================== +//================================================================================================= class CanonicalRecognitionBaseSurfaceTest : public ::testing::Test { diff --git a/src/ModelingAlgorithms/TKShHealing/GTests/ShapeConstruct_ProjectCurveOnSurface_Test.cxx b/src/ModelingAlgorithms/TKShHealing/GTests/ShapeConstruct_ProjectCurveOnSurface_Test.cxx index 4f6550b84e..dce3cd6e6c 100644 --- a/src/ModelingAlgorithms/TKShHealing/GTests/ShapeConstruct_ProjectCurveOnSurface_Test.cxx +++ b/src/ModelingAlgorithms/TKShHealing/GTests/ShapeConstruct_ProjectCurveOnSurface_Test.cxx @@ -40,9 +40,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Test fixture for ShapeConstruct_ProjectCurveOnSurface -//================================================================================================== +//================================================================================================= class ShapeConstruct_ProjectCurveOnSurfaceTest : public ::testing::Test { @@ -107,9 +107,9 @@ protected: double myTolerance; }; -//================================================================================================== +//================================================================================================= // Basic projection tests - lines and circles on analytical surfaces -//================================================================================================== +//================================================================================================= // Test: Project diagonal line on horizontal plane, verify 2D coordinates match X,Y of 3D points TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, LineOnPlane_A1) @@ -189,9 +189,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, IsoparametricLineOnCylinder_A3) EXPECT_NEAR(aStart.X(), aEnd.X(), 0.01) << "U should be constant for isoparametric curve"; } -//================================================================================================== +//================================================================================================= // B-Spline curve projection tests -//================================================================================================== +//================================================================================================= // Test: Project planar B-spline on plane, endpoints should match original curve TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, BSplineOnPlane_B1) @@ -273,9 +273,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, HighDegreeBSpline_B3) verifyProjection(aBSpline, aPCurve, aSAS, 0.5); } -//================================================================================================== +//================================================================================================= // Periodic surface tests - sphere, torus -//================================================================================================== +//================================================================================================= // Test: Project equator circle on sphere TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, EquatorOnSphere_C1) @@ -346,9 +346,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, CircleOnTorus_C3) ASSERT_FALSE(aPCurve.IsNull()) << "PCurve should not be null"; } -//================================================================================================== +//================================================================================================= // Conical surface tests -//================================================================================================== +//================================================================================================= // Test: Project circle on cone at specific height TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, CircleOnCone_D1) @@ -373,9 +373,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, CircleOnCone_D1) ASSERT_FALSE(aPCurve.IsNull()) << "PCurve should not be null"; } -//================================================================================================== +//================================================================================================= // Trimmed curve tests -//================================================================================================== +//================================================================================================= // Test: Project 90-degree arc on plane TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, ArcOnPlane_E1) @@ -435,9 +435,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, DoublyTrimmedCurve_E2) ASSERT_FALSE(aPCurve.IsNull()) << "PCurve should not be null"; } -//================================================================================================== +//================================================================================================= // Ellipse projection tests -//================================================================================================== +//================================================================================================= // Test: Project ellipse on plane, verify quadrant points TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, EllipseOnPlane_F1) @@ -468,9 +468,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, EllipseOnPlane_F1) EXPECT_NEAR(aP1.Y(), 5.0, 0.01); } -//================================================================================================== +//================================================================================================= // API method tests - Init, SetSurface, SetPrecision -//================================================================================================== +//================================================================================================= // Test: Init with Geom_Surface directly (not wrapped in ShapeAnalysis_Surface) TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, InitWithGeomSurface_G1) @@ -536,9 +536,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, StatusMethod_G4) << "Status should indicate OK or DONE"; } -//================================================================================================== +//================================================================================================= // Tolerance and precision tests -//================================================================================================== +//================================================================================================= // Test: Projection with very tight tolerance on exact curve TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, TightTolerance_H1) @@ -587,9 +587,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, DifferentEndpointTolerances_H2) ASSERT_FALSE(aPCurve.IsNull()); } -//================================================================================================== +//================================================================================================= // Partial curve projection tests -//================================================================================================== +//================================================================================================= // Test: Project only first quarter of full circle TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, PartialCircle_I1) @@ -640,9 +640,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, MiddlePortionBSpline_I2) ASSERT_FALSE(aPCurve.IsNull()); } -//================================================================================================== +//================================================================================================= // Multiple projection and reinitialization tests -//================================================================================================== +//================================================================================================= // Test: Multiple projections on same surface reuse setup correctly TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, MultipleProjections_J1) @@ -691,9 +691,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, SurfaceReinitialization_J2) ASSERT_FALSE(aPCurve2.IsNull()); } -//================================================================================================== +//================================================================================================= // Near-singularity tests (poles, degenerate regions) -//================================================================================================== +//================================================================================================= // Test: Project small circle near north pole of sphere TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, NearPoleOnSphere_K1) @@ -720,9 +720,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, NearPoleOnSphere_K1) ASSERT_FALSE(aPCurve.IsNull()); } -//================================================================================================== +//================================================================================================= // Edge case tests -//================================================================================================== +//================================================================================================= // Test: Very short curve projection should not crash TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, VeryShortCurve_L1) @@ -779,9 +779,9 @@ TEST_F(ShapeConstruct_ProjectCurveOnSurfaceTest, LargeTolerance_L3) ASSERT_FALSE(aPCurve.IsNull()); } -//================================================================================================== +//================================================================================================= // Regression tests from bug reports -//================================================================================================== +//================================================================================================= // Test: Bug 27569 - B-spline with many knots on B-spline surface // This test verifies that normal B-spline curves with many knots diff --git a/src/ModelingAlgorithms/TKShHealing/GTests/ShapeUpgrade_UnifySameDomain_Test.cxx b/src/ModelingAlgorithms/TKShHealing/GTests/ShapeUpgrade_UnifySameDomain_Test.cxx index 07fce2b211..a234cdcba2 100644 --- a/src/ModelingAlgorithms/TKShHealing/GTests/ShapeUpgrade_UnifySameDomain_Test.cxx +++ b/src/ModelingAlgorithms/TKShHealing/GTests/ShapeUpgrade_UnifySameDomain_Test.cxx @@ -32,9 +32,9 @@ #include #include -//================================================================================================== +//================================================================================================= // ShapeUpgrade_UnifySameDomain Tests -//================================================================================================== +//================================================================================================= // Test for issue #925: Infinite loop when processing internal edges. // This test verifies that UnifySameDomain properly handles internal edges diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx index d32a2b18af..2175d75c1a 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx @@ -479,7 +479,7 @@ static bool FindCoordBounds( return true; } -//================================================================================================== +//================================================================================================= // Returns the start and end points of the edge in parametric space of the face. // The orientation of the edge is taken into account, so the start and end points @@ -503,7 +503,7 @@ static std::pair getCurveParams(const TopoDS_Edge& theEdge, return {aFirstPoint, aLastPoint}; } -//================================================================================================== +//================================================================================================= static void RelocatePCurvesToNewUorigin( const NCollection_Sequence& theEdges, diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx index 3f1a7286d3..1d285434e2 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx @@ -59,7 +59,7 @@ inline double safeIncrement(const double theValue, return aNextValue == theValue ? std::nextafter(theValue, theDirection) : aNextValue; } -//================================================================================================== +//================================================================================================= // Checks whether the curve is degenerated between theStartParam and theEndParam. // The check is performed by sampling the curve at several points and measuring the distance to the diff --git a/src/ModelingAlgorithms/TKXMesh/XBRepMesh/XBRepMesh_Factory.cxx b/src/ModelingAlgorithms/TKXMesh/XBRepMesh/XBRepMesh_Factory.cxx index a652688719..a93c6535c3 100644 --- a/src/ModelingAlgorithms/TKXMesh/XBRepMesh/XBRepMesh_Factory.cxx +++ b/src/ModelingAlgorithms/TKXMesh/XBRepMesh/XBRepMesh_Factory.cxx @@ -37,7 +37,7 @@ struct FactoryInitializer static FactoryInitializer THE_FACTORY_INIT; } // namespace -//================================================================================================== +//================================================================================================= XBRepMesh_Factory::XBRepMesh_Factory() : BRepMesh_DiscretAlgoFactory("XBRepMesh") @@ -45,7 +45,7 @@ XBRepMesh_Factory::XBRepMesh_Factory() RegisterFactory(this); } -//================================================================================================== +//================================================================================================= occ::handle XBRepMesh_Factory::CreateAlgorithm(const TopoDS_Shape& theShape, double theLinDeflection, diff --git a/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx b/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx index c782ce2ea7..f718c78e52 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx @@ -50,11 +50,11 @@ //================================================================================================= -//======================================================================= +//================================================================================================= // function : UpdateCurves // purpose : Insert a 3d curve with location // in a list of curve representations -//======================================================================= +//================================================================================================= static void UpdateCurves(NCollection_List>& lcr, const occ::handle& C, const TopLoc_Location& L) @@ -92,12 +92,12 @@ static void UpdateCurves(NCollection_List> } } -//======================================================================= +//================================================================================================= // function : UpdateCurves // purpose : Insert a pcurve on surface with location // in a list of curve representations // Remove the pcurve on from if is null -//======================================================================= +//================================================================================================= static void UpdateCurves(NCollection_List>& lcr, const occ::handle& C, @@ -118,7 +118,7 @@ static void UpdateCurves(NCollection_List> { if (GC->IsCurve3D()) { - // if (!C.IsNull()) { //xpu031198, edge degeneree + // if (!C.IsNull()) { //xpu031198, degenerate edge // xpu151298 : parameters can be set for null curves // see lbo & flo, to determine whether range is defined @@ -164,12 +164,12 @@ static void UpdateCurves(NCollection_List> } } -//======================================================================= +//================================================================================================= // function : UpdateCurves // purpose : Insert a pcurve on surface with location // in a list of curve representations // Remove the pcurve on from if is null -//======================================================================= +//================================================================================================= static void UpdateCurves(NCollection_List>& lcr, const occ::handle& C, const occ::handle& S, @@ -192,7 +192,7 @@ static void UpdateCurves(NCollection_List> { if (GC->IsCurve3D()) { - // if (!C.IsNull()) { //xpu031198, edge degeneree + // if (!C.IsNull()) { //xpu031198, degenerate edge // xpu151298 : parameters can be set for null curves // see lbo & flo, to determine whether range is defined @@ -239,12 +239,12 @@ static void UpdateCurves(NCollection_List> } } -//======================================================================= +//================================================================================================= // function : UpdateCurves // purpose : Insert two pcurves on surface with location // in a list of curve representations // Remove the pcurves on from if or is null -//======================================================================= +//================================================================================================= static void UpdateCurves(NCollection_List>& lcr, const occ::handle& C1, @@ -302,12 +302,12 @@ static void UpdateCurves(NCollection_List> } } -//======================================================================= +//================================================================================================= // function : UpdateCurves // purpose : Insert two pcurves on surface with location // in a list of curve representations // Remove the pcurves on from if or is null -//======================================================================= +//================================================================================================= static void UpdateCurves(NCollection_List>& lcr, const occ::handle& C1, const occ::handle& C2, @@ -657,10 +657,10 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, TE->Modified(true); } -//======================================================================= +//================================================================================================= // function : UpdateEdge // purpose : for the second format (for XML Persistence) -//======================================================================= +//================================================================================================= void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const occ::handle& C, @@ -705,10 +705,10 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, TE->Modified(true); } -//======================================================================= +//================================================================================================= // function : UpdateEdge // purpose : for the second format (for XML Persistence) -//======================================================================= +//================================================================================================= void BRep_Builder::UpdateEdge(const TopoDS_Edge& E, const occ::handle& C1, @@ -1168,10 +1168,10 @@ void BRep_Builder::Transfert(const TopoDS_Edge& Ein, const TopoDS_Edge& Eout) co } } -//======================================================================= +//================================================================================================= // function : UpdateVertex // purpose : update vertex with 3d point -//======================================================================= +//================================================================================================= void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const gp_Pnt& P, const double Tol) const { @@ -1185,10 +1185,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const gp_Pnt& P, const d TV->Modified(true); } -//======================================================================= +//================================================================================================= // function : UpdateVertex // purpose : update vertex with parameter on edge -//======================================================================= +//================================================================================================= void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const double Par, @@ -1272,10 +1272,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, TE->Modified(true); } -//======================================================================= +//================================================================================================= // function : UpdateVertex // purpose : update vertex with parameter on edge on face -//======================================================================= +//================================================================================================= void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const double Par, @@ -1358,10 +1358,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, TE->Modified(true); } -//======================================================================= +//================================================================================================= // function : UpdateVertex // purpose : update vertex with parameters on face -//======================================================================= +//================================================================================================= void BRep_Builder::UpdateVertex(const TopoDS_Vertex& Ve, const double U, @@ -1386,10 +1386,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& Ve, TV->Modified(true); } -//======================================================================= +//================================================================================================= // function : UpdateVertex // purpose : update vertex with 3d point -//======================================================================= +//================================================================================================= void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const double Tol) const { diff --git a/src/ModelingData/TKBRep/BRep/BRep_TEdge.cxx b/src/ModelingData/TKBRep/BRep/BRep_TEdge.cxx index 731736a18c..043f988bfe 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_TEdge.cxx +++ b/src/ModelingData/TKBRep/BRep/BRep_TEdge.cxx @@ -100,7 +100,7 @@ occ::handle BRep_TEdge::EmptyCopy() const while (itr.More()) { - // on ne recopie PAS les polygones + // do NOT copy polygons if (itr.Value()->IsKind(STANDARD_TYPE(BRep_GCurve)) || itr.Value()->IsKind(STANDARD_TYPE(BRep_CurveOn2Surfaces))) { diff --git a/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx b/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx index 19a7bd756c..6a02e80d63 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx @@ -67,11 +67,11 @@ static bool IsPlane(const occ::handle& aS); // modified by NIZNHY-PKV Fri Oct 17 14:13:33 2008t // -//======================================================================= +//================================================================================================= // function : Surface // purpose : Returns the geometric surface of the face. Returns // in the location for the surface. -//======================================================================= +//================================================================================================= const occ::handle& BRep_Tool::Surface(const TopoDS_Face& F, TopLoc_Location& L) { @@ -80,11 +80,11 @@ const occ::handle& BRep_Tool::Surface(const TopoDS_Face& F, TopLoc return TF->Surface(); } -//======================================================================= +//================================================================================================= // function : Surface // purpose : Returns the geometric surface of the face. It can // be a copy if there is a Location. -//======================================================================= +//================================================================================================= occ::handle BRep_Tool::Surface(const TopoDS_Face& F) { @@ -127,10 +127,10 @@ const NCollection_List>& BRep_Tool::Triangulatio return aTFace->Triangulations(); } -//======================================================================= +//================================================================================================= // function : Tolerance // purpose : Returns the tolerance of the face. -//======================================================================= +//================================================================================================= double BRep_Tool::Tolerance(const TopoDS_Face& F) { @@ -143,10 +143,10 @@ double BRep_Tool::Tolerance(const TopoDS_Face& F) return pMin; } -//======================================================================= +//================================================================================================= // function : NaturalRestriction // purpose : Returns the NaturalRestriction flag of the face. -//======================================================================= +//================================================================================================= bool BRep_Tool::NaturalRestriction(const TopoDS_Face& F) { @@ -154,12 +154,12 @@ bool BRep_Tool::NaturalRestriction(const TopoDS_Face& F) return TF->NaturalRestriction(); } -//======================================================================= +//================================================================================================= // function : Curve // purpose : Returns the 3D curve of the edge. May be a Null // handle. Returns in the location for the curve. // In and the parameter range. -//======================================================================= +//================================================================================================= static const occ::handle nullCurve; @@ -189,12 +189,12 @@ const occ::handle& BRep_Tool::Curve(const TopoDS_Edge& E, return nullCurve; } -//======================================================================= +//================================================================================================= // function : Curve // purpose : Returns the 3D curve of the edge. May be a Null handle. // In and the parameter range. // It can be a copy if there is a Location. -//======================================================================= +//================================================================================================= occ::handle BRep_Tool::Curve(const TopoDS_Edge& E, double& First, double& Last) { @@ -212,10 +212,10 @@ occ::handle BRep_Tool::Curve(const TopoDS_Edge& E, double& First, do return C; } -//======================================================================= +//================================================================================================= // function : IsGeometric // purpose : Returns True if has a surface. -//======================================================================= +//================================================================================================= bool BRep_Tool::IsGeometric(const TopoDS_Face& F) { const BRep_TFace* TF = static_cast(F.TShape().get()); @@ -223,11 +223,11 @@ bool BRep_Tool::IsGeometric(const TopoDS_Face& F) return !S.IsNull(); } -//======================================================================= +//================================================================================================= // function : IsGeometric // purpose : Returns True if is a 3d curve or a curve on // surface. -//======================================================================= +//================================================================================================= bool BRep_Tool::IsGeometric(const TopoDS_Edge& E) { @@ -251,11 +251,11 @@ bool BRep_Tool::IsGeometric(const TopoDS_Edge& E) return false; } -//======================================================================= +//================================================================================================= // function : Polygon3D // purpose : Returns the 3D polygon of the edge. May be a Null // handle. Returns in the location for the polygon. -//======================================================================= +//================================================================================================= static const occ::handle nullPolygon3D; @@ -280,13 +280,13 @@ const occ::handle& BRep_Tool::Polygon3D(const TopoDS_Edge& E, To return nullPolygon3D; } -//======================================================================= +//================================================================================================= // function : CurveOnSurface // purpose : Returns the curve associated to the edge in the // parametric space of the face. Returns a NULL // handle if this curve does not exist. Returns in // and the parameter range. -//======================================================================= +//================================================================================================= occ::handle BRep_Tool::CurveOnSurface(const TopoDS_Edge& E, const TopoDS_Face& F, @@ -304,13 +304,13 @@ occ::handle BRep_Tool::CurveOnSurface(const TopoDS_Edge& E, return CurveOnSurface(aLocalEdge, S, l, First, Last, theIsStored); } -//======================================================================= +//================================================================================================= // function : CurveOnSurface // purpose : Returns the curve associated to the edge in the // parametric space of the surface. Returns a NULL // handle if this curve does not exist. Returns in // and the parameter range. -//======================================================================= +//================================================================================================= static const occ::handle nullPCurve; @@ -354,10 +354,10 @@ occ::handle BRep_Tool::CurveOnSurface(const TopoDS_Edge& return CurveOnPlane(E, S, L, First, Last); } -//======================================================================= +//================================================================================================= // function : CurveOnPlane // purpose : For planar surface returns projection of the edge on the plane -//======================================================================= +//================================================================================================= occ::handle BRep_Tool::CurveOnPlane(const TopoDS_Edge& E, const occ::handle& S, const TopLoc_Location& L, @@ -503,12 +503,12 @@ void BRep_Tool::CurveOnSurface(const TopoDS_Edge& E, First = Last = 0.; } -//======================================================================= +//================================================================================================= // function : PolygonOnSurface // purpose : Returns the polygon associated to the edge in the // parametric space of the face. Returns a NULL // handle if this polygon does not exist. -//======================================================================= +//================================================================================================= occ::handle BRep_Tool::PolygonOnSurface(const TopoDS_Edge& E, const TopoDS_Face& F) { @@ -526,12 +526,12 @@ occ::handle BRep_Tool::PolygonOnSurface(const TopoDS_Edge& E, co return PolygonOnSurface(aLocalEdge, S, l); } -//======================================================================= +//================================================================================================= // function : PolygonOnSurface // purpose : Returns the polygon associated to the edge in the // parametric space of the surface. Returns a NULL // handle if this polygon does not exist. -//======================================================================= +//================================================================================================= static const occ::handle nullPolygon2D; @@ -631,12 +631,12 @@ void BRep_Tool::PolygonOnSurface(const TopoDS_Edge& E, S.Nullify(); } -//======================================================================= +//================================================================================================= // function : PolygonOnTriangulation // purpose : Returns the polygon associated to the edge in the // parametric space of the face. Returns a NULL // handle if this polygon does not exist. -//======================================================================= +//================================================================================================= static const occ::handle nullArray; @@ -739,12 +739,12 @@ void BRep_Tool::PolygonOnTriangulation(const TopoDS_Edge& T.Nullify(); } -//======================================================================= +//================================================================================================= // function : IsClosed // purpose : Returns True if has two PCurves in the // parametric space of . i.e. is on a closed // surface and is on the closing curve. -//======================================================================= +//================================================================================================= bool BRep_Tool::IsClosed(const TopoDS_Edge& E, const TopoDS_Face& F) { @@ -756,12 +756,12 @@ bool BRep_Tool::IsClosed(const TopoDS_Edge& E, const TopoDS_Face& F) return IsClosed(E, T, l); } -//======================================================================= +//================================================================================================= // function : IsClosed // purpose : Returns True if has two PCurves in the // parametric space of . i.e. is a closed // surface and is on the closing curve. -//======================================================================= +//================================================================================================= bool BRep_Tool::IsClosed(const TopoDS_Edge& E, const occ::handle& S, @@ -790,11 +790,11 @@ bool BRep_Tool::IsClosed(const TopoDS_Edge& E, return false; } -//======================================================================= +//================================================================================================= // function : IsClosed // purpose : Returns True if has two arrays of indices in // the triangulation . -//======================================================================= +//================================================================================================= bool BRep_Tool::IsClosed(const TopoDS_Edge& E, const occ::handle& T, @@ -821,10 +821,10 @@ bool BRep_Tool::IsClosed(const TopoDS_Edge& E, return false; } -//======================================================================= +//================================================================================================= // function : Tolerance // purpose : Returns the tolerance for . -//======================================================================= +//================================================================================================= double BRep_Tool::Tolerance(const TopoDS_Edge& E) { @@ -837,10 +837,10 @@ double BRep_Tool::Tolerance(const TopoDS_Edge& E) return pMin; } -//======================================================================= +//================================================================================================= // function : SameParameter // purpose : Returns the SameParameter flag for the edge. -//======================================================================= +//================================================================================================= bool BRep_Tool::SameParameter(const TopoDS_Edge& E) { @@ -848,10 +848,10 @@ bool BRep_Tool::SameParameter(const TopoDS_Edge& E) return TE->SameParameter(); } -//======================================================================= +//================================================================================================= // function : SameRange // purpose : Returns the SameRange flag for the edge. -//======================================================================= +//================================================================================================= bool BRep_Tool::SameRange(const TopoDS_Edge& E) { @@ -859,10 +859,10 @@ bool BRep_Tool::SameRange(const TopoDS_Edge& E) return TE->SameRange(); } -//======================================================================= +//================================================================================================= // function : Degenerated // purpose : Returns True if the edge is degenerated. -//======================================================================= +//================================================================================================= bool BRep_Tool::Degenerated(const TopoDS_Edge& E) { @@ -989,7 +989,7 @@ void BRep_Tool::UVPoints(const TopoDS_Edge& E, GP = occ::down_cast(GRTS->BasisSurface()); else GP = occ::down_cast(S); - // fin modif du 21-05-97 + // end of modification from 21-05-97 if (!GP.IsNull()) { // get the two vertices @@ -1101,11 +1101,11 @@ void BRep_Tool::SetUVPoints(const TopoDS_Edge& E, SetUVPoints(aLocalEdge, S, L, PFirst, PLast); } -//======================================================================= +//================================================================================================= // function : HasContinuity // purpose : Returns True if the edge is on the surfaces of the // two faces. -//======================================================================= +//================================================================================================= bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2) { @@ -1115,10 +1115,10 @@ bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, const TopoDS_Face& F1, const return HasContinuity(E, S1, S2, l1, l2); } -//======================================================================= +//================================================================================================= // function : Continuity // purpose : Returns the continuity. -//======================================================================= +//================================================================================================= GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E, const TopoDS_Face& F1, @@ -1130,10 +1130,10 @@ GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E, return Continuity(E, S1, S2, l1, l2); } -//======================================================================= +//================================================================================================= // function : HasContinuity // purpose : Returns True if the edge is on the surfaces. -//======================================================================= +//================================================================================================= bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, const occ::handle& S1, @@ -1159,10 +1159,10 @@ bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, return false; } -//======================================================================= +//================================================================================================= // function : Continuity // purpose : Returns the continuity. -//======================================================================= +//================================================================================================= GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E, const occ::handle& S1, @@ -1187,10 +1187,10 @@ GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E, return GeomAbs_C0; } -//======================================================================= +//================================================================================================= // function : HasContinuity // purpose : Returns True if the edge is on some two surfaces. -//======================================================================= +//================================================================================================= bool BRep_Tool::HasContinuity(const TopoDS_Edge& E) { @@ -1249,10 +1249,10 @@ gp_Pnt BRep_Tool::Pnt(const TopoDS_Vertex& V) return P.Transformed(V.Location().Transformation()); } -//======================================================================= +//================================================================================================= // function : Tolerance // purpose : Returns the tolerance. -//======================================================================= +//================================================================================================= double BRep_Tool::Tolerance(const TopoDS_Vertex& V) { @@ -1271,10 +1271,10 @@ double BRep_Tool::Tolerance(const TopoDS_Vertex& V) return pMin; } -//======================================================================= +//================================================================================================= // function : Parameter // purpose : Returns the parameter of on . -//======================================================================= +//================================================================================================= bool BRep_Tool::Parameter(const TopoDS_Vertex& theV, const TopoDS_Edge& theE, double& theParam) { @@ -1424,10 +1424,10 @@ bool BRep_Tool::Parameter(const TopoDS_Vertex& theV, const TopoDS_Edge& theE, do return false; } -//======================================================================= +//================================================================================================= // function : Parameter // purpose : Returns the parameter of on . -//======================================================================= +//================================================================================================= double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E) { @@ -1437,11 +1437,11 @@ double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E) throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge"); } -//======================================================================= +//================================================================================================= // function : Parameter // purpose : Returns the parameters of the vertex on the // pcurve of the edge on the face. -//======================================================================= +//================================================================================================= double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E, const TopoDS_Face& F) { @@ -1450,11 +1450,11 @@ double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E, const return BRep_Tool::Parameter(V, E, S, L); } -//======================================================================= +//================================================================================================= // function : Parameter // purpose : Returns the parameters of the vertex on the // pcurve of the edge on the surface. -//======================================================================= +//================================================================================================= double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E, @@ -1564,10 +1564,10 @@ double BRep_Tool::Parameter(const TopoDS_Vertex& V, throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge"); } -//======================================================================= +//================================================================================================= // function : Parameters // purpose : Returns the parameters of the vertex on the face. -//======================================================================= +//================================================================================================= gp_Pnt2d BRep_Tool::Parameters(const TopoDS_Vertex& V, const TopoDS_Face& F) { diff --git a/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_CompCurve.cxx b/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_CompCurve.cxx index 6136426a64..dc6bcb8dfe 100644 --- a/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_CompCurve.cxx +++ b/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_CompCurve.cxx @@ -449,14 +449,14 @@ occ::handle BRepAdaptor_CompCurve::BSpline() const return myCurves->Value(1).BSpline(); } -//======================================================================= +//================================================================================================= // function : Prepare // purpose : // When the parameter is close to "node" the rule is determined // depending on the sign of tol: // - negative -> Rule preceding to the node. // - positive -> Rule following after the node. -//======================================================================= +//================================================================================================= void BRepAdaptor_CompCurve::Prepare(double& W, double& Delta, int& theCurIndex) const { diff --git a/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_Curve.cxx b/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_Curve.cxx index 1f92dbbecc..292659f8ac 100644 --- a/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_Curve.cxx +++ b/src/ModelingData/TKBRep/BRepAdaptor/BRepAdaptor_Curve.cxx @@ -274,7 +274,7 @@ occ::handle BRepAdaptor_Curve::Trim(const double First, const double Last, const double Tol) const { - // On fait une copie de this pour garder la trsf. + // Make a copy of this to keep the transformation. occ::handle res; if (myConSurf.IsNull()) { diff --git a/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx b/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx index 129bb64621..05a9336226 100644 --- a/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx +++ b/src/ModelingData/TKBRep/BRepProp/BRepProp_Curve.cxx @@ -20,28 +20,28 @@ #include #include -//================================================================================================== +//================================================================================================= BRepProp_Curve::BRepProp_Curve(const TopoDS_Edge& theEdge) { initialization(theEdge); } -//================================================================================================== +//================================================================================================= BRepProp_Curve::BRepProp_Curve(const BRepAdaptor_Curve& theCurve) { initialization(theCurve); } -//================================================================================================== +//================================================================================================= BRepProp_Curve::BRepProp_Curve(const occ::handle& theCurve) { initialization(theCurve); } -//================================================================================================== +//================================================================================================= void BRepProp_Curve::initialization(const TopoDS_Edge& theEdge) { @@ -55,7 +55,7 @@ void BRepProp_Curve::initialization(const TopoDS_Edge& theEdge) myPtr = myOwned.get(); } -//================================================================================================== +//================================================================================================= void BRepProp_Curve::initialization(const BRepAdaptor_Curve& theCurve) { @@ -63,7 +63,7 @@ void BRepProp_Curve::initialization(const BRepAdaptor_Curve& theCurve) myPtr = &theCurve; } -//================================================================================================== +//================================================================================================= void BRepProp_Curve::initialization(const occ::handle& theCurve) { @@ -71,7 +71,7 @@ void BRepProp_Curve::initialization(const occ::handle& theCur myPtr = myOwned.get(); } -//================================================================================================== +//================================================================================================= GeomProp::TangentResult BRepProp_Curve::Tangent(const double theParam, const double theTol) const { @@ -102,7 +102,7 @@ GeomProp::TangentResult BRepProp_Curve::Tangent(const double theParam, const dou return GeomProp::ComputeTangent(aD1, aD2, aD3, theTol, aP1, aP2); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult BRepProp_Curve::Curvature(const double theParam, const double theTol) const @@ -113,7 +113,7 @@ GeomProp::CurvatureResult BRepProp_Curve::Curvature(const double theParam, return GeomProp::ComputeCurvature(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult BRepProp_Curve::Normal(const double theParam, const double theTol) const { @@ -123,7 +123,7 @@ GeomProp::NormalResult BRepProp_Curve::Normal(const double theParam, const doubl return GeomProp::ComputeNormal(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult BRepProp_Curve::CentreOfCurvature(const double theParam, const double theTol) const @@ -134,7 +134,7 @@ GeomProp::CentreResult BRepProp_Curve::CentreOfCurvature(const double theParam, return GeomProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomAbs_Shape BRepProp_Curve::Continuity(const BRepAdaptor_Curve& theCurve1, const BRepAdaptor_Curve& theCurve2, @@ -242,7 +242,7 @@ GeomAbs_Shape BRepProp_Curve::Continuity(const BRepAdaptor_Curve& theCurve1, return aCont; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape BRepProp_Curve::Continuity(const BRepAdaptor_Curve& theCurve1, const BRepAdaptor_Curve& theCurve2, diff --git a/src/ModelingData/TKBRep/BRepProp/BRepProp_Surface.cxx b/src/ModelingData/TKBRep/BRepProp/BRepProp_Surface.cxx index 6097ffccdb..382ad5ef35 100644 --- a/src/ModelingData/TKBRep/BRepProp/BRepProp_Surface.cxx +++ b/src/ModelingData/TKBRep/BRepProp/BRepProp_Surface.cxx @@ -15,28 +15,28 @@ #include -//================================================================================================== +//================================================================================================= BRepProp_Surface::BRepProp_Surface(const TopoDS_Face& theFace) { initialization(theFace); } -//================================================================================================== +//================================================================================================= BRepProp_Surface::BRepProp_Surface(const BRepAdaptor_Surface& theSurface) { initialization(theSurface); } -//================================================================================================== +//================================================================================================= BRepProp_Surface::BRepProp_Surface(const occ::handle& theSurface) { initialization(theSurface); } -//================================================================================================== +//================================================================================================= void BRepProp_Surface::initialization(const TopoDS_Face& theFace) { @@ -50,7 +50,7 @@ void BRepProp_Surface::initialization(const TopoDS_Face& theFace) myPtr = myOwned.get(); } -//================================================================================================== +//================================================================================================= void BRepProp_Surface::initialization(const BRepAdaptor_Surface& theSurface) { @@ -58,7 +58,7 @@ void BRepProp_Surface::initialization(const BRepAdaptor_Surface& theSurface) myPtr = &theSurface; } -//================================================================================================== +//================================================================================================= void BRepProp_Surface::initialization(const occ::handle& theSurface) { @@ -66,7 +66,7 @@ void BRepProp_Surface::initialization(const occ::handle& th myPtr = myOwned.get(); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult BRepProp_Surface::Normal(const double theU, const double theV, @@ -82,7 +82,7 @@ GeomProp::SurfaceNormalResult BRepProp_Surface::Normal(const double theU, return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult BRepProp_Surface::Curvatures(const double theU, const double theV, @@ -98,7 +98,7 @@ GeomProp::SurfaceCurvatureResult BRepProp_Surface::Curvatures(const double theU, return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult BRepProp_Surface::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools.cxx index 5ff8328def..c565db7951 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools.cxx @@ -481,10 +481,10 @@ void BRepTools::Update(const TopoDS_Shape& S) } } -//======================================================================= +//================================================================================================= // function : UpdateFaceUVPoints // purpose : Reset the UV points of edges on the Face -//======================================================================= +//================================================================================================= void BRepTools::UpdateFaceUVPoints(const TopoDS_Face& theF) { // For each edge of the face reset the UV points to the bounding @@ -1330,11 +1330,11 @@ TopAbs_Orientation BRepTools::OriEdgeInFace(const TopoDS_Edge& E, const TopoDS_F namespace { -//======================================================================= +//================================================================================================= // function : findInternalsToKeep // purpose : Looks for internal sub-shapes which has to be kept to preserve // topological connectivity. -//======================================================================= +//================================================================================================= static void findInternalsToKeep( const TopoDS_Shape& theS, NCollection_Map& theAllNonInternals, @@ -1356,10 +1356,10 @@ static void findInternalsToKeep( } } -//======================================================================= +//================================================================================================= // function : removeShapes // purpose : Removes sub-shapes from the shape -//======================================================================= +//================================================================================================= static void removeShapes(TopoDS_Shape& theS, const NCollection_List& theLS) { BRep_Builder aBB; @@ -1373,11 +1373,11 @@ static void removeShapes(TopoDS_Shape& theS, const NCollection_List* theShapesToKeep) diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_GTrsfModification.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_GTrsfModification.cxx index 373a713990..4763935664 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_GTrsfModification.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_GTrsfModification.cxx @@ -43,7 +43,7 @@ IMPLEMENT_STANDARD_RTTIEXT(BRepTools_GTrsfModification, BRepTools_Modification) BRepTools_GTrsfModification::BRepTools_GTrsfModification(const gp_GTrsf& T) : myGTrsf(T) { - // on prend comme dilatation maximale pour la tolerance la norme sup + // use the sup norm as the maximum dilation for the tolerance double loc1, loc2, loc3, loc4; loc1 = std::max(std::abs(T.Value(1, 1)), std::abs(T.Value(1, 2))); diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx index bfb9fbbc41..ffa85dc491 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_History.cxx @@ -25,10 +25,10 @@ IMPLEMENT_STANDARD_RTTIEXT(BRepTools_History, Standard_Transient) namespace { -//============================================================================== +//================================================================================================= // function : add // purpose : Adds the elements of the list to the map. -//============================================================================== +//================================================================================================= void add(NCollection_Map& theMap, const NCollection_List& theList) { @@ -38,10 +38,10 @@ void add(NCollection_Map& theMap, } } -//============================================================================== +//================================================================================================= // function : add // purpose : Adds the elements of the collection to the list. -//============================================================================== +//================================================================================================= template void add(NCollection_List& theList, const TCollection& theCollection) { diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.cxx index 9ff8e1d46a..10c87da17c 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_Modifier.cxx @@ -241,8 +241,8 @@ bool BRepTools_Modifier::Rebuild(const TopoDS_Shape& S, TopAbs_Orientation ResOr = TopAbs_FORWARD; BRep_Builder B; double tol; - bool No3DCurve = false; // en fait, si on n`a pas de - // modif geometry 3d , it is necessary to test the existence of a curve 3d. + bool No3DCurve = false; // in fact, if we have no + // 3D geometry modification, it is necessary to test the existence of a 3D curve. // new geometry ? @@ -502,7 +502,7 @@ bool BRepTools_Modifier::Rebuild(const TopoDS_Shape& S, TopAbs_Orientation vtxrelat = vertex.Orientation(); if (edge.Orientation() == TopAbs_REVERSED) { - // Update considere l'edge FORWARD, et le vertex en relatif + // Update considers the edge as FORWARD, and the vertex relatively vtxrelat = TopAbs::Reverse(vtxrelat); } // if (myMap(edge).Orientation() == TopAbs_REVERSED) { @@ -577,7 +577,7 @@ bool BRepTools_Modifier::Rebuild(const TopoDS_Shape& S, TopAbs_Orientation vtxrelat = vertex.Orientation(); if (edor == TopAbs_REVERSED) { - // Update considere l'edge FORWARD, et le vertex en relatif + // Update considers the edge as FORWARD, and the vertex relatively vtxrelat = TopAbs::Reverse(vtxrelat); } diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_NurbsConvertModification.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_NurbsConvertModification.cxx index e3a1f2793a..5472d03e6a 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_NurbsConvertModification.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_NurbsConvertModification.cxx @@ -306,7 +306,7 @@ bool BRepTools_NurbsConvertModification::NewSurface(const TopoDS_Face& F BS->Resolution(Tol, UTol, VTol); // - // on recadre les bornes de S sinon les anciennes PCurves sont aux fraises + // Readjust the bounds of S, otherwise the old PCurves become invalid // if (std::abs(curvU1 - surfU1) > UTol && !BS->IsUPeriodic()) @@ -430,7 +430,7 @@ bool BRepTools_NurbsConvertModification::NewCurve(const TopoDS_Edge& E, else C = new Geom_TrimmedCurve(C, f, l); - // modif WOK++ portage hp (fbi du 14/03/97) + // modification for WOK++ HP porting (fbi 14/03/97) // gp_Trsf trsf(L); // gp_Trsf trsf = L.Transformation(); @@ -639,7 +639,7 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E } else { - S = BRep_Tool::Surface(F); // Si S est un plan, pas de changement de parametrisation + S = BRep_Tool::Surface(F); // If S is a plane, no change of parametrization GeomAdaptor_Surface GAS(S); occ::handle GAHS = new GeomAdaptor_Surface(GAS); ProjLib_ComputeApprox ProjOnCurve(G3dAHC, GAHS, Tol); @@ -732,12 +732,12 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E { if (itled.Value().IsSame(E)) { - // deja traitee + // already processed break; } } if (!itled.More()) - { // on stocke l`edge et la curve2d + { // store the edge and the 2D curve occ::handle C2dBis; double f2dBis, l2dBis; C2d = new Geom2d_TrimmedCurve(C2d, f2d, l2d); @@ -806,7 +806,7 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E } else { - S = BRep_Tool::Surface(newF); // S est une BSplineSurface : pas besoin de la trimmed + S = BRep_Tool::Surface(newF); // S is a BSplineSurface: no need for the trimmed one } double Uinf, Usup, Vinf, Vsup, u = 0, v = 0; S->Bounds(Uinf, Usup, Vinf, Vsup); @@ -869,7 +869,7 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E } } else - { // on est au 2ieme tour + { // we are on the second pass C2d = occ::down_cast(itlcu.Value()); occ::handle st = C2d->DynamicType(); if (!(st == STANDARD_TYPE(Geom2d_BSplineCurve)) && !(st == STANDARD_TYPE(Geom2d_BezierCurve))) diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_Quilt.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_Quilt.cxx index edac24b96f..343126910d 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_Quilt.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_Quilt.cxx @@ -228,7 +228,7 @@ void BRepTools_Quilt::Add(const TopoDS_Shape& S) TopoDS_Iterator ite(W, false); double UFirst, ULast; - // Reconstruction des wires. + // Reconstruction of wires. for (; ite.More(); ite.Next()) { @@ -247,11 +247,11 @@ void BRepTools_Quilt::Add(const TopoDS_Shape& S) } else { - // Si NE est REVERSED - // => les curve3d n ont pas la meme orientation. - // ( C est une convention cf BRepTools_Quilt.cdl. et la methode - // Bind.) - // => la PCurve de E sur F doit etre inversee. + // If NE is REVERSED + // => the 3D curves do not have the same orientation. + // (This is a convention, cf. BRepTools_Quilt.cdl and the Bind + // method.) + // => the PCurve of E on F must be reversed. OE = TopAbs::Reverse(OE); occ::handle CE = BRep_Tool::CurveOnSurface(E, F, UFirst, ULast); diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_TrsfModification.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_TrsfModification.cxx index 84d72abc52..2bb8cb083a 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_TrsfModification.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_TrsfModification.cxx @@ -387,7 +387,7 @@ bool BRepTools_TrsfModification::NewCurve2d(const TopoDS_Edge& E, newl = NewC->LastParameter(); } } - // il faut parfois recadrer les ranges 3d / 2d + // sometimes need to readjust the 3D / 2D ranges TopoDS_Vertex V1, V2; TopExp::Vertices(E, V1, V2); TopoDS_Shape initEFOR = E.Oriented(TopAbs_FORWARD); // skl diff --git a/src/ModelingData/TKBRep/BRepTools/BRepTools_WireExplorer.cxx b/src/ModelingData/TKBRep/BRepTools/BRepTools_WireExplorer.cxx index c4e6cc32e6..f94ce3a3fb 100644 --- a/src/ModelingData/TKBRep/BRepTools/BRepTools_WireExplorer.cxx +++ b/src/ModelingData/TKBRep/BRepTools/BRepTools_WireExplorer.cxx @@ -37,9 +37,9 @@ #include #include -//======================================================================= +//================================================================================================= // forward declarations of aux functions -//======================================================================= +//================================================================================================= static bool SelectDouble(NCollection_Map& Doubles, NCollection_List& L, TopoDS_Edge& E); diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_Curve2dSet.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_Curve2dSet.cxx index 926c4dc80c..f04393ae6d 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_Curve2dSet.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_Curve2dSet.cxx @@ -83,10 +83,10 @@ int BinTools_Curve2dSet::Index(const occ::handle& S) const return myMap.FindIndex(S); } -//======================================================================= +//================================================================================================= // function : operator << ((Geom2d_Line)& L) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& L) { @@ -98,10 +98,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& C) { @@ -114,10 +114,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& E) { @@ -131,10 +131,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& P) { @@ -147,10 +147,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& H) { @@ -164,10 +164,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& B) { @@ -186,10 +186,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& B) { @@ -222,10 +222,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& C) { @@ -236,10 +236,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& C) { diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_CurveSet.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_CurveSet.cxx index db3b6e51b9..d0640d382d 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_CurveSet.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_CurveSet.cxx @@ -85,10 +85,10 @@ int BinTools_CurveSet::Index(const occ::handle& S) const return S.IsNull() ? 0 : myMap.FindIndex(S); } -//======================================================================= +//================================================================================================= // function : operator << (Geom_Line) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& L) { @@ -99,10 +99,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& CC) { @@ -116,10 +116,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& E) { @@ -134,10 +134,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& P) { @@ -151,10 +151,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& H) { @@ -169,10 +169,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& B) { @@ -191,10 +191,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& B) { @@ -226,10 +226,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& C) { @@ -240,10 +240,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& C) { diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx index 4799017ec4..0e237987e0 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx @@ -127,10 +127,10 @@ BinTools_IStream::operator bool() const return static_cast(*myStream); } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_IStream& BinTools_IStream::operator>>(double& theValue) { if (!myStream->read((char*)&theValue, sizeof(double))) @@ -142,10 +142,10 @@ BinTools_IStream& BinTools_IStream::operator>>(double& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_IStream& BinTools_IStream::operator>>(int& theValue) { if (!myStream->read((char*)&theValue, sizeof(int))) @@ -157,10 +157,10 @@ BinTools_IStream& BinTools_IStream::operator>>(int& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_IStream& BinTools_IStream::operator>>(gp_Pnt& theValue) { double aValue; @@ -177,10 +177,10 @@ BinTools_IStream& BinTools_IStream::operator>>(gp_Pnt& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_IStream& BinTools_IStream::operator>>(uint8_t& theValue) { myStream->read((char*)&theValue, sizeof(uint8_t)); @@ -188,10 +188,10 @@ BinTools_IStream& BinTools_IStream::operator>>(uint8_t& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_IStream& BinTools_IStream::operator>>(float& theValue) { myStream->read((char*)&theValue, sizeof(float)); @@ -199,10 +199,10 @@ BinTools_IStream& BinTools_IStream::operator>>(float& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_IStream& BinTools_IStream::operator>>(gp_Trsf& theValue) { double aV1[3], aV2[3], aV3[3], aV[3]; diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_LocationSet.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_LocationSet.cxx index 1639d4c8fa..bb67d67c0c 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_LocationSet.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_LocationSet.cxx @@ -19,10 +19,10 @@ #include #include -//======================================================================= +//================================================================================================= // function : operator >> (gp_Trsf& T) // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, gp_Trsf& T) { double V1[3], V2[3], V3[3]; @@ -47,10 +47,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, gp_Trsf& T) return IS; } -//======================================================================= +//================================================================================================= // function : operator << (gp_Trsf& T) // purpose : -//======================================================================= +//================================================================================================= Standard_OStream& operator<<(Standard_OStream& OS, const gp_Trsf& T) { gp_XYZ V = T.TranslationPart(); diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx index 58ecb0995b..477d39ad2d 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx @@ -81,10 +81,10 @@ void BinTools_OStream::WriteShape(const TopAbs_ShapeEnum& theType, myPosition += sizeof(uint8_t); } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const BinTools_ObjectType& theType) { myStream->put((uint8_t)theType); @@ -92,10 +92,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const BinTools_ObjectType& theTyp return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const uint8_t& theValue) { myStream->put(theValue); @@ -103,10 +103,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const uint8_t& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const double& theValue) { #if DO_INVERSE @@ -119,10 +119,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const double& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const bool& theValue) { myStream->put((uint8_t)(theValue ? 1 : 0)); @@ -130,10 +130,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const bool& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const int& theValue) { #if DO_INVERSE @@ -146,10 +146,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const int& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const char16_t& theValue) { #if DO_INVERSE @@ -162,10 +162,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const char16_t& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt& theValue) { #if DO_INVERSE @@ -182,10 +182,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir& theValue) { #if DO_INVERSE @@ -202,10 +202,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt2d& theValue) { #if DO_INVERSE @@ -220,10 +220,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt2d& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir2d& theValue) { #if DO_INVERSE @@ -238,10 +238,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir2d& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const gp_Trsf& theValue) { gp_XYZ aTr = theValue.TranslationPart(); @@ -278,10 +278,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Trsf& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const Poly_Triangle& theValue) { theValue.Value(1); @@ -299,10 +299,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const Poly_Triangle& theValue) return *this; } -//======================================================================= +//================================================================================================= // function : operator << // purpose : -//======================================================================= +//================================================================================================= BinTools_OStream& BinTools_OStream::operator<<(const NCollection_Vec3& theValue) { #if DO_INVERSE diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_ShapeSetBase.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_ShapeSetBase.cxx index 6b9b5c6a2b..f3a2c73c9f 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_ShapeSetBase.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_ShapeSetBase.cxx @@ -22,10 +22,10 @@ const char* const BinTools_ShapeSetBase::THE_ASCII_VERSIONS[BinTools_FormatVersi "Open CASCADE Topology V3 (c)", "Open CASCADE Topology V4, (c) Open Cascade"}; -//======================================================================= +//================================================================================================= // function : operator << (gp_Pnt) // purpose : -//======================================================================= +//================================================================================================= Standard_OStream& operator<<(Standard_OStream& OS, const gp_Pnt& P) { BinTools::PutReal(OS, P.X()); diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx index db1178ccd2..1db73df684 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx @@ -84,10 +84,10 @@ int BinTools_SurfaceSet::Index(const occ::handle& S) const return myMap.FindIndex(S); } -//======================================================================= +//================================================================================================= // function : operator <<(Geom_Plane) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) { @@ -100,10 +100,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) @@ -118,10 +118,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& return OS; } -//======================================================================= +//================================================================================================= // function : operator <<(Geom_ConicalSurface) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) { @@ -136,10 +136,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) @@ -154,10 +154,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS return OS; } -//======================================================================= +//================================================================================================= // function : operator <<(Geom_ToroidalSurface) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) @@ -173,10 +173,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, return OS; } -//======================================================================= +//================================================================================================= // function : operator <<(Geom_SurfaceOfLinearExtrusion) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) @@ -187,10 +187,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& return OS; } -//======================================================================= +//================================================================================================= // function : operator <<(Geom_SurfaceOfRevolution) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) @@ -202,10 +202,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& return OS; } -//======================================================================= +//================================================================================================= // function : operator <<(Geom_BezierSurface) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) { @@ -235,10 +235,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) { @@ -290,10 +290,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) @@ -306,10 +306,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& return OS; } -//======================================================================= +//================================================================================================= // function : operator <<(Geom_OffsetSurface) // purpose : -//======================================================================= +//================================================================================================= static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle& S) { @@ -438,10 +438,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, gp_Ax3& A3) return IS; } -//======================================================================= +//================================================================================================= // function : operator>> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -451,10 +451,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -466,10 +466,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -482,10 +482,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -497,10 +497,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -513,10 +513,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -529,10 +529,10 @@ static Standard_IStream& operator>>(Standard_IStream& return IS; } -//======================================================================= +//================================================================================================= // function : operator>> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -545,10 +545,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -590,10 +590,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -668,10 +668,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -687,10 +687,10 @@ static Standard_IStream& operator>>(Standard_IStream& return IS; } -//======================================================================= +//================================================================================================= // function : operator>> // purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { diff --git a/src/ModelingData/TKBRep/GTests/TopoDS_Builder_Test.cxx b/src/ModelingData/TKBRep/GTests/TopoDS_Builder_Test.cxx index 377f123a71..cbf7bd7d6c 100644 --- a/src/ModelingData/TKBRep/GTests/TopoDS_Builder_Test.cxx +++ b/src/ModelingData/TKBRep/GTests/TopoDS_Builder_Test.cxx @@ -28,9 +28,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::MakeWire -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, MakeWire) { @@ -44,9 +44,9 @@ TEST(TopoDS_Builder_Test, MakeWire) EXPECT_TRUE(aWire.Free()) << "Newly created wire should be free"; } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::MakeShell -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, MakeShell) { @@ -59,9 +59,9 @@ TEST(TopoDS_Builder_Test, MakeShell) EXPECT_EQ(aShell.ShapeType(), TopAbs_SHELL); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::MakeSolid -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, MakeSolid) { @@ -74,9 +74,9 @@ TEST(TopoDS_Builder_Test, MakeSolid) EXPECT_EQ(aSolid.ShapeType(), TopAbs_SOLID); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::MakeCompSolid -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, MakeCompSolid) { @@ -89,9 +89,9 @@ TEST(TopoDS_Builder_Test, MakeCompSolid) EXPECT_EQ(aCompSolid.ShapeType(), TopAbs_COMPSOLID); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::MakeCompound -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, MakeCompound) { @@ -104,9 +104,9 @@ TEST(TopoDS_Builder_Test, MakeCompound) EXPECT_EQ(aCompound.ShapeType(), TopAbs_COMPOUND); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Add - add vertices to compound -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Add_VerticesToCompound) { @@ -133,9 +133,9 @@ TEST(TopoDS_Builder_Test, Add_VerticesToCompound) EXPECT_EQ(aCount, 3) << "Compound should have 3 vertices"; } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Add - add edges to wire -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Add_EdgesToWire) { @@ -163,9 +163,9 @@ TEST(TopoDS_Builder_Test, Add_EdgesToWire) EXPECT_EQ(aCount, 3) << "Wire should have 3 edges"; } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Remove -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Remove_FromCompound) { @@ -195,9 +195,9 @@ TEST(TopoDS_Builder_Test, Remove_FromCompound) EXPECT_EQ(aCount, 2) << "Compound should have 2 vertices after removal"; } -//================================================================================================== +//================================================================================================= // Test adding many shapes to compound -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Add_ManyShapes) { @@ -223,9 +223,9 @@ TEST(TopoDS_Builder_Test, Add_ManyShapes) EXPECT_EQ(aCount, 500) << "Compound should have 500 vertices"; } -//================================================================================================== +//================================================================================================= // Test TShape flags through shape interface -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, TShapeFlags) { @@ -251,9 +251,9 @@ TEST(TopoDS_Builder_Test, TShapeFlags) EXPECT_TRUE(aCompound.Convex()); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Remove first child -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Remove_FirstChild) { @@ -281,9 +281,9 @@ TEST(TopoDS_Builder_Test, Remove_FirstChild) EXPECT_EQ(aCount, 2); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Remove last child -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Remove_LastChild) { @@ -311,9 +311,9 @@ TEST(TopoDS_Builder_Test, Remove_LastChild) EXPECT_EQ(aCount, 2); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Remove all children one by one -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Remove_AllChildren) { @@ -339,9 +339,9 @@ TEST(TopoDS_Builder_Test, Remove_AllChildren) EXPECT_FALSE(anIt.More()) << "Compound should be empty after removing all children"; } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Remove from wire -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Remove_FromWire) { @@ -369,9 +369,9 @@ TEST(TopoDS_Builder_Test, Remove_FromWire) EXPECT_EQ(aCount, 2); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder with nested compounds -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, NestedCompounds) { @@ -400,9 +400,9 @@ TEST(TopoDS_Builder_Test, NestedCompounds) EXPECT_EQ(aInner.TShape()->NbChildren(), 2); } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Add sets Modified flag -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Add_SetsModifiedFlag) { @@ -419,9 +419,9 @@ TEST(TopoDS_Builder_Test, Add_SetsModifiedFlag) EXPECT_TRUE(aCompound.Modified()) << "Add should set Modified flag"; } -//================================================================================================== +//================================================================================================= // Test TopoDS_Builder::Remove sets Modified flag -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, Remove_SetsModifiedFlag) { @@ -441,9 +441,9 @@ TEST(TopoDS_Builder_Test, Remove_SetsModifiedFlag) EXPECT_TRUE(aCompound.Modified()) << "Remove should set Modified flag"; } -//================================================================================================== +//================================================================================================= // Test all shape types -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, AllTypes) { @@ -485,9 +485,9 @@ TEST(TopoDS_Builder_Test, AllTypes) EXPECT_TRUE(aCompound.Free()); } -//================================================================================================== +//================================================================================================= // Test mixed shapes in compound -//================================================================================================== +//================================================================================================= TEST(TopoDS_Builder_Test, MixedShapesInCompound) { diff --git a/src/ModelingData/TKBRep/GTests/TopoDS_TShape_Test.cxx b/src/ModelingData/TKBRep/GTests/TopoDS_TShape_Test.cxx index e430cc89b8..a9f8910855 100644 --- a/src/ModelingData/TKBRep/GTests/TopoDS_TShape_Test.cxx +++ b/src/ModelingData/TKBRep/GTests/TopoDS_TShape_Test.cxx @@ -29,9 +29,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Test TShape ShapeType() returns correct type for each shape kind -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, ShapeType_AllTypes) { @@ -65,9 +65,9 @@ TEST(TopoDS_TShape_Test, ShapeType_AllTypes) EXPECT_EQ(aCompound.TShape()->ShapeType(), TopAbs_COMPOUND); } -//================================================================================================== +//================================================================================================= // Test TShape flag setters and getters -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, FlagSettersGetters) { @@ -122,9 +122,9 @@ TEST(TopoDS_TShape_Test, FlagSettersGetters) EXPECT_TRUE(aTShape->Locked()); } -//================================================================================================== +//================================================================================================= // Test TShape NbChildren() for various shapes -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, NbChildren) { @@ -157,9 +157,9 @@ TEST(TopoDS_TShape_Test, NbChildren) EXPECT_EQ(aCompound.TShape()->NbChildren(), 10); } -//================================================================================================== +//================================================================================================= // Test TShape EmptyCopy creates same type with no children -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, EmptyCopy) { @@ -180,9 +180,9 @@ TEST(TopoDS_TShape_Test, EmptyCopy) EXPECT_EQ(aCopy->NbChildren(), 0) << "EmptyCopy should have no children"; } -//================================================================================================== +//================================================================================================= // Test TShape EmptyCopy for all shape types -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, EmptyCopy_AllTypes) { @@ -229,9 +229,9 @@ TEST(TopoDS_TShape_Test, EmptyCopy_AllTypes) } } -//================================================================================================== +//================================================================================================= // Test TShape Orientable flag for different shape types -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, Orientable_DifferentTypes) { @@ -252,9 +252,9 @@ TEST(TopoDS_TShape_Test, Orientable_DifferentTypes) EXPECT_TRUE(aWire.TShape()->Orientable()) << "Wire should be orientable"; } -//================================================================================================== +//================================================================================================= // Test TShape flags are independent -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, FlagsIndependent) { @@ -284,9 +284,9 @@ TEST(TopoDS_TShape_Test, FlagsIndependent) EXPECT_TRUE(aTShape->Locked()) << "Clearing Closed should not affect Locked"; } -//================================================================================================== +//================================================================================================= // Test NbChildren consistency with iterator -//================================================================================================== +//================================================================================================= TEST(TopoDS_TShape_Test, NbChildren_ConsistencyWithIterator) { diff --git a/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx b/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx index 8cb1c99210..f55f58fbae 100644 --- a/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx +++ b/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx @@ -233,10 +233,10 @@ static void PrintOrientation(const TopAbs_Orientation O, Standard_OStream& S, bo } } -//======================================================================= +//================================================================================================= // function : DumpExtent // purpose : Dump number of shapes. -//======================================================================= +//================================================================================================= Standard_OStream& TopTools_ShapeSet::DumpExtent(Standard_OStream& OS) const { @@ -307,10 +307,10 @@ Standard_OStream& TopTools_ShapeSet::DumpExtent(Standard_OStream& OS) const return OS; } -//======================================================================= +//================================================================================================= // function : DumpExtent // purpose : Dump number of shapes. -//======================================================================= +//================================================================================================= void TopTools_ShapeSet::DumpExtent(TCollection_AsciiString& S) const { @@ -647,7 +647,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange& if (aPS.UserBreak()) { std::cout << "Interrupted by the user" << std::endl; - // on remet le LC_NUMERIC a la precedente valeur + // restore LC_NUMERIC to the previous value IS.imbue(anOldLocale); return; } @@ -673,7 +673,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange& if (strcmp(buffer, "TShapes")) { std::cout << "Not a TShape table" << std::endl; - // on remet le LC_NUMERIC a la precedente valeur + // restore LC_NUMERIC to the previous value IS.imbue(anOldLocale); return; } @@ -723,7 +723,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange& myShapes.Add(S); } - // on remet le LC_NUMERIC a la precedente valeur + // restore LC_NUMERIC to the previous value IS.imbue(anOldLocale); if (aPS.UserBreak()) diff --git a/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.cxx b/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.cxx index 95831adb65..c88a4abe3c 100644 --- a/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.cxx +++ b/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.cxx @@ -23,7 +23,7 @@ #include #include -//================================================================================================== +//================================================================================================= void TopoDS_Builder::MakeShape(TopoDS_Shape& S, const occ::handle& T) const { @@ -32,7 +32,7 @@ void TopoDS_Builder::MakeShape(TopoDS_Shape& S, const occ::handle S.Orientation(TopAbs_FORWARD); } -//================================================================================================== +//================================================================================================= void TopoDS_Builder::Add(TopoDS_Shape& aShape, const TopoDS_Shape& aComponent) const { @@ -98,7 +98,7 @@ void TopoDS_Builder::Add(TopoDS_Shape& aShape, const TopoDS_Shape& aComponent) c } } -//================================================================================================== +//================================================================================================= void TopoDS_Builder::Remove(TopoDS_Shape& aShape, const TopoDS_Shape& aComponent) const { diff --git a/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx b/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx index 7c75377cce..a118105087 100644 --- a/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx +++ b/src/ModelingData/TKBRep/TopoDS/TopoDS_Builder.lxx @@ -25,7 +25,7 @@ #include #include -//================================================================================================== +//================================================================================================= inline void TopoDS_Builder::MakeWire(TopoDS_Wire& W) const { @@ -33,7 +33,7 @@ inline void TopoDS_Builder::MakeWire(TopoDS_Wire& W) const MakeShape(W, TW); } -//================================================================================================== +//================================================================================================= inline void TopoDS_Builder::MakeShell(TopoDS_Shell& S) const { @@ -41,7 +41,7 @@ inline void TopoDS_Builder::MakeShell(TopoDS_Shell& S) const MakeShape(S, TS); } -//================================================================================================== +//================================================================================================= inline void TopoDS_Builder::MakeSolid(TopoDS_Solid& S) const { @@ -49,7 +49,7 @@ inline void TopoDS_Builder::MakeSolid(TopoDS_Solid& S) const MakeShape(S, TS); } -//================================================================================================== +//================================================================================================= inline void TopoDS_Builder::MakeCompSolid(TopoDS_CompSolid& C) const { @@ -57,7 +57,7 @@ inline void TopoDS_Builder::MakeCompSolid(TopoDS_CompSolid& C) const MakeShape(C, TC); } -//================================================================================================== +//================================================================================================= inline void TopoDS_Builder::MakeCompound(TopoDS_Compound& C) const { diff --git a/src/ModelingData/TKBRep/TopoDS/TopoDS_Iterator.cxx b/src/ModelingData/TKBRep/TopoDS/TopoDS_Iterator.cxx index 7eadde4b25..cfc625f69c 100644 --- a/src/ModelingData/TKBRep/TopoDS/TopoDS_Iterator.cxx +++ b/src/ModelingData/TKBRep/TopoDS/TopoDS_Iterator.cxx @@ -19,7 +19,7 @@ #include #include -//================================================================================================== +//================================================================================================= void TopoDS_Iterator::Initialize(const TopoDS_Shape& S, const bool cumOri, const bool cumLoc) { @@ -48,7 +48,7 @@ void TopoDS_Iterator::Initialize(const TopoDS_Shape& S, const bool cumOri, const } } -//================================================================================================== +//================================================================================================= void TopoDS_Iterator::Next() { @@ -59,7 +59,7 @@ void TopoDS_Iterator::Next() } } -//================================================================================================== +//================================================================================================= void TopoDS_Iterator::updateCurrentShape() { diff --git a/src/ModelingData/TKG2d/GTests/Geom2dAdaptor_Curve_Test.cxx b/src/ModelingData/TKG2d/GTests/Geom2dAdaptor_Curve_Test.cxx index fcb5127f56..5fad975063 100644 --- a/src/ModelingData/TKG2d/GTests/Geom2dAdaptor_Curve_Test.cxx +++ b/src/ModelingData/TKG2d/GTests/Geom2dAdaptor_Curve_Test.cxx @@ -23,9 +23,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Test fixture for Geom2dAdaptor_Curve degenerated curve handling -//================================================================================================== +//================================================================================================= class Geom2dAdaptor_Curve_Test : public ::testing::Test { @@ -47,7 +47,7 @@ protected: occ::handle myCircle; }; -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_ValidParameters_Success) { @@ -59,7 +59,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_ValidParameters_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), 10.0); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_EqualParameters_Success) { @@ -77,7 +77,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_EqualParameters_Success) EXPECT_TRUE(aP1.IsEqual(aP2, Precision::Confusion())); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_ParametersWithinConfusion_Success) { @@ -93,7 +93,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_ParametersWithinConfusion_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam2); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_ParametersAtConfusionBoundary_Success) { @@ -108,7 +108,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_ParametersAtConfusionBoundary_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam2); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_FirstGreaterThanLastWithinConfusion_Success) { @@ -124,7 +124,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_FirstGreaterThanLastWithinConfusion_Succes EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam2); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_FirstGreaterThanLastBeyondConfusion_ThrowsException) { @@ -137,7 +137,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_FirstGreaterThanLastBeyondConfusion_Throws EXPECT_THROW(anAdaptor.Load(myLine, aParam1, aParam2), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_FirstSlightlyGreaterThanLast_ThrowsException) { @@ -149,7 +149,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_FirstSlightlyGreaterThanLast_ThrowsExcepti EXPECT_THROW(anAdaptor.Load(myLine, aParam1, aParam2), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Constructor_DegeneratedCurve_Success) { @@ -161,7 +161,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Constructor_DegeneratedCurve_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), 0.0); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Constructor_InvalidParameters_ThrowsException) { @@ -169,7 +169,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Constructor_InvalidParameters_ThrowsException) EXPECT_THROW(Geom2dAdaptor_Curve anAdaptor(myCircle, 10.0, 0.0), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, Load_NullCurve_ThrowsException) { @@ -180,7 +180,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, Load_NullCurve_ThrowsException) EXPECT_THROW(anAdaptor.Load(aNullCurve, 0.0, 10.0), Standard_NullObject); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, DegeneratedCurve_CircleAtZeroLength_Success) { @@ -198,7 +198,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, DegeneratedCurve_CircleAtZeroLength_Success) EXPECT_TRUE(anAdaptor.IsClosed() || anAdaptor.FirstParameter() == anAdaptor.LastParameter()); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, DegeneratedCurve_TrimmedCurve_Success) { @@ -213,7 +213,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, DegeneratedCurve_TrimmedCurve_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, ToleranceBoundary_NegativeCase_ThrowsException) { @@ -225,7 +225,7 @@ TEST_F(Geom2dAdaptor_Curve_Test, ToleranceBoundary_NegativeCase_ThrowsException) EXPECT_THROW(anAdaptor.Load(myLine, aParam1, aParam2), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(Geom2dAdaptor_Curve_Test, LoadWithoutParameters_Success) { diff --git a/src/ModelingData/TKG2d/GTests/Geom2dGridEval_Curve_Test.cxx b/src/ModelingData/TKG2d/GTests/Geom2dGridEval_Curve_Test.cxx index d03c0aa3d1..c5f0846685 100644 --- a/src/ModelingData/TKG2d/GTests/Geom2dGridEval_Curve_Test.cxx +++ b/src/ModelingData/TKG2d/GTests/Geom2dGridEval_Curve_Test.cxx @@ -71,9 +71,9 @@ occ::handle CreateSimpleBSpline2d() } } // namespace -//================================================================================================== +//================================================================================================= // Tests for Geom2dGridEval_Line -//================================================================================================== +//================================================================================================= TEST(Geom2dGridEval_LineTest, BasicEvaluation) { @@ -147,9 +147,9 @@ TEST(Geom2dGridEval_LineTest, DerivativeD2D3) } } -//================================================================================================== +//================================================================================================= // Tests for Geom2dGridEval_Circle -//================================================================================================== +//================================================================================================= TEST(Geom2dGridEval_CircleTest, BasicEvaluation) { @@ -247,9 +247,9 @@ TEST(Geom2dGridEval_CircleTest, DerivativeD3) } } -//================================================================================================== +//================================================================================================= // Tests for Geom2dGridEval_BSplineCurve -//================================================================================================== +//================================================================================================= TEST(Geom2dGridEval_BSplineCurveTest, BasicEvaluation) { @@ -395,9 +395,9 @@ TEST(Geom2dGridEval_BSplineCurveTest, MultiSpanBSpline) } } -//================================================================================================== +//================================================================================================= // Tests for Geom2dGridEval_Curve (unified dispatcher) -//================================================================================================== +//================================================================================================= TEST(Geom2dGridEval_CurveTest, LineDispatch) { diff --git a/src/ModelingData/TKG2d/Geom2d/Geom2d_BSplineCurve.cxx b/src/ModelingData/TKG2d/Geom2d/Geom2d_BSplineCurve.cxx index e1bfb18096..c2d877efc5 100644 --- a/src/ModelingData/TKG2d/Geom2d/Geom2d_BSplineCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2d/Geom2d_BSplineCurve.cxx @@ -14,12 +14,12 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Avril 1991 : constructeurs + methodes de lecture. -// Mai 1991 : revue des specifs + debut de realisation des classes tool => -// implementation des methodes Set et calcul du point courant. -// Juillet 1991 : voir egalement File Geom2d_BSplineCurve_1.cxx -// Juin 1992 : mise a plat des valeurs nodales - amelioration des -// performances sur calcul du point courant +// April 1991 : constructors + read methods. +// May 1991 : specification review + start of tool class implementation => +// implementation of Set methods and current point computation. +// July 1991 : see also File Geom2d_BSplineCurve_1.cxx +// June 1992 : flattening of nodal values - performance improvement +// on current point computation // RLE Aug 1993 Remove Swaps, Init methods, Remove typedefs // 14-Mar-96 : xab implemented MovePointAndTangent diff --git a/src/ModelingData/TKG2d/Geom2d/Geom2d_BezierCurve.cxx b/src/ModelingData/TKG2d/Geom2d/Geom2d_BezierCurve.cxx index 23f23bdcf3..844fc56163 100644 --- a/src/ModelingData/TKG2d/Geom2d/Geom2d_BezierCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2d/Geom2d_BezierCurve.cxx @@ -14,11 +14,11 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Passage en classe persistante - 23/01/91 -// Modif suite a la deuxieme revue de projet toolkit Geometry -23/01/91 -// Infos : -// Actuellement pour les champs de la courbe le tableau des poles est -// declare de 1 a NbPoles et le tableau des poids est declare de 1 a NbPoles +// Transition to persistent class - 23/01/91 +// Modification following the second project review of toolkit Geometry - 23/01/91 +// Notes: +// Currently for the curve fields the poles array is +// declared from 1 to NbPoles and the weights array is declared from 1 to NbPoles // Revised RLE Aug 19 1993 // Suppressed Swaps, added Init, removed typedefs diff --git a/src/ModelingData/TKG2d/Geom2d/Geom2d_Geometry.hxx b/src/ModelingData/TKG2d/Geom2d/Geom2d_Geometry.hxx index 0e8d841359..53994b24d6 100644 --- a/src/ModelingData/TKG2d/Geom2d/Geom2d_Geometry.hxx +++ b/src/ModelingData/TKG2d/Geom2d/Geom2d_Geometry.hxx @@ -103,7 +103,7 @@ public: [[nodiscard]] Standard_EXPORT occ::handle Translated(const gp_Pnt2d& P1, const gp_Pnt2d& P2) const; - Standard_EXPORT virtual occ::handle Copy() const = 0; + [[nodiscard]] Standard_EXPORT virtual occ::handle Copy() const = 0; //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const; diff --git a/src/ModelingData/TKG2d/Geom2d/Geom2d_OffsetCurve.cxx b/src/ModelingData/TKG2d/Geom2d/Geom2d_OffsetCurve.cxx index d56523f8a6..b71d8eea15 100644 --- a/src/ModelingData/TKG2d/Geom2d/Geom2d_OffsetCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2d/Geom2d_OffsetCurve.cxx @@ -44,7 +44,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Geom2d_OffsetCurve, Geom2d_Curve) static const double MyAngularToleranceForG1 = Precision::Angular(); -//================================================================================================== +//================================================================================================= void Geom2d_OffsetCurve::SetEvalRepresentation( const occ::handle& theDesc) @@ -53,18 +53,18 @@ void Geom2d_OffsetCurve::SetEvalRepresentation( myEvalRep = theDesc; } -//================================================================================================== +//================================================================================================= occ::handle Geom2d_OffsetCurve::Copy() const { return new Geom2d_OffsetCurve(*this); } -//================================================================================================== +//================================================================================================= // function : Geom2d_OffsetCurve // purpose : Basis curve cannot be an Offset curve or trimmed from // offset curve. -//================================================================================================== +//================================================================================================= Geom2d_OffsetCurve::Geom2d_OffsetCurve(const occ::handle& theCurve, const double theOffset, @@ -74,7 +74,7 @@ Geom2d_OffsetCurve::Geom2d_OffsetCurve(const occ::handle& theCurve SetBasisCurve(theCurve, isTheNotCheckC0); } -//================================================================================================== +//================================================================================================= Geom2d_OffsetCurve::Geom2d_OffsetCurve(const Geom2d_OffsetCurve& theOther) : basisCurve(occ::down_cast(theOther.basisCurve->Copy())), @@ -85,7 +85,7 @@ Geom2d_OffsetCurve::Geom2d_OffsetCurve(const Geom2d_OffsetCurve& theOther) // Deep copy basis curve without validation } -//================================================================================================== +//================================================================================================= void Geom2d_OffsetCurve::Reverse() { @@ -94,14 +94,14 @@ void Geom2d_OffsetCurve::Reverse() offsetValue = -offsetValue; } -//================================================================================================== +//================================================================================================= double Geom2d_OffsetCurve::ReversedParameter(const double U) const { return basisCurve->ReversedParameter(U); } -//================================================================================================== +//================================================================================================= void Geom2d_OffsetCurve::SetBasisCurve(const occ::handle& C, const bool isNotCheckC0) { @@ -161,7 +161,7 @@ void Geom2d_OffsetCurve::SetBasisCurve(const occ::handle& C, const } } -//================================================================================================== +//================================================================================================= void Geom2d_OffsetCurve::SetOffsetValue(const double D) { @@ -169,14 +169,14 @@ void Geom2d_OffsetCurve::SetOffsetValue(const double D) offsetValue = D; } -//================================================================================================== +//================================================================================================= occ::handle Geom2d_OffsetCurve::BasisCurve() const { return basisCurve; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2d_OffsetCurve::Continuity() const { @@ -209,7 +209,7 @@ GeomAbs_Shape Geom2d_OffsetCurve::Continuity() const return OffsetShape; } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2d_OffsetCurve::EvalD0(const double theU) const { @@ -226,7 +226,7 @@ gp_Pnt2d Geom2d_OffsetCurve::EvalD0(const double theU) const return aValue; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD1 Geom2d_OffsetCurve::EvalD1(const double theU) const { @@ -244,7 +244,7 @@ Geom2d_Curve::ResD1 Geom2d_OffsetCurve::EvalD1(const double theU) const return Geom2d_Curve::ResD1{aValue, aD1}; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD2 Geom2d_OffsetCurve::EvalD2(const double theU) const { @@ -276,7 +276,7 @@ Geom2d_Curve::ResD2 Geom2d_OffsetCurve::EvalD2(const double theU) const return Geom2d_Curve::ResD2{aValue, aD1, aD2}; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD3 Geom2d_OffsetCurve::EvalD3(const double theU) const { @@ -315,7 +315,7 @@ Geom2d_Curve::ResD3 Geom2d_OffsetCurve::EvalD3(const double theU) const return Geom2d_Curve::ResD3{aValue, aD1, aD2, aD3}; } -//================================================================================================== +//================================================================================================= gp_Vec2d Geom2d_OffsetCurve::EvalDN(const double U, const int N) const { @@ -342,28 +342,28 @@ gp_Vec2d Geom2d_OffsetCurve::EvalDN(const double U, const int N) const } } -//================================================================================================== +//================================================================================================= double Geom2d_OffsetCurve::FirstParameter() const { return basisCurve->FirstParameter(); } -//================================================================================================== +//================================================================================================= double Geom2d_OffsetCurve::LastParameter() const { return basisCurve->LastParameter(); } -//================================================================================================== +//================================================================================================= double Geom2d_OffsetCurve::Offset() const { return offsetValue; } -//================================================================================================== +//================================================================================================= bool Geom2d_OffsetCurve::IsClosed() const { @@ -373,7 +373,7 @@ bool Geom2d_OffsetCurve::IsClosed() const return PF.SquareDistance(PL) <= Precision::Computational(); } -//================================================================================================== +//================================================================================================= bool Geom2d_OffsetCurve::IsCN(const int N) const { @@ -381,21 +381,21 @@ bool Geom2d_OffsetCurve::IsCN(const int N) const return basisCurve->IsCN(N + 1); } -//================================================================================================== +//================================================================================================= bool Geom2d_OffsetCurve::IsPeriodic() const { return basisCurve->IsPeriodic(); } -//================================================================================================== +//================================================================================================= double Geom2d_OffsetCurve::Period() const { return basisCurve->Period(); } -//================================================================================================== +//================================================================================================= void Geom2d_OffsetCurve::Transform(const gp_Trsf2d& T) { @@ -404,28 +404,28 @@ void Geom2d_OffsetCurve::Transform(const gp_Trsf2d& T) offsetValue *= std::abs(T.ScaleFactor()); } -//================================================================================================== +//================================================================================================= double Geom2d_OffsetCurve::TransformedParameter(const double U, const gp_Trsf2d& T) const { return basisCurve->TransformedParameter(U, T); } -//================================================================================================== +//================================================================================================= double Geom2d_OffsetCurve::ParametricTransformation(const gp_Trsf2d& T) const { return basisCurve->ParametricTransformation(T); } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2d_OffsetCurve::GetBasisCurveContinuity() const { return myBasisCurveContinuity; } -//================================================================================================== +//================================================================================================= void Geom2d_OffsetCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG2d/Geom2d/Geom2d_Transformation.hxx b/src/ModelingData/TKG2d/Geom2d/Geom2d_Transformation.hxx index be1b875cbb..a9407b7a33 100644 --- a/src/ModelingData/TKG2d/Geom2d/Geom2d_Transformation.hxx +++ b/src/ModelingData/TKG2d/Geom2d/Geom2d_Transformation.hxx @@ -188,7 +188,7 @@ public: Standard_EXPORT void Transforms(double& X, double& Y) const; //! Creates a new object, which is a copy of this transformation. - Standard_EXPORT occ::handle Copy() const; + [[nodiscard]] Standard_EXPORT occ::handle Copy() const; DEFINE_STANDARD_RTTIEXT(Geom2d_Transformation, Standard_Transient) diff --git a/src/ModelingData/TKG2d/Geom2dAdaptor/Geom2dAdaptor_Curve.cxx b/src/ModelingData/TKG2d/Geom2dAdaptor/Geom2dAdaptor_Curve.cxx index 2c159106c1..4a99b7940a 100644 --- a/src/ModelingData/TKG2d/Geom2dAdaptor/Geom2dAdaptor_Curve.cxx +++ b/src/ModelingData/TKG2d/Geom2dAdaptor/Geom2dAdaptor_Curve.cxx @@ -15,8 +15,8 @@ // commercial license or contractual agreement. // 20/02/97 : PMN -> Positionement local sur BSpline (PRO6902) -// 10/07/97 : PMN -> Pas de calcul de resolution dans Nb(Intervals) (PRO9248) -// 20/10/97 : JPI -> traitement des offset curves +// 10/07/97 : PMN -> No resolution calculation in Nb(Intervals) (PRO9248) +// 20/10/97 : JPI -> handling of offset curves #define No_Standard_RangeError #define No_Standard_OutOfRange @@ -178,13 +178,13 @@ GeomAbs_Shape Geom2dAdaptor_Curve::LocalContinuity(const double U1, const double if (std::abs(newLast - TK(Index2)) < Precision::PConfusion()) Index2--; int MultMax; - // attention aux courbes peridiques. + // beware of periodic curves. if (aBSpline->IsPeriodic() && Index1 == Nb) Index1 = 1; if ((Index2 - Index1 <= 0) && (!aBSpline->IsPeriodic())) { - MultMax = 100; // CN entre 2 Noeuds consecutifs + MultMax = 100; // CN between 2 consecutive nodes } else { diff --git a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_AHTBezierCurve.cxx b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_AHTBezierCurve.cxx index d48a75ea79..0ad50b1019 100644 --- a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_AHTBezierCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_AHTBezierCurve.cxx @@ -363,14 +363,14 @@ void evalMixedAHT(const NCollection_Array1& thePoles, } } // namespace -//================================================================================================== +//================================================================================================= int Geom2dEval_AHTBezierCurve::basisDimension(int theAlgDegree, double theAlpha, double theBeta) { return theAlgDegree + 1 + (theAlpha > 0.0 ? 2 : 0) + (theBeta > 0.0 ? 2 : 0); } -//================================================================================================== +//================================================================================================= Geom2dEval_AHTBezierCurve::Geom2dEval_AHTBezierCurve(const NCollection_Array1& thePoles, int theAlgDegree, @@ -403,7 +403,7 @@ Geom2dEval_AHTBezierCurve::Geom2dEval_AHTBezierCurve(const NCollection_Array1& thePoles, const NCollection_Array1& theWeights, @@ -449,77 +449,77 @@ Geom2dEval_AHTBezierCurve::Geom2dEval_AHTBezierCurve(const NCollection_Array1& Geom2dEval_AHTBezierCurve::Poles() const { return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Geom2dEval_AHTBezierCurve::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= int Geom2dEval_AHTBezierCurve::AlgDegree() const { return myAlgDegree; } -//================================================================================================== +//================================================================================================= double Geom2dEval_AHTBezierCurve::Alpha() const { return myAlpha; } -//================================================================================================== +//================================================================================================= double Geom2dEval_AHTBezierCurve::Beta() const { return myBeta; } -//================================================================================================== +//================================================================================================= int Geom2dEval_AHTBezierCurve::NbPoles() const { return myPoles.Size(); } -//================================================================================================== +//================================================================================================= bool Geom2dEval_AHTBezierCurve::IsRational() const { return myRational; } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_AHTBezierCurve::StartPoint() const { return EvalD0(0.0); } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_AHTBezierCurve::EndPoint() const { return EvalD0(1.0); } -//================================================================================================== +//================================================================================================= void Geom2dEval_AHTBezierCurve::Reverse() { throw Standard_NotImplemented("Geom2dEval_AHTBezierCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_AHTBezierCurve::ReversedParameter(const double U) const { @@ -527,49 +527,49 @@ double Geom2dEval_AHTBezierCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("Geom2dEval_AHTBezierCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_AHTBezierCurve::FirstParameter() const { return 0.0; } -//================================================================================================== +//================================================================================================= double Geom2dEval_AHTBezierCurve::LastParameter() const { return 1.0; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_AHTBezierCurve::IsClosed() const { return StartPoint().Distance(EndPoint()) <= Precision::Confusion(); } -//================================================================================================== +//================================================================================================= bool Geom2dEval_AHTBezierCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2dEval_AHTBezierCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_AHTBezierCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= void Geom2dEval_AHTBezierCurve::evalBasis(double theT, NCollection_Array1& theBasis) const { @@ -601,7 +601,7 @@ void Geom2dEval_AHTBezierCurve::evalBasis(double theT, NCollection_Array1 Geom2dEval_AHTBezierCurve::Copy() const { @@ -1078,7 +1078,7 @@ occ::handle Geom2dEval_AHTBezierCurve::Copy() const return new Geom2dEval_AHTBezierCurve(myPoles, myAlgDegree, myAlpha, myBeta); } -//================================================================================================== +//================================================================================================= void Geom2dEval_AHTBezierCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_ArchimedeanSpiralCurve.cxx b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_ArchimedeanSpiralCurve.cxx index 3395633ef9..7f2cbea01c 100644 --- a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_ArchimedeanSpiralCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_ArchimedeanSpiralCurve.cxx @@ -55,7 +55,7 @@ inline void trigShiftByQuarterTurns(const double theSin, } } // namespace -//================================================================================================== +//================================================================================================= Geom2dEval_ArchimedeanSpiralCurve::Geom2dEval_ArchimedeanSpiralCurve(const gp_Ax2d& thePosition, double theInitialRadius, @@ -75,35 +75,35 @@ Geom2dEval_ArchimedeanSpiralCurve::Geom2dEval_ArchimedeanSpiralCurve(const gp_Ax } } -//================================================================================================== +//================================================================================================= const gp_Ax2d& Geom2dEval_ArchimedeanSpiralCurve::Position() const { return myPosition; } -//================================================================================================== +//================================================================================================= double Geom2dEval_ArchimedeanSpiralCurve::InitialRadius() const { return myInitialRadius; } -//================================================================================================== +//================================================================================================= double Geom2dEval_ArchimedeanSpiralCurve::GrowthRate() const { return myGrowthRate; } -//================================================================================================== +//================================================================================================= void Geom2dEval_ArchimedeanSpiralCurve::Reverse() { throw Standard_NotImplemented("Geom2dEval_ArchimedeanSpiralCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_ArchimedeanSpiralCurve::ReversedParameter(const double U) const { @@ -111,49 +111,49 @@ double Geom2dEval_ArchimedeanSpiralCurve::ReversedParameter(const double U) cons throw Standard_NotImplemented("Geom2dEval_ArchimedeanSpiralCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_ArchimedeanSpiralCurve::FirstParameter() const { return 0.0; } -//================================================================================================== +//================================================================================================= double Geom2dEval_ArchimedeanSpiralCurve::LastParameter() const { return Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool Geom2dEval_ArchimedeanSpiralCurve::IsClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_ArchimedeanSpiralCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2dEval_ArchimedeanSpiralCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_ArchimedeanSpiralCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_ArchimedeanSpiralCurve::EvalD0(const double U) const { @@ -168,7 +168,7 @@ gp_Pnt2d Geom2dEval_ArchimedeanSpiralCurve::EvalD0(const double U) const return gp_Pnt2d(anO + aR * aCosU * aXD + aR * aSinU * aYD); } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD1 Geom2dEval_ArchimedeanSpiralCurve::EvalD1(const double U) const { @@ -190,7 +190,7 @@ Geom2d_Curve::ResD1 Geom2dEval_ArchimedeanSpiralCurve::EvalD1(const double U) co return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD2 Geom2dEval_ArchimedeanSpiralCurve::EvalD2(const double U) const { @@ -214,7 +214,7 @@ Geom2d_Curve::ResD2 Geom2dEval_ArchimedeanSpiralCurve::EvalD2(const double U) co return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD3 Geom2dEval_ArchimedeanSpiralCurve::EvalD3(const double U) const { @@ -240,7 +240,7 @@ Geom2d_Curve::ResD3 Geom2dEval_ArchimedeanSpiralCurve::EvalD3(const double U) co return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec2d Geom2dEval_ArchimedeanSpiralCurve::EvalDN(const double U, const int N) const { @@ -277,7 +277,7 @@ gp_Vec2d Geom2dEval_ArchimedeanSpiralCurve::EvalDN(const double U, const int N) return gp_Vec2d(aCoeffX * aXD + aCoeffY * aYD); } -//================================================================================================== +//================================================================================================= void Geom2dEval_ArchimedeanSpiralCurve::Transform(const gp_Trsf2d& T) { @@ -285,14 +285,14 @@ void Geom2dEval_ArchimedeanSpiralCurve::Transform(const gp_Trsf2d& T) throw Standard_NotImplemented("Geom2dEval_ArchimedeanSpiralCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle Geom2dEval_ArchimedeanSpiralCurve::Copy() const { return new Geom2dEval_ArchimedeanSpiralCurve(myPosition, myInitialRadius, myGrowthRate); } -//================================================================================================== +//================================================================================================= void Geom2dEval_ArchimedeanSpiralCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_CircleInvoluteCurve.cxx b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_CircleInvoluteCurve.cxx index f768973467..919541de9a 100644 --- a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_CircleInvoluteCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_CircleInvoluteCurve.cxx @@ -55,7 +55,7 @@ inline void trigShiftByQuarterTurns(const double theSin, } } // namespace -//================================================================================================== +//================================================================================================= Geom2dEval_CircleInvoluteCurve::Geom2dEval_CircleInvoluteCurve(const gp_Ax2d& thePosition, double theRadius) @@ -68,28 +68,28 @@ Geom2dEval_CircleInvoluteCurve::Geom2dEval_CircleInvoluteCurve(const gp_Ax2d& th } } -//================================================================================================== +//================================================================================================= const gp_Ax2d& Geom2dEval_CircleInvoluteCurve::Position() const { return myPosition; } -//================================================================================================== +//================================================================================================= double Geom2dEval_CircleInvoluteCurve::Radius() const { return myRadius; } -//================================================================================================== +//================================================================================================= void Geom2dEval_CircleInvoluteCurve::Reverse() { throw Standard_NotImplemented("Geom2dEval_CircleInvoluteCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_CircleInvoluteCurve::ReversedParameter(const double U) const { @@ -97,49 +97,49 @@ double Geom2dEval_CircleInvoluteCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("Geom2dEval_CircleInvoluteCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_CircleInvoluteCurve::FirstParameter() const { return 0.0; } -//================================================================================================== +//================================================================================================= double Geom2dEval_CircleInvoluteCurve::LastParameter() const { return Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool Geom2dEval_CircleInvoluteCurve::IsClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_CircleInvoluteCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2dEval_CircleInvoluteCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_CircleInvoluteCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_CircleInvoluteCurve::EvalD0(const double U) const { @@ -155,7 +155,7 @@ gp_Pnt2d Geom2dEval_CircleInvoluteCurve::EvalD0(const double U) const + myRadius * (aSinU - U * aCosU) * aYD); } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD1 Geom2dEval_CircleInvoluteCurve::EvalD1(const double U) const { @@ -176,7 +176,7 @@ Geom2d_Curve::ResD1 Geom2dEval_CircleInvoluteCurve::EvalD1(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD2 Geom2dEval_CircleInvoluteCurve::EvalD2(const double U) const { @@ -200,7 +200,7 @@ Geom2d_Curve::ResD2 Geom2dEval_CircleInvoluteCurve::EvalD2(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD3 Geom2dEval_CircleInvoluteCurve::EvalD3(const double U) const { @@ -227,7 +227,7 @@ Geom2d_Curve::ResD3 Geom2dEval_CircleInvoluteCurve::EvalD3(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec2d Geom2dEval_CircleInvoluteCurve::EvalDN(const double U, const int N) const { @@ -274,7 +274,7 @@ gp_Vec2d Geom2dEval_CircleInvoluteCurve::EvalDN(const double U, const int N) con return gp_Vec2d(myRadius * aFN * aXD + myRadius * aGN * aYD); } -//================================================================================================== +//================================================================================================= void Geom2dEval_CircleInvoluteCurve::Transform(const gp_Trsf2d& T) { @@ -282,14 +282,14 @@ void Geom2dEval_CircleInvoluteCurve::Transform(const gp_Trsf2d& T) throw Standard_NotImplemented("Geom2dEval_CircleInvoluteCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle Geom2dEval_CircleInvoluteCurve::Copy() const { return new Geom2dEval_CircleInvoluteCurve(myPosition, myRadius); } -//================================================================================================== +//================================================================================================= void Geom2dEval_CircleInvoluteCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_LogarithmicSpiralCurve.cxx b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_LogarithmicSpiralCurve.cxx index 012f75f015..1edec49846 100644 --- a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_LogarithmicSpiralCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_LogarithmicSpiralCurve.cxx @@ -59,7 +59,7 @@ inline void powComplexInt(const double theBaseRe, } } // namespace -//================================================================================================== +//================================================================================================= Geom2dEval_LogarithmicSpiralCurve::Geom2dEval_LogarithmicSpiralCurve(const gp_Ax2d& thePosition, double theScale, @@ -79,35 +79,35 @@ Geom2dEval_LogarithmicSpiralCurve::Geom2dEval_LogarithmicSpiralCurve(const gp_Ax } } -//================================================================================================== +//================================================================================================= const gp_Ax2d& Geom2dEval_LogarithmicSpiralCurve::Position() const { return myPosition; } -//================================================================================================== +//================================================================================================= double Geom2dEval_LogarithmicSpiralCurve::Scale() const { return myScale; } -//================================================================================================== +//================================================================================================= double Geom2dEval_LogarithmicSpiralCurve::GrowthExponent() const { return myGrowthExponent; } -//================================================================================================== +//================================================================================================= void Geom2dEval_LogarithmicSpiralCurve::Reverse() { throw Standard_NotImplemented("Geom2dEval_LogarithmicSpiralCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_LogarithmicSpiralCurve::ReversedParameter(const double U) const { @@ -115,49 +115,49 @@ double Geom2dEval_LogarithmicSpiralCurve::ReversedParameter(const double U) cons throw Standard_NotImplemented("Geom2dEval_LogarithmicSpiralCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_LogarithmicSpiralCurve::FirstParameter() const { return -Precision::Infinite(); } -//================================================================================================== +//================================================================================================= double Geom2dEval_LogarithmicSpiralCurve::LastParameter() const { return Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool Geom2dEval_LogarithmicSpiralCurve::IsClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_LogarithmicSpiralCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2dEval_LogarithmicSpiralCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_LogarithmicSpiralCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_LogarithmicSpiralCurve::EvalD0(const double U) const { @@ -172,7 +172,7 @@ gp_Pnt2d Geom2dEval_LogarithmicSpiralCurve::EvalD0(const double U) const return gp_Pnt2d(anO + aExp * aCosU * aXD + aExp * aSinU * aYD); } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD1 Geom2dEval_LogarithmicSpiralCurve::EvalD1(const double U) const { @@ -194,7 +194,7 @@ Geom2d_Curve::ResD1 Geom2dEval_LogarithmicSpiralCurve::EvalD1(const double U) co return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD2 Geom2dEval_LogarithmicSpiralCurve::EvalD2(const double U) const { @@ -220,7 +220,7 @@ Geom2d_Curve::ResD2 Geom2dEval_LogarithmicSpiralCurve::EvalD2(const double U) co return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD3 Geom2dEval_LogarithmicSpiralCurve::EvalD3(const double U) const { @@ -249,7 +249,7 @@ Geom2d_Curve::ResD3 Geom2dEval_LogarithmicSpiralCurve::EvalD3(const double U) co return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec2d Geom2dEval_LogarithmicSpiralCurve::EvalDN(const double U, const int N) const { @@ -291,7 +291,7 @@ gp_Vec2d Geom2dEval_LogarithmicSpiralCurve::EvalDN(const double U, const int N) return gp_Vec2d(aScale * aCoeffX * aXD + aScale * aCoeffY * aYD); } -//================================================================================================== +//================================================================================================= void Geom2dEval_LogarithmicSpiralCurve::Transform(const gp_Trsf2d& T) { @@ -299,14 +299,14 @@ void Geom2dEval_LogarithmicSpiralCurve::Transform(const gp_Trsf2d& T) throw Standard_NotImplemented("Geom2dEval_LogarithmicSpiralCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle Geom2dEval_LogarithmicSpiralCurve::Copy() const { return new Geom2dEval_LogarithmicSpiralCurve(myPosition, myScale, myGrowthExponent); } -//================================================================================================== +//================================================================================================= void Geom2dEval_LogarithmicSpiralCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_RepUtils.pxx b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_RepUtils.pxx index 975235116b..12bead0d1a 100644 --- a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_RepUtils.pxx +++ b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_RepUtils.pxx @@ -63,7 +63,7 @@ void ValidateCurveDesc(const occ::handle& theDesc const Geom2d_Curve* theOwner); } // namespace Geom2dEval_RepUtils -//================================================================================================== +//================================================================================================= inline void Geom2dEval_RepUtils::ValidateCurveDesc( const occ::handle& theDesc, @@ -91,7 +91,7 @@ inline void Geom2dEval_RepUtils::ValidateCurveDesc( } } -//================================================================================================== +//================================================================================================= inline occ::handle Geom2dEval_RepUtils::CloneCurveDesc( const occ::handle& theDesc) @@ -136,7 +136,7 @@ inline occ::handle Geom2dEval_RepUtils::CloneCurv return occ::handle(); } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD0( const occ::handle& theDesc, @@ -163,7 +163,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD0( return false; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD1( const occ::handle& theDesc, @@ -202,7 +202,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD1( return false; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD2( const occ::handle& theDesc, @@ -241,7 +241,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD2( return false; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD3( const occ::handle& theDesc, @@ -280,7 +280,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD3( return false; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveDN( const occ::handle& theDesc, @@ -320,7 +320,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveDN( return false; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD0Mapped( const Geom2dEval_RepCurveDesc::Mapped& theDesc, @@ -337,7 +337,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD0Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD1Mapped( const Geom2dEval_RepCurveDesc::Mapped& theDesc, @@ -358,7 +358,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD1Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD2Mapped( const Geom2dEval_RepCurveDesc::Mapped& theDesc, @@ -381,7 +381,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD2Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveD3Mapped( const Geom2dEval_RepCurveDesc::Mapped& theDesc, @@ -406,7 +406,7 @@ inline bool Geom2dEval_RepUtils::TryEvalCurveD3Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool Geom2dEval_RepUtils::TryEvalCurveDNMapped( const Geom2dEval_RepCurveDesc::Mapped& theDesc, diff --git a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_SineWaveCurve.cxx b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_SineWaveCurve.cxx index 49effbfeb0..733bda3cdf 100644 --- a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_SineWaveCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_SineWaveCurve.cxx @@ -53,7 +53,7 @@ inline double sinShiftByQuarterTurns(const double theSin, const double theCos, c } } // namespace -//================================================================================================== +//================================================================================================= Geom2dEval_SineWaveCurve::Geom2dEval_SineWaveCurve(const gp_Ax2d& thePosition, double theAmplitude, @@ -74,42 +74,42 @@ Geom2dEval_SineWaveCurve::Geom2dEval_SineWaveCurve(const gp_Ax2d& thePosition, } } -//================================================================================================== +//================================================================================================= const gp_Ax2d& Geom2dEval_SineWaveCurve::Position() const { return myPosition; } -//================================================================================================== +//================================================================================================= double Geom2dEval_SineWaveCurve::Amplitude() const { return myAmplitude; } -//================================================================================================== +//================================================================================================= double Geom2dEval_SineWaveCurve::Omega() const { return myOmega; } -//================================================================================================== +//================================================================================================= double Geom2dEval_SineWaveCurve::Phase() const { return myPhase; } -//================================================================================================== +//================================================================================================= void Geom2dEval_SineWaveCurve::Reverse() { throw Standard_NotImplemented("Geom2dEval_SineWaveCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_SineWaveCurve::ReversedParameter(const double U) const { @@ -117,49 +117,49 @@ double Geom2dEval_SineWaveCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("Geom2dEval_SineWaveCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_SineWaveCurve::FirstParameter() const { return -Precision::Infinite(); } -//================================================================================================== +//================================================================================================= double Geom2dEval_SineWaveCurve::LastParameter() const { return Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool Geom2dEval_SineWaveCurve::IsClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_SineWaveCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2dEval_SineWaveCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_SineWaveCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_SineWaveCurve::EvalD0(const double U) const { @@ -172,7 +172,7 @@ gp_Pnt2d Geom2dEval_SineWaveCurve::EvalD0(const double U) const return gp_Pnt2d(anO + U * aXD + myAmplitude * std::sin(aArg) * aYD); } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD1 Geom2dEval_SineWaveCurve::EvalD1(const double U) const { @@ -189,7 +189,7 @@ Geom2d_Curve::ResD1 Geom2dEval_SineWaveCurve::EvalD1(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD2 Geom2dEval_SineWaveCurve::EvalD2(const double U) const { @@ -208,7 +208,7 @@ Geom2d_Curve::ResD2 Geom2dEval_SineWaveCurve::EvalD2(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD3 Geom2dEval_SineWaveCurve::EvalD3(const double U) const { @@ -229,7 +229,7 @@ Geom2d_Curve::ResD3 Geom2dEval_SineWaveCurve::EvalD3(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec2d Geom2dEval_SineWaveCurve::EvalDN(const double U, const int N) const { @@ -256,7 +256,7 @@ gp_Vec2d Geom2dEval_SineWaveCurve::EvalDN(const double U, const int N) const return gp_Vec2d(aResult); } -//================================================================================================== +//================================================================================================= void Geom2dEval_SineWaveCurve::Transform(const gp_Trsf2d& T) { @@ -264,14 +264,14 @@ void Geom2dEval_SineWaveCurve::Transform(const gp_Trsf2d& T) throw Standard_NotImplemented("Geom2dEval_SineWaveCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle Geom2dEval_SineWaveCurve::Copy() const { return new Geom2dEval_SineWaveCurve(myPosition, myAmplitude, myOmega, myPhase); } -//================================================================================================== +//================================================================================================= void Geom2dEval_SineWaveCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_TBezierCurve.cxx b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_TBezierCurve.cxx index 1326a98119..18c44b07ee 100644 --- a/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_TBezierCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dEval/Geom2dEval_TBezierCurve.cxx @@ -203,7 +203,7 @@ void evalCurveBasis(const NCollection_Array1& thePoles, } } // namespace -//================================================================================================== +//================================================================================================= Geom2dEval_TBezierCurve::Geom2dEval_TBezierCurve(const NCollection_Array1& thePoles, double theAlpha) @@ -223,7 +223,7 @@ Geom2dEval_TBezierCurve::Geom2dEval_TBezierCurve(const NCollection_Array1& thePoles, const NCollection_Array1& theWeights, @@ -256,70 +256,70 @@ Geom2dEval_TBezierCurve::Geom2dEval_TBezierCurve(const NCollection_Array1& Geom2dEval_TBezierCurve::Poles() const { return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& Geom2dEval_TBezierCurve::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= double Geom2dEval_TBezierCurve::Alpha() const { return myAlpha; } -//================================================================================================== +//================================================================================================= int Geom2dEval_TBezierCurve::NbPoles() const { return myPoles.Size(); } -//================================================================================================== +//================================================================================================= int Geom2dEval_TBezierCurve::Order() const { return (myPoles.Size() - 1) / 2; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_TBezierCurve::IsRational() const { return myRational; } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_TBezierCurve::StartPoint() const { return EvalD0(0.0); } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_TBezierCurve::EndPoint() const { return EvalD0(M_PI / myAlpha); } -//================================================================================================== +//================================================================================================= void Geom2dEval_TBezierCurve::Reverse() { throw Standard_NotImplemented("Geom2dEval_TBezierCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_TBezierCurve::ReversedParameter(const double U) const { @@ -327,49 +327,49 @@ double Geom2dEval_TBezierCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("Geom2dEval_TBezierCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double Geom2dEval_TBezierCurve::FirstParameter() const { return 0.0; } -//================================================================================================== +//================================================================================================= double Geom2dEval_TBezierCurve::LastParameter() const { return M_PI / myAlpha; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_TBezierCurve::IsClosed() const { return StartPoint().Distance(EndPoint()) <= Precision::Confusion(); } -//================================================================================================== +//================================================================================================= bool Geom2dEval_TBezierCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom2dEval_TBezierCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool Geom2dEval_TBezierCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= void Geom2dEval_TBezierCurve::evalBasis(double theT, NCollection_Array1& theBasis) const { @@ -402,7 +402,7 @@ void Geom2dEval_TBezierCurve::evalBasis(double theT, NCollection_Array1& } } -//================================================================================================== +//================================================================================================= void Geom2dEval_TBezierCurve::evalBasisDeriv(double theT, int theDerivOrder, @@ -447,7 +447,7 @@ void Geom2dEval_TBezierCurve::evalBasisDeriv(double theT, } } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_TBezierCurve::evalNonRationalPoint( const NCollection_Array1& theBasis) const @@ -463,7 +463,7 @@ gp_Pnt2d Geom2dEval_TBezierCurve::evalNonRationalPoint( return gp_Pnt2d(aSum); } -//================================================================================================== +//================================================================================================= gp_Vec2d Geom2dEval_TBezierCurve::evalNonRationalDeriv( const NCollection_Array1& theBasisDeriv) const @@ -479,7 +479,7 @@ gp_Vec2d Geom2dEval_TBezierCurve::evalNonRationalDeriv( return gp_Vec2d(aSum); } -//================================================================================================== +//================================================================================================= gp_Pnt2d Geom2dEval_TBezierCurve::EvalD0(const double U) const { @@ -494,7 +494,7 @@ gp_Pnt2d Geom2dEval_TBezierCurve::EvalD0(const double U) const return gp_Pnt2d(aData.N0 / aData.W0); } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD1 Geom2dEval_TBezierCurve::EvalD1(const double U) const { @@ -516,7 +516,7 @@ Geom2d_Curve::ResD1 Geom2dEval_TBezierCurve::EvalD1(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD2 Geom2dEval_TBezierCurve::EvalD2(const double U) const { @@ -543,7 +543,7 @@ Geom2d_Curve::ResD2 Geom2dEval_TBezierCurve::EvalD2(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom2d_Curve::ResD3 Geom2dEval_TBezierCurve::EvalD3(const double U) const { @@ -574,7 +574,7 @@ Geom2d_Curve::ResD3 Geom2dEval_TBezierCurve::EvalD3(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec2d Geom2dEval_TBezierCurve::EvalDN(const double U, const int N) const { @@ -704,7 +704,7 @@ gp_Vec2d Geom2dEval_TBezierCurve::EvalDN(const double U, const int N) const return gp_Vec2d(aCDerivs.Value(N)); } -//================================================================================================== +//================================================================================================= void Geom2dEval_TBezierCurve::Transform(const gp_Trsf2d& T) { @@ -712,7 +712,7 @@ void Geom2dEval_TBezierCurve::Transform(const gp_Trsf2d& T) throw Standard_NotImplemented("Geom2dEval_TBezierCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle Geom2dEval_TBezierCurve::Copy() const { @@ -723,7 +723,7 @@ occ::handle Geom2dEval_TBezierCurve::Copy() const return new Geom2dEval_TBezierCurve(myPoles, myAlpha); } -//================================================================================================== +//================================================================================================= void Geom2dEval_TBezierCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BSplineCurve.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BSplineCurve.cxx index 122a7bef4e..c09fdeeeee 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BSplineCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BSplineCurve.cxx @@ -179,7 +179,7 @@ NCollection_Array1 evaluateGridCached(const CurveData& } // namespace -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BSplineCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -209,7 +209,7 @@ NCollection_Array1 Geom2dGridEval_BSplineCurve::EvaluateGrid( }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BSplineCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -245,7 +245,7 @@ NCollection_Array1 Geom2dGridEval_BSplineCurve::Evaluat }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BSplineCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -282,7 +282,7 @@ NCollection_Array1 Geom2dGridEval_BSplineCurve::Evaluat }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BSplineCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -320,7 +320,7 @@ NCollection_Array1 Geom2dGridEval_BSplineCurve::Evaluat }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BSplineCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BezierCurve.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BezierCurve.cxx index 7938a977ad..6446520f8d 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BezierCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_BezierCurve.cxx @@ -35,7 +35,7 @@ occ::handle CreateBezierCache2d(const occ::handle Geom2dGridEval_BezierCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -59,7 +59,7 @@ NCollection_Array1 Geom2dGridEval_BezierCurve::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BezierCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -84,7 +84,7 @@ NCollection_Array1 Geom2dGridEval_BezierCurve::Evaluate return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BezierCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -109,7 +109,7 @@ NCollection_Array1 Geom2dGridEval_BezierCurve::Evaluate return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BezierCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -134,7 +134,7 @@ NCollection_Array1 Geom2dGridEval_BezierCurve::Evaluate return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_BezierCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Circle.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Circle.cxx index d45ca63ca3..54cde768d8 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Circle.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Circle.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Circle::EvaluateGrid( const NCollection_Array1& theParams) const @@ -58,7 +58,7 @@ NCollection_Array1 Geom2dGridEval_Circle::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Circle::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -100,7 +100,7 @@ NCollection_Array1 Geom2dGridEval_Circle::EvaluateGridD return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Circle::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -144,7 +144,7 @@ NCollection_Array1 Geom2dGridEval_Circle::EvaluateGridD return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Circle::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -190,7 +190,7 @@ NCollection_Array1 Geom2dGridEval_Circle::EvaluateGridD return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Circle::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Curve.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Curve.cxx index 8ed4c1513c..43fbf7dd62 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Curve.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Curve.cxx @@ -42,7 +42,7 @@ occ::handle ExtractBasisCurve(const occ::handle& the } // namespace -//================================================================================================== +//================================================================================================= Geom2dGridEval_Curve::Geom2dGridEval_Curve(const Adaptor2d_Curve2d& theCurve) : myEvaluator(std::monostate{}), @@ -51,7 +51,7 @@ Geom2dGridEval_Curve::Geom2dGridEval_Curve(const Adaptor2d_Curve2d& theCurve) initialization(theCurve); } -//================================================================================================== +//================================================================================================= Geom2dGridEval_Curve::Geom2dGridEval_Curve(const occ::handle& theCurve) : myEvaluator(std::monostate{}), @@ -60,7 +60,7 @@ Geom2dGridEval_Curve::Geom2dGridEval_Curve(const occ::handle& theC initialization(theCurve); } -//================================================================================================== +//================================================================================================= void Geom2dGridEval_Curve::initialization(const Adaptor2d_Curve2d& theCurve) { @@ -76,7 +76,7 @@ void Geom2dGridEval_Curve::initialization(const Adaptor2d_Curve2d& theCurve) myEvaluator.emplace(theCurve); } -//================================================================================================== +//================================================================================================= void Geom2dGridEval_Curve::initialization(const occ::handle& theCurve) { @@ -138,7 +138,7 @@ void Geom2dGridEval_Curve::initialization(const occ::handle& theCu } } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Curve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -158,7 +158,7 @@ NCollection_Array1 Geom2dGridEval_Curve::EvaluateGrid( myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Curve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -178,7 +178,7 @@ NCollection_Array1 Geom2dGridEval_Curve::EvaluateGridD1 myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Curve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -198,7 +198,7 @@ NCollection_Array1 Geom2dGridEval_Curve::EvaluateGridD2 myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Curve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -218,7 +218,7 @@ NCollection_Array1 Geom2dGridEval_Curve::EvaluateGridD3 myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Curve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Ellipse.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Ellipse.cxx index acfa490a69..c830485c22 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Ellipse.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Ellipse.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGrid( const NCollection_Array1& theParams) const @@ -58,7 +58,7 @@ NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -102,7 +102,7 @@ NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -148,7 +148,7 @@ NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -196,7 +196,7 @@ NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Ellipse::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Hyperbola.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Hyperbola.cxx index d57ee0bd89..55d84f0f3f 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Hyperbola.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Hyperbola.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGrid( const NCollection_Array1& theParams) const @@ -57,7 +57,7 @@ NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -102,7 +102,7 @@ NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGr return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -148,7 +148,7 @@ NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGr return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -196,7 +196,7 @@ NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGr return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Hyperbola::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OffsetCurve.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OffsetCurve.cxx index f66ba4d060..a845fa6488 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OffsetCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OffsetCurve.cxx @@ -16,7 +16,7 @@ #include #include -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OffsetCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -52,7 +52,7 @@ NCollection_Array1 Geom2dGridEval_OffsetCurve::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OffsetCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -89,7 +89,7 @@ NCollection_Array1 Geom2dGridEval_OffsetCurve::Evaluate return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OffsetCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -147,7 +147,7 @@ NCollection_Array1 Geom2dGridEval_OffsetCurve::Evaluate return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OffsetCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -207,7 +207,7 @@ NCollection_Array1 Geom2dGridEval_OffsetCurve::Evaluate return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OffsetCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OtherCurve.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OtherCurve.cxx index 49585c01d6..d792eb43e7 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OtherCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_OtherCurve.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -35,7 +35,7 @@ NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -57,7 +57,7 @@ NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateG return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -79,7 +79,7 @@ NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateG return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -101,7 +101,7 @@ NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateG return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_OtherCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Parabola.cxx b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Parabola.cxx index 1509722853..2894c5336a 100644 --- a/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Parabola.cxx +++ b/src/ModelingData/TKG2d/Geom2dGridEval/Geom2dGridEval_Parabola.cxx @@ -15,7 +15,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGrid( const NCollection_Array1& theParams) const @@ -56,7 +56,7 @@ NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -102,7 +102,7 @@ NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -149,7 +149,7 @@ NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -197,7 +197,7 @@ NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 Geom2dGridEval_Parabola::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_FuncCurExt.cxx b/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_FuncCurExt.cxx index 9ae40b4422..efaf848910 100644 --- a/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_FuncCurExt.cxx +++ b/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_FuncCurExt.cxx @@ -29,7 +29,7 @@ Geom2dLProp_FuncCurExt::Geom2dLProp_FuncCurExt(const occ::handle& //============================================================================= // function : Value -// purpose : KC = (V1^V2.Z) / ||V1||^3 avec V1 tangente etV2 derivee seconde. +// purpose : KC = (V1^V2.Z) / ||V1||^3 with V1 tangent and V2 second derivative. // F = d KC/ dU. //============================================================================= bool Geom2dLProp_FuncCurExt::Value(const double X, double& F) @@ -84,8 +84,8 @@ bool Geom2dLProp_FuncCurExt::Values(const double X, double& F, double& D) //============================================================================= // function : IsMinKC -// purpose : Teste si le parametere coorespond a un minimum du rayon de courbure -// par comparaison avec un point voisin. +// purpose : Tests if the parameter corresponds to a minimum of the radius of curvature +// by comparison with a nearby point. //============================================================================= bool Geom2dLProp_FuncCurExt::IsMinKC(const double X) const { diff --git a/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_NumericCurInf2d.cxx b/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_NumericCurInf2d.cxx index 0af890b2e9..ad22d2f1c7 100644 --- a/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_NumericCurInf2d.cxx +++ b/src/ModelingData/TKG2d/Geom2dLProp/Geom2dLProp_NumericCurInf2d.cxx @@ -54,8 +54,8 @@ void Geom2dLProp_NumericCurInf2d::PerformCurExt(const occ::handle& double EpsH = 1.e-4 * (UMax - UMin); constexpr double Tol = Precision::PConfusion(); - // la premiere recherce se fait avec une tolerance assez grande - // car la derivee de la fonction est estimee assez grossierement. + // The first search is done with a rather large tolerance + // because the function derivative is estimated rather roughly. Geom2dLProp_FuncCurExt F(C, EpsH); int NbSamples = 100; diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp.cxx index dcf660b404..cf1cff80a9 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp.cxx @@ -15,7 +15,7 @@ #include -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp::ComputeTangent(const gp_Vec2d& theD1, const gp_Vec2d& theD2, @@ -45,7 +45,7 @@ Geom2dProp::TangentResult Geom2dProp::ComputeTangent(const gp_Vec2d& theD1, return {{}, false}; } -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp::ComputeTangent(const gp_Vec2d& theD1, const gp_Vec2d& theD2, @@ -79,7 +79,7 @@ Geom2dProp::TangentResult Geom2dProp::ComputeTangent(const gp_Vec2d& theD1, return {gp_Dir2d(aVec), true}; } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp::ComputeCurvature(const gp_Vec2d& theD1, const gp_Vec2d& theD2, @@ -117,7 +117,7 @@ Geom2dProp::CurvatureResult Geom2dProp::ComputeCurvature(const gp_Vec2d& theD1, return {aCurvature, true, false}; } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp::ComputeNormal(const gp_Vec2d& theD1, const gp_Vec2d& theD2, @@ -140,7 +140,7 @@ Geom2dProp::NormalResult Geom2dProp::ComputeNormal(const gp_Vec2d& theD1, return {gp_Dir2d(aNorm), true}; } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp::ComputeCentreOfCurvature(const gp_Pnt2d& thePnt, const gp_Vec2d& theD1, diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BSplineCurve.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BSplineCurve.cxx index 5d6b25d343..1618ebbe8a 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BSplineCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BSplineCurve.cxx @@ -16,7 +16,7 @@ #include -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_BSplineCurve::Tangent(const double theParam, const double theTol) const @@ -24,7 +24,7 @@ Geom2dProp::TangentResult Geom2dProp_BSplineCurve::Tangent(const double theParam return Geom2dProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_BSplineCurve::Curvature(const double theParam, const double theTol) const @@ -32,7 +32,7 @@ Geom2dProp::CurvatureResult Geom2dProp_BSplineCurve::Curvature(const double theP return Geom2dProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_BSplineCurve::Normal(const double theParam, const double theTol) const @@ -40,7 +40,7 @@ Geom2dProp::NormalResult Geom2dProp_BSplineCurve::Normal(const double theParam, return Geom2dProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_BSplineCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -48,14 +48,14 @@ Geom2dProp::CentreResult Geom2dProp_BSplineCurve::CentreOfCurvature(const double return Geom2dProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_BSplineCurve::FindCurvatureExtrema() const { return Geom2dProp_CurveAnalysisTools::FindCurvatureExtremaBySpans(myAdaptor, GeomAbs_C3); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_BSplineCurve::FindInflections() const { diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BezierCurve.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BezierCurve.cxx index fb30d1094d..2d475a1d53 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BezierCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_BezierCurve.cxx @@ -14,7 +14,7 @@ #include #include -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_BezierCurve::Tangent(const double theParam, const double theTol) const @@ -22,7 +22,7 @@ Geom2dProp::TangentResult Geom2dProp_BezierCurve::Tangent(const double theParam, return Geom2dProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_BezierCurve::Curvature(const double theParam, const double theTol) const @@ -30,7 +30,7 @@ Geom2dProp::CurvatureResult Geom2dProp_BezierCurve::Curvature(const double thePa return Geom2dProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_BezierCurve::Normal(const double theParam, const double theTol) const @@ -38,7 +38,7 @@ Geom2dProp::NormalResult Geom2dProp_BezierCurve::Normal(const double theParam, return Geom2dProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_BezierCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -46,14 +46,14 @@ Geom2dProp::CentreResult Geom2dProp_BezierCurve::CentreOfCurvature(const double return Geom2dProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_BezierCurve::FindCurvatureExtrema() const { return Geom2dProp_CurveAnalysisTools::FindCurvatureExtrema(myAdaptor); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_BezierCurve::FindInflections() const { diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Curve.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Curve.cxx index 602f34d2c3..b5fa6c8e97 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Curve.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Curve.cxx @@ -16,7 +16,7 @@ #include #include -//================================================================================================== +//================================================================================================= Geom2dProp_Curve::Geom2dProp_Curve(const Adaptor2d_Curve2d& theCurve) : myEvaluator(std::monostate{}), @@ -25,7 +25,7 @@ Geom2dProp_Curve::Geom2dProp_Curve(const Adaptor2d_Curve2d& theCurve) initialization(theCurve); } -//================================================================================================== +//================================================================================================= Geom2dProp_Curve::Geom2dProp_Curve(const occ::handle& theCurve) : myEvaluator(std::monostate{}), @@ -34,7 +34,7 @@ Geom2dProp_Curve::Geom2dProp_Curve(const occ::handle& theCurve) initialization(theCurve); } -//================================================================================================== +//================================================================================================= void Geom2dProp_Curve::initialization(const Adaptor2d_Curve2d& theCurve) { @@ -52,7 +52,7 @@ void Geom2dProp_Curve::initialization(const Adaptor2d_Curve2d& theCurve) myEvaluator.emplace(); } -//================================================================================================== +//================================================================================================= void Geom2dProp_Curve::initialization(const occ::handle& theCurve) { @@ -68,7 +68,7 @@ void Geom2dProp_Curve::initialization(const occ::handle& theCurve) initFromAdaptor(); } -//================================================================================================== +//================================================================================================= void Geom2dProp_Curve::initFromAdaptor() { @@ -107,7 +107,7 @@ void Geom2dProp_Curve::initFromAdaptor() } } -//================================================================================================== +//================================================================================================= const Geom2dAdaptor_Curve* Geom2dProp_Curve::Adaptor() const { @@ -122,7 +122,7 @@ const Geom2dAdaptor_Curve* Geom2dProp_Curve::Adaptor() const myEvaluator); } -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_Curve::Tangent(const double theParam, const double theTol) const @@ -142,7 +142,7 @@ Geom2dProp::TangentResult Geom2dProp_Curve::Tangent(const double theParam, myEvaluator); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_Curve::Curvature(const double theParam, const double theTol) const @@ -162,7 +162,7 @@ Geom2dProp::CurvatureResult Geom2dProp_Curve::Curvature(const double theParam, myEvaluator); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_Curve::Normal(const double theParam, const double theTol) const { @@ -181,7 +181,7 @@ Geom2dProp::NormalResult Geom2dProp_Curve::Normal(const double theParam, const d myEvaluator); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_Curve::CentreOfCurvature(const double theParam, const double theTol) const @@ -201,7 +201,7 @@ Geom2dProp::CentreResult Geom2dProp_Curve::CentreOfCurvature(const double thePar myEvaluator); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_Curve::FindCurvatureExtrema() const { @@ -220,7 +220,7 @@ Geom2dProp::CurveAnalysis Geom2dProp_Curve::FindCurvatureExtrema() const myEvaluator); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_Curve::FindInflections() const { diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Ellipse.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Ellipse.cxx index 26aa24dc98..7fe4e33b10 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Ellipse.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Ellipse.cxx @@ -23,7 +23,7 @@ constexpr int THE_ELLIPSE_NB_EXTREMA = 4; //!< Number of curvature extrema on constexpr double THE_ELLIPSE_PERIOD = 2.0 * M_PI; //!< One full period of ellipse parameter } // namespace -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_Ellipse::Tangent(const double theParam, const double theTol) const @@ -38,7 +38,7 @@ Geom2dProp::TangentResult Geom2dProp_Ellipse::Tangent(const double theParam, return Geom2dProp::ComputeTangent(aD1, aD2, aD3, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_Ellipse::Curvature(const double theParam, const double theTol) const @@ -53,7 +53,7 @@ Geom2dProp::CurvatureResult Geom2dProp_Ellipse::Curvature(const double theParam, return Geom2dProp::ComputeCurvature(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_Ellipse::Normal(const double theParam, const double theTol) const @@ -68,7 +68,7 @@ Geom2dProp::NormalResult Geom2dProp_Ellipse::Normal(const double theParam, return Geom2dProp::ComputeNormal(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_Ellipse::CentreOfCurvature(const double theParam, const double theTol) const @@ -83,7 +83,7 @@ Geom2dProp::CentreResult Geom2dProp_Ellipse::CentreOfCurvature(const double theP return Geom2dProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_Ellipse::FindCurvatureExtrema() const { diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Hyperbola.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Hyperbola.cxx index 3796e8a4ab..aa35551fae 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Hyperbola.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Hyperbola.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_Hyperbola::Tangent(const double theParam, const double theTol) const @@ -28,7 +28,7 @@ Geom2dProp::TangentResult Geom2dProp_Hyperbola::Tangent(const double theParam, return Geom2dProp::ComputeTangent(aD1, aD2, aD3, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_Hyperbola::Curvature(const double theParam, const double theTol) const @@ -43,7 +43,7 @@ Geom2dProp::CurvatureResult Geom2dProp_Hyperbola::Curvature(const double thePara return Geom2dProp::ComputeCurvature(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_Hyperbola::Normal(const double theParam, const double theTol) const @@ -58,7 +58,7 @@ Geom2dProp::NormalResult Geom2dProp_Hyperbola::Normal(const double theParam, return Geom2dProp::ComputeNormal(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_Hyperbola::CentreOfCurvature(const double theParam, const double theTol) const @@ -73,7 +73,7 @@ Geom2dProp::CentreResult Geom2dProp_Hyperbola::CentreOfCurvature(const double th return Geom2dProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_Hyperbola::FindCurvatureExtrema() const { diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OffsetCurve.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OffsetCurve.cxx index e669cf654c..10f2cc5607 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OffsetCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OffsetCurve.cxx @@ -14,7 +14,7 @@ #include #include -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_OffsetCurve::Tangent(const double theParam, const double theTol) const @@ -22,7 +22,7 @@ Geom2dProp::TangentResult Geom2dProp_OffsetCurve::Tangent(const double theParam, return Geom2dProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_OffsetCurve::Curvature(const double theParam, const double theTol) const @@ -30,7 +30,7 @@ Geom2dProp::CurvatureResult Geom2dProp_OffsetCurve::Curvature(const double thePa return Geom2dProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_OffsetCurve::Normal(const double theParam, const double theTol) const @@ -38,7 +38,7 @@ Geom2dProp::NormalResult Geom2dProp_OffsetCurve::Normal(const double theParam, return Geom2dProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_OffsetCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -46,14 +46,14 @@ Geom2dProp::CentreResult Geom2dProp_OffsetCurve::CentreOfCurvature(const double return Geom2dProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_OffsetCurve::FindCurvatureExtrema() const { return Geom2dProp_CurveAnalysisTools::FindCurvatureExtrema(myAdaptor); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_OffsetCurve::FindInflections() const { diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OtherCurve.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OtherCurve.cxx index 381ff5d8f9..201d78ce1a 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OtherCurve.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_OtherCurve.cxx @@ -14,7 +14,7 @@ #include #include -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_OtherCurve::Tangent(const double theParam, const double theTol) const @@ -22,7 +22,7 @@ Geom2dProp::TangentResult Geom2dProp_OtherCurve::Tangent(const double theParam, return Geom2dProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_OtherCurve::Curvature(const double theParam, const double theTol) const @@ -30,7 +30,7 @@ Geom2dProp::CurvatureResult Geom2dProp_OtherCurve::Curvature(const double thePar return Geom2dProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_OtherCurve::Normal(const double theParam, const double theTol) const @@ -38,7 +38,7 @@ Geom2dProp::NormalResult Geom2dProp_OtherCurve::Normal(const double theParam, return Geom2dProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_OtherCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -46,14 +46,14 @@ Geom2dProp::CentreResult Geom2dProp_OtherCurve::CentreOfCurvature(const double t return Geom2dProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_OtherCurve::FindCurvatureExtrema() const { return Geom2dProp_CurveAnalysisTools::FindCurvatureExtrema(myAdaptor); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_OtherCurve::FindInflections() const { diff --git a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Parabola.cxx b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Parabola.cxx index 9d35ea4d4b..3ca587db6b 100644 --- a/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Parabola.cxx +++ b/src/ModelingData/TKG2d/Geom2dProp/Geom2dProp_Parabola.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= Geom2dProp::TangentResult Geom2dProp_Parabola::Tangent(const double theParam, const double theTol) const @@ -28,7 +28,7 @@ Geom2dProp::TangentResult Geom2dProp_Parabola::Tangent(const double theParam, return Geom2dProp::ComputeTangent(aD1, aD2, aD3, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurvatureResult Geom2dProp_Parabola::Curvature(const double theParam, const double theTol) const @@ -43,7 +43,7 @@ Geom2dProp::CurvatureResult Geom2dProp_Parabola::Curvature(const double theParam return Geom2dProp::ComputeCurvature(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::NormalResult Geom2dProp_Parabola::Normal(const double theParam, const double theTol) const @@ -58,7 +58,7 @@ Geom2dProp::NormalResult Geom2dProp_Parabola::Normal(const double theParam, return Geom2dProp::ComputeNormal(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CentreResult Geom2dProp_Parabola::CentreOfCurvature(const double theParam, const double theTol) const @@ -73,7 +73,7 @@ Geom2dProp::CentreResult Geom2dProp_Parabola::CentreOfCurvature(const double the return Geom2dProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= Geom2dProp::CurveAnalysis Geom2dProp_Parabola::FindCurvatureExtrema() const { diff --git a/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx b/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx index e34624521e..a4cfdff311 100644 --- a/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx +++ b/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx @@ -1639,15 +1639,15 @@ void Adaptor3d_CurveOnSurface::EvalKPart() gp_Sphere Sph = mySurface->Sphere(); gp_Pnt2d P = myCurve->Line().Location(); gp_Ax3 Axis = Sph.Position(); - // calcul de l'iso 0. + // Compute the iso 0. myCirc = ElSLib::SphereUIso(Axis, Sph.Radius(), 0.); - // mise a sameparameter (rotation du cercle - decalage du Y) + // Same-parametrization (circle rotation - Y offset) gp_Dir DRev = Axis.XDirection().Crossed(Axis.Direction()); gp_Ax1 AxeRev(Axis.Location(), DRev); myCirc.Rotate(AxeRev, P.Y()); - // transformation en iso U ( = P.X()) + // Transform to iso U ( = P.X()) DRev = Axis.XDirection().Crossed(Axis.YDirection()); AxeRev = gp_Ax1(Axis.Location(), DRev); myCirc.Rotate(AxeRev, P.X()); diff --git a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.cxx b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.cxx index af595c3a23..9060359c92 100644 --- a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.cxx +++ b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.cxx @@ -14,12 +14,12 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Modified PMN 22/05/1996 : Pb de recopie des poles -// Modified PMN 20/08/1996 : Introduction de la decoupe parametrable. -// (plus verif des derives en debug) -// Modified PMN 20/08/1996 : Linearisation de F(t) => Les sous Espaces -// facilement approchable ont de petites erreurs. -// Modified PMN 15/04/1997 : Gestion fine de la continuite aux lieux de decoupes +// Modified PMN 22/05/1996 : Pole copy issue fix +// Modified PMN 20/08/1996 : Introduction of parametric cutting. +// (plus derivative checks in debug mode) +// Modified PMN 20/08/1996 : Linearization of F(t) => Easily approximable +// subspaces have small errors. +// Modified PMN 15/04/1997 : Fine management of continuity at cutting points #include #include @@ -47,15 +47,14 @@ static bool AdvApprox_Debug = 0; -//===================================================== +//================================================================================================= + +// Finite difference check of derivatives (debug mode only). static void MAPDBN(const int dimension, const double Debut, const double Fin, AdvApprox_EvaluatorFunction& Evaluator, const int Iordre) -// Objet : Controle par difference finis, des derives -// Warning : En mode Debug, uniquement -///=================================================== { int derive, OrdreDer, ier, NDIMEN = dimension; double* Ptr; @@ -71,7 +70,7 @@ static void MAPDBN(const int dimension, for (OrdreDer = 1, derive = 0; OrdreDer <= Iordre; OrdreDer++, derive++) { - // Verif au debut + // Check at the start Ptr = (double*)&V1.Value(1); t = Debut + h; Evaluator(&NDIMEN, ab, &t, &derive, Ptr, &ier); @@ -88,12 +87,12 @@ static void MAPDBN(const int dimension, if ((Diff - Der).Norm() > eps * (Der.Norm() + 1)) { - std::cout << " Debug Ft au parametre t+ = " << t << std::endl; - std::cout << " Positionement sur la derive " << OrdreDer << " : " << Der << std::endl; - std::cout << " Erreur estime : " << (Der - Diff) << std::endl; + std::cout << " Debug Ft at parameter t+ = " << t << std::endl; + std::cout << " Positioning on derivative " << OrdreDer << " : " << Der << std::endl; + std::cout << " Estimated error: " << (Der - Diff) << std::endl; } - // Verif a la fin + // Check at the end Ptr = (double*)&V1.Value(1); t = Fin - h; Evaluator(&NDIMEN, ab, &t, &derive, Ptr, &ier); @@ -110,15 +109,17 @@ static void MAPDBN(const int dimension, if ((Diff - Der).Norm() > eps * (Der.Norm() + 1)) { - std::cout << " Debug Ft au parametre t- = " << t << std::endl; - std::cout << " Positionement sur la derive " << OrdreDer << " : " << Der << std::endl; - std::cout << " Erreur estime : " << (Der - Diff) << std::endl; + std::cout << " Debug Ft at parameter t- = " << t << std::endl; + std::cout << " Positioning on derivative " << OrdreDer << " : " << Der << std::endl; + std::cout << " Estimated error: " << (Der - Diff) << std::endl; } } } #endif -//=================================================================== +//================================================================================================= + +// Determine local continuities static void PrepareConvert(const int NumCurves, const int MaxDegree, const int ContinuityOrder, @@ -132,8 +133,6 @@ static void PrepareConvert(const int NumCurves, const NCollection_Array1& LocalTolerance, NCollection_Array1& ErrorMax, NCollection_Array1& Continuity) -// Pour determiner les continuites locales -//==================================================================== { // Declaration @@ -161,7 +160,7 @@ static void PrepareConvert(const int NumCurves, for (icurve = 1; icurve < NumCurves; icurve++) { - // Init et positionement au noeud + // Init and positioning at the node isCi = true; Coef1 = (double*)&(Coefficients.Value((icurve - 1) * Dimension * RealDegree + Coefficients.Lower())); @@ -181,7 +180,7 @@ static void PrepareConvert(const int NumCurves, Coef2[0], Res2[0]); - // Verif dans chaque sous espaces. + // Check in each subspace. for (iordre = 1; iordre <= ContinuityOrder && isCi; iordre++) { @@ -223,12 +222,12 @@ static void PrepareConvert(const int NumCurves, eps = LocalTolerance(idim) * 0.01; diff = std::abs(Val1[ii] * facteur1 - Val2[ii] * facteur2); moy = std::abs(Val1[ii] * facteur1 + Val2[ii] * facteur2); - // Un premier controle sur la valeur relative + // A first check on the relative value if (diff > moy * 1.e-9) { Prec(idim) = diff * normal1; Suivant(idim) = diff * normal2; - // Et un second sur le majorant d'erreur engendree + // And a second check on the upper bound of the generated error if (Prec(idim) > eps || Suivant(idim) > eps) isCi = false; } @@ -286,7 +285,7 @@ static void PrepareConvert(const int NumCurves, Suivant(idim) = 0; } } - // Si c'est bon on update le tout + // If it's good, update everything if (isCi) { Continuity(icurve + 1) = iordre; @@ -301,125 +300,83 @@ static void PrepareConvert(const int NumCurves, } } -//======================================================================= -// function : ApproxFunction +//================================================================================================= + +// Approximation of a single non-polynomial function (in a space of dimension NDIMEN) +// by N polynomial curves, using the least squares method. The function parameter is preserved. // -// purpose : Approximation d' UNE fonction non polynomiale (dans l'espace de -// dimension NDIMEN) par N courbes polynomiales, par la methode -// des moindres carres. Le parametre de la fonction est conserve. +// INPUT ARGUMENTS: +// NDIMEN : Total space dimension (sum of subspace dimensions). +// NBSESP : Number of "independent" subspaces. +// NDIMSE : Table of subspace dimensions. +// ABFONC : Bounds of the interval (a,b) defining the function to approximate. +// FONCNP : External positioning function on the non-polynomial function to approximate. +// IORDRE : Constraint order at the endpoints of each created polynomial curve: +// -1 = no constraints, +// 0 = passage constraints at bounds (i.e. C0), +// 1 = C0 + first derivative constraints (i.e. C1), +// 2 = C1 + second derivative constraints (i.e. C2). +// NBCRMX : Maximum number of polynomial curves to compute. +// NCFLIM : LIMIT number of coefficients for approximation polynomial "curves". +// Must be >= 2*IORDRE + 2 and <= 50 and <= NCOFMX. +// Limited to 14 after VRIRAZ call to avoid noise. +// EPSAPR : Table of desired approximation errors per subspace. +// ICODEO : Init code for discretization parameters (choice of NBPNT and NDJAC). +// = 1 fast computation with average coefficient precision. +// = 2 fast computation with better coefficient precision. +// = 3 slightly slower computation with good precision. +// = 4 slow computation with best possible precision. // -// ARGUMENTS D'ENTREE : -// C ------------------ -// C NDIMEN : Dimension totale de l' espace (somme des dimensions -// C des sous-espaces). -// C NBSESP : Nombre de sous-espaces "independants". -// C NDIMSE : Table des dimensions des sous-espaces. -// C ABFONC : Bornes de l' intervalle (a,b) de definition de la -// C fonction a approcher. -// C FONCNP : Fonction externe de positionnement sur la fonction non -// C polynomiale a approcher. -// C IORDRE : Ordre de contrainte aux extremites de chaque courbe -// C polynomiale cree : -// C -1 = pas de contraintes, -// C 0 = contraintes de passage aux bornes (i.e. C0), -// C 1 = C0 + contraintes de derivees 1eres (i.e. C1), -// C 2 = C1 + contraintes de derivees 2ndes (i.e. C2). -// C NBCRMX : Nombre maxi de courbes polynomiales a calculer. -// C NCFLIM : Nombre LIMITE de coeff des "courbes" polynomiales -// C d' approximation. Doit etre superieur ou egal a -// C 2*IORDRE + 2 et inferieur ou egal a 50 et a NCOFMX). -// C Limite a 14 apres l'appel a VRIRAZ pour eviter le bruit. -// C EPSAPR : Table des erreurs d' approximations souhaitees -// C sous-espace par sous-espace. -// C ICODEO : Code d' init. des parametres de discretisation. -// C (choix de NBPNT et de NDJAC). -// C = 1 calcul rapide avec precision moyenne sur les coeff. -// C = 2 calcul rapide avec meilleure precision " " ". -// C = 3 calcul un peu plus lent avec bonne precision ". -// C = 4 calcul lent avec la meilleure precision possible ". -// C -// C -// C ARGUMENTS DE SORTIE : -// C ------------------- -// C NBCRBE : Nombre de courbes polynomiales creees. -// C NCFTAB : Table des nombres de coeff. significatifs des NBCRBE -// C "courbes" calculees. -// C CRBTAB : Tableau des coeff. des "courbes" polynomiales calculees. -// C Doit etre dimensionne a CRBTAB(NDIMEN,NCOFMX,NBCRMX). -// C TABINT : Table des NBCRBE + 1 bornes des intervalles de decoupe de -// C FONCNP. -// C ERRMAX : Table des erreurs (sous-espace par sous espace) -// C MAXIMALES commises dans l' approximation de FONCNP par -// C par les NBCRBE courbes polynomiales. -// C ERRMOY : Table des erreurs (sous-espace par sous espace) -// C MOYENNES commises dans l' approximation de FONCNP par -// C par les NBCRBE courbes polynomiales. -// C IERCOD : Code d' erreur : -// C -1 = ERRMAX > EPSAPR pour au moins un des sous-espace. -// C On a alors NCRBMX courbes calculees, certaines de -// C degre mathematique min(NCFLIM,14)-1 ou la precision -// C demandee n' est pas atteinte. -// C -2 = Pb dans le mode DEBUG -// C 0 = Tout est ok. -// C 1 = Pb d' incoherence des entrees. -// C 10 = Pb de calcul de l' interpolation des contraintes. -// C 13 = Pb dans l' allocation dynamique. -// C 33 = Pb dans la recuperation des donnees du block data -// C des coeff. d' integration par la methode de GAUSS. -// C >100 Pb dans l' evaluation de FONCNP, le code d' erreur -// C renvoye est egal au code d' erreur de FONCNP + 100. -// C +// OUTPUT ARGUMENTS: +// NBCRBE : Number of polynomial curves created. +// NCFTAB : Table of significant coefficient counts for the computed "curves". +// CRBTAB : Array of computed polynomial "curve" coefficients. +// Must be dimensioned as CRBTAB(NDIMEN,NCOFMX,NBCRMX). +// TABINT : Table of NBCRBE + 1 bounds of the cutting intervals of FONCNP. +// ERRMAX : Table of MAXIMUM errors (per subspace) in the approximation. +// ERRMOY : Table of AVERAGE errors (per subspace) in the approximation. +// IERCOD : Error code: +// -1 = ERRMAX > EPSAPR for at least one subspace. +// 0 = Everything is OK. +// 1 = Input inconsistency problem. +// 10 = Constraint interpolation computation problem. +// 13 = Dynamic allocation problem. +// 33 = Problem retrieving Gauss integration coefficients. +// >100 = FONCNP evaluation error (returned code + 100). // -// --> La i-eme courbe polynomiale creee correspond a l' approximation -// C de FONCNP sur l' intervalle (TABINT(i),TABINT(i+1)). TABINT(i) -// est une suite STRICTEMENT monotone avec TABINT(1)=ABFONC(1) et -// TABINT(NBCRBE+1)=ABFONC(2). +// The i-th created polynomial curve corresponds to the approximation of FONCNP +// on the interval (TABINT(i),TABINT(i+1)). TABINT(i) is a strictly monotone sequence. // -// --> Si IERCOD=-1, la precision demandee n' est pas atteinte (ERRMAX -// C est superieur a EPSAPR sur au moins l' un des sous-espaces), mais -// on donne le meilleur resultat possible pour min(NCFLIM,14),NBCRMX -// et EPSAPR choisis par l' utilisateur Dans ce cas (ainsi que pour -// C IERCOD=0), on a une solution. -// C -// C--> ATTENTION : Toute modification du calcul de NDJAC et NBPNT -// C doit etre reportee dans le programme MAPNBP. -// -// HISTORIQUE DES MODIFICATIONS : -// -------------------------------- -// -// 20-08-1996 : PMN ; Creation d'apres la routine Fortran MAPFNC -//====================================================================== +// If IERCOD=-1, the requested precision is not reached but the best possible result +// is given for min(NCFLIM,14), NBCRMX and EPSAPR chosen by the user. void AdvApprox_ApproxAFunction::Approximation( const int TotalDimension, - // Dimension totale de l' espace - // (somme des dimensions des sous-espaces). - const int TotalNumSS, // Nombre de sous-espaces "independants". - const NCollection_Array1& LocalDimension, // dimensions des sous-espaces. + // Total space dimension (sum of subspace dimensions). + const int TotalNumSS, // Number of "independent" subspaces. + const NCollection_Array1& LocalDimension, // Subspace dimensions. const double First, const double Last, - // Intervalle (a,b) de definition de la fonction a approcher. + // Interval (a,b) defining the function to approximate. AdvApprox_EvaluatorFunction& Evaluator, - // Fonction externe de positionnement sur la fonction a approcher. + // External positioning function on the function to approximate. const AdvApprox_Cutting& CutTool, - // Maniere de decouper en 2 un intervalle. + // Method to split an interval in two. const int ContinuityOrder, - // ordre de continutie a respecter (-1, 0, 1, 2) + // Continuity order to respect (-1, 0, 1, 2) const int NumMaxCoeffs, - // Nombre LIMITE de coeff des "courbes" polynomiales - // d' approximation. Doit etre superieur ou egal a - // Doit etre superieur ou egal a 2*ContinuityOrder + 2 - // Limite a 14 pour eviter le bruit. + // LIMIT number of coefficients for approximation polynomial "curves". + // Must be >= 2*ContinuityOrder + 2. + // Limited to 14 to avoid noise. const int MaxSegments, - // Nombre maxi de courbes polynomiales a calculer. + // Maximum number of polynomial curves to compute. const NCollection_Array1& LocalTolerancesArray, - // Tolerances d'approximation souhaitees sous-espace par sous-espace. + // Desired approximation tolerances per subspace. const int code_precis, - // Code d' init. des parametres de discretisation. - // C (choix de NBPNT et de NDJAC). - // C = 1 calcul rapide avec precision moyenne sur les coeff. - // C = 2 calcul rapide avec meilleure precision " " ". - // C = 3 calcul un peu plus lent avec bonne precision ". - // C = 4 calcul lent avec la meilleure precision possible ". + // Discretization parameter init code (choice of NBPNT and NDJAC). + // = 1 fast computation with average coefficient precision. + // = 2 fast computation with better coefficient precision. + // = 3 slightly slower computation with good precision. + // = 4 slow computation with best possible precision. int& NumCurves, NCollection_Array1& NumCoeffPerCurveArray, NCollection_Array1& CoefficientArray, @@ -435,13 +392,13 @@ void AdvApprox_ApproxAFunction::Approximation( #endif bool isCut = false; - // Defintion des Tableaux C + // Definition of C arrays double* TABINT = (double*)&IntervalsArray(1); ErrorCode = 0; CoefficientArray.Init(0); - //-------------------------- Verification des entrees ------------------ + //-------------------------- Input validation ------------------ if ((MaxSegments < 1) || (std::abs(Last - First) < 1.e-9)) { @@ -449,8 +406,7 @@ void AdvApprox_ApproxAFunction::Approximation( return; } - //--> La dimension totale doit etre la somme des dimensions des - // sous-espaces + //--> The total dimension must be the sum of the subspace dimensions int IDIM = 0; for (int I = 1; I <= TotalNumSS; I++) { @@ -477,27 +433,27 @@ void AdvApprox_ApproxAFunction::Approximation( throw Standard_ConstructionError(); } - //--------------------- Choix du nombre de points ---------------------- - //---------- et du degre de lissage dans la base orthogonale ----------- - //--> NDJAC est le degre de "travail" dans la base orthogonale. + //--------------------- Choice of number of points ---------------------- + //---------- and smoothing degree in the orthogonal basis ----------- + //--> NDJAC is the "working" degree in the orthogonal basis. int NbGaussPoints, WorkDegree; PLib::JacobiParameters(Continuity, NumMaxCoeffs - 1, code_precis, NbGaussPoints, WorkDegree); // NDJAC=WorkDegree; - //------------------ Initialisation de la gestion des decoupes --------- + //------------------ Initialization of cutting management --------- TABINT[0] = First; TABINT[1] = Last; NUPIL = 1; NumCurves = 0; - // C********************************************************************** - // C APPROXIMATION AVEC DECOUPES - // C********************************************************************** + // ******************************************************************** + // APPROXIMATION WITH CUTTING + // ******************************************************************** PLib_JacobiPolynomial JacobiBase(WorkDegree, Continuity); - // Portage HP le compilateur refuse le debranchement + // HP port: the compiler refuses branching int IS; bool goto_fin_de_boucle; int MaxDegree = NumMaxCoeffs - 1; @@ -510,12 +466,12 @@ void AdvApprox_ApproxAFunction::Approximation( Evaluator); while ((NUPIL - NumCurves) != 0) { - //--> Lorsque l' on a atteint le haut de la pile, c' est fini ! + //--> When the top of the stack is reached, we are done! - // Portage HP le compilateur refuse le debranchement + // HP port: the compiler refuses branching goto_fin_de_boucle = false; - //---- Calcul de la courbe d' approximation dans la base de Jacobi ----- + //---- Compute the approximation curve in the Jacobi basis ----- Approx.Perform(LocalDimension, LocalTolerancesArray, @@ -528,11 +484,11 @@ void AdvApprox_ApproxAFunction::Approximation( return; } - //---------- Calcul du degre de la courbe et de l' erreur max ---------- + //---------- Compute the curve degree and max error ---------- NumCoeffPerCurveArray(NumCurves + 1) = 0; - // L'erreur doit etre satisfaite sur tous les sous-espaces sinon, on decoupe + // The error must be satisfied on all subspaces, otherwise we split bool MaxMaxErr = true; for (IS = 1; IS <= TotalNumSS; IS++) @@ -551,7 +507,7 @@ void AdvApprox_ApproxAFunction::Approximation( } else { - //-> ...sinon on essai de decouper l' intervalle courant en 2... + //-> ...otherwise try to split the current interval in 2... double TMIL; bool Large; @@ -561,7 +517,7 @@ void AdvApprox_ApproxAFunction::Approximation( { // if (IS!=1) {NumCurves--;} - isCut = true; // Ca y est, on le sait ! + isCut = true; // Now we know it! double* IDEB = TABINT + NumCurves + 1; double* IDEB1 = IDEB + 1; int ILONG = NUPIL - NumCurves - 1; @@ -571,35 +527,35 @@ void AdvApprox_ApproxAFunction::Approximation( } IDEB[0] = TMIL; NUPIL++; - //--> ... et on recommence. - // Portage HP le compilateur refuse le debranchement + //--> ... and start over. + // HP port: the compiler refuses branching goto_fin_de_boucle = true; // break; } else { - //--> Si la pile est pleine... - // pour l'instant ErrorCode=-1; + //--> If the stack is full... + // for now ErrorCode=-1; NumCurves++; // NumCoeffPerCurveArray(NumCurves) = Approx.Degree()+1; } } // IDIM += NDSES; - // Portage HP le compilateur refuse le debranchement + // HP port: the compiler refuses branching if (goto_fin_de_boucle) continue; for (IS = 1; IS <= TotalNumSS; IS++) { ErrorMaxArray.SetValue(IS + (NumCurves - 1) * TotalNumSS, Approx.MaxError(IS)); - //---> ...et calcul de l' erreur moyenne. + //---> ...and compute the average error. AverageErrorArray.SetValue(IS + (NumCurves - 1) * TotalNumSS, Approx.AverageError(IS)); } occ::handle> HJacCoeff = Approx.Coefficients(); TheDeg = Approx.Degree(); if (isCut && (TheDeg < 2 * ContinuityOrder + 1)) - // Pour ne pas bruiter les derives aux bouts, et garder une continuite - // correcte sur la BSpline resultat. + // To avoid noisy derivatives at the ends, and maintain correct + // continuity on the resulting BSpline. TheDeg = 2 * ContinuityOrder + 1; NumCoeffPerCurveArray(NumCurves) = TheDeg + 1; @@ -612,7 +568,7 @@ void AdvApprox_ApproxAFunction::Approximation( } #ifdef OCCT_DEBUG - // Test des derives par difference finis + // Finite difference derivative test int IORDRE = ContinuityOrder; if (IORDRE > 0 && AdvApprox_Debug) @@ -620,17 +576,14 @@ void AdvApprox_ApproxAFunction::Approximation( MAPDBN(NDIMEN, TABINT[NumCurves - 1], TABINT[NumCurves], Evaluator, IORDRE); } #endif - // Portage HP le compilateur refuse le debranchement + // HP port: the compiler refuses branching // fin_de_boucle: - // {;} fin de la boucle while + // {;} end of the while loop } return; } -//======================================================================= -// function : AdvApprox_ApproxAFunction -// purpose : Constructeur avec Decoupe Dichotomique -//======================================================================= +//================================================================================================= AdvApprox_ApproxAFunction::AdvApprox_ApproxAFunction( const int Num1DSS, @@ -690,10 +643,8 @@ AdvApprox_ApproxAFunction::AdvApprox_ApproxAFunction( Perform(Num1DSS, Num2DSS, Num3DSS, CutTool); } -//======================================================================= -// function : AdvApprox_ApproxAFunction::Perform -// purpose : Make all the Work !! -//======================================================================= +//================================================================================================= + void AdvApprox_ApproxAFunction::Perform(const int Num1DSS, const int Num2DSS, const int Num3DSS, @@ -795,25 +746,25 @@ void AdvApprox_ApproxAFunction::Perform(const int Num1DSS, myMaxSegments, LocalTolerances, code_precis, - NumCurves, // Nombre de courbe en sortie - NumCoeffPerCurvePtr->ChangeArray1(), // Nbre de coeff par courbe - LocalCoefficientsPtr->ChangeArray1(), // Les Coeffs solutions - IntervalsPtr->ChangeArray1(), // La Table des decoupes - ErrorMax, // Majoration de l'erreur - AverageError, // Erreur moyenne constatee + NumCurves, // Number of output curves + NumCoeffPerCurvePtr->ChangeArray1(), // Number of coefficients per curve + LocalCoefficientsPtr->ChangeArray1(), // Solution coefficients + IntervalsPtr->ChangeArray1(), // Table of cutting points + ErrorMax, // Maximum error bound + AverageError, // Observed average error ErrorCode); if (ErrorCode == 0 || ErrorCode == -1) { // - // si tout est OK ou bien on a un resultat dont l une des erreurs max est - // plus grande que la tolerance demandee + // Everything is OK, or we have a result where one of the max errors + // is larger than the requested tolerance NCollection_Array1 TabContinuity(1, NumCurves); NCollection_Array2 PolynomialIntervalsPtr(1, NumCurves, 1, 2); for (ii = PolynomialIntervalsPtr.LowerRow(); ii <= PolynomialIntervalsPtr.UpperRow(); ii++) { - // On force un degre 1 minimum (PRO5474) + // Force a minimum degree of 1 (PRO5474) NumCoeffPerCurvePtr->ChangeValue(ii) = std::max(2, NumCoeffPerCurvePtr->Value(ii)); PolynomialIntervalsPtr.SetValue(ii, 1, ApproxStartEnd[0]); PolynomialIntervalsPtr.SetValue(ii, 2, ApproxStartEnd[1]); @@ -886,7 +837,7 @@ void AdvApprox_ApproxAFunction::Perform(const int Num1DSS, index += myNumSubSpaces[0]; } - dim_index = index; // Pour le cas ou il n'y a pas de 2D + dim_index = index; // For the case where there is no 2D if (myNumSubSpaces[1] > 0) { @@ -929,7 +880,7 @@ void AdvApprox_ApproxAFunction::Perform(const int Num1DSS, my2DAverageError->SetValue(jj, error_value); } index += myNumSubSpaces[1]; - // Pour les poles il faut doubler le decalage : + // For poles, the offset must be doubled: dim_index = index + myNumSubSpaces[1]; } diff --git a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.hxx b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.hxx index a1a0d30821..16af24007c 100644 --- a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.hxx +++ b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_ApproxAFunction.hxx @@ -74,7 +74,7 @@ public: const int MaxSeg, const AdvApprox_EvaluatorFunction& Func); - //! Approximation with user methode of cutting + //! Approximation with user method of cutting Standard_EXPORT AdvApprox_ApproxAFunction( const int Num1DSS, const int Num2DSS, diff --git a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_DichoCutting.cxx b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_DichoCutting.cxx index 65438563fd..6799eca501 100644 --- a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_DichoCutting.cxx +++ b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_DichoCutting.cxx @@ -21,7 +21,7 @@ AdvApprox_DichoCutting::AdvApprox_DichoCutting() = default; bool AdvApprox_DichoCutting::Value(const double a, const double b, double& cuttingvalue) const { - // longueur minimum d'un intervalle pour F(U,V) : EPS1=1.e-9 (cf.MEPS1) + // Minimum length of an interval for F(U,V): EPS1=1.e-9 (cf. MEPS1) constexpr double lgmin = 10 * Precision::PConfusion(); cuttingvalue = (a + b) / 2; return (std::abs(b - a) >= 2 * lgmin); diff --git a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefAndRec.cxx b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefAndRec.cxx index 3501c5017f..38e67f3be4 100644 --- a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefAndRec.cxx +++ b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefAndRec.cxx @@ -35,7 +35,7 @@ AdvApprox_PrefAndRec::AdvApprox_PrefAndRec(const NCollection_Array1& Rec bool AdvApprox_PrefAndRec::Value(const double a, const double b, double& cuttingvalue) const { - // longueur minimum d'un intervalle parametrique : 10*PConfusion() + // Minimum length of a parametric interval: 10*PConfusion() constexpr double lgmin = 10 * Precision::PConfusion(); int i; double cut, mil = (a + b) / 2, dist; @@ -43,7 +43,7 @@ bool AdvApprox_PrefAndRec::Value(const double a, const double b, double& cutting cut = mil; - // Recheche d'une decoupe preferentiel + // Search for a preferred cutting point dist = std::abs((a * myWeight + b) / (1 + myWeight) - mil); for (i = 1; i <= myPrefCutting.Length(); i++) { @@ -55,7 +55,7 @@ bool AdvApprox_PrefAndRec::Value(const double a, const double b, double& cutting } } - // Recheche d'une decoupe recommende + // Search for a recommended cutting point if (!isfound) { dist = std::abs((a - b) / 2); @@ -69,7 +69,7 @@ bool AdvApprox_PrefAndRec::Value(const double a, const double b, double& cutting } } - // Resultat + // Result cuttingvalue = cut; return (std::abs(cut - a) >= lgmin && std::abs(b - cut) >= lgmin); } diff --git a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefCutting.cxx b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefCutting.cxx index 0df674e218..61d4abc500 100644 --- a/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefCutting.cxx +++ b/src/ModelingData/TKG3d/AdvApprox/AdvApprox_PrefCutting.cxx @@ -25,8 +25,8 @@ AdvApprox_PrefCutting::AdvApprox_PrefCutting(const NCollection_Array1& C bool AdvApprox_PrefCutting::Value(const double a, const double b, double& cuttingvalue) const { - // longueur minimum d'un intervalle parametrique : PConfusion() - // pour F(U,V) : EPS1=1.e-9 (cf.MMEPS1) + // Minimum length of a parametric interval: PConfusion() + // for F(U,V): EPS1=1.e-9 (cf. MMEPS1) constexpr double lgmin = 10 * Precision::PConfusion(); int i; double cut, mil = (a + b) / 2, dist = std::abs((a - b) / 2); diff --git a/src/ModelingData/TKG3d/GProp/GProp_GProps.cxx b/src/ModelingData/TKG3d/GProp/GProp_GProps.cxx index e5e101206d..1d44584263 100644 --- a/src/ModelingData/TKG3d/GProp/GProp_GProps.cxx +++ b/src/ModelingData/TKG3d/GProp/GProp_GProps.cxx @@ -171,7 +171,7 @@ GProp_PrincipalProps GProp_GProps::PrincipalProperties() const gp_Vec Vyy(DiagMat(1, 2), DiagMat(2, 2), DiagMat(3, 2)); gp_Vec Vzz(DiagMat(1, 3), DiagMat(2, 3), DiagMat(3, 3)); // - // protection contre dim == 0.0e0 au cas ou on aurait rentre qu'un point + // Protection against dim == 0.0e0 in case only a single point was provided // double Rxx = 0.0e0; double Ryy = 0.0e0; diff --git a/src/ModelingData/TKG3d/GTests/GeomAdaptor_Curve_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomAdaptor_Curve_Test.cxx index ae5cfe29f1..d8046688f6 100644 --- a/src/ModelingData/TKG3d/GTests/GeomAdaptor_Curve_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomAdaptor_Curve_Test.cxx @@ -23,9 +23,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Test fixture for GeomAdaptor_Curve degenerated curve handling -//================================================================================================== +//================================================================================================= class GeomAdaptor_Curve_Test : public ::testing::Test { @@ -47,7 +47,7 @@ protected: occ::handle myCircle; }; -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_ValidParameters_Success) { @@ -59,7 +59,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_ValidParameters_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), 10.0); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_EqualParameters_Success) { @@ -77,7 +77,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_EqualParameters_Success) EXPECT_TRUE(aP1.IsEqual(aP2, Precision::Confusion())); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_ParametersWithinConfusion_Success) { @@ -93,7 +93,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_ParametersWithinConfusion_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam2); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_ParametersAtConfusionBoundary_Success) { @@ -108,7 +108,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_ParametersAtConfusionBoundary_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam2); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_FirstGreaterThanLastWithinConfusion_Success) { @@ -124,7 +124,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_FirstGreaterThanLastWithinConfusion_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam2); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_FirstGreaterThanLastBeyondConfusion_ThrowsException) { @@ -137,7 +137,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_FirstGreaterThanLastBeyondConfusion_ThrowsEx EXPECT_THROW(anAdaptor.Load(myLine, aParam1, aParam2), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_FirstSlightlyGreaterThanLast_ThrowsException) { @@ -149,7 +149,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_FirstSlightlyGreaterThanLast_ThrowsException EXPECT_THROW(anAdaptor.Load(myLine, aParam1, aParam2), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Constructor_DegeneratedCurve_Success) { @@ -161,7 +161,7 @@ TEST_F(GeomAdaptor_Curve_Test, Constructor_DegeneratedCurve_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), 0.0); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Constructor_InvalidParameters_ThrowsException) { @@ -169,7 +169,7 @@ TEST_F(GeomAdaptor_Curve_Test, Constructor_InvalidParameters_ThrowsException) EXPECT_THROW(GeomAdaptor_Curve anAdaptor(myCircle, 10.0, 0.0), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Load_NullCurve_ThrowsException) { @@ -180,7 +180,7 @@ TEST_F(GeomAdaptor_Curve_Test, Load_NullCurve_ThrowsException) EXPECT_THROW(anAdaptor.Load(aNullCurve, 0.0, 10.0), Standard_NullObject); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, DegeneratedCurve_CircleAtZeroLength_Success) { @@ -198,7 +198,7 @@ TEST_F(GeomAdaptor_Curve_Test, DegeneratedCurve_CircleAtZeroLength_Success) EXPECT_TRUE(anAdaptor.IsClosed() || anAdaptor.FirstParameter() == anAdaptor.LastParameter()); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, DegeneratedCurve_TrimmedCurve_Success) { @@ -213,7 +213,7 @@ TEST_F(GeomAdaptor_Curve_Test, DegeneratedCurve_TrimmedCurve_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, ToleranceBoundary_NegativeCase_ThrowsException) { @@ -225,7 +225,7 @@ TEST_F(GeomAdaptor_Curve_Test, ToleranceBoundary_NegativeCase_ThrowsException) EXPECT_THROW(anAdaptor.Load(myLine, aParam1, aParam2), Standard_ConstructionError); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, LoadWithoutParameters_Success) { @@ -238,7 +238,7 @@ TEST_F(GeomAdaptor_Curve_Test, LoadWithoutParameters_Success) EXPECT_TRUE(anAdaptor.IsPeriodic()); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, DegeneratedCurve_MultipleLocations_Success) { @@ -256,7 +256,7 @@ TEST_F(GeomAdaptor_Curve_Test, DegeneratedCurve_MultipleLocations_Success) } } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, BoundaryConditions_VerySmallInterval_Success) { @@ -271,7 +271,7 @@ TEST_F(GeomAdaptor_Curve_Test, BoundaryConditions_VerySmallInterval_Success) EXPECT_DOUBLE_EQ(anAdaptor.LastParameter(), aParam2); } -//================================================================================================== +//================================================================================================= TEST_F(GeomAdaptor_Curve_Test, Constructor_WithValidRange_Success) { diff --git a/src/ModelingData/TKG3d/GTests/GeomGridEval_BSplineSurface_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomGridEval_BSplineSurface_Test.cxx index 7b44cae37c..a6fe56858c 100644 --- a/src/ModelingData/TKG3d/GTests/GeomGridEval_BSplineSurface_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomGridEval_BSplineSurface_Test.cxx @@ -134,9 +134,9 @@ occ::handle CreateMultiSpanBSplineSurface() } } // namespace -//================================================================================================== +//================================================================================================= // Basic Evaluation Tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_BSplineSurfaceTest, BasicEvaluation) { @@ -272,9 +272,9 @@ TEST(GeomGridEval_BSplineSurfaceTest, HigherDegree) } } -//================================================================================================== +//================================================================================================= // Isoline Evaluation Tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_BSplineSurfaceTest, IsolineU_CompareToGeomD0) { @@ -381,9 +381,9 @@ TEST(GeomGridEval_BSplineSurfaceTest, IsolineRational_CompareToGeomD0) } } -//================================================================================================== +//================================================================================================= // Derivative Tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_BSplineSurfaceTest, DerivativeD1) { @@ -479,9 +479,9 @@ TEST(GeomGridEval_BSplineSurfaceTest, DerivativeD3) } } -//================================================================================================== +//================================================================================================= // DN (Arbitrary Order Derivative) Tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_BSplineSurfaceTest, DerivativeDN_U1V0) { diff --git a/src/ModelingData/TKG3d/GTests/GeomGridEval_Cone_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomGridEval_Cone_Test.cxx index 531ace902f..a0f99f6078 100644 --- a/src/ModelingData/TKG3d/GTests/GeomGridEval_Cone_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomGridEval_Cone_Test.cxx @@ -37,9 +37,9 @@ NCollection_Array1 CreateUniformParams(double theFirst, double theLast, } } // namespace -//================================================================================================== +//================================================================================================= // Grid evaluation tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_ConeTest, GridBasicEvaluation) { diff --git a/src/ModelingData/TKG3d/GTests/GeomGridEval_Curve_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomGridEval_Curve_Test.cxx index ca7e1f1d0c..37b077d9fa 100644 --- a/src/ModelingData/TKG3d/GTests/GeomGridEval_Curve_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomGridEval_Curve_Test.cxx @@ -71,9 +71,9 @@ occ::handle CreateSimpleBSpline() } } // namespace -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_Line -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_LineTest, BasicEvaluation) { @@ -119,9 +119,9 @@ TEST(GeomGridEval_LineTest, NonOriginLine) EXPECT_NEAR(aGrid.Value(6).Distance(aLast), 0.0, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_Circle -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_CircleTest, BasicEvaluation) { @@ -184,9 +184,9 @@ TEST(GeomGridEval_CircleTest, NonStandardCircle) } } -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_BSplineCurve -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_BSplineCurveTest, BasicEvaluation) { @@ -226,9 +226,9 @@ TEST(GeomGridEval_BSplineCurveTest, EndpointsMatch) EXPECT_NEAR(aGrid.Value(2).Distance(gp_Pnt(4, 0, 0)), 0.0, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_OtherCurve (fallback) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_OtherCurveTest, EllipseFallback) { @@ -251,9 +251,9 @@ TEST(GeomGridEval_OtherCurveTest, EllipseFallback) } } -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_Curve (unified dispatcher) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_CurveTest, LineDispatch) { @@ -455,9 +455,9 @@ TEST(GeomGridEval_CurveTest, EmptyParams) EXPECT_TRUE(aGrid.IsEmpty()); } -//================================================================================================== +//================================================================================================= // Additional tests for B-spline curves (from BSplCLib_GridEvaluator_Test) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_BSplineCurveTest, RationalBSpline) { @@ -571,9 +571,9 @@ TEST(GeomGridEval_BSplineCurveTest, HighDegree) } } -//================================================================================================== +//================================================================================================= // Tests for Curve Derivative Evaluation (D1, D2, D3) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_LineTest, DerivativeD1) { @@ -773,9 +773,9 @@ TEST(GeomGridEval_CurveTest, UnifiedDerivativeD2) } } -//================================================================================================== +//================================================================================================= // Tests for Curve Third Derivative Evaluation (D3) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_CircleTest, DerivativeD3) { @@ -877,9 +877,9 @@ TEST(GeomGridEval_CurveTest, UnifiedDerivativeD3) } } -//================================================================================================== +//================================================================================================= // Tests for BSpline Curve DN (Arbitrary Order Derivative) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_BSplineCurveTest, DerivativeDN_Order1) { diff --git a/src/ModelingData/TKG3d/GTests/GeomGridEval_Cylinder_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomGridEval_Cylinder_Test.cxx index 4feb339d95..8f5ddd45b0 100644 --- a/src/ModelingData/TKG3d/GTests/GeomGridEval_Cylinder_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomGridEval_Cylinder_Test.cxx @@ -37,9 +37,9 @@ NCollection_Array1 CreateUniformParams(double theFirst, double theLast, } } // namespace -//================================================================================================== +//================================================================================================= // Grid evaluation tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_CylinderTest, GridBasicEvaluation) { diff --git a/src/ModelingData/TKG3d/GTests/GeomGridEval_Sphere_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomGridEval_Sphere_Test.cxx index c9b936f929..c335a6648c 100644 --- a/src/ModelingData/TKG3d/GTests/GeomGridEval_Sphere_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomGridEval_Sphere_Test.cxx @@ -37,9 +37,9 @@ NCollection_Array1 CreateUniformParams(double theFirst, double theLast, } } // namespace -//================================================================================================== +//================================================================================================= // Grid evaluation tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_SphereTest, GridBasicEvaluation) { diff --git a/src/ModelingData/TKG3d/GTests/GeomGridEval_Surface_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomGridEval_Surface_Test.cxx index effac02b82..8944d48893 100644 --- a/src/ModelingData/TKG3d/GTests/GeomGridEval_Surface_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomGridEval_Surface_Test.cxx @@ -85,9 +85,9 @@ occ::handle CreateSimpleBSplineSurface() } } // namespace -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_Plane -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_PlaneTest, BasicEvaluation) { @@ -143,9 +143,9 @@ TEST(GeomGridEval_PlaneTest, NonOriginPlane) EXPECT_NEAR(aGrid.Value(2, 2).Y(), 2.0, THE_TOLERANCE); } -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_Sphere -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_SphereTest, BasicEvaluation) { @@ -213,9 +213,9 @@ TEST(GeomGridEval_SphereTest, NonUnitSphere) } } -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_OtherSurface (fallback) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_OtherSurfaceTest, CylinderFallback) { @@ -242,9 +242,9 @@ TEST(GeomGridEval_OtherSurfaceTest, CylinderFallback) } } -//================================================================================================== +//================================================================================================= // Tests for GeomGridEval_Surface (unified dispatcher) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_SurfaceTest, PlaneDispatch) { @@ -481,9 +481,9 @@ TEST(GeomGridEval_SurfaceTest, EmptyParams) EXPECT_TRUE(aGrid.IsEmpty()); } -//================================================================================================== +//================================================================================================= // Tests for Surface Derivative Evaluation (D1, D2) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_PlaneTest, DerivativeD1) { @@ -646,9 +646,9 @@ TEST(GeomGridEval_SurfaceTest, UnifiedDerivativeD2) } } -//================================================================================================== +//================================================================================================= // Tests for Surface Third Derivative Evaluation (D3) -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_PlaneTest, DerivativeD3) { diff --git a/src/ModelingData/TKG3d/GTests/GeomGridEval_Torus_Test.cxx b/src/ModelingData/TKG3d/GTests/GeomGridEval_Torus_Test.cxx index f5ffa8c8db..bc48da27c7 100644 --- a/src/ModelingData/TKG3d/GTests/GeomGridEval_Torus_Test.cxx +++ b/src/ModelingData/TKG3d/GTests/GeomGridEval_Torus_Test.cxx @@ -37,9 +37,9 @@ NCollection_Array1 CreateUniformParams(double theFirst, double theLast, } } // namespace -//================================================================================================== +//================================================================================================= // Grid evaluation tests -//================================================================================================== +//================================================================================================= TEST(GeomGridEval_TorusTest, GridBasicEvaluation) { diff --git a/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve.cxx b/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve.cxx index 3eb6c9cd3c..c93dab6b6e 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve.cxx @@ -14,18 +14,18 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Avril 1991 : constructeurs + methodes de lecture. -// Mai 1991 : revue des specifs + debut de realisation des classes tool => -// implementation des methodes Set et calcul du point courant. -// Juillet 1991 : voir egalement File Geom_BSplineCurve_1.cxx -// Juin 1992 : mise a plat des valeurs nodales - amelioration des -// performances sur calcul du point courant +// April 1991 : constructors + read methods. +// May 1991 : spec review + start of tool class implementation => +// implementation of Set methods and current point computation. +// July 1991 : see also file Geom_BSplineCurve_1.cxx +// June 1992 : flattening of nodal values - performance improvements +// on current point computation // RLE Aug 1993 Remove Swaps, Remove typedefs, Update BSplCLib // debug periodic, IncreaseDegree // 21-Mar-95 : xab implemented cache // 14-Mar-96 : xab implemented MovePointAndTangent -// 13-Oct-96 : pmn Bug dans SetPeriodic (PRO6088) et Segment (PRO6250) +// 13-Oct-96 : pmn Bug in SetPeriodic (PRO6088) and Segment (PRO6250) #include #include @@ -560,8 +560,8 @@ void Geom_BSplineCurve::Segment(const double U1, const double U2, const double t myKnots.Upper(), index, U); - // Test si l'insertion est Ok et decalage sinon. - if (std::abs(myKnots.Value(index + 1) - U) <= Eps) // <= pour etre homogene a InsertKnots + // Test if the insertion is OK, shift otherwise. + if (std::abs(myKnots.Value(index + 1) - U) <= Eps) // <= to be consistent with InsertKnots index++; SetOrigin(index); SetNotPeriodic(); @@ -836,7 +836,7 @@ void Geom_BSplineCurve::SetOrigin(const double U, const double Tol) { if (!myPeriodic) throw Standard_NoSuchObject("Geom_BSplineCurve::SetOrigin"); - // U est il dans la period. + // Is U within the period? double uf = FirstParameter(), ul = LastParameter(); double u = U, period = ul - uf; while (Tol < (uf - u)) @@ -845,7 +845,7 @@ void Geom_BSplineCurve::SetOrigin(const double U, const double Tol) u -= period; if (std::abs(U - u) > Tol) - { // On reparametre la courbe + { // Reparametrize the curve ClearEvalRepresentation(); double delta = U - u; uf += delta; diff --git a/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve_1.cxx b/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve_1.cxx index 0caa65e123..4f90e01d97 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve_1.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_BSplineCurve_1.cxx @@ -654,7 +654,7 @@ void Geom_BSplineCurve::LocateU(const double U, double NewU = U; const NCollection_Array1& CKnots = WithKnotRepetition ? myFlatKnots : myKnots; - PeriodicNormalization(NewU); // Attention a la periode + PeriodicNormalization(NewU); // Handle periodicity double UFirst = CKnots(1); double ULast = CKnots(CKnots.Length()); diff --git a/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface.cxx b/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface.cxx index faef2b0241..e18851da49 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface.cxx @@ -14,12 +14,12 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// 14-Mar-96 : xab portage hp -// pmn : 28-Jun-96 Distinction entre la continuite en U et V (bug PRO4625) -// pmn : 07-Jan-97 Centralisation des verif rational (PRO6834) -// et ajout des InvalideCache() dans les SetWeight*(PRO6833) -// RBD : 15-10-98 ; Le cache est maintenant calcule sur [-1,1] (pro15537). -// jct : 19-01-99 ; permutation de myURational et myVRational dans Rational. +// 14-Mar-96 : xab HP port +// pmn : 28-Jun-96 Distinguish between U and V continuity (bug PRO4625) +// pmn : 07-Jan-97 Centralized rational checks (PRO6834) +// and added InvalidateCache() in SetWeight* methods (PRO6833) +// RBD : 15-10-98 ; The cache is now computed on [-1,1] (pro15537). +// jct : 19-01-99 ; Swapped myURational and myVRational in Rational. #include #include @@ -1292,7 +1292,7 @@ void Geom_BSplineSurface::SetWeightCol(const int VIndex, myWeights(I + myWeights.LowerRow() - 1, VIndex + myWeights.LowerCol() - 1) = CPoleWeights(I); I++; } - // Verifie si c'est rationnel + // Check if it is rational Rational(myWeights, myURational, myVRational); if (!myURational && !myVRational) myWeights = BSplSLib::UnitWeights(myPoles.ColLength(), myPoles.RowLength()); @@ -1331,7 +1331,7 @@ void Geom_BSplineSurface::SetWeightRow(const int UIndex, myWeights(UIndex + myWeights.LowerRow() - 1, I + myWeights.LowerCol() - 1) = CPoleWeights(I); I++; } - // Verifie si c'est rationnel + // Check if it is rational Rational(myWeights, myURational, myVRational); if (!myURational && !myVRational) myWeights = BSplSLib::UnitWeights(myPoles.ColLength(), myPoles.RowLength()); diff --git a/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface_1.cxx b/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface_1.cxx index 532dfe32bb..b205c0e419 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface_1.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_BSplineSurface_1.cxx @@ -16,12 +16,12 @@ // xab : 30-Mar-95 introduced cache mechanism for surfaces // xab : 21-Jun-95 in remove knots sync size of weights and poles -// pmn : 28-Jun-96 Distinction entre la continuite en U et V (bug PRO4625) -// pmn : 07-Jan-97 Centralisation des verif rational (PRO6834) -// et ajout des InvalideCache() dans les SetPole* (PRO6833) -// pmn : 03-Feb-97 Prise en compte de la periode dans Locate(U/V) (PRO6963) -// + bon appel a LocateParameter (PRO6973). -// RBD : 15/10/98 ; Le cache est desormais defini sur [-1,1] (pro15537). +// pmn : 28-Jun-96 Distinguish between U and V continuity (bug PRO4625) +// pmn : 07-Jan-97 Centralized rational checks (PRO6834) +// and added InvalidateCache() in SetPole* methods (PRO6833) +// pmn : 03-Feb-97 Account for the period in Locate(U/V) (PRO6963) +// + correct call to LocateParameter (PRO6973). +// RBD : 15/10/98 ; The cache is now defined on [-1,1] (pro15537). #include #include @@ -1420,7 +1420,7 @@ void Geom_BSplineSurface::LocateU(const double U, double NewU = U, vbid = myVKnots.Value(1); const NCollection_Array1& TheKnots = WithKnotRepetition ? myUFlatKnots : myUKnots; - PeriodicNormalization(NewU, vbid); // Attention a la periode + PeriodicNormalization(NewU, vbid); // Handle periodicity double UFirst = TheKnots(1); double ULast = TheKnots(TheKnots.Length()); @@ -1474,7 +1474,7 @@ void Geom_BSplineSurface::LocateV(const double V, double NewV = V, ubid = myUKnots.Value(1); const NCollection_Array1& TheKnots = WithKnotRepetition ? myVFlatKnots : myVKnots; - PeriodicNormalization(ubid, NewV); // Attention a la periode + PeriodicNormalization(ubid, NewV); // Handle periodicity double VFirst = TheKnots(1); double VLast = TheKnots(TheKnots.Length()); diff --git a/src/ModelingData/TKG3d/Geom/Geom_BezierCurve.cxx b/src/ModelingData/TKG3d/Geom/Geom_BezierCurve.cxx index 574e9edc9b..d040f5e9e6 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_BezierCurve.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_BezierCurve.cxx @@ -14,11 +14,11 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Passage en classe persistante - 23/01/91 -// Modif suite a la deuxieme revue de projet toolkit Geometry -23/01/91 -// Infos : -// Actuellement pour les champs de la courbe le tableau des poles est -// declare de 1 a NbPoles et le tableau des poids est declare de 1 a NbPoles +// Converted to persistent class - 23/01/91 +// Modified after second review of toolkit Geometry project - 23/01/91 +// Info: +// Currently for the curve fields, the poles array is declared from 1 to NbPoles +// and the weights array is declared from 1 to NbPoles // Revised RLE Aug 19 1993 // Suppressed Swaps, added Init, removed typedefs diff --git a/src/ModelingData/TKG3d/Geom/Geom_BezierSurface.cxx b/src/ModelingData/TKG3d/Geom/Geom_BezierSurface.cxx index e0142b3723..c5e36e1653 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_BezierSurface.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_BezierSurface.cxx @@ -14,14 +14,14 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Passage en classe persistante - 23/01/91 -// Modif suite a la deuxieme revue de projet toolkit Geometry -23/01/91 -// pmn : 21/10/95 ; Correction de la methode segment (PRO5853) -// pmn : 31-Dec-96; Bonne gestion des poids (bug PRO4622) -// xab : 07-Jul-97; le cache est instable en degree 21 -// a partir du degree 15 on ne l'utilise plus -// RBD : 15/10/98 ; Le cache est desormais defini sur [-1,1] (pro15537). -// pmn : 10/12/98 ; Update de la methode segment (suite a la modif de cache). +// Converted to persistent class - 23/01/91 +// Modified after second review of toolkit Geometry project - 23/01/91 +// pmn : 21/10/95 ; Fix of the Segment method (PRO5853) +// pmn : 31-Dec-96; Proper weight management (bug PRO4622) +// xab : 07-Jul-97; the cache is unstable at degree 21, +// from degree 15 onwards it is no longer used +// RBD : 15/10/98 ; The cache is now defined on [-1,1] (pro15537). +// pmn : 10/12/98 ; Update of the Segment method (following cache modification). #include @@ -1466,7 +1466,7 @@ Geom_Surface::ResD2 Geom_BezierSurface::EvalD2(const double U, const double V) c Geom_Surface::ResD2 aResult; if (myURational || myVRational) { - //-- ATTENTION a l'ORDRE d'appel ds BSPLSLIB + //-- WARNING: pay attention to the ORDER of arguments in BSPLSLIB BSplSLib::D2(U, V, 1, @@ -1492,7 +1492,7 @@ Geom_Surface::ResD2 Geom_BezierSurface::EvalD2(const double U, const double V) c } else { - //-- ATTENTION a l'ORDRE d'appel ds BSPLSLIB + //-- WARNING: pay attention to the ORDER of arguments in BSPLSLIB BSplSLib::D2(U, V, 1, diff --git a/src/ModelingData/TKG3d/Geom/Geom_ConicalSurface.cxx b/src/ModelingData/TKG3d/Geom/Geom_ConicalSurface.cxx index cb7a4496c2..fb056a0502 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_ConicalSurface.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_ConicalSurface.cxx @@ -222,7 +222,7 @@ void Geom_ConicalSurface::Coefficients(double& A1, double& C3, double& D) const { - // Dans le repere du cone : + // In the local coordinate system of the cone: // X**2 + Y**2 - (Myradius - Z * std::tan(semiAngle))**2 = 0.0 Trsf T; diff --git a/src/ModelingData/TKG3d/Geom/Geom_CylindricalSurface.cxx b/src/ModelingData/TKG3d/Geom/Geom_CylindricalSurface.cxx index 9fafb420f0..2574b9cd94 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_CylindricalSurface.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_CylindricalSurface.cxx @@ -174,7 +174,7 @@ void Geom_CylindricalSurface::Coefficients(double& A1, double& C3, double& D) const { - // Dans le repere local du cylindre : + // In the local coordinate system of the cylinder: // X**2 + Y**2 - radius = 0.0 Trsf T; diff --git a/src/ModelingData/TKG3d/Geom/Geom_Geometry.hxx b/src/ModelingData/TKG3d/Geom/Geom_Geometry.hxx index 5939d343d2..4f7b6456e9 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_Geometry.hxx +++ b/src/ModelingData/TKG3d/Geom/Geom_Geometry.hxx @@ -104,7 +104,7 @@ public: const gp_Pnt& P2) const; //! Creates a new object which is a copy of this geometric object. - Standard_EXPORT virtual occ::handle Copy() const = 0; + [[nodiscard]] Standard_EXPORT virtual occ::handle Copy() const = 0; //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const; diff --git a/src/ModelingData/TKG3d/Geom/Geom_OffsetCurve.cxx b/src/ModelingData/TKG3d/Geom/Geom_OffsetCurve.cxx index e7fae70eb2..7cbef0c2a2 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_OffsetCurve.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_OffsetCurve.cxx @@ -14,9 +14,9 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// 24-Aug-95 : xab removed C1 and C2 test : appeller D1 et D2 -// avec discernement ! -// 19-09-97 : JPI correction derivee seconde +// 24-Aug-95 : xab removed C1 and C2 test: call D1 and D2 +// with discretion! +// 19-09-97 : JPI second derivative fix #include #include @@ -46,7 +46,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Geom_OffsetCurve, Geom_Curve) static const double MyAngularToleranceForG1 = Precision::Angular(); -//================================================================================================== +//================================================================================================= void Geom_OffsetCurve::SetEvalRepresentation( const occ::handle& theDesc) @@ -55,18 +55,18 @@ void Geom_OffsetCurve::SetEvalRepresentation( myEvalRep = theDesc; } -//================================================================================================== +//================================================================================================= occ::handle Geom_OffsetCurve::Copy() const { return new Geom_OffsetCurve(*this); } -//================================================================================================== +//================================================================================================= // function : Geom_OffsetCurve // purpose : Basis curve cannot be an Offset curve or trimmed from // offset curve. -//================================================================================================== +//================================================================================================= Geom_OffsetCurve::Geom_OffsetCurve(const Geom_OffsetCurve& theOther) : basisCurve(occ::down_cast(theOther.basisCurve->Copy())), @@ -78,7 +78,7 @@ Geom_OffsetCurve::Geom_OffsetCurve(const Geom_OffsetCurve& theOther) // Deep copy without validation - source curve is already validated } -//================================================================================================== +//================================================================================================= Geom_OffsetCurve::Geom_OffsetCurve(const occ::handle& theCurve, const double theOffset, @@ -90,7 +90,7 @@ Geom_OffsetCurve::Geom_OffsetCurve(const occ::handle& theCurve, SetBasisCurve(theCurve, isTheNotCheckC0); } -//================================================================================================== +//================================================================================================= void Geom_OffsetCurve::Reverse() { @@ -99,21 +99,21 @@ void Geom_OffsetCurve::Reverse() offsetValue = -offsetValue; } -//================================================================================================== +//================================================================================================= double Geom_OffsetCurve::ReversedParameter(const double U) const { return basisCurve->ReversedParameter(U); } -//================================================================================================== +//================================================================================================= const gp_Dir& Geom_OffsetCurve::Direction() const { return direction; } -//================================================================================================== +//================================================================================================= void Geom_OffsetCurve::SetDirection(const gp_Dir& V) { @@ -121,7 +121,7 @@ void Geom_OffsetCurve::SetDirection(const gp_Dir& V) direction = V; } -//================================================================================================== +//================================================================================================= void Geom_OffsetCurve::SetOffsetValue(const double D) { @@ -129,21 +129,21 @@ void Geom_OffsetCurve::SetOffsetValue(const double D) offsetValue = D; } -//================================================================================================== +//================================================================================================= bool Geom_OffsetCurve::IsPeriodic() const { return basisCurve->IsPeriodic(); } -//================================================================================================== +//================================================================================================= double Geom_OffsetCurve::Period() const { return basisCurve->Period(); } -//================================================================================================== +//================================================================================================= void Geom_OffsetCurve::SetBasisCurve(const occ::handle& C, const bool isNotCheckC0) { @@ -217,14 +217,14 @@ void Geom_OffsetCurve::SetBasisCurve(const occ::handle& C, const boo } } -//================================================================================================== +//================================================================================================= occ::handle Geom_OffsetCurve::BasisCurve() const { return basisCurve; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom_OffsetCurve::Continuity() const { @@ -256,7 +256,7 @@ GeomAbs_Shape Geom_OffsetCurve::Continuity() const return OffsetShape; } -//================================================================================================== +//================================================================================================= gp_Pnt Geom_OffsetCurve::EvalD0(const double theU) const { @@ -273,7 +273,7 @@ gp_Pnt Geom_OffsetCurve::EvalD0(const double theU) const return aValue; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD1 Geom_OffsetCurve::EvalD1(const double theU) const { @@ -291,7 +291,7 @@ Geom_Curve::ResD1 Geom_OffsetCurve::EvalD1(const double theU) const return Geom_Curve::ResD1{aValue, aD1}; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD2 Geom_OffsetCurve::EvalD2(const double theU) const { @@ -329,7 +329,7 @@ Geom_Curve::ResD2 Geom_OffsetCurve::EvalD2(const double theU) const return Geom_Curve::ResD2{aValue, aD1, aD2}; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD3 Geom_OffsetCurve::EvalD3(const double theU) const { @@ -369,7 +369,7 @@ Geom_Curve::ResD3 Geom_OffsetCurve::EvalD3(const double theU) const return Geom_Curve::ResD3{aValue, aD1, aD2, aD3}; } -//================================================================================================== +//================================================================================================= gp_Vec Geom_OffsetCurve::EvalDN(const double U, const int N) const { @@ -396,28 +396,28 @@ gp_Vec Geom_OffsetCurve::EvalDN(const double U, const int N) const } } -//================================================================================================== +//================================================================================================= double Geom_OffsetCurve::FirstParameter() const { return basisCurve->FirstParameter(); } -//================================================================================================== +//================================================================================================= double Geom_OffsetCurve::LastParameter() const { return basisCurve->LastParameter(); } -//================================================================================================== +//================================================================================================= double Geom_OffsetCurve::Offset() const { return offsetValue; } -//================================================================================================== +//================================================================================================= bool Geom_OffsetCurve::IsClosed() const { @@ -427,7 +427,7 @@ bool Geom_OffsetCurve::IsClosed() const return PF.SquareDistance(PL) <= Precision::Computational(); } -//================================================================================================== +//================================================================================================= bool Geom_OffsetCurve::IsCN(const int N) const { @@ -435,7 +435,7 @@ bool Geom_OffsetCurve::IsCN(const int N) const return basisCurve->IsCN(N + 1); } -//================================================================================================== +//================================================================================================= void Geom_OffsetCurve::Transform(const gp_Trsf& T) { @@ -445,28 +445,28 @@ void Geom_OffsetCurve::Transform(const gp_Trsf& T) offsetValue *= T.ScaleFactor(); } -//================================================================================================== +//================================================================================================= double Geom_OffsetCurve::TransformedParameter(const double U, const gp_Trsf& T) const { return basisCurve->TransformedParameter(U, T); } -//================================================================================================== +//================================================================================================= double Geom_OffsetCurve::ParametricTransformation(const gp_Trsf& T) const { return basisCurve->ParametricTransformation(T); } -//================================================================================================== +//================================================================================================= GeomAbs_Shape Geom_OffsetCurve::GetBasisCurveContinuity() const { return myBasisCurveContinuity; } -//================================================================================================== +//================================================================================================= void Geom_OffsetCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/Geom/Geom_OffsetSurface.cxx b/src/ModelingData/TKG3d/Geom/Geom_OffsetSurface.cxx index 94537a8833..663ea89c34 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_OffsetSurface.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_OffsetSurface.cxx @@ -112,11 +112,7 @@ occ::handle Geom_OffsetSurface::Copy() const return new Geom_OffsetSurface(*this); } -//======================================================================= -// function : Geom_OffsetSurface -// purpose : Basis surface cannot be an Offset surface or trimmed from -// offset surface. -//======================================================================= +//================================================================================================= Geom_OffsetSurface::Geom_OffsetSurface(const Geom_OffsetSurface& theOther) : basisSurf(occ::down_cast(theOther.basisSurf->Copy())), @@ -261,10 +257,10 @@ void Geom_OffsetSurface::SetBasisSurface(const occ::handle& S, if (aCheckingSurf->IsKind(STANDARD_TYPE(Geom_BSplineSurface)) || aCheckingSurf->IsKind(STANDARD_TYPE(Geom_BezierSurface))) { - // Tolerance en dur pour l'instant ,mais on devrait la proposer dans le constructeur - // et la mettre en champ, on pourrait utiliser par exemple pour l'extraction d'iso - // et aussi pour les singularite. Pour les surfaces osculatrices, on l'utilise pour - // detecter si une iso est degeneree. + // Hard-coded tolerance for now, but it should be offered in the constructor + // and stored as a field. It could be used, for example, for iso-curve extraction + // and also for singularity detection. For osculating surfaces, it is used to + // detect whether an iso-curve is degenerate. constexpr double Tol = Precision::Confusion(); // 0.0001; myOscSurf = std::make_unique(aCheckingSurf, Tol); } @@ -597,13 +593,7 @@ void Geom_OffsetSurface_VIsoEvaluator::Evaluate(int*, /*Dimension*/ *ReturnCode = 0; } -//======================================================================= -// function : UIso -// purpose : The Uiso or the VIso of an OffsetSurface can't be clearly -// exprimed as a curve from Geom (except some particular cases). -// So, to extract the U or VIso an Approximation is needed. -// This approx always will return a BSplineCurve from Geom. -//======================================================================= +//================================================================================================= occ::handle Geom_OffsetSurface::UIso(const double UU) const { @@ -865,7 +855,7 @@ gp_GTrsf2d Geom_OffsetSurface::ParametricTransformation(const gp_Trsf& T) const return basisSurf->ParametricTransformation(T); } -//================================================================================================== +//================================================================================================= occ::handle Geom_OffsetSurface::Surface() const { diff --git a/src/ModelingData/TKG3d/Geom/Geom_OsculatingSurface.cxx b/src/ModelingData/TKG3d/Geom/Geom_OsculatingSurface.cxx index 5251ad9aa9..115ef855d4 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_OsculatingSurface.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_OsculatingSurface.cxx @@ -580,8 +580,8 @@ bool Geom_OsculatingSurface::buildOsculatingSurface(double theParam, vspanlength = theBS->VKnot(theSVKnot + 1) - theBS->VKnot(theSVKnot); uspanlength = theBS->UKnot(theSUKnot + 1) - theBS->UKnot(theSUKnot); - // On se ramene toujours a un parametrage tel que localement ce soit l'iso - // u=0 ou v=0 qui soit degeneree + // Always reduce to a parametrization such that locally it is the iso + // u=0 or v=0 that is degenerate bool IsVNegative = theParam > vcacheparameter + vspanlength / 2; bool IsUNegative = theParam > ucacheparameter + uspanlength / 2; diff --git a/src/ModelingData/TKG3d/Geom/Geom_SphericalSurface.cxx b/src/ModelingData/TKG3d/Geom/Geom_SphericalSurface.cxx index 8dbe8445ec..bc0147c66d 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_SphericalSurface.cxx +++ b/src/ModelingData/TKG3d/Geom/Geom_SphericalSurface.cxx @@ -176,7 +176,7 @@ void Geom_SphericalSurface::Coefficients(double& A1, double& D) const { - // Dans le repere local de la sphere : + // In the local coordinate system of the sphere: // X*X + Y*Y + Z*Z - radius * radius = 0 Trsf T; diff --git a/src/ModelingData/TKG3d/Geom/Geom_Transformation.hxx b/src/ModelingData/TKG3d/Geom/Geom_Transformation.hxx index 1da8d3eea3..178b54f82b 100644 --- a/src/ModelingData/TKG3d/Geom/Geom_Transformation.hxx +++ b/src/ModelingData/TKG3d/Geom/Geom_Transformation.hxx @@ -196,7 +196,7 @@ public: } //! Creates a new object which is a copy of this transformation. - Standard_EXPORT occ::handle Copy() const; + [[nodiscard]] Standard_EXPORT occ::handle Copy() const; //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const; diff --git a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Curve.cxx b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Curve.cxx index a3ba400950..511b0e46c0 100644 --- a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Curve.cxx +++ b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Curve.cxx @@ -14,9 +14,9 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// 20/02/97 : PMN -> Positionement local sur BSpline (PRO6902) -// 10/07/97 : PMN -> Pas de calcul de resolution dans Nb(Intervals)(PRO9248) -// 20/10/97 : RBV -> traitement des offset curves +// 20/02/97 : PMN -> Local positioning on BSpline (PRO6902) +// 10/07/97 : PMN -> No resolution computation in Nb(Intervals) (PRO9248) +// 20/10/97 : RBV -> Handling of offset curves #define No_Standard_RangeError #define No_Standard_OutOfRange @@ -176,13 +176,13 @@ GeomAbs_Shape GeomAdaptor_Curve::LocalContinuity(const double U1, const double U if (std::abs(newLast - TK(Index2)) < Precision::PConfusion()) Index2--; int MultMax; - // attention aux courbes peridiques. + // Handle periodic curves. if ((aBSpl->IsPeriodic()) && (Index1 == Nb)) Index1 = 1; if ((Index2 - Index1 <= 0) && (!aBSpl->IsPeriodic())) { - MultMax = 100; // CN entre 2 Noeuds consecutifs + MultMax = 100; // CN between 2 consecutive nodes } else { diff --git a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Surface.cxx b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Surface.cxx index 5beddf819d..4470137466 100644 --- a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Surface.cxx +++ b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_Surface.cxx @@ -126,7 +126,7 @@ GeomAbs_Shape LocalContinuity(int Degree, Index1++; if (std::abs(newLast - TK(Index2)) < EpsKnot) Index2--; - // attention aux courbes peridiques. + // Handle periodic curves. if ((IsPeriodic) && (Index1 == Nb)) Index1 = 1; @@ -1854,7 +1854,7 @@ double GeomAdaptor_Surface::UResolution(const double R3d) const case GeomAbs_Cone: { if (myVLast - myVFirst > 1.e10) { - // Pas vraiment borne => resolution inconnue + // Not truly bounded => unknown resolution return Precision::Parametric(R3d); } occ::handle S(occ::down_cast(mySurface)); diff --git a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfRevolution.cxx b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfRevolution.cxx index 2bd0b666ce..2bb1ac52d5 100644 --- a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfRevolution.cxx +++ b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfRevolution.cxx @@ -130,7 +130,7 @@ void GeomAdaptor_SurfaceOfRevolution::Load(const gp_Ax1& V) else { double First = myBasisCurve->FirstParameter(); - P = Value(0., 0.); // ce qui ne veut pas dire grand chose + P = Value(0., 0.); // which does not mean much if (GetType() == GeomAbs_Cone) { if (gp_Lin(myAxis).Distance(P) <= Precision::Confusion()) @@ -387,7 +387,7 @@ GeomAbs_SurfaceType GeomAdaptor_SurfaceOfRevolution::GetType() const gp_Pnt pf = myBasisCurve->Value(uf); gp_Pnt pl = myBasisCurve->Value(ul); double len = pf.Distance(pl); - // on calcule la distance projetee sur l axe. + // Compute the distance projected onto the axis. gp_Vec vlin(pf, pl); gp_Vec vaxe(myAxis.Direction()); double projlen = std::abs(vaxe.Dot(vlin)); diff --git a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_TransformedSurface.cxx b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_TransformedSurface.cxx index f1fd7451b7..f98bf6223e 100644 --- a/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_TransformedSurface.cxx +++ b/src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_TransformedSurface.cxx @@ -18,11 +18,11 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomAdaptor_TransformedSurface, Adaptor3d_Surface) -//================================================================================================== +//================================================================================================= GeomAdaptor_TransformedSurface::GeomAdaptor_TransformedSurface() = default; -//================================================================================================== +//================================================================================================= GeomAdaptor_TransformedSurface::GeomAdaptor_TransformedSurface( const occ::handle& theSurface, @@ -32,7 +32,7 @@ GeomAdaptor_TransformedSurface::GeomAdaptor_TransformedSurface( { } -//================================================================================================== +//================================================================================================= GeomAdaptor_TransformedSurface::GeomAdaptor_TransformedSurface( const occ::handle& theSurface, @@ -48,7 +48,7 @@ GeomAdaptor_TransformedSurface::GeomAdaptor_TransformedSurface( { } -//================================================================================================== +//================================================================================================= occ::handle GeomAdaptor_TransformedSurface::ShallowCopy() const { @@ -62,7 +62,7 @@ occ::handle GeomAdaptor_TransformedSurface::ShallowCopy() con return aCopy; } -//================================================================================================== +//================================================================================================= void GeomAdaptor_TransformedSurface::UIntervals(NCollection_Array1& theT, const GeomAbs_Shape theS) const @@ -70,7 +70,7 @@ void GeomAdaptor_TransformedSurface::UIntervals(NCollection_Array1& theT mySurf.UIntervals(theT, theS); } -//================================================================================================== +//================================================================================================= void GeomAdaptor_TransformedSurface::VIntervals(NCollection_Array1& theT, const GeomAbs_Shape theS) const @@ -78,7 +78,7 @@ void GeomAdaptor_TransformedSurface::VIntervals(NCollection_Array1& theT mySurf.VIntervals(theT, theS); } -//================================================================================================== +//================================================================================================= occ::handle GeomAdaptor_TransformedSurface::UTrim(const double theFirst, const double theLast, @@ -89,7 +89,7 @@ occ::handle GeomAdaptor_TransformedSurface::UTrim(const doubl return HS->UTrim(theFirst, theLast, theTol); } -//================================================================================================== +//================================================================================================= occ::handle GeomAdaptor_TransformedSurface::VTrim(const double theFirst, const double theLast, @@ -100,14 +100,14 @@ occ::handle GeomAdaptor_TransformedSurface::VTrim(const doubl return HS->VTrim(theFirst, theLast, theTol); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomAdaptor_TransformedSurface::Value(const double theU, const double theV) const { return mySurf.Value(theU, theV).Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= void GeomAdaptor_TransformedSurface::D0(const double theU, const double theV, gp_Pnt& theP) const { @@ -115,7 +115,7 @@ void GeomAdaptor_TransformedSurface::D0(const double theU, const double theV, gp theP.Transform(myTrsf); } -//================================================================================================== +//================================================================================================= void GeomAdaptor_TransformedSurface::D1(const double theU, const double theV, @@ -129,7 +129,7 @@ void GeomAdaptor_TransformedSurface::D1(const double theU, theD1V.Transform(myTrsf); } -//================================================================================================== +//================================================================================================= void GeomAdaptor_TransformedSurface::D2(const double theU, const double theV, @@ -149,7 +149,7 @@ void GeomAdaptor_TransformedSurface::D2(const double theU, theD2UV.Transform(myTrsf); } -//================================================================================================== +//================================================================================================= void GeomAdaptor_TransformedSurface::D3(const double theU, const double theV, @@ -188,7 +188,7 @@ void GeomAdaptor_TransformedSurface::D3(const double theU, theD3UVV.Transform(myTrsf); } -//================================================================================================== +//================================================================================================= gp_Vec GeomAdaptor_TransformedSurface::DN(const double theU, const double theV, @@ -198,70 +198,70 @@ gp_Vec GeomAdaptor_TransformedSurface::DN(const double theU, return mySurf.DN(theU, theV, theNu, theNv).Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= gp_Pln GeomAdaptor_TransformedSurface::Plane() const { return mySurf.Plane().Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= gp_Cylinder GeomAdaptor_TransformedSurface::Cylinder() const { return mySurf.Cylinder().Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= gp_Cone GeomAdaptor_TransformedSurface::Cone() const { return mySurf.Cone().Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= gp_Sphere GeomAdaptor_TransformedSurface::Sphere() const { return mySurf.Sphere().Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= gp_Torus GeomAdaptor_TransformedSurface::Torus() const { return mySurf.Torus().Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= occ::handle GeomAdaptor_TransformedSurface::Bezier() const { return occ::down_cast(mySurf.Bezier()->Transformed(myTrsf)); } -//================================================================================================== +//================================================================================================= occ::handle GeomAdaptor_TransformedSurface::BSpline() const { return occ::down_cast(mySurf.BSpline()->Transformed(myTrsf)); } -//================================================================================================== +//================================================================================================= gp_Ax1 GeomAdaptor_TransformedSurface::AxeOfRevolution() const { return mySurf.AxeOfRevolution().Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= gp_Dir GeomAdaptor_TransformedSurface::Direction() const { return mySurf.Direction().Transformed(myTrsf); } -//================================================================================================== +//================================================================================================= occ::handle GeomAdaptor_TransformedSurface::BasisCurve() const { @@ -270,7 +270,7 @@ occ::handle GeomAdaptor_TransformedSurface::BasisCurve() const return HS->BasisCurve(); } -//================================================================================================== +//================================================================================================= occ::handle GeomAdaptor_TransformedSurface::BasisSurface() const { @@ -279,7 +279,7 @@ occ::handle GeomAdaptor_TransformedSurface::BasisSurface() co return HS->BasisSurface(); } -//================================================================================================== +//================================================================================================= double GeomAdaptor_TransformedSurface::OffsetValue() const { diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierCurve.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierCurve.cxx index 6569435d83..8345dd9456 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierCurve.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierCurve.cxx @@ -360,14 +360,14 @@ void evalMixedAHT(const NCollection_Array1& thePoles, } // namespace -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierCurve::basisDimension(int theAlgDegree, double theAlpha, double theBeta) { return theAlgDegree + 1 + (theAlpha > 0.0 ? 2 : 0) + (theBeta > 0.0 ? 2 : 0); } -//================================================================================================== +//================================================================================================= GeomEval_AHTBezierCurve::GeomEval_AHTBezierCurve(const NCollection_Array1& thePoles, int theAlgDegree, @@ -399,7 +399,7 @@ GeomEval_AHTBezierCurve::GeomEval_AHTBezierCurve(const NCollection_Array1& thePoles, const NCollection_Array1& theWeights, @@ -444,77 +444,77 @@ GeomEval_AHTBezierCurve::GeomEval_AHTBezierCurve(const NCollection_Array1& GeomEval_AHTBezierCurve::Poles() const { return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& GeomEval_AHTBezierCurve::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierCurve::AlgDegree() const { return myAlgDegree; } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierCurve::Alpha() const { return myAlpha; } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierCurve::Beta() const { return myBeta; } -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierCurve::NbPoles() const { return myPoles.Size(); } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierCurve::IsRational() const { return myRational; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_AHTBezierCurve::StartPoint() const { return EvalD0(0.0); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_AHTBezierCurve::EndPoint() const { return EvalD0(1.0); } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierCurve::Reverse() { throw Standard_NotImplemented("GeomEval_AHTBezierCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierCurve::ReversedParameter(const double U) const { @@ -522,49 +522,49 @@ double GeomEval_AHTBezierCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("GeomEval_AHTBezierCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierCurve::FirstParameter() const { return 0.0; } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierCurve::LastParameter() const { return 1.0; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierCurve::IsClosed() const { return StartPoint().Distance(EndPoint()) <= Precision::Confusion(); } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomEval_AHTBezierCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_AHTBezierCurve::EvalD0(const double U) const { @@ -591,7 +591,7 @@ gp_Pnt GeomEval_AHTBezierCurve::EvalD0(const double U) const return gp_Pnt(aMixed.N0 / aMixed.W0); } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD1 GeomEval_AHTBezierCurve::EvalD1(const double U) const { @@ -631,7 +631,7 @@ Geom_Curve::ResD1 GeomEval_AHTBezierCurve::EvalD1(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD2 GeomEval_AHTBezierCurve::EvalD2(const double U) const { @@ -680,7 +680,7 @@ Geom_Curve::ResD2 GeomEval_AHTBezierCurve::EvalD2(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD3 GeomEval_AHTBezierCurve::EvalD3(const double U) const { @@ -740,7 +740,7 @@ Geom_Curve::ResD3 GeomEval_AHTBezierCurve::EvalD3(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_AHTBezierCurve::EvalDN(const double U, const int N) const { @@ -968,7 +968,7 @@ gp_Vec GeomEval_AHTBezierCurve::EvalDN(const double U, const int N) const return gp_Vec(aCDerivs[N]); } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierCurve::Transform(const gp_Trsf& T) { @@ -976,7 +976,7 @@ void GeomEval_AHTBezierCurve::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_AHTBezierCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_AHTBezierCurve::Copy() const { @@ -987,7 +987,7 @@ occ::handle GeomEval_AHTBezierCurve::Copy() const return new GeomEval_AHTBezierCurve(myPoles, myAlgDegree, myAlpha, myBeta); } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierSurface.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierSurface.cxx index 71c13fffb0..30a6f313e0 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierSurface.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_AHTBezierSurface.cxx @@ -26,14 +26,14 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_AHTBezierSurface, Geom_BoundedSurface) -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierSurface::basisDimension(int theAlgDegree, double theAlpha, double theBeta) { return theAlgDegree + 1 + (theAlpha > 0.0 ? 2 : 0) + (theBeta > 0.0 ? 2 : 0); } -//================================================================================================== +//================================================================================================= namespace { @@ -505,7 +505,7 @@ void computeRationalDerivs(const gp_XYZ* theNDerivs, } // namespace -//================================================================================================== +//================================================================================================= GeomEval_AHTBezierSurface::GeomEval_AHTBezierSurface(const NCollection_Array2& thePoles, int theAlgDegreeU, @@ -546,7 +546,7 @@ GeomEval_AHTBezierSurface::GeomEval_AHTBezierSurface(const NCollection_Array2& thePoles, const NCollection_Array2& theWeights, @@ -603,105 +603,105 @@ GeomEval_AHTBezierSurface::GeomEval_AHTBezierSurface(const NCollection_Array2& GeomEval_AHTBezierSurface::Poles() const { return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array2& GeomEval_AHTBezierSurface::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierSurface::AlgDegreeU() const { return myAlgDegreeU; } -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierSurface::AlgDegreeV() const { return myAlgDegreeV; } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierSurface::AlphaU() const { return myAlphaU; } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierSurface::AlphaV() const { return myAlphaV; } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierSurface::BetaU() const { return myBetaU; } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierSurface::BetaV() const { return myBetaV; } -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierSurface::NbPolesU() const { return myPoles.NbRows(); } -//================================================================================================== +//================================================================================================= int GeomEval_AHTBezierSurface::NbPolesV() const { return myPoles.NbColumns(); } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsURational() const { return myURational; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsVRational() const { return myVRational; } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierSurface::UReverse() { throw Standard_NotImplemented("GeomEval_AHTBezierSurface::UReverse"); } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierSurface::VReverse() { throw Standard_NotImplemented("GeomEval_AHTBezierSurface::VReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierSurface::UReversedParameter(const double U) const { @@ -709,7 +709,7 @@ double GeomEval_AHTBezierSurface::UReversedParameter(const double U) const throw Standard_NotImplemented("GeomEval_AHTBezierSurface::UReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_AHTBezierSurface::VReversedParameter(const double V) const { @@ -717,7 +717,7 @@ double GeomEval_AHTBezierSurface::VReversedParameter(const double V) const throw Standard_NotImplemented("GeomEval_AHTBezierSurface::VReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierSurface::Bounds(double& U1, double& U2, double& V1, double& V2) const { @@ -727,70 +727,70 @@ void GeomEval_AHTBezierSurface::Bounds(double& U1, double& U2, double& V1, doubl V2 = 1.0; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsUClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsVClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsUPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsVPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_AHTBezierSurface::UIso(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_AHTBezierSurface::UIso"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_AHTBezierSurface::VIso(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_AHTBezierSurface::VIso"); } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomEval_AHTBezierSurface::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsCNu(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_AHTBezierSurface::IsCNv(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_AHTBezierSurface::EvalD0(const double U, const double V) const { @@ -839,7 +839,7 @@ gp_Pnt GeomEval_AHTBezierSurface::EvalD0(const double U, const double V) const return gp_Pnt(aN[0] / aW[0]); } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD1 GeomEval_AHTBezierSurface::EvalD1(const double U, const double V) const { @@ -904,7 +904,7 @@ Geom_Surface::ResD1 GeomEval_AHTBezierSurface::EvalD1(const double U, const doub return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD2 GeomEval_AHTBezierSurface::EvalD2(const double U, const double V) const { @@ -987,7 +987,7 @@ Geom_Surface::ResD2 GeomEval_AHTBezierSurface::EvalD2(const double U, const doub return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD3 GeomEval_AHTBezierSurface::EvalD3(const double U, const double V) const { @@ -1096,7 +1096,7 @@ Geom_Surface::ResD3 GeomEval_AHTBezierSurface::EvalD3(const double U, const doub return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_AHTBezierSurface::EvalDN(const double U, const double V, @@ -1185,7 +1185,7 @@ gp_Vec GeomEval_AHTBezierSurface::EvalDN(const double U, return gp_Vec(aCDerivs[tensorIdx(Nu, Nv, Nv)]); } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierSurface::Transform(const gp_Trsf& T) { @@ -1193,7 +1193,7 @@ void GeomEval_AHTBezierSurface::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_AHTBezierSurface::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_AHTBezierSurface::Copy() const { @@ -1217,7 +1217,7 @@ occ::handle GeomEval_AHTBezierSurface::Copy() const myBetaV); } -//================================================================================================== +//================================================================================================= void GeomEval_AHTBezierSurface::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelicoidSurface.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelicoidSurface.cxx index 05ec1dd8b3..543f5e85cb 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelicoidSurface.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelicoidSurface.cxx @@ -26,7 +26,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_CircularHelicoidSurface, Geom_ElementarySurface) -//================================================================================================== +//================================================================================================= GeomEval_CircularHelicoidSurface::GeomEval_CircularHelicoidSurface(const gp_Ax3& thePosition, double thePitch) @@ -39,14 +39,14 @@ GeomEval_CircularHelicoidSurface::GeomEval_CircularHelicoidSurface(const gp_Ax3& pos = thePosition; } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelicoidSurface::Pitch() const { return myPitch; } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelicoidSurface::SetPitch(double thePitch) { @@ -58,35 +58,35 @@ void GeomEval_CircularHelicoidSurface::SetPitch(double thePitch) myPitch = thePitch; } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelicoidSurface::UReverse() { throw Standard_NotImplemented("GeomEval_CircularHelicoidSurface::UReverse"); } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelicoidSurface::VReverse() { throw Standard_NotImplemented("GeomEval_CircularHelicoidSurface::VReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelicoidSurface::UReversedParameter(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_CircularHelicoidSurface::UReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelicoidSurface::VReversedParameter(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_CircularHelicoidSurface::VReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelicoidSurface::Bounds(double& U1, double& U2, double& V1, double& V2) const { @@ -96,49 +96,49 @@ void GeomEval_CircularHelicoidSurface::Bounds(double& U1, double& U2, double& V1 V2 = Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool GeomEval_CircularHelicoidSurface::IsUClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_CircularHelicoidSurface::IsVClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_CircularHelicoidSurface::IsUPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_CircularHelicoidSurface::IsVPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_CircularHelicoidSurface::UIso(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_CircularHelicoidSurface::UIso"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_CircularHelicoidSurface::VIso(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_CircularHelicoidSurface::VIso"); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_CircularHelicoidSurface::EvalD0(const double U, const double V) const { @@ -155,7 +155,7 @@ gp_Pnt GeomEval_CircularHelicoidSurface::EvalD0(const double U, const double V) return gp_Pnt(anO + V * aCosU * aXD + V * aSinU * aYD + aZComp * aZD); } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD1 GeomEval_CircularHelicoidSurface::EvalD1(const double U, const double V) const { @@ -182,7 +182,7 @@ Geom_Surface::ResD1 GeomEval_CircularHelicoidSurface::EvalD1(const double U, con return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD2 GeomEval_CircularHelicoidSurface::EvalD2(const double U, const double V) const { @@ -216,7 +216,7 @@ Geom_Surface::ResD2 GeomEval_CircularHelicoidSurface::EvalD2(const double U, con return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD3 GeomEval_CircularHelicoidSurface::EvalD3(const double U, const double V) const { @@ -260,7 +260,7 @@ Geom_Surface::ResD3 GeomEval_CircularHelicoidSurface::EvalD3(const double U, con return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_CircularHelicoidSurface::EvalDN(const double U, const double V, @@ -314,7 +314,7 @@ gp_Vec GeomEval_CircularHelicoidSurface::EvalDN(const double U, return gp_Vec(aCoeffX * aXD + aCoeffY * aYD); } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelicoidSurface::Transform(const gp_Trsf& T) { @@ -322,14 +322,14 @@ void GeomEval_CircularHelicoidSurface::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_CircularHelicoidSurface::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_CircularHelicoidSurface::Copy() const { return new GeomEval_CircularHelicoidSurface(pos, myPitch); } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelicoidSurface::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelixCurve.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelixCurve.cxx index c28c5bd546..61bed9c912 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelixCurve.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_CircularHelixCurve.cxx @@ -25,7 +25,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_CircularHelixCurve, Geom_Curve) -//================================================================================================== +//================================================================================================= GeomEval_CircularHelixCurve::GeomEval_CircularHelixCurve(const gp_Ax2& thePosition, double theRadius, @@ -40,35 +40,35 @@ GeomEval_CircularHelixCurve::GeomEval_CircularHelixCurve(const gp_Ax2& thePositi } } -//================================================================================================== +//================================================================================================= const gp_Ax2& GeomEval_CircularHelixCurve::Position() const { return myPosition; } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelixCurve::Radius() const { return myRadius; } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelixCurve::Pitch() const { return myPitch; } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelixCurve::Reverse() { throw Standard_NotImplemented("GeomEval_CircularHelixCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelixCurve::ReversedParameter(const double U) const { @@ -76,49 +76,49 @@ double GeomEval_CircularHelixCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("GeomEval_CircularHelixCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelixCurve::FirstParameter() const { return -Precision::Infinite(); } -//================================================================================================== +//================================================================================================= double GeomEval_CircularHelixCurve::LastParameter() const { return Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool GeomEval_CircularHelixCurve::IsClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_CircularHelixCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomEval_CircularHelixCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool GeomEval_CircularHelixCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_CircularHelixCurve::EvalD0(const double U) const { @@ -135,7 +135,7 @@ gp_Pnt GeomEval_CircularHelixCurve::EvalD0(const double U) const return gp_Pnt(anO + myRadius * aCosU * aXD + myRadius * aSinU * aYD + aZComp * aZD); } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD1 GeomEval_CircularHelixCurve::EvalD1(const double U) const { @@ -159,7 +159,7 @@ Geom_Curve::ResD1 GeomEval_CircularHelixCurve::EvalD1(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD2 GeomEval_CircularHelixCurve::EvalD2(const double U) const { @@ -185,7 +185,7 @@ Geom_Curve::ResD2 GeomEval_CircularHelixCurve::EvalD2(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD3 GeomEval_CircularHelixCurve::EvalD3(const double U) const { @@ -213,7 +213,7 @@ Geom_Curve::ResD3 GeomEval_CircularHelixCurve::EvalD3(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_CircularHelixCurve::EvalDN(const double U, const int N) const { @@ -243,7 +243,7 @@ gp_Vec GeomEval_CircularHelixCurve::EvalDN(const double U, const int N) const return gp_Vec(aResult); } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelixCurve::Transform(const gp_Trsf& T) { @@ -251,14 +251,14 @@ void GeomEval_CircularHelixCurve::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_CircularHelixCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_CircularHelixCurve::Copy() const { return new GeomEval_CircularHelixCurve(myPosition, myRadius, myPitch); } -//================================================================================================== +//================================================================================================= void GeomEval_CircularHelixCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_EllipsoidSurface.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_EllipsoidSurface.cxx index 5ddd0d4bf4..f532a63b4a 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_EllipsoidSurface.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_EllipsoidSurface.cxx @@ -24,7 +24,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_EllipsoidSurface, Geom_ElementarySurface) -//================================================================================================== +//================================================================================================= GeomEval_EllipsoidSurface::GeomEval_EllipsoidSurface(const gp_Ax3& thePosition, double theA, @@ -41,28 +41,28 @@ GeomEval_EllipsoidSurface::GeomEval_EllipsoidSurface(const gp_Ax3& thePosition, pos = thePosition; } -//================================================================================================== +//================================================================================================= double GeomEval_EllipsoidSurface::SemiAxisA() const { return myA; } -//================================================================================================== +//================================================================================================= double GeomEval_EllipsoidSurface::SemiAxisB() const { return myB; } -//================================================================================================== +//================================================================================================= double GeomEval_EllipsoidSurface::SemiAxisC() const { return myC; } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::SetSemiAxisA(double theA) { @@ -73,7 +73,7 @@ void GeomEval_EllipsoidSurface::SetSemiAxisA(double theA) myA = theA; } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::SetSemiAxisB(double theB) { @@ -84,7 +84,7 @@ void GeomEval_EllipsoidSurface::SetSemiAxisB(double theB) myB = theB; } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::SetSemiAxisC(double theC) { @@ -95,35 +95,35 @@ void GeomEval_EllipsoidSurface::SetSemiAxisC(double theC) myC = theC; } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::UReverse() { throw Standard_NotImplemented("GeomEval_EllipsoidSurface::UReverse"); } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::VReverse() { throw Standard_NotImplemented("GeomEval_EllipsoidSurface::VReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_EllipsoidSurface::UReversedParameter(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_EllipsoidSurface::UReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_EllipsoidSurface::VReversedParameter(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_EllipsoidSurface::VReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::Bounds(double& U1, double& U2, double& V1, double& V2) const { @@ -133,49 +133,49 @@ void GeomEval_EllipsoidSurface::Bounds(double& U1, double& U2, double& V1, doubl V2 = M_PI / 2.0; } -//================================================================================================== +//================================================================================================= bool GeomEval_EllipsoidSurface::IsUClosed() const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_EllipsoidSurface::IsVClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_EllipsoidSurface::IsUPeriodic() const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_EllipsoidSurface::IsVPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_EllipsoidSurface::UIso(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_EllipsoidSurface::UIso"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_EllipsoidSurface::VIso(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_EllipsoidSurface::VIso"); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_EllipsoidSurface::EvalD0(const double U, const double V) const { @@ -192,7 +192,7 @@ gp_Pnt GeomEval_EllipsoidSurface::EvalD0(const double U, const double V) const return gp_Pnt(anO + myA * aCosV * aCosU * aXD + myB * aCosV * aSinU * aYD + myC * aSinV * aZD); } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD1 GeomEval_EllipsoidSurface::EvalD1(const double U, const double V) const { @@ -220,7 +220,7 @@ Geom_Surface::ResD1 GeomEval_EllipsoidSurface::EvalD1(const double U, const doub return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD2 GeomEval_EllipsoidSurface::EvalD2(const double U, const double V) const { @@ -258,7 +258,7 @@ Geom_Surface::ResD2 GeomEval_EllipsoidSurface::EvalD2(const double U, const doub return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD3 GeomEval_EllipsoidSurface::EvalD3(const double U, const double V) const { @@ -311,7 +311,7 @@ Geom_Surface::ResD3 GeomEval_EllipsoidSurface::EvalD3(const double U, const doub return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_EllipsoidSurface::EvalDN(const double U, const double V, @@ -345,7 +345,7 @@ gp_Vec GeomEval_EllipsoidSurface::EvalDN(const double U, return gp_Vec(aCoeffX * aXD + aCoeffY * aYD + aCoeffZ * aZD); } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::Transform(const gp_Trsf& T) { @@ -353,14 +353,14 @@ void GeomEval_EllipsoidSurface::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_EllipsoidSurface::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_EllipsoidSurface::Copy() const { return new GeomEval_EllipsoidSurface(pos, myA, myB, myC); } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::DumpJson(Standard_OStream& theOStream, int theDepth) const { @@ -373,7 +373,7 @@ void GeomEval_EllipsoidSurface::DumpJson(Standard_OStream& theOStream, int theDe OCCT_DUMP_FIELD_VALUE_NUMERICAL(theOStream, myC) } -//================================================================================================== +//================================================================================================= void GeomEval_EllipsoidSurface::Coefficients(double& A1, double& A2, diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_HypParaboloidSurface.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_HypParaboloidSurface.cxx index 10eabd366a..6321daec4a 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_HypParaboloidSurface.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_HypParaboloidSurface.cxx @@ -29,7 +29,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_HypParaboloidSurface, Geom_ElementarySurface) -//================================================================================================== +//================================================================================================= GeomEval_HypParaboloidSurface::GeomEval_HypParaboloidSurface(const gp_Ax3& thePosition, double theA, @@ -48,21 +48,21 @@ GeomEval_HypParaboloidSurface::GeomEval_HypParaboloidSurface(const gp_Ax3& thePo pos = thePosition; } -//================================================================================================== +//================================================================================================= double GeomEval_HypParaboloidSurface::SemiAxisA() const { return myA; } -//================================================================================================== +//================================================================================================= double GeomEval_HypParaboloidSurface::SemiAxisB() const { return myB; } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::SetSemiAxisA(double theA) { @@ -74,7 +74,7 @@ void GeomEval_HypParaboloidSurface::SetSemiAxisA(double theA) myA = theA; } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::SetSemiAxisB(double theB) { @@ -86,35 +86,35 @@ void GeomEval_HypParaboloidSurface::SetSemiAxisB(double theB) myB = theB; } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::UReverse() { throw Standard_NotImplemented("GeomEval_HypParaboloidSurface::UReverse"); } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::VReverse() { throw Standard_NotImplemented("GeomEval_HypParaboloidSurface::VReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_HypParaboloidSurface::UReversedParameter(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_HypParaboloidSurface::UReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_HypParaboloidSurface::VReversedParameter(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_HypParaboloidSurface::VReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::Bounds(double& U1, double& U2, double& V1, double& V2) const { @@ -124,49 +124,49 @@ void GeomEval_HypParaboloidSurface::Bounds(double& U1, double& U2, double& V1, d V2 = Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool GeomEval_HypParaboloidSurface::IsUClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_HypParaboloidSurface::IsVClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_HypParaboloidSurface::IsUPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_HypParaboloidSurface::IsVPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_HypParaboloidSurface::UIso(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_HypParaboloidSurface::UIso"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_HypParaboloidSurface::VIso(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_HypParaboloidSurface::VIso"); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_HypParaboloidSurface::EvalD0(const double U, const double V) const { @@ -184,7 +184,7 @@ gp_Pnt GeomEval_HypParaboloidSurface::EvalD0(const double U, const double V) con anO.Z() + U * aXDir.Z() + V * aYDir.Z() + aZComp * aZDir.Z()); } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD1 GeomEval_HypParaboloidSurface::EvalD1(const double U, const double V) const { @@ -219,7 +219,7 @@ Geom_Surface::ResD1 GeomEval_HypParaboloidSurface::EvalD1(const double U, const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD2 GeomEval_HypParaboloidSurface::EvalD2(const double U, const double V) const { @@ -265,7 +265,7 @@ Geom_Surface::ResD2 GeomEval_HypParaboloidSurface::EvalD2(const double U, const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD3 GeomEval_HypParaboloidSurface::EvalD3(const double U, const double V) const { @@ -317,7 +317,7 @@ Geom_Surface::ResD3 GeomEval_HypParaboloidSurface::EvalD3(const double U, const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_HypParaboloidSurface::EvalDN(const double U, const double V, @@ -395,7 +395,7 @@ gp_Vec GeomEval_HypParaboloidSurface::EvalDN(const double U, aXCoeff * aXDir.Z() + aYCoeff * aYDir.Z() + aZCoeff * aZDir.Z()); } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::Transform(const gp_Trsf& T) { @@ -403,14 +403,14 @@ void GeomEval_HypParaboloidSurface::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_HypParaboloidSurface::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_HypParaboloidSurface::Copy() const { return new GeomEval_HypParaboloidSurface(pos, myA, myB); } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::DumpJson(Standard_OStream& theOStream, int theDepth) const { @@ -422,7 +422,7 @@ void GeomEval_HypParaboloidSurface::DumpJson(Standard_OStream& theOStream, int t OCCT_DUMP_FIELD_VALUE_NUMERICAL(theOStream, myB) } -//================================================================================================== +//================================================================================================= void GeomEval_HypParaboloidSurface::Coefficients(double& A1, double& A2, diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_HyperboloidSurface.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_HyperboloidSurface.cxx index a32c96c631..864da025cf 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_HyperboloidSurface.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_HyperboloidSurface.cxx @@ -27,7 +27,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_HyperboloidSurface, Geom_ElementarySurface) -//================================================================================================== +//================================================================================================= GeomEval_HyperboloidSurface::GeomEval_HyperboloidSurface(const gp_Ax3& thePosition, double theR1, @@ -44,28 +44,28 @@ GeomEval_HyperboloidSurface::GeomEval_HyperboloidSurface(const gp_Ax3& thePositi pos = thePosition; } -//================================================================================================== +//================================================================================================= double GeomEval_HyperboloidSurface::R1() const { return myR1; } -//================================================================================================== +//================================================================================================= double GeomEval_HyperboloidSurface::R2() const { return myR2; } -//================================================================================================== +//================================================================================================= GeomEval_HyperboloidSurface::SheetMode GeomEval_HyperboloidSurface::Mode() const { return myMode; } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::SetR1(double theR1) { @@ -76,7 +76,7 @@ void GeomEval_HyperboloidSurface::SetR1(double theR1) myR1 = theR1; } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::SetR2(double theR2) { @@ -87,42 +87,42 @@ void GeomEval_HyperboloidSurface::SetR2(double theR2) myR2 = theR2; } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::SetMode(SheetMode theMode) { myMode = theMode; } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::UReverse() { throw Standard_NotImplemented("GeomEval_HyperboloidSurface::UReverse"); } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::VReverse() { throw Standard_NotImplemented("GeomEval_HyperboloidSurface::VReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_HyperboloidSurface::UReversedParameter(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_HyperboloidSurface::UReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_HyperboloidSurface::VReversedParameter(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_HyperboloidSurface::VReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::Bounds(double& U1, double& U2, double& V1, double& V2) const { @@ -132,49 +132,49 @@ void GeomEval_HyperboloidSurface::Bounds(double& U1, double& U2, double& V1, dou V2 = Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool GeomEval_HyperboloidSurface::IsUClosed() const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_HyperboloidSurface::IsVClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_HyperboloidSurface::IsUPeriodic() const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_HyperboloidSurface::IsVPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_HyperboloidSurface::UIso(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_HyperboloidSurface::UIso"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_HyperboloidSurface::VIso(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_HyperboloidSurface::VIso"); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_HyperboloidSurface::EvalD0(const double U, const double V) const { @@ -202,7 +202,7 @@ gp_Pnt GeomEval_HyperboloidSurface::EvalD0(const double U, const double V) const return gp_Pnt(aP); } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD1 GeomEval_HyperboloidSurface::EvalD1(const double U, const double V) const { @@ -240,7 +240,7 @@ Geom_Surface::ResD1 GeomEval_HyperboloidSurface::EvalD1(const double U, const do return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD2 GeomEval_HyperboloidSurface::EvalD2(const double U, const double V) const { @@ -288,7 +288,7 @@ Geom_Surface::ResD2 GeomEval_HyperboloidSurface::EvalD2(const double U, const do return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD3 GeomEval_HyperboloidSurface::EvalD3(const double U, const double V) const { @@ -348,7 +348,7 @@ Geom_Surface::ResD3 GeomEval_HyperboloidSurface::EvalD3(const double U, const do return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_HyperboloidSurface::EvalDN(const double U, const double V, @@ -401,7 +401,7 @@ gp_Vec GeomEval_HyperboloidSurface::EvalDN(const double U, return gp_Vec(aVec); } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::Transform(const gp_Trsf& T) { @@ -409,7 +409,7 @@ void GeomEval_HyperboloidSurface::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_HyperboloidSurface::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_HyperboloidSurface::Copy() const { @@ -418,7 +418,7 @@ occ::handle GeomEval_HyperboloidSurface::Copy() const return aCopy; } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::DumpJson(Standard_OStream& theOStream, int theDepth) const { @@ -431,7 +431,7 @@ void GeomEval_HyperboloidSurface::DumpJson(Standard_OStream& theOStream, int the OCCT_DUMP_FIELD_VALUE_NUMERICAL(theOStream, (int)myMode) } -//================================================================================================== +//================================================================================================= void GeomEval_HyperboloidSurface::Coefficients(double& A1, double& A2, diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_ParaboloidSurface.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_ParaboloidSurface.cxx index e8185976a8..0de61a9e15 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_ParaboloidSurface.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_ParaboloidSurface.cxx @@ -29,7 +29,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_ParaboloidSurface, Geom_ElementarySurface) -//================================================================================================== +//================================================================================================= GeomEval_ParaboloidSurface::GeomEval_ParaboloidSurface(const gp_Ax3& thePosition, double theFocal) : myFocal(theFocal) @@ -41,14 +41,14 @@ GeomEval_ParaboloidSurface::GeomEval_ParaboloidSurface(const gp_Ax3& thePosition pos = thePosition; } -//================================================================================================== +//================================================================================================= double GeomEval_ParaboloidSurface::Focal() const { return myFocal; } -//================================================================================================== +//================================================================================================= void GeomEval_ParaboloidSurface::SetFocal(double theFocal) { @@ -60,35 +60,35 @@ void GeomEval_ParaboloidSurface::SetFocal(double theFocal) myFocal = theFocal; } -//================================================================================================== +//================================================================================================= void GeomEval_ParaboloidSurface::UReverse() { throw Standard_NotImplemented("GeomEval_ParaboloidSurface::UReverse"); } -//================================================================================================== +//================================================================================================= void GeomEval_ParaboloidSurface::VReverse() { throw Standard_NotImplemented("GeomEval_ParaboloidSurface::VReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_ParaboloidSurface::UReversedParameter(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_ParaboloidSurface::UReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_ParaboloidSurface::VReversedParameter(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_ParaboloidSurface::VReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_ParaboloidSurface::Bounds(double& U1, double& U2, double& V1, double& V2) const { @@ -98,49 +98,49 @@ void GeomEval_ParaboloidSurface::Bounds(double& U1, double& U2, double& V1, doub V2 = Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool GeomEval_ParaboloidSurface::IsUClosed() const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_ParaboloidSurface::IsVClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_ParaboloidSurface::IsUPeriodic() const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_ParaboloidSurface::IsVPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_ParaboloidSurface::UIso(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_ParaboloidSurface::UIso"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_ParaboloidSurface::VIso(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_ParaboloidSurface::VIso"); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_ParaboloidSurface::EvalD0(const double U, const double V) const { @@ -158,7 +158,7 @@ gp_Pnt GeomEval_ParaboloidSurface::EvalD0(const double U, const double V) const anO.Z() + V * aCosU * aXDir.Z() + V * aSinU * aYDir.Z() + aZComp * aZDir.Z()); } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD1 GeomEval_ParaboloidSurface::EvalD1(const double U, const double V) const { @@ -193,7 +193,7 @@ Geom_Surface::ResD1 GeomEval_ParaboloidSurface::EvalD1(const double U, const dou return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD2 GeomEval_ParaboloidSurface::EvalD2(const double U, const double V) const { @@ -242,7 +242,7 @@ Geom_Surface::ResD2 GeomEval_ParaboloidSurface::EvalD2(const double U, const dou return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD3 GeomEval_ParaboloidSurface::EvalD3(const double U, const double V) const { @@ -307,7 +307,7 @@ Geom_Surface::ResD3 GeomEval_ParaboloidSurface::EvalD3(const double U, const dou return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_ParaboloidSurface::EvalDN(const double U, const double V, @@ -381,7 +381,7 @@ gp_Vec GeomEval_ParaboloidSurface::EvalDN(const double U, aXCoeff * aXDir.Z() + aYCoeff * aYDir.Z() + aZCoeff * aZDir.Z()); } -//================================================================================================== +//================================================================================================= void GeomEval_ParaboloidSurface::Transform(const gp_Trsf& T) { @@ -389,14 +389,14 @@ void GeomEval_ParaboloidSurface::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_ParaboloidSurface::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_ParaboloidSurface::Copy() const { return new GeomEval_ParaboloidSurface(pos, myFocal); } -//================================================================================================== +//================================================================================================= void GeomEval_ParaboloidSurface::DumpJson(Standard_OStream& theOStream, int theDepth) const { @@ -407,7 +407,7 @@ void GeomEval_ParaboloidSurface::DumpJson(Standard_OStream& theOStream, int theD OCCT_DUMP_FIELD_VALUE_NUMERICAL(theOStream, myFocal) } -//================================================================================================== +//================================================================================================= void GeomEval_ParaboloidSurface::Coefficients(double& A1, double& A2, diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_RepUtils.pxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_RepUtils.pxx index 9afc72bddb..f743ba97e5 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_RepUtils.pxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_RepUtils.pxx @@ -118,7 +118,7 @@ void ValidateSurfaceDesc(const occ::handle& theDe const Geom_Surface* theOwner); } // namespace GeomEval_RepUtils -//================================================================================================== +//================================================================================================= inline void GeomEval_RepUtils::ValidateCurveDesc( const occ::handle& theDesc, @@ -146,7 +146,7 @@ inline void GeomEval_RepUtils::ValidateCurveDesc( } } -//================================================================================================== +//================================================================================================= inline void GeomEval_RepUtils::ValidateSurfaceDesc( const occ::handle& theDesc, @@ -174,7 +174,7 @@ inline void GeomEval_RepUtils::ValidateSurfaceDesc( } } -//================================================================================================== +//================================================================================================= inline occ::handle GeomEval_RepUtils::CloneCurveDesc( const occ::handle& theDesc) @@ -219,7 +219,7 @@ inline occ::handle GeomEval_RepUtils::CloneCurveDes return occ::handle(); } -//================================================================================================== +//================================================================================================= inline occ::handle GeomEval_RepUtils::CloneSurfaceDesc( const occ::handle& theDesc) @@ -264,7 +264,7 @@ inline occ::handle GeomEval_RepUtils::CloneSurfac return occ::handle(); } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD0( const occ::handle& theDesc, @@ -290,7 +290,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD0( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD1( const occ::handle& theDesc, @@ -328,7 +328,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD1( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD2( const occ::handle& theDesc, @@ -366,7 +366,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD2( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD3( const occ::handle& theDesc, @@ -404,7 +404,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD3( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveDN( const occ::handle& theDesc, @@ -443,7 +443,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveDN( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD0( const occ::handle& theDesc, @@ -472,7 +472,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD0( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD1( const occ::handle& theDesc, @@ -512,7 +512,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD1( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD2( const occ::handle& theDesc, @@ -552,7 +552,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD2( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD3( const occ::handle& theDesc, @@ -592,7 +592,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD3( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceDN( const occ::handle& theDesc, @@ -635,7 +635,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceDN( return false; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD0Mapped(const GeomEval_RepCurveDesc::Mapped& theDesc, const double theU, @@ -651,7 +651,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD0Mapped(const GeomEval_RepCurveDesc: return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD1Mapped(const GeomEval_RepCurveDesc::Mapped& theDesc, const double theU, @@ -671,7 +671,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD1Mapped(const GeomEval_RepCurveDesc: return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD2Mapped(const GeomEval_RepCurveDesc::Mapped& theDesc, const double theU, @@ -693,7 +693,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD2Mapped(const GeomEval_RepCurveDesc: return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveD3Mapped(const GeomEval_RepCurveDesc::Mapped& theDesc, const double theU, @@ -717,7 +717,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveD3Mapped(const GeomEval_RepCurveDesc: return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalCurveDNMapped(const GeomEval_RepCurveDesc::Mapped& theDesc, const double theU, @@ -736,7 +736,7 @@ inline bool GeomEval_RepUtils::TryEvalCurveDNMapped(const GeomEval_RepCurveDesc: return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD0Mapped( const GeomEval_RepSurfaceDesc::Mapped& theDesc, @@ -757,7 +757,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD0Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD1Mapped( const GeomEval_RepSurfaceDesc::Mapped& theDesc, @@ -790,7 +790,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD1Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD2Mapped( const GeomEval_RepSurfaceDesc::Mapped& theDesc, @@ -835,7 +835,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD2Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceD3Mapped( const GeomEval_RepSurfaceDesc::Mapped& theDesc, @@ -885,7 +885,7 @@ inline bool GeomEval_RepUtils::TryEvalSurfaceD3Mapped( return true; } -//================================================================================================== +//================================================================================================= inline bool GeomEval_RepUtils::TryEvalSurfaceDNMapped( const GeomEval_RepSurfaceDesc::Mapped& theDesc, diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_SineWaveCurve.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_SineWaveCurve.cxx index d4ad18253a..dd6255fb36 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_SineWaveCurve.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_SineWaveCurve.cxx @@ -25,7 +25,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomEval_SineWaveCurve, Geom_Curve) -//================================================================================================== +//================================================================================================= GeomEval_SineWaveCurve::GeomEval_SineWaveCurve(const gp_Ax2& thePosition, double theAmplitude, @@ -46,42 +46,42 @@ GeomEval_SineWaveCurve::GeomEval_SineWaveCurve(const gp_Ax2& thePosition, } } -//================================================================================================== +//================================================================================================= const gp_Ax2& GeomEval_SineWaveCurve::Position() const { return myPosition; } -//================================================================================================== +//================================================================================================= double GeomEval_SineWaveCurve::Amplitude() const { return myAmplitude; } -//================================================================================================== +//================================================================================================= double GeomEval_SineWaveCurve::Omega() const { return myOmega; } -//================================================================================================== +//================================================================================================= double GeomEval_SineWaveCurve::Phase() const { return myPhase; } -//================================================================================================== +//================================================================================================= void GeomEval_SineWaveCurve::Reverse() { throw Standard_NotImplemented("GeomEval_SineWaveCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_SineWaveCurve::ReversedParameter(const double U) const { @@ -89,49 +89,49 @@ double GeomEval_SineWaveCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("GeomEval_SineWaveCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_SineWaveCurve::FirstParameter() const { return -Precision::Infinite(); } -//================================================================================================== +//================================================================================================= double GeomEval_SineWaveCurve::LastParameter() const { return Precision::Infinite(); } -//================================================================================================== +//================================================================================================= bool GeomEval_SineWaveCurve::IsClosed() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_SineWaveCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomEval_SineWaveCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool GeomEval_SineWaveCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_SineWaveCurve::EvalD0(const double U) const { @@ -144,7 +144,7 @@ gp_Pnt GeomEval_SineWaveCurve::EvalD0(const double U) const return gp_Pnt(anO + U * aXD + myAmplitude * std::sin(aArg) * aYD); } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD1 GeomEval_SineWaveCurve::EvalD1(const double U) const { @@ -163,7 +163,7 @@ Geom_Curve::ResD1 GeomEval_SineWaveCurve::EvalD1(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD2 GeomEval_SineWaveCurve::EvalD2(const double U) const { @@ -184,7 +184,7 @@ Geom_Curve::ResD2 GeomEval_SineWaveCurve::EvalD2(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD3 GeomEval_SineWaveCurve::EvalD3(const double U) const { @@ -207,7 +207,7 @@ Geom_Curve::ResD3 GeomEval_SineWaveCurve::EvalD3(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_SineWaveCurve::EvalDN(const double U, const int N) const { @@ -237,7 +237,7 @@ gp_Vec GeomEval_SineWaveCurve::EvalDN(const double U, const int N) const return gp_Vec(aResult); } -//================================================================================================== +//================================================================================================= void GeomEval_SineWaveCurve::Transform(const gp_Trsf& T) { @@ -245,14 +245,14 @@ void GeomEval_SineWaveCurve::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_SineWaveCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_SineWaveCurve::Copy() const { return new GeomEval_SineWaveCurve(myPosition, myAmplitude, myOmega, myPhase); } -//================================================================================================== +//================================================================================================= void GeomEval_SineWaveCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierCurve.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierCurve.cxx index de601fef28..a95eaa907b 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierCurve.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierCurve.cxx @@ -203,7 +203,7 @@ void evalCurveBasis(const NCollection_Array1& thePoles, } } // namespace -//================================================================================================== +//================================================================================================= GeomEval_TBezierCurve::GeomEval_TBezierCurve(const NCollection_Array1& thePoles, double theAlpha) @@ -222,7 +222,7 @@ GeomEval_TBezierCurve::GeomEval_TBezierCurve(const NCollection_Array1& t } } -//================================================================================================== +//================================================================================================= GeomEval_TBezierCurve::GeomEval_TBezierCurve(const NCollection_Array1& thePoles, const NCollection_Array1& theWeights, @@ -254,70 +254,70 @@ GeomEval_TBezierCurve::GeomEval_TBezierCurve(const NCollection_Array1& t } } -//================================================================================================== +//================================================================================================= const NCollection_Array1& GeomEval_TBezierCurve::Poles() const { return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array1& GeomEval_TBezierCurve::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierCurve::Alpha() const { return myAlpha; } -//================================================================================================== +//================================================================================================= int GeomEval_TBezierCurve::NbPoles() const { return myPoles.Size(); } -//================================================================================================== +//================================================================================================= int GeomEval_TBezierCurve::Order() const { return (myPoles.Size() - 1) / 2; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierCurve::IsRational() const { return myRational; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_TBezierCurve::StartPoint() const { return EvalD0(0.0); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_TBezierCurve::EndPoint() const { return EvalD0(M_PI / myAlpha); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierCurve::Reverse() { throw Standard_NotImplemented("GeomEval_TBezierCurve::Reverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierCurve::ReversedParameter(const double U) const { @@ -325,49 +325,49 @@ double GeomEval_TBezierCurve::ReversedParameter(const double U) const throw Standard_NotImplemented("GeomEval_TBezierCurve::ReversedParameter"); } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierCurve::FirstParameter() const { return 0.0; } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierCurve::LastParameter() const { return M_PI / myAlpha; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierCurve::IsClosed() const { return StartPoint().Distance(EndPoint()) <= Precision::Confusion(); } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierCurve::IsPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomEval_TBezierCurve::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierCurve::IsCN(const int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierCurve::evalBasis(double theT, NCollection_Array1& theBasis) const { @@ -400,7 +400,7 @@ void GeomEval_TBezierCurve::evalBasis(double theT, NCollection_Array1& t } } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierCurve::evalBasisDeriv(double theT, int theDerivOrder, @@ -445,7 +445,7 @@ void GeomEval_TBezierCurve::evalBasisDeriv(double theT, } } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_TBezierCurve::evalNonRationalPoint(const NCollection_Array1& theBasis) const { @@ -460,7 +460,7 @@ gp_Pnt GeomEval_TBezierCurve::evalNonRationalPoint(const NCollection_Array1& theBasisDeriv) const @@ -476,7 +476,7 @@ gp_Vec GeomEval_TBezierCurve::evalNonRationalDeriv( return gp_Vec(aSum); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_TBezierCurve::EvalD0(const double U) const { @@ -490,7 +490,7 @@ gp_Pnt GeomEval_TBezierCurve::EvalD0(const double U) const return gp_Pnt(aData.N0 / aData.W0); } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD1 GeomEval_TBezierCurve::EvalD1(const double U) const { @@ -512,7 +512,7 @@ Geom_Curve::ResD1 GeomEval_TBezierCurve::EvalD1(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD2 GeomEval_TBezierCurve::EvalD2(const double U) const { @@ -539,7 +539,7 @@ Geom_Curve::ResD2 GeomEval_TBezierCurve::EvalD2(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= Geom_Curve::ResD3 GeomEval_TBezierCurve::EvalD3(const double U) const { @@ -570,7 +570,7 @@ Geom_Curve::ResD3 GeomEval_TBezierCurve::EvalD3(const double U) const return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_TBezierCurve::EvalDN(const double U, const int N) const { @@ -700,7 +700,7 @@ gp_Vec GeomEval_TBezierCurve::EvalDN(const double U, const int N) const return gp_Vec(aCDerivs.Value(N)); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierCurve::Transform(const gp_Trsf& T) { @@ -708,7 +708,7 @@ void GeomEval_TBezierCurve::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_TBezierCurve::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_TBezierCurve::Copy() const { @@ -719,7 +719,7 @@ occ::handle GeomEval_TBezierCurve::Copy() const return new GeomEval_TBezierCurve(myPoles, myAlpha); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierCurve::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierSurface.cxx b/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierSurface.cxx index 83f1495a3b..18953dadf9 100644 --- a/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierSurface.cxx +++ b/src/ModelingData/TKG3d/GeomEval/GeomEval_TBezierSurface.cxx @@ -158,7 +158,7 @@ void evalTrigAxisNthDeriv(const double theT, } } // namespace -//================================================================================================== +//================================================================================================= GeomEval_TBezierSurface::GeomEval_TBezierSurface(const NCollection_Array2& thePoles, double theAlphaU, @@ -180,7 +180,7 @@ GeomEval_TBezierSurface::GeomEval_TBezierSurface(const NCollection_Array2& thePoles, const NCollection_Array2& theWeights, @@ -219,77 +219,77 @@ GeomEval_TBezierSurface::GeomEval_TBezierSurface(const NCollection_Array2& GeomEval_TBezierSurface::Poles() const { return myPoles; } -//================================================================================================== +//================================================================================================= const NCollection_Array2& GeomEval_TBezierSurface::Weights() const { return myWeights; } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierSurface::AlphaU() const { return myAlphaU; } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierSurface::AlphaV() const { return myAlphaV; } -//================================================================================================== +//================================================================================================= int GeomEval_TBezierSurface::NbUPoles() const { return myPoles.NbRows(); } -//================================================================================================== +//================================================================================================= int GeomEval_TBezierSurface::NbVPoles() const { return myPoles.NbColumns(); } -//================================================================================================== +//================================================================================================= int GeomEval_TBezierSurface::OrderU() const { return (myPoles.NbRows() - 1) / 2; } -//================================================================================================== +//================================================================================================= int GeomEval_TBezierSurface::OrderV() const { return (myPoles.NbColumns() - 1) / 2; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierSurface::IsRational() const { return myRational; } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::UReverse() { throw Standard_NotImplemented("GeomEval_TBezierSurface::UReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierSurface::UReversedParameter(const double U) const { @@ -297,14 +297,14 @@ double GeomEval_TBezierSurface::UReversedParameter(const double U) const throw Standard_NotImplemented("GeomEval_TBezierSurface::UReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::VReverse() { throw Standard_NotImplemented("GeomEval_TBezierSurface::VReverse"); } -//================================================================================================== +//================================================================================================= double GeomEval_TBezierSurface::VReversedParameter(const double V) const { @@ -312,7 +312,7 @@ double GeomEval_TBezierSurface::VReversedParameter(const double V) const throw Standard_NotImplemented("GeomEval_TBezierSurface::VReversedParameter"); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::Bounds(double& U1, double& U2, double& V1, double& V2) const { @@ -322,7 +322,7 @@ void GeomEval_TBezierSurface::Bounds(double& U1, double& U2, double& V1, double& V2 = M_PI / myAlphaV; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierSurface::IsUClosed() const { @@ -339,7 +339,7 @@ bool GeomEval_TBezierSurface::IsUClosed() const return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierSurface::IsVClosed() const { @@ -356,56 +356,56 @@ bool GeomEval_TBezierSurface::IsVClosed() const return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierSurface::IsUPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierSurface::IsVPeriodic() const { return false; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomEval_TBezierSurface::Continuity() const { return GeomAbs_CN; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierSurface::IsCNu(int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= bool GeomEval_TBezierSurface::IsCNv(int /*N*/) const { return true; } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_TBezierSurface::UIso(const double /*U*/) const { throw Standard_NotImplemented("GeomEval_TBezierSurface::UIso"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_TBezierSurface::VIso(const double /*V*/) const { throw Standard_NotImplemented("GeomEval_TBezierSurface::VIso"); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::evalTrigBasis(double theT, double theAlpha, @@ -422,7 +422,7 @@ void GeomEval_TBezierSurface::evalTrigBasis(double theT, } } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::evalTrigBasisDeriv(double theT, double theAlpha, @@ -439,21 +439,21 @@ void GeomEval_TBezierSurface::evalTrigBasisDeriv(double the } } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::evalBasisU(double theU, NCollection_Array1& theBasis) const { evalTrigBasis(theU, myAlphaU, OrderU(), theBasis); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::evalBasisV(double theV, NCollection_Array1& theBasis) const { evalTrigBasis(theV, myAlphaV, OrderV(), theBasis); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::evalBasisDerivU(double theU, int theOrder, @@ -462,7 +462,7 @@ void GeomEval_TBezierSurface::evalBasisDerivU(double theU, evalTrigBasisDeriv(theU, myAlphaU, OrderU(), theOrder, theBasisDeriv); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::evalBasisDerivV(double theV, int theOrder, @@ -471,7 +471,7 @@ void GeomEval_TBezierSurface::evalBasisDerivV(double theV, evalTrigBasisDeriv(theV, myAlphaV, OrderV(), theOrder, theBasisDeriv); } -//================================================================================================== +//================================================================================================= gp_Pnt GeomEval_TBezierSurface::EvalD0(const double U, const double V) const { @@ -514,7 +514,7 @@ gp_Pnt GeomEval_TBezierSurface::EvalD0(const double U, const double V) const return gp_Pnt(aNumer / aDenom); } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD1 GeomEval_TBezierSurface::EvalD1(const double U, const double V) const { @@ -593,7 +593,7 @@ Geom_Surface::ResD1 GeomEval_TBezierSurface::EvalD1(const double U, const double return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD2 GeomEval_TBezierSurface::EvalD2(const double U, const double V) const { @@ -716,7 +716,7 @@ Geom_Surface::ResD2 GeomEval_TBezierSurface::EvalD2(const double U, const double return aResult; } -//================================================================================================== +//================================================================================================= Geom_Surface::ResD3 GeomEval_TBezierSurface::EvalD3(const double U, const double V) const { @@ -897,7 +897,7 @@ Geom_Surface::ResD3 GeomEval_TBezierSurface::EvalD3(const double U, const double return aResult; } -//================================================================================================== +//================================================================================================= gp_Vec GeomEval_TBezierSurface::EvalDN(const double U, const double V, @@ -978,7 +978,7 @@ gp_Vec GeomEval_TBezierSurface::EvalDN(const double U, "GeomEval_TBezierSurface::EvalDN: rational derivatives of order > 3 not implemented"); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::Transform(const gp_Trsf& T) { @@ -986,7 +986,7 @@ void GeomEval_TBezierSurface::Transform(const gp_Trsf& T) throw Standard_NotImplemented("GeomEval_TBezierSurface::Transform"); } -//================================================================================================== +//================================================================================================= occ::handle GeomEval_TBezierSurface::Copy() const { @@ -997,7 +997,7 @@ occ::handle GeomEval_TBezierSurface::Copy() const return new GeomEval_TBezierSurface(myPoles, myAlphaU, myAlphaV); } -//================================================================================================== +//================================================================================================= void GeomEval_TBezierSurface::DumpJson(Standard_OStream& theOStream, int theDepth) const { diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval.hxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval.hxx index 69d86096b6..15cb5fecc9 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval.hxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval.hxx @@ -34,10 +34,10 @@ using SurfD1 = Geom_Surface::ResD1; using SurfD2 = Geom_Surface::ResD2; using SurfD3 = Geom_Surface::ResD3; -//================================================================================================== +//================================================================================================= // Template helpers for parametric surface evaluation. // These provide the iteration pattern, while the actual computation is delegated to a functor. -//================================================================================================== +//================================================================================================= //! Evaluate grid points using a point evaluator functor. //! @tparam Evaluator functor type with operator()(double theU, double theV) -> gp_Pnt diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineCurve.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineCurve.cxx index b6ae2c38c5..04870c865a 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineCurve.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineCurve.cxx @@ -179,7 +179,7 @@ NCollection_Array1 evaluateGridCached(const CurveData& } // namespace -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -209,7 +209,7 @@ NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGrid( }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -245,7 +245,7 @@ NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGri }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -282,7 +282,7 @@ NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGri }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -320,7 +320,7 @@ NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGri }); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BSplineCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineSurface.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineSurface.cxx index 11a40d61b4..e2d3a65da7 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineSurface.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BSplineSurface.cxx @@ -265,7 +265,7 @@ NCollection_Array2 evaluateGridDirect(const SurfaceData& } // namespace -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGrid( const NCollection_Array1& theUParams, @@ -313,7 +313,7 @@ NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGrid( }); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -365,7 +365,7 @@ NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGr }); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -427,7 +427,7 @@ NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGr }); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -483,7 +483,7 @@ NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGr }); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BSplineSurface::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierCurve.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierCurve.cxx index 525d0e8d9b..bd022baed3 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierCurve.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierCurve.cxx @@ -34,7 +34,7 @@ occ::handle CreateBezierCache(const occ::handle GeomGridEval_BezierCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -58,7 +58,7 @@ NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -83,7 +83,7 @@ NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -108,7 +108,7 @@ NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -133,7 +133,7 @@ NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_BezierCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierSurface.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierSurface.cxx index efd73279f5..84bbac4e34 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierSurface.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_BezierSurface.cxx @@ -50,7 +50,7 @@ occ::handle buildBezierCache(const occ::handle GeomGridEval_BezierSurface::EvaluateGrid( const NCollection_Array1& theUParams, @@ -120,7 +120,7 @@ NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -154,7 +154,7 @@ NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -189,7 +189,7 @@ NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -259,7 +259,7 @@ NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_BezierSurface::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Circle.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Circle.cxx index b91790ae47..cae4c34560 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Circle.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Circle.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Circle::EvaluateGrid( const NCollection_Array1& theParams) const @@ -62,7 +62,7 @@ NCollection_Array1 GeomGridEval_Circle::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Circle::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -110,7 +110,7 @@ NCollection_Array1 GeomGridEval_Circle::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Circle::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -162,7 +162,7 @@ NCollection_Array1 GeomGridEval_Circle::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Circle::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -218,7 +218,7 @@ NCollection_Array1 GeomGridEval_Circle::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Circle::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cone.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cone.cxx index 85e9d47d5d..a0b710c8a6 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cone.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cone.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= GeomGridEval_Cone::Data GeomGridEval_Cone::extractData() const { @@ -44,7 +44,7 @@ GeomGridEval_Cone::Data GeomGridEval_Cone::extractData() const std::cos(aCone.SemiAngle())}; } -//================================================================================================== +//================================================================================================= GeomGridEval_Cone::UContext GeomGridEval_Cone::computeUContext(const Data& theData, double theU) { @@ -63,7 +63,7 @@ GeomGridEval_Cone::UContext GeomGridEval_Cone::computeUContext(const Data& theDa -sinU * theData.XZ + cosU * theData.YZ}; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomGridEval_Cone::computeD0(const Data& theData, const UContext& theUCtx, double theV) { @@ -78,7 +78,7 @@ gp_Pnt GeomGridEval_Cone::computeD0(const Data& theData, const UContext& theUCtx theData.CZ + K * theUCtx.dirUZ + ZOff * theData.ZZ); } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD1 GeomGridEval_Cone::computeD1(const Data& theData, const UContext& theUCtx, @@ -98,7 +98,7 @@ GeomGridEval::SurfD1 GeomGridEval_Cone::computeD1(const Data& theData, theData.SinAng * theUCtx.dirUZ + theData.CosAng * theData.ZZ)}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD2 GeomGridEval_Cone::computeD2(const Data& theData, const UContext& theUCtx, @@ -126,7 +126,7 @@ GeomGridEval::SurfD2 GeomGridEval_Cone::computeD2(const Data& theData, theData.SinAng * theUCtx.dDirUZ)}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD3 GeomGridEval_Cone::computeD3(const Data& theData, const UContext& theUCtx, @@ -161,7 +161,7 @@ GeomGridEval::SurfD3 GeomGridEval_Cone::computeD3(const Data& theData, aZero}; } -//================================================================================================== +//================================================================================================= gp_Vec GeomGridEval_Cone::computeDN(const Data& theData, const UContext& theUCtx, @@ -240,7 +240,7 @@ gp_Vec GeomGridEval_Cone::computeDN(const Data& theData, return gp_Vec(K * dirX, K * dirY, K * dirZ); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cone::EvaluateGrid( const NCollection_Array1& theUParams, @@ -272,7 +272,7 @@ NCollection_Array2 GeomGridEval_Cone::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cone::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -304,7 +304,7 @@ NCollection_Array2 GeomGridEval_Cone::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cone::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -336,7 +336,7 @@ NCollection_Array2 GeomGridEval_Cone::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cone::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -368,7 +368,7 @@ NCollection_Array2 GeomGridEval_Cone::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cone::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Curve.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Curve.cxx index f3917501ef..e04b8f9cc4 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Curve.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Curve.cxx @@ -42,7 +42,7 @@ occ::handle ExtractBasisCurve(const occ::handle& theCurv } // namespace -//================================================================================================== +//================================================================================================= GeomGridEval_Curve::GeomGridEval_Curve(const Adaptor3d_Curve& theCurve) : myEvaluator(std::monostate{}), @@ -51,7 +51,7 @@ GeomGridEval_Curve::GeomGridEval_Curve(const Adaptor3d_Curve& theCurve) initialization(theCurve); } -//================================================================================================== +//================================================================================================= GeomGridEval_Curve::GeomGridEval_Curve(const occ::handle& theCurve) : myEvaluator(std::monostate{}), @@ -60,7 +60,7 @@ GeomGridEval_Curve::GeomGridEval_Curve(const occ::handle& theCurve) initialization(theCurve); } -//================================================================================================== +//================================================================================================= void GeomGridEval_Curve::initialization(const Adaptor3d_Curve& theCurve) { @@ -76,7 +76,7 @@ void GeomGridEval_Curve::initialization(const Adaptor3d_Curve& theCurve) myEvaluator.emplace(theCurve); } -//================================================================================================== +//================================================================================================= void GeomGridEval_Curve::initialization(const occ::handle& theCurve) { @@ -139,7 +139,7 @@ void GeomGridEval_Curve::initialization(const occ::handle& theCurve) } } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Curve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -159,7 +159,7 @@ NCollection_Array1 GeomGridEval_Curve::EvaluateGrid( myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Curve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -179,7 +179,7 @@ NCollection_Array1 GeomGridEval_Curve::EvaluateGridD1( myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Curve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -199,7 +199,7 @@ NCollection_Array1 GeomGridEval_Curve::EvaluateGridD2( myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Curve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -219,7 +219,7 @@ NCollection_Array1 GeomGridEval_Curve::EvaluateGridD3( myEvaluator); } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Curve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cylinder.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cylinder.cxx index ece77f45e9..a71500b093 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cylinder.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Cylinder.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= GeomGridEval_Cylinder::Data GeomGridEval_Cylinder::extractData() const { @@ -42,7 +42,7 @@ GeomGridEval_Cylinder::Data GeomGridEval_Cylinder::extractData() const aCyl.Radius()}; } -//================================================================================================== +//================================================================================================= GeomGridEval_Cylinder::UContext GeomGridEval_Cylinder::computeUContext(const Data& theData, double theU) @@ -62,7 +62,7 @@ GeomGridEval_Cylinder::UContext GeomGridEval_Cylinder::computeUContext(const Dat -sinU * theData.XZ + cosU * theData.YZ}; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomGridEval_Cylinder::computeD0(const Data& theData, const UContext& theUCtx, double theV) { @@ -72,7 +72,7 @@ gp_Pnt GeomGridEval_Cylinder::computeD0(const Data& theData, const UContext& the theData.CZ + theData.Radius * theUCtx.dirUZ + theV * theData.ZZ); } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD1 GeomGridEval_Cylinder::computeD1(const Data& theData, const UContext& theUCtx, @@ -89,7 +89,7 @@ GeomGridEval::SurfD1 GeomGridEval_Cylinder::computeD1(const Data& theData, gp_Vec(theData.ZX, theData.ZY, theData.ZZ)}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD2 GeomGridEval_Cylinder::computeD2(const Data& theData, const UContext& theUCtx, @@ -114,7 +114,7 @@ GeomGridEval::SurfD2 GeomGridEval_Cylinder::computeD2(const Data& theData, aZero}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD3 GeomGridEval_Cylinder::computeD3(const Data& theData, const UContext& theUCtx, @@ -146,7 +146,7 @@ GeomGridEval::SurfD3 GeomGridEval_Cylinder::computeD3(const Data& theData, aZero}; } -//================================================================================================== +//================================================================================================= gp_Vec GeomGridEval_Cylinder::computeDN(const Data& theData, const UContext& theUCtx, @@ -210,7 +210,7 @@ gp_Vec GeomGridEval_Cylinder::computeDN(const Data& theData, return gp_Vec(theData.Radius * dirX, theData.Radius * dirY, theData.Radius * dirZ); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cylinder::EvaluateGrid( const NCollection_Array1& theUParams, @@ -242,7 +242,7 @@ NCollection_Array2 GeomGridEval_Cylinder::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cylinder::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -274,7 +274,7 @@ NCollection_Array2 GeomGridEval_Cylinder::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cylinder::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -306,7 +306,7 @@ NCollection_Array2 GeomGridEval_Cylinder::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cylinder::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -338,7 +338,7 @@ NCollection_Array2 GeomGridEval_Cylinder::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Cylinder::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Ellipse.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Ellipse.cxx index 14966b6d31..0e40227fec 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Ellipse.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Ellipse.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Ellipse::EvaluateGrid( const NCollection_Array1& theParams) const @@ -62,7 +62,7 @@ NCollection_Array1 GeomGridEval_Ellipse::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Ellipse::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -112,7 +112,7 @@ NCollection_Array1 GeomGridEval_Ellipse::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Ellipse::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -166,7 +166,7 @@ NCollection_Array1 GeomGridEval_Ellipse::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Ellipse::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -224,7 +224,7 @@ NCollection_Array1 GeomGridEval_Ellipse::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Ellipse::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Hyperbola.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Hyperbola.cxx index 0a67abc1de..16051d2bd4 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Hyperbola.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Hyperbola.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGrid( const NCollection_Array1& theParams) const @@ -62,7 +62,7 @@ NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -112,7 +112,7 @@ NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGridD1 return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -166,7 +166,7 @@ NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGridD2 return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -224,7 +224,7 @@ NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGridD3 return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Hyperbola::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetCurve.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetCurve.cxx index b9001f8a90..f236af52c4 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetCurve.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetCurve.cxx @@ -16,7 +16,7 @@ #include #include -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -53,7 +53,7 @@ NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -91,7 +91,7 @@ NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -154,7 +154,7 @@ NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -220,7 +220,7 @@ NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OffsetCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetSurface.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetSurface.cxx index 0b2bc03aa5..65dcf3ce05 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetSurface.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OffsetSurface.cxx @@ -17,7 +17,7 @@ #include #include -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGrid( const NCollection_Array1& theUParams, @@ -86,7 +86,7 @@ NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -153,7 +153,7 @@ NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -227,7 +227,7 @@ NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -286,7 +286,7 @@ NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGri return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OffsetSurface::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherCurve.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherCurve.cxx index 114a7a3e30..a2c54d1e98 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherCurve.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherCurve.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGrid( const NCollection_Array1& theParams) const @@ -34,7 +34,7 @@ NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -58,7 +58,7 @@ NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGridD return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -82,7 +82,7 @@ NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGridD return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -106,7 +106,7 @@ NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGridD return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_OtherCurve::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherSurface.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherSurface.cxx index 9fc4285ba6..fd94224cf2 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherSurface.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_OtherSurface.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= void GeomGridEval_OtherSurface::evaluateD0(double theU, double theV, gp_Pnt& thePoint) const { @@ -21,7 +21,7 @@ void GeomGridEval_OtherSurface::evaluateD0(double theU, double theV, gp_Pnt& the mySurface); } -//================================================================================================== +//================================================================================================= void GeomGridEval_OtherSurface::evaluateD1(double theU, double theV, @@ -34,7 +34,7 @@ void GeomGridEval_OtherSurface::evaluateD1(double theU, mySurface); } -//================================================================================================== +//================================================================================================= void GeomGridEval_OtherSurface::evaluateD2(double theU, double theV, @@ -52,7 +52,7 @@ void GeomGridEval_OtherSurface::evaluateD2(double theU, mySurface); } -//================================================================================================== +//================================================================================================= void GeomGridEval_OtherSurface::evaluateD3(double theU, double theV, @@ -96,7 +96,7 @@ void GeomGridEval_OtherSurface::evaluateD3(double theU, mySurface); } -//================================================================================================== +//================================================================================================= gp_Vec GeomGridEval_OtherSurface::evaluateDN(double theU, double theV, int theNU, int theNV) const { @@ -107,7 +107,7 @@ gp_Vec GeomGridEval_OtherSurface::evaluateDN(double theU, double theV, int theNU mySurface); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGrid( const NCollection_Array1& theUParams, @@ -137,7 +137,7 @@ NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -168,7 +168,7 @@ NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -199,7 +199,7 @@ NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -231,7 +231,7 @@ NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGrid return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_OtherSurface::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Parabola.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Parabola.cxx index 0b95b23538..0a0d86041c 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Parabola.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Parabola.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Parabola::EvaluateGrid( const NCollection_Array1& theParams) const @@ -63,7 +63,7 @@ NCollection_Array1 GeomGridEval_Parabola::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Parabola::EvaluateGridD1( const NCollection_Array1& theParams) const @@ -114,7 +114,7 @@ NCollection_Array1 GeomGridEval_Parabola::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Parabola::EvaluateGridD2( const NCollection_Array1& theParams) const @@ -171,7 +171,7 @@ NCollection_Array1 GeomGridEval_Parabola::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Parabola::EvaluateGridD3( const NCollection_Array1& theParams) const @@ -225,7 +225,7 @@ NCollection_Array1 GeomGridEval_Parabola::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array1 GeomGridEval_Parabola::EvaluateGridDN( const NCollection_Array1& theParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Sphere.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Sphere.cxx index 9f27ea3733..9d28cc58c0 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Sphere.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Sphere.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= GeomGridEval_Sphere::Data GeomGridEval_Sphere::extractData() const { @@ -42,7 +42,7 @@ GeomGridEval_Sphere::Data GeomGridEval_Sphere::extractData() const aSph.Radius()}; } -//================================================================================================== +//================================================================================================= GeomGridEval_Sphere::UContext GeomGridEval_Sphere::computeUContext(const Data& theData, double theU) { @@ -61,7 +61,7 @@ GeomGridEval_Sphere::UContext GeomGridEval_Sphere::computeUContext(const Data& t -sinU * theData.XZ + cosU * theData.YZ}; } -//================================================================================================== +//================================================================================================= gp_Pnt GeomGridEval_Sphere::computeD0(const Data& theData, const UContext& theUCtx, double theV) { @@ -77,7 +77,7 @@ gp_Pnt GeomGridEval_Sphere::computeD0(const Data& theData, const UContext& theUC theData.CZ + RcosV * theUCtx.dirUZ + RsinV * theData.ZZ); } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD1 GeomGridEval_Sphere::computeD1(const Data& theData, const UContext& theUCtx, @@ -100,7 +100,7 @@ GeomGridEval::SurfD1 GeomGridEval_Sphere::computeD1(const Data& theData, -RsinV * theUCtx.dirUZ + RcosV * theData.ZZ)}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD2 GeomGridEval_Sphere::computeD2(const Data& theData, const UContext& theUCtx, @@ -129,7 +129,7 @@ GeomGridEval::SurfD2 GeomGridEval_Sphere::computeD2(const Data& theData, gp_Vec(-RsinV * theUCtx.dDirUX, -RsinV * theUCtx.dDirUY, -RsinV * theUCtx.dDirUZ)}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD3 GeomGridEval_Sphere::computeD3(const Data& theData, const UContext& theUCtx, @@ -165,7 +165,7 @@ GeomGridEval::SurfD3 GeomGridEval_Sphere::computeD3(const Data& theData, gp_Vec(-RcosV * theUCtx.dDirUX, -RcosV * theUCtx.dDirUY, -RcosV * theUCtx.dDirUZ)}; } -//================================================================================================== +//================================================================================================= gp_Vec GeomGridEval_Sphere::computeDN(const Data& theData, const UContext& theUCtx, @@ -255,7 +255,7 @@ gp_Vec GeomGridEval_Sphere::computeDN(const Data& theData, theData.Radius * (aCoeffVXY * dirZ + aZTermZ)); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Sphere::EvaluateGrid( const NCollection_Array1& theUParams, @@ -287,7 +287,7 @@ NCollection_Array2 GeomGridEval_Sphere::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Sphere::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -319,7 +319,7 @@ NCollection_Array2 GeomGridEval_Sphere::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Sphere::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -351,7 +351,7 @@ NCollection_Array2 GeomGridEval_Sphere::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Sphere::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -383,7 +383,7 @@ NCollection_Array2 GeomGridEval_Sphere::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Sphere::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Surface.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Surface.cxx index 226b85c59d..5df76ee7cd 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Surface.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Surface.cxx @@ -113,7 +113,7 @@ occ::handle CreateExtrusionSurface( } // namespace -//================================================================================================== +//================================================================================================= GeomGridEval_Surface::GeomGridEval_Surface(const Adaptor3d_Surface& theSurface) : myEvaluator(std::monostate{}), @@ -122,7 +122,7 @@ GeomGridEval_Surface::GeomGridEval_Surface(const Adaptor3d_Surface& theSurface) initialization(theSurface); } -//================================================================================================== +//================================================================================================= GeomGridEval_Surface::GeomGridEval_Surface(const occ::handle& theSurface) : myEvaluator(std::monostate{}), @@ -131,7 +131,7 @@ GeomGridEval_Surface::GeomGridEval_Surface(const occ::handle& theS initialization(theSurface); } -//================================================================================================== +//================================================================================================= void GeomGridEval_Surface::initialization(const Adaptor3d_Surface& theSurface) { @@ -263,7 +263,7 @@ void GeomGridEval_Surface::initialization(const Adaptor3d_Surface& theSurface) myEvaluator.emplace(&theSurface); } -//================================================================================================== +//================================================================================================= void GeomGridEval_Surface::initialization(const occ::handle& theSurface) { @@ -335,7 +335,7 @@ void GeomGridEval_Surface::initialization(const occ::handle& theSu } } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Surface::EvaluateGrid( const NCollection_Array1& theUParams, @@ -363,7 +363,7 @@ NCollection_Array2 GeomGridEval_Surface::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Surface::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -391,7 +391,7 @@ NCollection_Array2 GeomGridEval_Surface::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Surface::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -419,7 +419,7 @@ NCollection_Array2 GeomGridEval_Surface::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Surface::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -447,7 +447,7 @@ NCollection_Array2 GeomGridEval_Surface::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Surface::EvaluateGridDN( const NCollection_Array1& theUParams, @@ -477,7 +477,7 @@ NCollection_Array2 GeomGridEval_Surface::EvaluateGridDN( return aResult; } -//================================================================================================== +//================================================================================================= void GeomGridEval_Surface::applyTransformation(NCollection_Array2& theGrid) const { @@ -496,7 +496,7 @@ void GeomGridEval_Surface::applyTransformation(NCollection_Array2& theGr } } -//================================================================================================== +//================================================================================================= void GeomGridEval_Surface::applyTransformation( NCollection_Array2& theGrid) const @@ -519,7 +519,7 @@ void GeomGridEval_Surface::applyTransformation( } } -//================================================================================================== +//================================================================================================= void GeomGridEval_Surface::applyTransformation( NCollection_Array2& theGrid) const @@ -545,7 +545,7 @@ void GeomGridEval_Surface::applyTransformation( } } -//================================================================================================== +//================================================================================================= void GeomGridEval_Surface::applyTransformation( NCollection_Array2& theGrid) const @@ -575,7 +575,7 @@ void GeomGridEval_Surface::applyTransformation( } } -//================================================================================================== +//================================================================================================= void GeomGridEval_Surface::applyTransformation(NCollection_Array2& theGrid) const { diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfExtrusion.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfExtrusion.cxx index ef9216f86c..47811a1b95 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfExtrusion.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfExtrusion.cxx @@ -15,7 +15,7 @@ #include -//================================================================================================== +//================================================================================================= GeomGridEval_SurfaceOfExtrusion::GeomGridEval_SurfaceOfExtrusion( const occ::handle& theExtrusion) @@ -28,7 +28,7 @@ GeomGridEval_SurfaceOfExtrusion::GeomGridEval_SurfaceOfExtrusion( } } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::EvaluateGrid( const NCollection_Array1& theUParams, @@ -71,7 +71,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -121,7 +121,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::Evalua return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -176,7 +176,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::Evalua return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -237,7 +237,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::Evalua return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfExtrusion::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfRevolution.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfRevolution.cxx index 4ba0fea5d3..bb830d6be7 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfRevolution.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_SurfaceOfRevolution.cxx @@ -15,7 +15,7 @@ #include -//================================================================================================== +//================================================================================================= GeomGridEval_SurfaceOfRevolution::GeomGridEval_SurfaceOfRevolution( const occ::handle& theRevolution) @@ -30,7 +30,7 @@ GeomGridEval_SurfaceOfRevolution::GeomGridEval_SurfaceOfRevolution( } } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfRevolution::EvaluateGrid( const NCollection_Array1& theUParams, @@ -70,7 +70,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfRevolution::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfRevolution::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -119,7 +119,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfRevolution::Evalu return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfRevolution::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -172,7 +172,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfRevolution::Evalu return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfRevolution::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -230,7 +230,7 @@ NCollection_Array2 GeomGridEval_SurfaceOfRevolution::Evalu return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_SurfaceOfRevolution::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Torus.cxx b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Torus.cxx index 58311d3cee..c45142573d 100644 --- a/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Torus.cxx +++ b/src/ModelingData/TKG3d/GeomGridEval/GeomGridEval_Torus.cxx @@ -17,7 +17,7 @@ #include -//================================================================================================== +//================================================================================================= GeomGridEval_Torus::Data GeomGridEval_Torus::extractData() const { @@ -43,7 +43,7 @@ GeomGridEval_Torus::Data GeomGridEval_Torus::extractData() const aTorus.MinorRadius()}; } -//================================================================================================== +//================================================================================================= GeomGridEval_Torus::UContext GeomGridEval_Torus::computeUContext(const Data& theData, double theU) { @@ -60,7 +60,7 @@ GeomGridEval_Torus::UContext GeomGridEval_Torus::computeUContext(const Data& the -sinU * theData.XZ + cosU * theData.YZ}; // dDirUZ } -//================================================================================================== +//================================================================================================= gp_Pnt GeomGridEval_Torus::computeD0(const Data& theData, const UContext& theUCtx, double theV) { @@ -76,7 +76,7 @@ gp_Pnt GeomGridEval_Torus::computeD0(const Data& theData, const UContext& theUCt theData.CZ + K * theUCtx.dirUZ + theData.MinorRadius * sinV * theData.ZZ); } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD1 GeomGridEval_Torus::computeD1(const Data& theData, const UContext& theUCtx, @@ -107,7 +107,7 @@ GeomGridEval::SurfD1 GeomGridEval_Torus::computeD1(const Data& theData, gp_Vec(dV1, dV2, dV3)}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD2 GeomGridEval_Torus::computeD2(const Data& theData, const UContext& theUCtx, @@ -159,7 +159,7 @@ GeomGridEval::SurfD2 GeomGridEval_Torus::computeD2(const Data& theData, gp_Vec(d2UV1, d2UV2, d2UV3)}; } -//================================================================================================== +//================================================================================================= GeomGridEval::SurfD3 GeomGridEval_Torus::computeD3(const Data& theData, const UContext& theUCtx, @@ -251,7 +251,7 @@ GeomGridEval::SurfD3 GeomGridEval_Torus::computeD3(const Data& theData, gp_Vec(d3UVV1, d3UVV2, d3UVV3)}; } -//================================================================================================== +//================================================================================================= gp_Vec GeomGridEval_Torus::computeDN(const Data& theData, const UContext& theUCtx, @@ -383,7 +383,7 @@ gp_Vec GeomGridEval_Torus::computeDN(const Data& theData, return gp_Vec(resX, resY, resZ); } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Torus::EvaluateGrid( const NCollection_Array1& theUParams, @@ -414,7 +414,7 @@ NCollection_Array2 GeomGridEval_Torus::EvaluateGrid( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Torus::EvaluateGridD1( const NCollection_Array1& theUParams, @@ -445,7 +445,7 @@ NCollection_Array2 GeomGridEval_Torus::EvaluateGridD1( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Torus::EvaluateGridD2( const NCollection_Array1& theUParams, @@ -476,7 +476,7 @@ NCollection_Array2 GeomGridEval_Torus::EvaluateGridD2( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Torus::EvaluateGridD3( const NCollection_Array1& theUParams, @@ -507,7 +507,7 @@ NCollection_Array2 GeomGridEval_Torus::EvaluateGridD3( return aResult; } -//================================================================================================== +//================================================================================================= NCollection_Array2 GeomGridEval_Torus::EvaluateGridDN( const NCollection_Array1& theUParams, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp.cxx index 3bb263771a..84b58e7e9b 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp.cxx @@ -15,7 +15,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp::ComputeTangent(const gp_Vec& theD1, const gp_Vec& theD2, @@ -45,7 +45,7 @@ GeomProp::TangentResult GeomProp::ComputeTangent(const gp_Vec& theD1, return {{}, false}; } -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp::ComputeTangent(const gp_Vec& theD1, const gp_Vec& theD2, @@ -79,7 +79,7 @@ GeomProp::TangentResult GeomProp::ComputeTangent(const gp_Vec& theD1, return {gp_Dir(aVec), true}; } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp::ComputeCurvature(const gp_Vec& theD1, const gp_Vec& theD2, @@ -118,7 +118,7 @@ GeomProp::CurvatureResult GeomProp::ComputeCurvature(const gp_Vec& theD1, return {aCurvature, true, false}; } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp::ComputeNormal(const gp_Vec& theD1, const gp_Vec& theD2, @@ -141,7 +141,7 @@ GeomProp::NormalResult GeomProp::ComputeNormal(const gp_Vec& theD1, return {gp_Dir(aNorm), true}; } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp::ComputeCentreOfCurvature(const gp_Pnt& thePnt, const gp_Vec& theD1, @@ -166,7 +166,7 @@ GeomProp::CentreResult GeomProp::ComputeCentreOfCurvature(const gp_Pnt& thePnt, return {thePnt.Translated(aNorm), true}; } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp::ComputeSurfaceNormal(const gp_Vec& theD1U, const gp_Vec& theD1V, @@ -180,7 +180,7 @@ GeomProp::SurfaceNormalResult GeomProp::ComputeSurfaceNormal(const gp_Vec& theD1 return {gp_Dir(aCross), true}; } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp::ComputeSurfaceCurvatures(const gp_Vec& theD1U, const gp_Vec& theD1V, @@ -403,7 +403,7 @@ GeomProp::SurfaceCurvatureResult GeomProp::ComputeSurfaceCurvatures(const gp_Vec return aResult; } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp::ComputeMeanGaussian(const gp_Vec& theD1U, const gp_Vec& theD1V, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineCurve.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineCurve.cxx index a4b1acb30c..99fbbf0e9a 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineCurve.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineCurve.cxx @@ -16,7 +16,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_BSplineCurve::Tangent(const double theParam, const double theTol) const @@ -24,7 +24,7 @@ GeomProp::TangentResult GeomProp_BSplineCurve::Tangent(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_BSplineCurve::Curvature(const double theParam, const double theTol) const @@ -32,7 +32,7 @@ GeomProp::CurvatureResult GeomProp_BSplineCurve::Curvature(const double theParam return GeomProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_BSplineCurve::Normal(const double theParam, const double theTol) const @@ -40,7 +40,7 @@ GeomProp::NormalResult GeomProp_BSplineCurve::Normal(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_BSplineCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -48,14 +48,14 @@ GeomProp::CentreResult GeomProp_BSplineCurve::CentreOfCurvature(const double the return GeomProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_BSplineCurve::FindCurvatureExtrema() const { return GeomProp_CurveAnalysisTools::FindCurvatureExtremaBySpans(myAdaptor, GeomAbs_C3); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_BSplineCurve::FindInflections() const { diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineSurface.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineSurface.cxx index 7a7c494197..e7f2cb981e 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineSurface.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_BSplineSurface.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_BSplineSurface::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_BSplineSurface::Normal(const double theU, return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_BSplineSurface::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_BSplineSurface::Curvatures(const doubl return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_BSplineSurface::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierCurve.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierCurve.cxx index b5ac58e6d8..f8b99b2647 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierCurve.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierCurve.cxx @@ -14,7 +14,7 @@ #include #include -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_BezierCurve::Tangent(const double theParam, const double theTol) const @@ -22,7 +22,7 @@ GeomProp::TangentResult GeomProp_BezierCurve::Tangent(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_BezierCurve::Curvature(const double theParam, const double theTol) const @@ -30,7 +30,7 @@ GeomProp::CurvatureResult GeomProp_BezierCurve::Curvature(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_BezierCurve::Normal(const double theParam, const double theTol) const @@ -38,7 +38,7 @@ GeomProp::NormalResult GeomProp_BezierCurve::Normal(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_BezierCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -46,14 +46,14 @@ GeomProp::CentreResult GeomProp_BezierCurve::CentreOfCurvature(const double theP return GeomProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_BezierCurve::FindCurvatureExtrema() const { return GeomProp_CurveAnalysisTools::FindCurvatureExtrema(myAdaptor); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_BezierCurve::FindInflections() const { diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierSurface.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierSurface.cxx index 86e11c22a7..37126a486f 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierSurface.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_BezierSurface.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_BezierSurface::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_BezierSurface::Normal(const double theU, return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_BezierSurface::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_BezierSurface::Curvatures(const double return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_BezierSurface::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_Cone.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_Cone.cxx index 5a63c7c7a6..5a560fb173 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_Cone.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_Cone.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_Cone::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_Cone::Normal(const double theU, return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_Cone::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_Cone::Curvatures(const double theU, return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_Cone::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_Curve.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_Curve.cxx index 95c197e094..c8f93475ea 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_Curve.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_Curve.cxx @@ -18,7 +18,7 @@ #include #include -//================================================================================================== +//================================================================================================= GeomProp_Curve::GeomProp_Curve(const Adaptor3d_Curve& theCurve) : myEvaluator(std::monostate{}), @@ -27,7 +27,7 @@ GeomProp_Curve::GeomProp_Curve(const Adaptor3d_Curve& theCurve) initialization(theCurve); } -//================================================================================================== +//================================================================================================= GeomProp_Curve::GeomProp_Curve(const occ::handle& theCurve) : myEvaluator(std::monostate{}), @@ -36,7 +36,7 @@ GeomProp_Curve::GeomProp_Curve(const occ::handle& theCurve) initialization(theCurve); } -//================================================================================================== +//================================================================================================= void GeomProp_Curve::initialization(const Adaptor3d_Curve& theCurve) { @@ -54,7 +54,7 @@ void GeomProp_Curve::initialization(const Adaptor3d_Curve& theCurve) myEvaluator.emplace(); } -//================================================================================================== +//================================================================================================= void GeomProp_Curve::initialization(const occ::handle& theCurve) { @@ -70,7 +70,7 @@ void GeomProp_Curve::initialization(const occ::handle& theCurve) initFromAdaptor(); } -//================================================================================================== +//================================================================================================= void GeomProp_Curve::initFromAdaptor() { @@ -109,7 +109,7 @@ void GeomProp_Curve::initFromAdaptor() } } -//================================================================================================== +//================================================================================================= const GeomAdaptor_Curve* GeomProp_Curve::Adaptor() const { @@ -124,7 +124,7 @@ const GeomAdaptor_Curve* GeomProp_Curve::Adaptor() const myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_Curve::Tangent(const double theParam, const double theTol) const { @@ -143,7 +143,7 @@ GeomProp::TangentResult GeomProp_Curve::Tangent(const double theParam, const dou myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_Curve::Curvature(const double theParam, const double theTol) const @@ -163,7 +163,7 @@ GeomProp::CurvatureResult GeomProp_Curve::Curvature(const double theParam, myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_Curve::Normal(const double theParam, const double theTol) const { @@ -182,7 +182,7 @@ GeomProp::NormalResult GeomProp_Curve::Normal(const double theParam, const doubl myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_Curve::CentreOfCurvature(const double theParam, const double theTol) const @@ -202,7 +202,7 @@ GeomProp::CentreResult GeomProp_Curve::CentreOfCurvature(const double theParam, myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_Curve::FindCurvatureExtrema() const { @@ -221,7 +221,7 @@ GeomProp::CurveAnalysis GeomProp_Curve::FindCurvatureExtrema() const myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_Curve::FindInflections() const { @@ -240,7 +240,7 @@ GeomProp::CurveAnalysis GeomProp_Curve::FindInflections() const myEvaluator); } -//================================================================================================== +//================================================================================================= // Helper to convert GeomAbs_Shape to integer for comparison. static int geomAbsToInteger(const GeomAbs_Shape theCont) @@ -265,7 +265,7 @@ static int geomAbsToInteger(const GeomAbs_Shape theCont) return 0; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomProp_Curve::Continuity(const occ::handle& theC1, const occ::handle& theC2, @@ -415,7 +415,7 @@ GeomAbs_Shape GeomProp_Curve::Continuity(const occ::handle& theC1, return aCont; } -//================================================================================================== +//================================================================================================= GeomAbs_Shape GeomProp_Curve::Continuity(const occ::handle& theC1, const occ::handle& theC2, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_Ellipse.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_Ellipse.cxx index 14c9a13df2..d8a8c1b527 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_Ellipse.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_Ellipse.cxx @@ -23,7 +23,7 @@ constexpr int THE_ELLIPSE_NB_EXTREMA = 4; //!< Number of curvature extrema on constexpr double THE_ELLIPSE_PERIOD = 2.0 * M_PI; //!< One full period of ellipse parameter } // namespace -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_Ellipse::Tangent(const double theParam, const double theTol) const { @@ -37,7 +37,7 @@ GeomProp::TangentResult GeomProp_Ellipse::Tangent(const double theParam, const d return GeomProp::ComputeTangent(aD1, aD2, aD3, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_Ellipse::Curvature(const double theParam, const double theTol) const @@ -52,7 +52,7 @@ GeomProp::CurvatureResult GeomProp_Ellipse::Curvature(const double theParam, return GeomProp::ComputeCurvature(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_Ellipse::Normal(const double theParam, const double theTol) const { @@ -66,7 +66,7 @@ GeomProp::NormalResult GeomProp_Ellipse::Normal(const double theParam, const dou return GeomProp::ComputeNormal(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_Ellipse::CentreOfCurvature(const double theParam, const double theTol) const @@ -81,7 +81,7 @@ GeomProp::CentreResult GeomProp_Ellipse::CentreOfCurvature(const double theParam return GeomProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_Ellipse::FindCurvatureExtrema() const { diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_Hyperbola.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_Hyperbola.cxx index 290a852c2c..4dd36f142d 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_Hyperbola.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_Hyperbola.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_Hyperbola::Tangent(const double theParam, const double theTol) const @@ -28,7 +28,7 @@ GeomProp::TangentResult GeomProp_Hyperbola::Tangent(const double theParam, return GeomProp::ComputeTangent(aD1, aD2, aD3, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_Hyperbola::Curvature(const double theParam, const double theTol) const @@ -43,7 +43,7 @@ GeomProp::CurvatureResult GeomProp_Hyperbola::Curvature(const double theParam, return GeomProp::ComputeCurvature(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_Hyperbola::Normal(const double theParam, const double theTol) const { @@ -57,7 +57,7 @@ GeomProp::NormalResult GeomProp_Hyperbola::Normal(const double theParam, const d return GeomProp::ComputeNormal(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_Hyperbola::CentreOfCurvature(const double theParam, const double theTol) const @@ -72,7 +72,7 @@ GeomProp::CentreResult GeomProp_Hyperbola::CentreOfCurvature(const double thePar return GeomProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_Hyperbola::FindCurvatureExtrema() const { diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetCurve.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetCurve.cxx index 6b19123c94..4280ddf127 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetCurve.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetCurve.cxx @@ -14,7 +14,7 @@ #include #include -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_OffsetCurve::Tangent(const double theParam, const double theTol) const @@ -22,7 +22,7 @@ GeomProp::TangentResult GeomProp_OffsetCurve::Tangent(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_OffsetCurve::Curvature(const double theParam, const double theTol) const @@ -30,7 +30,7 @@ GeomProp::CurvatureResult GeomProp_OffsetCurve::Curvature(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_OffsetCurve::Normal(const double theParam, const double theTol) const @@ -38,7 +38,7 @@ GeomProp::NormalResult GeomProp_OffsetCurve::Normal(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_OffsetCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -46,14 +46,14 @@ GeomProp::CentreResult GeomProp_OffsetCurve::CentreOfCurvature(const double theP return GeomProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_OffsetCurve::FindCurvatureExtrema() const { return GeomProp_CurveAnalysisTools::FindCurvatureExtrema(myAdaptor); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_OffsetCurve::FindInflections() const { diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetSurface.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetSurface.cxx index 1a42040ec7..30c5af936d 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetSurface.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_OffsetSurface.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_OffsetSurface::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_OffsetSurface::Normal(const double theU, return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_OffsetSurface::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_OffsetSurface::Curvatures(const double return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_OffsetSurface::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherCurve.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherCurve.cxx index 85cf37bd6c..bab03bb9a5 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherCurve.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherCurve.cxx @@ -14,7 +14,7 @@ #include #include -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_OtherCurve::Tangent(const double theParam, const double theTol) const @@ -22,7 +22,7 @@ GeomProp::TangentResult GeomProp_OtherCurve::Tangent(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateTangent(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_OtherCurve::Curvature(const double theParam, const double theTol) const @@ -30,14 +30,14 @@ GeomProp::CurvatureResult GeomProp_OtherCurve::Curvature(const double theParam, return GeomProp_CurveAnalysisTools::EvaluateCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_OtherCurve::Normal(const double theParam, const double theTol) const { return GeomProp_CurveAnalysisTools::EvaluateNormal(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_OtherCurve::CentreOfCurvature(const double theParam, const double theTol) const @@ -45,14 +45,14 @@ GeomProp::CentreResult GeomProp_OtherCurve::CentreOfCurvature(const double thePa return GeomProp_CurveAnalysisTools::EvaluateCentreOfCurvature(myAdaptor, theParam, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_OtherCurve::FindCurvatureExtrema() const { return GeomProp_CurveAnalysisTools::FindCurvatureExtrema(myAdaptor); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_OtherCurve::FindInflections() const { diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherSurface.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherSurface.cxx index 7b520994d7..4fd13b23d1 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherSurface.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_OtherSurface.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_OtherSurface::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_OtherSurface::Normal(const double theU, return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_OtherSurface::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_OtherSurface::Curvatures(const double return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_OtherSurface::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_Parabola.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_Parabola.cxx index ebd8d8b084..794cb22308 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_Parabola.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_Parabola.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::TangentResult GeomProp_Parabola::Tangent(const double theParam, const double theTol) const { @@ -27,7 +27,7 @@ GeomProp::TangentResult GeomProp_Parabola::Tangent(const double theParam, const return GeomProp::ComputeTangent(aD1, aD2, aD3, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurvatureResult GeomProp_Parabola::Curvature(const double theParam, const double theTol) const @@ -42,7 +42,7 @@ GeomProp::CurvatureResult GeomProp_Parabola::Curvature(const double theParam, return GeomProp::ComputeCurvature(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::NormalResult GeomProp_Parabola::Normal(const double theParam, const double theTol) const { @@ -56,7 +56,7 @@ GeomProp::NormalResult GeomProp_Parabola::Normal(const double theParam, const do return GeomProp::ComputeNormal(aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CentreResult GeomProp_Parabola::CentreOfCurvature(const double theParam, const double theTol) const @@ -71,7 +71,7 @@ GeomProp::CentreResult GeomProp_Parabola::CentreOfCurvature(const double thePara return GeomProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::CurveAnalysis GeomProp_Parabola::FindCurvatureExtrema() const { diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_Surface.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_Surface.cxx index bf62542c49..64e4bd3c2e 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_Surface.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_Surface.cxx @@ -15,7 +15,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp_Surface::GeomProp_Surface(const Adaptor3d_Surface& theSurface) : myEvaluator(std::monostate{}), @@ -24,7 +24,7 @@ GeomProp_Surface::GeomProp_Surface(const Adaptor3d_Surface& theSurface) initialization(theSurface); } -//================================================================================================== +//================================================================================================= GeomProp_Surface::GeomProp_Surface(const occ::handle& theSurface) : myEvaluator(std::monostate{}), @@ -33,7 +33,7 @@ GeomProp_Surface::GeomProp_Surface(const occ::handle& theSurface) initialization(theSurface); } -//================================================================================================== +//================================================================================================= void GeomProp_Surface::initialization(const Adaptor3d_Surface& theSurface) { @@ -51,7 +51,7 @@ void GeomProp_Surface::initialization(const Adaptor3d_Surface& theSurface) myEvaluator.emplace(); } -//================================================================================================== +//================================================================================================= void GeomProp_Surface::initialization(const occ::handle& theSurface) { @@ -67,7 +67,7 @@ void GeomProp_Surface::initialization(const occ::handle& theSurfac initFromAdaptor(); } -//================================================================================================== +//================================================================================================= void GeomProp_Surface::initFromAdaptor() { @@ -112,7 +112,7 @@ void GeomProp_Surface::initFromAdaptor() } } -//================================================================================================== +//================================================================================================= const GeomAdaptor_Surface* GeomProp_Surface::Adaptor() const { @@ -127,7 +127,7 @@ const GeomAdaptor_Surface* GeomProp_Surface::Adaptor() const myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_Surface::Normal(const double theU, const double theV, @@ -148,7 +148,7 @@ GeomProp::SurfaceNormalResult GeomProp_Surface::Normal(const double theU, myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_Surface::Curvatures(const double theU, const double theV, @@ -169,7 +169,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_Surface::Curvatures(const double theU, myEvaluator); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_Surface::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfExtrusion.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfExtrusion.cxx index 00ddaebc66..38751adde5 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfExtrusion.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfExtrusion.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_SurfaceOfExtrusion::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_SurfaceOfExtrusion::Normal(const double t return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_SurfaceOfExtrusion::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_SurfaceOfExtrusion::Curvatures(const d return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_SurfaceOfExtrusion::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfRevolution.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfRevolution.cxx index 92af991ad9..8d2ed4e851 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfRevolution.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_SurfaceOfRevolution.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_SurfaceOfRevolution::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_SurfaceOfRevolution::Normal(const double return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_SurfaceOfRevolution::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_SurfaceOfRevolution::Curvatures(const return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_SurfaceOfRevolution::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKG3d/GeomProp/GeomProp_Torus.cxx b/src/ModelingData/TKG3d/GeomProp/GeomProp_Torus.cxx index fbe3fdce16..10dd82f8c8 100644 --- a/src/ModelingData/TKG3d/GeomProp/GeomProp_Torus.cxx +++ b/src/ModelingData/TKG3d/GeomProp/GeomProp_Torus.cxx @@ -13,7 +13,7 @@ #include -//================================================================================================== +//================================================================================================= GeomProp::SurfaceNormalResult GeomProp_Torus::Normal(const double theU, const double theV, @@ -29,7 +29,7 @@ GeomProp::SurfaceNormalResult GeomProp_Torus::Normal(const double theU, return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::SurfaceCurvatureResult GeomProp_Torus::Curvatures(const double theU, const double theV, @@ -45,7 +45,7 @@ GeomProp::SurfaceCurvatureResult GeomProp_Torus::Curvatures(const double theU, return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol); } -//================================================================================================== +//================================================================================================= GeomProp::MeanGaussianResult GeomProp_Torus::MeanGaussian(const double theU, const double theV, diff --git a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx index fa7d876de8..2806f8e552 100644 --- a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx +++ b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx @@ -159,10 +159,7 @@ AdvApp2Var_ApproxAFunc2Var::AdvApp2Var_ApproxAFunc2Var( ConvertBS(); } -//======================================================================= -// function : Init -// purpose : Initialisation of the approximation -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::Init() { @@ -233,10 +230,7 @@ void AdvApp2Var_ApproxAFunc2Var::Init() InitGrid(1); } -//======================================================================= -// function : InitGrid -// purpose : Initialisation of the approximation with regular cuttings -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::InitGrid(const int NbInt) { @@ -333,10 +327,7 @@ void AdvApp2Var_ApproxAFunc2Var::InitGrid(const int NbInt) myConstraints = Constraints; } -//======================================================================= -// function : Perform -// purpose : Computation of the approximation -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::Perform(const AdvApprox_Cutting& UChoice, const AdvApprox_Cutting& VChoice, @@ -347,10 +338,7 @@ void AdvApp2Var_ApproxAFunc2Var::Perform(const AdvApprox_Cutting& UCh Compute3DErrors(); } -//======================================================================= -// function : Perform -// purpose : Computation of the approximation -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::Perform(const AdvApprox_Cutting& UChoice, const AdvApprox_Cutting& VChoice, @@ -363,10 +351,7 @@ void AdvApp2Var_ApproxAFunc2Var::Perform(const AdvApprox_Cutting& UCh ComputeCritError(); } -//======================================================================= -// function : ComputePatches -// purpose : Computation of the polynomial approximations -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice, const AdvApprox_Cutting& VChoice, @@ -469,10 +454,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& } } -//======================================================================= -// function : ComputePatches -// purpose : Computation of the polynomial approximations -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& UChoice, const AdvApprox_Cutting& VChoice, @@ -607,10 +589,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputePatches(const AdvApprox_Cutting& } } -//======================================================================= -// function : ComputeConstraints without Criterion -// purpose : Approximation of the constraints -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(const AdvApprox_Cutting& UChoice, const AdvApprox_Cutting& VChoice, @@ -699,10 +678,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(const AdvApprox_Cutting& } } -//======================================================================= -// function : ComputeConstraints with Criterion -// purpose : Approximation of the constraints -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(const AdvApprox_Cutting& UChoice, const AdvApprox_Cutting& VChoice, @@ -797,10 +773,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(const AdvApprox_Cutting& } } -//======================================================================= -// function : Compute3DErrors -// purpose : Computation of the 3D errors -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::Compute3DErrors() { @@ -850,10 +823,7 @@ void AdvApp2Var_ApproxAFunc2Var::Compute3DErrors() } } -//======================================================================= -// function : ComputeCritError -// purpose : Computation of the max value of the Criterion -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::ComputeCritError() { @@ -874,10 +844,7 @@ void AdvApp2Var_ApproxAFunc2Var::ComputeCritError() } } -//======================================================================= -// function : ConvertBS -// purpose : Conversion of the approximation in BSpline Surface -//======================================================================= +//================================================================================================= void AdvApp2Var_ApproxAFunc2Var::ConvertBS() { diff --git a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx index 02a8af1824..9ca3302860 100644 --- a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx +++ b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_ApproxF2var.cxx @@ -1543,7 +1543,7 @@ int mma1noc_(doublereal* dfuvin, /* ISOFAV: Isoparameter fixed for the discretization; */ /* = 1, discretization with fixed U=Uc and variable V. */ /* = 2, discretization with fixed V=Vc and variable U. */ - /* IDERIV: Ordre de derivee transverse a l'iso fixee (Si Iso-U=Uc */ + /* IDERIV: Order of transverse derivative to the fixed iso (If Iso-U=Uc */ /* is fixed, the derivative of order IDERIV is discretized by U */ /* of F(Uc,v). The same if iso-V is fixed). */ /* Varies from (positioning) to 2 (2nd derivative). */ @@ -6773,7 +6773,7 @@ int AdvApp2Var_ApproxF2var::mma2fnc_(integer* ndimen, /* 1 = Pb of incoherence of inputs. */ /* 10 = Pb of calculation of the interpolation of constraints. */ /* 13 = Pb in the dynamic allocation. */ - /* 33 = Pb in the data recuperation from block data */ + /* 33 = Pb in the data retrieval from block data */ /* of coeff. of integration by GAUSS method. */ /* >100 Pb in the evaluation of FONCNP, the returned error code */ /* is equal to the error code of FONCNP + 100. */ @@ -7129,7 +7129,7 @@ L1000: /* ****************************************************************** **** */ - /* ----------------------- Compression du resultat ------------------ + /* ----------------------- Result compression ------------------ ---- */ /* ****************************************************************** **** */ @@ -7350,8 +7350,8 @@ int AdvApp2Var_ApproxF2var::mma2fx6_(integer* ncfmxu, /* = 0, the extremities of iso-V are calculated */ /* = 1, additionally the 1st derivative in the direction of iso-V is calculated */ /* = 2, additionally the 2nd derivative in the direction of iso-V is calculated */ - /* IORDRV: Ordre de contrainte impose aux extremites de l'iso-U */ - /* = 0, on calcule les extremites de l'iso-U. */ + /* IORDRV: Order of constraint imposed at extremities of iso-U */ + /* = 0, the extremities of iso-U are calculated. */ /* = 1, additionally the 1st derivative in the direction of iso-U is calculated */ /* = 2, additionally the 2nd derivative in the direction of iso-U is calculated */ /* EPSAPR: Table of imposed precisions, sub-space by sub-space. */ diff --git a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Context.cxx b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Context.cxx index 0cdcaf5af4..c7bcde9d09 100644 --- a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Context.cxx +++ b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Context.cxx @@ -280,160 +280,112 @@ int AdvApp2Var_Context::TotalNumberSSP() const return myNb1DSS + myNb2DSS + myNb3DSS; } -//============================================================================ -// function : FavorIso -// purpose : return 1 for IsoU, 2 for IsoV, 2 by default -//============================================================================ +//================================================================================================= int AdvApp2Var_Context::FavorIso() const { return myFav; } -//============================================================================ -// function : UOrder -// purpose : return the order of continuity requested in U -//============================================================================ +//================================================================================================= int AdvApp2Var_Context::UOrder() const { return myOrdU; } -//============================================================================ -// function : VOrder -// purpose : return the order of continuity requested in V -//============================================================================ +//================================================================================================= int AdvApp2Var_Context::VOrder() const { return myOrdV; } -//============================================================================ -// function : ULimit -// purpose : return the max number of coeff. in U of the polynomial approx. -//============================================================================ +//================================================================================================= int AdvApp2Var_Context::ULimit() const { return myLimU; } -//============================================================================ -// function : VLimit -// purpose : return the max number of coeff. in V of the polynomial approx. -//============================================================================ +//================================================================================================= int AdvApp2Var_Context::VLimit() const { return myLimV; } -//============================================================================ -// function : UJacDeg -// purpose : return the max degree of the Jacobi functions for U parameter -//============================================================================ +//================================================================================================= int AdvApp2Var_Context::UJacDeg() const { return myJDegU; } -//============================================================================ -// function : VJacDeg -// purpose : return the max degree of the Jacobi functions for V parameter -//============================================================================ +//================================================================================================= int AdvApp2Var_Context::VJacDeg() const { return myJDegV; } -//============================================================================ -// function : UJacMax -// purpose : return the max value of the Jacobi functions for U parameter -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::UJacMax() const { return myJMaxU; } -//============================================================================ -// function : VJacMax -// purpose : return the max value of the Jacobi functions for V parameter -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::VJacMax() const { return myJMaxV; } -//============================================================================ -// function : URoots -// purpose : return Legendre roots for U parameter -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::URoots() const { return myURoots; } -//============================================================================ -// function : VRoots -// purpose : return Legendre roots for V parameter -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::VRoots() const { return myVRoots; } -//============================================================================ -// function : UGauss -// purpose : return Gauss roots for U parameter -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::UGauss() const { return myUGauss; } -//============================================================================ -// function : VGauss -// purpose : return Gauss roots for V parameter -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::VGauss() const { return myVGauss; } -//============================================================================ -// function : IToler -// purpose : return tolerances for the approximation of patches -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::IToler() const { return myInternalTol; } -//============================================================================ -// function : FToler -// purpose : return tolerances for the approximation of frontiers -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::FToler() const { return myFrontierTol; } -//============================================================================ -// function : CToler -// purpose : return tolerances for the approximation of cutting lines -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Context::CToler() const { diff --git a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Framework.cxx b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Framework.cxx index f9100a6c54..5497720406 100644 --- a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Framework.cxx +++ b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Framework.cxx @@ -42,10 +42,7 @@ AdvApp2Var_Framework::AdvApp2Var_Framework( myVConstraints = VFrontier; } -//========================================================================================== -// function : FirstNotApprox -// purpose : return the first Iso not approximated -//========================================================================================== +//================================================================================================= occ::handle AdvApp2Var_Framework::FirstNotApprox(int& IndexIso, int& IndexStrip) const @@ -79,10 +76,7 @@ occ::handle AdvApp2Var_Framework::FirstNotApprox(int& IndexIso, return occ::handle(); } -//========================================================================================== -// function : FirstNode -// purpose : return the first node of an iso -//========================================================================================== +//================================================================================================= int AdvApp2Var_Framework::FirstNode(const GeomAbs_IsoType Type, const int IndexIso, @@ -102,10 +96,7 @@ int AdvApp2Var_Framework::FirstNode(const GeomAbs_IsoType Type, } } -//========================================================================================== -// function : LastNode -// purpose : return the last node of an iso -//========================================================================================== +//================================================================================================= int AdvApp2Var_Framework::LastNode(const GeomAbs_IsoType Type, const int IndexIso, @@ -125,10 +116,7 @@ int AdvApp2Var_Framework::LastNode(const GeomAbs_IsoType Type, } } -//========================================================================================== -// function : ChangeIso -// purpose : replace the iso IndexIso of the strip IndexStrip by anIso -//========================================================================================== +//================================================================================================= void AdvApp2Var_Framework::ChangeIso(const int IndexIso, const int IndexStrip, @@ -140,10 +128,7 @@ void AdvApp2Var_Framework::ChangeIso(const int IndexIso S0.SetValue(IndexIso, theIso); } -//========================================================================================== -// function : Node -// purpose : return the node of coordinates (U,V) -//========================================================================================== +//================================================================================================= const occ::handle& AdvApp2Var_Framework::Node(const double U, const double V) const { @@ -160,10 +145,7 @@ const occ::handle& AdvApp2Var_Framework::Node(const double U, c return myNodeConstraints.Last(); } -//========================================================================================== -// function : IsoU -// purpose : return the Iso U=U with V0<=V<=V1 -//========================================================================================== +//================================================================================================= const AdvApp2Var_Iso& AdvApp2Var_Framework::IsoU(const double U, const double V0, @@ -185,10 +167,7 @@ const AdvApp2Var_Iso& AdvApp2Var_Framework::IsoU(const double U, return *(myVConstraints.Value(IndexStrip).Value(IndexIso)); } -//========================================================================================== -// function : IsoV -// purpose : return the Iso V=V with U0<=U<=U1 -//========================================================================================== +//================================================================================================= const AdvApp2Var_Iso& AdvApp2Var_Framework::IsoV(const double U0, const double U1, @@ -210,10 +189,7 @@ const AdvApp2Var_Iso& AdvApp2Var_Framework::IsoV(const double U0, return *(myUConstraints.Value(IndexStrip).Value(IndexIso)); } -//========================================================================================== -// function : UpdateInU -// purpose : modification and insertion of nodes and isos -//========================================================================================== +//================================================================================================= void AdvApp2Var_Framework::UpdateInU(const double CuttingValue) { @@ -234,7 +210,7 @@ void AdvApp2Var_Framework::UpdateInU(const double CuttingValue) const NCollection_Sequence>& S0 = myUConstraints.Value(i); const double Udeb = S0.First()->U0(), Ufin = S0.First()->U1(); - // modification des Isos V de la bande en U d'indice i + // Modify the V isos of the U strip at index i for (NCollection_Sequence>::Iterator aStripIter(S0); aStripIter.More(); aStripIter.Next()) @@ -244,7 +220,7 @@ void AdvApp2Var_Framework::UpdateInU(const double CuttingValue) anIso->ResetApprox(); } - // insertion d'une nouvelle bande en U apres l'indice i + // Insert a new U strip after index i NCollection_Sequence> aNewStrip; for (NCollection_Sequence>::Iterator aStripIter(S0); aStripIter.More(); @@ -266,8 +242,8 @@ void AdvApp2Var_Framework::UpdateInU(const double CuttingValue) myUConstraints.InsertAfter(i, aNewStrip); } - // insertion d'une nouvelle Iso U=U* dans chaque bande en V apres l'indice i - // et restriction des paves des Isos adjacentes + // Insert a new Iso U=U* in each V strip after index i + // and restrict the domains of the adjacent Isos for (int j = 1; j <= myVConstraints.Length(); j++) { NCollection_Sequence>& S0 = myVConstraints.ChangeValue(j); @@ -290,7 +266,7 @@ void AdvApp2Var_Framework::UpdateInU(const double CuttingValue) anIso->ChangeDomain(CuttingValue, anIso->U1(), anIso->V0(), anIso->V1()); } - // insertion des nouveaux noeuds (U*,Vj) + // Insert the new nodes (U*,Vj) occ::handle aNext; occ::handle aPrev = myNodeConstraints.First(); for (int j = 1; j < myNodeConstraints.Length(); j++) @@ -308,10 +284,7 @@ void AdvApp2Var_Framework::UpdateInU(const double CuttingValue) } } -//========================================================================================== -// function : UpdateInV -// purpose : modification and insertion of nodes and isos -//========================================================================================== +//================================================================================================= void AdvApp2Var_Framework::UpdateInV(const double CuttingValue) { @@ -326,7 +299,7 @@ void AdvApp2Var_Framework::UpdateInV(const double CuttingValue) NCollection_Sequence>& S0 = myVConstraints.ChangeValue(j); const double Vdeb = S0.First()->V0(), Vfin = S0.First()->V1(); - // modification des Isos U de la bande en V d'indice j + // Modify the U isos of the V strip at index j for (NCollection_Sequence>::Iterator anIsoIter(S0); anIsoIter.More(); anIsoIter.Next()) @@ -336,7 +309,7 @@ void AdvApp2Var_Framework::UpdateInV(const double CuttingValue) anIso->ResetApprox(); } - // insertion d'une nouvelle bande en V apres l'indice j + // Insert a new V strip after index j NCollection_Sequence> aNewStrip; for (NCollection_Sequence>::Iterator anIsoIter(S0); anIsoIter.More(); @@ -358,8 +331,8 @@ void AdvApp2Var_Framework::UpdateInV(const double CuttingValue) myVConstraints.InsertAfter(j, aNewStrip); } - // insertion d'une nouvelle Iso V=V* dans chaque bande en U apres l'indice j - // et restriction des paves des Isos adjacentes + // Insert a new Iso V=V* in each U strip after index j + // and restrict the domains of the adjacent Isos for (NCollection_Sequence>>::Iterator anUConstIter(myUConstraints); anUConstIter.More(); @@ -385,7 +358,7 @@ void AdvApp2Var_Framework::UpdateInV(const double CuttingValue) anIso->ChangeDomain(anIso->U0(), anIso->U1(), CuttingValue, anIso->V1()); } - // insertion des nouveaux noeuds (Ui,V*) + // Insert the new nodes (Ui,V*) int i = 1; while (i <= myNodeConstraints.Length() && myNodeConstraints.Value(i)->Coord().Y() < CuttingValue) { @@ -401,10 +374,7 @@ void AdvApp2Var_Framework::UpdateInV(const double CuttingValue) } } -//========================================================================================== -// function : UEquation -// purpose : return the coefficients of the polynomial equation which approximates an iso U -//========================================================================================== +//================================================================================================= const occ::handle>& AdvApp2Var_Framework::UEquation( const int IndexIso, @@ -413,10 +383,7 @@ const occ::handle>& AdvApp2Var_Framework::UEquation( return myVConstraints.Value(IndexStrip).Value(IndexIso)->Polynom(); } -//========================================================================================== -// function : VEquation -// purpose : return the coefficients of the polynomial equation which approximates an iso V -//========================================================================================== +//================================================================================================= const occ::handle>& AdvApp2Var_Framework::VEquation( const int IndexIso, diff --git a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_MathBase.cxx b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_MathBase.cxx index 3ec33abe1e..ede19e8a53 100644 --- a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_MathBase.cxx +++ b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_MathBase.cxx @@ -625,9 +625,9 @@ int mmaper2_(integer* ncofmx, /* FONCTION : */ /* ---------- */ - /* Calculate max approximation error i faite lorsque l' on */ - /* ne conserve que les premiers NCFNEW coefficients d' une courbe */ - /* de degre NCOEFF-1 ecrite dans la base de Jacobi d' ordre 2. */ + /* Calculate max approximation error made when keeping only */ + /* the first NCFNEW coefficients of a curve of degree NCOEFF-1 */ + /* written in the Jacobi basis of order 2. */ /* KEYWORDS : */ /* ----------- */ diff --git a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Network.cxx b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Network.cxx index 59f81d6b01..591c6729f1 100644 --- a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Network.cxx +++ b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Network.cxx @@ -38,10 +38,7 @@ AdvApp2Var_Network::AdvApp2Var_Network( myVParameters = TheV; } -//========================================================================================== -// function : FirstNotApprox -// purpose : return the first Patch not approximated -//========================================================================================== +//================================================================================================= bool AdvApp2Var_Network::FirstNotApprox(int& theIndex) const { @@ -60,15 +57,12 @@ bool AdvApp2Var_Network::FirstNotApprox(int& theIndex) const return false; } -//========================================================================================== -// function : UpdateInU -// purpose : modification and insertion of patches and parameters -//========================================================================================== +//================================================================================================= void AdvApp2Var_Network::UpdateInU(const double CuttingValue) { - // insertion du nouveau parametre de decoupe + // Insert the new cutting parameter int i = 1, j; while (myUParameters.Value(i) < CuttingValue) { @@ -78,13 +72,13 @@ void AdvApp2Var_Network::UpdateInU(const double CuttingValue) for (j = 1; j < myVParameters.Length(); j++) { - // modification des patches concernes par la decoupe + // Modify the patches affected by the cut int indice = (myUParameters.Length() - 1) * (j - 1) + i - 1; const occ::handle& aPat = myNet.Value(indice); aPat->ChangeDomain(aPat->U0(), CuttingValue, aPat->V0(), aPat->V1()); aPat->ResetApprox(); - // insertion des nouveaux patches + // Insert the new patches occ::handle aNewPat = new AdvApp2Var_Patch(CuttingValue, myUParameters.Value(i + 1), myVParameters.Value(j), @@ -96,15 +90,12 @@ void AdvApp2Var_Network::UpdateInU(const double CuttingValue) } } -//========================================================================================== -// function : UpdateInV -// purpose : modification and insertion of patches and parameters -//========================================================================================== +//================================================================================================= void AdvApp2Var_Network::UpdateInV(const double CuttingValue) { - // insertion du nouveau parametre de decoupe + // Insert the new cutting parameter int j = 1; occ::handle Pat; while (myVParameters.Value(j) < CuttingValue) @@ -113,7 +104,7 @@ void AdvApp2Var_Network::UpdateInV(const double CuttingValue) } myVParameters.InsertBefore(j, CuttingValue); - // modification des patches concernes par la decoupe + // Modify the patches affected by the cut for (int i = 1; i < myUParameters.Length(); i++) { const int indice = (myUParameters.Length() - 1) * (j - 2) + i; @@ -122,7 +113,7 @@ void AdvApp2Var_Network::UpdateInV(const double CuttingValue) Pat->ResetApprox(); } - // insertion des nouveaux patches + // Insert the new patches for (int i = 1; i < myUParameters.Length(); i++) { const int indice = (myUParameters.Length() - 1) * (j - 1) + i - 1; @@ -137,14 +128,11 @@ void AdvApp2Var_Network::UpdateInV(const double CuttingValue) } } -//======================================================================= -// function : SameDegree -// purpose : same numbers of coefficients for all patches -//======================================================================= +//================================================================================================= void AdvApp2Var_Network::SameDegree(const int iu, const int iv, int& ncfu, int& ncfv) { - // calcul des coeff. max avec init selon l'ordre de continuite + // Compute the max coefficients, initialized according to the continuity order ncfu = 2 * iu + 2; ncfv = 2 * iv + 2; for (NCollection_Sequence>::Iterator aPatIter(myNet); @@ -156,7 +144,7 @@ void AdvApp2Var_Network::SameDegree(const int iu, const int iv, int& ncfu, int& ncfv = std::max(ncfv, aPat->NbCoeffInV()); } - // augmentation des nombres de coeff. + // Increase the number of coefficients for (NCollection_Sequence>::Iterator aPatIter(myNet); aPatIter.More(); aPatIter.Next()) diff --git a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Patch.cxx b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Patch.cxx index 5d9279345d..a43fc899d6 100644 --- a/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Patch.cxx +++ b/src/ModelingData/TKGeomBase/AdvApp2Var/AdvApp2Var_Patch.cxx @@ -20,7 +20,7 @@ // CritValue, SetCritValue // Modified: Tue May 19 10:22:44 1998 // by: Joelle CHAUVET / Jean-Marc LACHAUME -// Initialisation de myCritValue pour OSF +// Initialization of myCritValue for OSF #include #include @@ -965,10 +965,7 @@ void AdvApp2Var_Patch::ChangeDomain(const double a, const double b, const double myV1 = d; } -//============================================================================ -// function : ResetApprox -// purpose : allows removing a result when it is necessary to cut -//============================================================================ +//================================================================================================= void AdvApp2Var_Patch::ResetApprox() { @@ -976,10 +973,7 @@ void AdvApp2Var_Patch::ResetApprox() myHasResult = false; } -//============================================================================ -// function : OverwriteApprox -// purpose : allows preserving a result even if the precision is not satisfactory -//============================================================================ +//================================================================================================= void AdvApp2Var_Patch::OverwriteApprox() { @@ -1029,22 +1023,14 @@ int AdvApp2Var_Patch::VOrder() const return myOrdInV; } -//============================================================================ -// function : CutSense without Critere -// purpose : 0 : OK; 1 : required cut by U; -// 2 : required cut by V; 3 : required cut by U and by V -//============================================================================ +//================================================================================================= int AdvApp2Var_Patch::CutSense() const { return myCutSense; } -//============================================================================ -// function : CutSense with critere -// purpose : 0 : OK; 1 : required cut by U; -// 2 : required cut by V; 3 : required cut by U and by V -//============================================================================ +//================================================================================================= int AdvApp2Var_Patch::CutSense(const AdvApp2Var_Criterion& Crit, const int NumDec) const { @@ -1080,10 +1066,7 @@ int AdvApp2Var_Patch::NbCoeffInV() const return myNbCoeffInV; } -//============================================================================ -// function : ChangeNbCoeff -// purpose : allows increasing the nb of coeff (cf Network) -//============================================================================ +//================================================================================================= void AdvApp2Var_Patch::ChangeNbCoeff(const int NbCoeffU, const int NbCoeffV) { @@ -1093,40 +1076,28 @@ void AdvApp2Var_Patch::ChangeNbCoeff(const int NbCoeffU, const int NbCoeffV) myNbCoeffInV = NbCoeffV; } -//============================================================================ -// function : MaxErrors -// purpose : returns max errors of polynomial approximation -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Patch::MaxErrors() const { return myMaxErrors; } -//============================================================================ -// function : AverageErrors -// purpose : returns average errors of polynomial approximation -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Patch::AverageErrors() const { return myMoyErrors; } -//============================================================================ -// function : IsoErrors -// purpose : returns max errors on borders of polynomial approximation -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Patch::IsoErrors() const { return myIsoErrors; } -//============================================================================ -// function : Poles -// purpose : returns poles of the polynomial approximation -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Patch::Poles( const int SSPIndex, @@ -1160,10 +1131,7 @@ occ::handle> AdvApp2Var_Patch::Poles( return new NCollection_HArray2(Conv.Poles()); } -//============================================================================ -// function : Coefficients -// purpose : returns coeff. of the equation of polynomial approximation -//============================================================================ +//================================================================================================= occ::handle> AdvApp2Var_Patch::Coefficients( const int SSPIndex, diff --git a/src/ModelingData/TKGeomBase/AppCont/AppCont_LeastSquare.cxx b/src/ModelingData/TKGeomBase/AppCont/AppCont_LeastSquare.cxx index 26226c443e..1eada11383 100644 --- a/src/ModelingData/TKGeomBase/AppCont/AppCont_LeastSquare.cxx +++ b/src/ModelingData/TKGeomBase/AppCont/AppCont_LeastSquare.cxx @@ -214,7 +214,7 @@ AppCont_LeastSquare::AppCont_LeastSquare(const AppCont_Function& SSP, AppCont_ContMatrices::VBernstein(classe, myNbPoints, myVB); - // Traitement du second membre: + // Processing of the right-hand side: NCollection_Array1 tmppoints(1, nbcol); for (c = 1; c <= classe; c++) @@ -239,7 +239,7 @@ AppCont_LeastSquare::AppCont_LeastSquare(const AppCont_Function& SSP, math_Matrix InvM(1, classe, 1, classe); AppCont_ContMatrices::InvMMatrix(classe, InvM); - // Calcul direct des poles: + // Direct computation of poles: for (i = 1; i <= classe; i++) { @@ -334,7 +334,7 @@ AppCont_LeastSquare::AppCont_LeastSquare(const AppCont_Function& SSP, if (myFirstC == AppParCurves_PassPoint) { bdeb = 2; - // mise a jour du second membre: + // Update the right-hand side: for (i = 1; i <= classe; i++) { Coeff = M(i, 1); @@ -360,7 +360,7 @@ AppCont_LeastSquare::AppCont_LeastSquare(const AppCont_Function& SSP, if (myFirstC == AppParCurves_TangencyPoint) { - // On fixe le second pole:: + // Fix the second pole: bdeb = 3; SSP.D1(U0, aTabV2d, aTabV); @@ -448,8 +448,8 @@ AppCont_LeastSquare::AppCont_LeastSquare(const AppCont_Function& SSP, // =========== math_Matrix IBP(bdeb, bfin, bdeb, bfin); - // dans IBPMatrix at IBTMatrix ne sont stockees que les resultats pour - // une classe inferieure ou egale a 26 (pour l instant du moins.) + // In IBPMatrix and IBTMatrix only results for a degree + // less than or equal to 26 are stored (for now at least). if (bdeb == 2 && bfin == classe - 1 && classe <= 26) { @@ -500,7 +500,7 @@ const AppParCurves_MultiCurve& AppCont_LeastSquare::Value() gp_Pnt2d Pt2d; int ideb = 1, ifin = myDegre + 1; - // On met le resultat dans les curves correspondantes + // Store the result in the corresponding curves for (i = ideb; i <= ifin; i++) { j2 = 1; diff --git a/src/ModelingData/TKGeomBase/AppDef/AppDef_LinearCriteria.cxx b/src/ModelingData/TKGeomBase/AppDef/AppDef_LinearCriteria.cxx index e20f5201bb..283188c8a4 100644 --- a/src/ModelingData/TKGeomBase/AppDef/AppDef_LinearCriteria.cxx +++ b/src/ModelingData/TKGeomBase/AppDef/AppDef_LinearCriteria.cxx @@ -345,8 +345,8 @@ int AppDef_LinearCriteria::QualityValues(const double J1min, int ICDANA = 0; - // (2) Test l'amelioration des estimations - // (critere sureleve => Non minimisation ) + // (2) Test the improvement of estimates + // (overestimated criterion => No minimization) for (i = 0; i <= 2; i++) { @@ -360,8 +360,8 @@ int AppDef_LinearCriteria::QualityValues(const double J1min, } } - // (3) Mise a jours des Estimation - // (critere sous-estimer => mauvais conditionement) + // (3) Update the Estimates + // (underestimated criterion => poor conditioning) if (ValCri[0] > myEstimation[0] * 2) { myEstimation[0] += ValCri[0] * .1; diff --git a/src/ModelingData/TKGeomBase/AppDef/AppDef_Variational.cxx b/src/ModelingData/TKGeomBase/AppDef/AppDef_Variational.cxx index 2268209784..8e069da071 100644 --- a/src/ModelingData/TKGeomBase/AppDef/AppDef_Variational.cxx +++ b/src/ModelingData/TKGeomBase/AppDef/AppDef_Variational.cxx @@ -66,10 +66,7 @@ #endif /* _MSC_VER */ // -//======================================================================= -// function : AppDef_Variational -// purpose : Initialization of the fields. -//======================================================================= +//================================================================================================= // AppDef_Variational::AppDef_Variational( const AppDef_MultiLine& SSP, @@ -212,12 +209,7 @@ AppDef_Variational::AppDef_Variational( } // -//======================================================================= -// function : Init -// purpose : Initializes the tables of constraints -// and verifies if the problem is not over-constrained. -// This method is used in the Create and the method SetConstraint. -//======================================================================= +//================================================================================================= // void AppDef_Variational::Init() { @@ -446,10 +438,7 @@ void AppDef_Variational::Init() } // -//======================================================================= -// function : Approximate -// purpose : Makes the approximation with the current fields. -//======================================================================= +//================================================================================================= // void AppDef_Variational::Approximate() @@ -619,10 +608,7 @@ void AppDef_Variational::Approximate() } // -//======================================================================= -// function : IsCreated -// purpose : returns True if the creation is done -//======================================================================= +//================================================================================================= // bool AppDef_Variational::IsCreated() const { @@ -630,10 +616,7 @@ bool AppDef_Variational::IsCreated() const } // -//======================================================================= -// function : IsDone -// purpose : returns True if the approximation is ok -//======================================================================= +//================================================================================================= // bool AppDef_Variational::IsDone() const { @@ -641,25 +624,14 @@ bool AppDef_Variational::IsDone() const } // -//======================================================================= -// function : IsOverConstrained -// purpose : returns True if the problem is overconstrained -// in this case, approximation cannot be done. -//======================================================================= +//================================================================================================= // bool AppDef_Variational::IsOverConstrained() const { return myIsOverConstr; } -// -//======================================================================= -// function : Value -// purpose : returns all the BSpline curves approximating the -// MultiLine SSP after minimization of the parameter. - -//======================================================================= -// +//================================================================================================= AppParCurves_MultiBSpCurve AppDef_Variational::Value() const { if (!myIsDone) @@ -668,12 +640,7 @@ AppParCurves_MultiBSpCurve AppDef_Variational::Value() const } // -//======================================================================= -// function : MaxError -// purpose : returns the maximum of the distances between -// the points of the multiline and the approximation -// curves. -//======================================================================= +//================================================================================================= // double AppDef_Variational::MaxError() const { @@ -683,10 +650,7 @@ double AppDef_Variational::MaxError() const } // -//======================================================================= -// function : MaxErrorIndex -// purpose : returns the index of the MultiPoint of ErrorMax -//======================================================================= +//================================================================================================= // int AppDef_Variational::MaxErrorIndex() const { @@ -696,12 +660,7 @@ int AppDef_Variational::MaxErrorIndex() const } // -//======================================================================= -// function : QuadraticError -// purpose : returns the quadratic average of the distances between -// the points of the multiline and the approximation -// curves. -//======================================================================= +//================================================================================================= // double AppDef_Variational::QuadraticError() const { @@ -711,11 +670,7 @@ double AppDef_Variational::QuadraticError() const } // -//======================================================================= -// function : Distance -// purpose : returns the distances between the points of the -// multiline and the approximation curves. -//======================================================================= +//================================================================================================= // void AppDef_Variational::Distance(math_Matrix& mat) @@ -766,11 +721,7 @@ void AppDef_Variational::Distance(math_Matrix& mat) } // -//======================================================================= -// function : AverageError -// purpose : returns the average error between -// the MultiLine and the approximation. -//======================================================================= +//================================================================================================= // double AppDef_Variational::AverageError() const { @@ -780,10 +731,7 @@ double AppDef_Variational::AverageError() const } // -//======================================================================= -// function : Parameters -// purpose : returns the parameters uses to the approximations -//======================================================================= +//================================================================================================= // const occ::handle>& AppDef_Variational::Parameters() const { @@ -793,10 +741,7 @@ const occ::handle>& AppDef_Variational::Parameters() } // -//======================================================================= -// function : Knots -// purpose : returns the knots uses to the approximations -//======================================================================= +//================================================================================================= // const occ::handle>& AppDef_Variational::Knots() const { @@ -806,10 +751,7 @@ const occ::handle>& AppDef_Variational::Knots() cons } // -//======================================================================= -// function : Criterium -// purpose : returns the values of the quality criterium. -//======================================================================= +//================================================================================================= // void AppDef_Variational::Criterium(double& VFirstOrder, double& VSecondOrder, @@ -823,11 +765,7 @@ void AppDef_Variational::Criterium(double& VFirstOrder, } // -//======================================================================= -// function : CriteriumWeight -// purpose : returns the Weights (as percent) associed to the criterium used in -// the optimization. -//======================================================================= +//================================================================================================= // void AppDef_Variational::CriteriumWeight(double& Percent1, double& Percent2, double& Percent3) const { @@ -837,10 +775,7 @@ void AppDef_Variational::CriteriumWeight(double& Percent1, double& Percent2, dou } // -//======================================================================= -// function : MaxDegree -// purpose : returns the Maximum Degree used in the approximation -//======================================================================= +//================================================================================================= // int AppDef_Variational::MaxDegree() const { @@ -848,10 +783,7 @@ int AppDef_Variational::MaxDegree() const } // -//======================================================================= -// function : MaxSegment -// purpose : returns the Maximum of segment used in the approximation -//======================================================================= +//================================================================================================= // int AppDef_Variational::MaxSegment() const { @@ -859,10 +791,7 @@ int AppDef_Variational::MaxSegment() const } // -//======================================================================= -// function : Continuity -// purpose : returns the Continuity used in the approximation -//======================================================================= +//================================================================================================= // GeomAbs_Shape AppDef_Variational::Continuity() const { @@ -870,11 +799,7 @@ GeomAbs_Shape AppDef_Variational::Continuity() const } // -//======================================================================= -// function : WithMinMax -// purpose : returns if the approximation search to minimize the -// maximum Error or not. -//======================================================================= +//================================================================================================= // bool AppDef_Variational::WithMinMax() const { @@ -882,10 +807,7 @@ bool AppDef_Variational::WithMinMax() const } // -//======================================================================= -// function : WithCutting -// purpose : returns if the approximation can insert new Knots or not. -//======================================================================= +//================================================================================================= // bool AppDef_Variational::WithCutting() const { @@ -893,10 +815,7 @@ bool AppDef_Variational::WithCutting() const } // -//======================================================================= -// function : Tolerance -// purpose : returns the tolerance used in the approximation. -//======================================================================= +//================================================================================================= // double AppDef_Variational::Tolerance() const { @@ -904,10 +823,7 @@ double AppDef_Variational::Tolerance() const } // -//======================================================================= -// function : NbIterations -// purpose : returns the number of iterations used in the approximation. -//======================================================================= +//================================================================================================= // int AppDef_Variational::NbIterations() const { @@ -915,18 +831,14 @@ int AppDef_Variational::NbIterations() const } // -//======================================================================= -// function : Dump -// purpose : Prints on the stream o information on the current state -// of the object. -//======================================================================= +//================================================================================================= // void AppDef_Variational::Dump(Standard_OStream& o) const { o << " \nVariational Smoothing " << std::endl; o << " Number of multipoints " << myNbPoints << std::endl; o << " Number of 2d par multipoint " << myNbP2d << std::endl; - o << " Nombre of 3d par multipoint " << myNbP3d << std::endl; + o << " Number of 3d per multipoint " << myNbP3d << std::endl; o << " Number of PassagePoint " << myNbPassPoints << std::endl; o << " Number of TangencyPoints " << myNbTangPoints << std::endl; o << " Number of CurvaturePoints " << myNbCurvPoints << std::endl; @@ -967,12 +879,7 @@ void AppDef_Variational::Dump(Standard_OStream& o) const } } -//======================================================================= -// function : SetConstraints -// purpose : Define the constraints to approximate -// If this value is incompatible with the others fields -// this method modify nothing and returns false -//======================================================================= +//================================================================================================= // bool AppDef_Variational::SetConstraints( const occ::handle>& aConstraint) @@ -984,10 +891,7 @@ bool AppDef_Variational::SetConstraints( } // -//======================================================================= -// function : SetParameters -// purpose : Defines the parameters used by the approximations. -//======================================================================= +//================================================================================================= // void AppDef_Variational::SetParameters(const occ::handle>& param) { @@ -995,12 +899,7 @@ void AppDef_Variational::SetParameters(const occ::handle>& knots) { @@ -1009,12 +908,7 @@ bool AppDef_Variational::SetKnots(const occ::handle> } // -//======================================================================= -// function : SetMaxDegree -// purpose : Define the Maximum Degree used in the approximation -// If this value is incompatible with the others fields -// this method modify nothing and returns false -//======================================================================= +//================================================================================================= // bool AppDef_Variational::SetMaxDegree(const int Degree) { @@ -1033,12 +927,7 @@ bool AppDef_Variational::SetMaxDegree(const int Degree) } // -//======================================================================= -// function : SetMaxSegment -// purpose : Define the maximum number of segments used in the approximation -// If this value is incompatible with the others fields -// this method modify nothing and returns false -//======================================================================= +//================================================================================================= // bool AppDef_Variational::SetMaxSegment(const int NbSegment) { @@ -1055,12 +944,7 @@ bool AppDef_Variational::SetMaxSegment(const int NbSegment) } // -//======================================================================= -// function : SetContinuity -// purpose : Define the Continuity used in the approximation -// If this value is incompatible with the others fields -// this method modify nothing and returns false -//======================================================================= +//================================================================================================= // bool AppDef_Variational::SetContinuity(const GeomAbs_Shape C) { @@ -1094,11 +978,7 @@ bool AppDef_Variational::SetContinuity(const GeomAbs_Shape C) } // -//======================================================================= -// function : SetWithMinMax -// purpose : Define if the approximation search to minimize the -// maximum Error or not. -//======================================================================= +//================================================================================================= // void AppDef_Variational::SetWithMinMax(const bool MinMax) { @@ -1108,12 +988,7 @@ void AppDef_Variational::SetWithMinMax(const bool MinMax) } // -//======================================================================= -// function : SetWithCutting -// purpose : Define if the approximation can insert new Knots or not. -// If this value is incompatible with the others fields -// this method modify nothing and returns false -//======================================================================= +//================================================================================================= // bool AppDef_Variational::SetWithCutting(const bool Cutting) { @@ -1148,11 +1023,7 @@ bool AppDef_Variational::SetWithCutting(const bool Cutting) } // -//======================================================================= -// function : SetCriteriumWeight -// purpose : define the Weights (as percent) associed to the criterium used in -// the optimization. -//======================================================================= +//================================================================================================= // void AppDef_Variational::SetCriteriumWeight(const double Percent1, const double Percent2, @@ -1169,12 +1040,7 @@ void AppDef_Variational::SetCriteriumWeight(const double Percent1, } // -//======================================================================= -// function : SetCriteriumWeight -// purpose : define the Weight (as percent) associed to the -// criterium Order used in the optimization : Others -// weights are updated. -//======================================================================= +//================================================================================================= // void AppDef_Variational::SetCriteriumWeight(const int Order, const double Percent) { @@ -1192,10 +1058,7 @@ void AppDef_Variational::SetCriteriumWeight(const int Order, const double Percen } // -//======================================================================= -// function : SetTolerance -// purpose : define the tolerance used in the approximation. -//======================================================================= +//================================================================================================= // void AppDef_Variational::SetTolerance(const double Tol) { @@ -1204,10 +1067,7 @@ void AppDef_Variational::SetTolerance(const double Tol) } // -//======================================================================= -// function : SetNbIterations -// purpose : define the number of iterations used in the approximation. -//======================================================================= +//================================================================================================= // void AppDef_Variational::SetNbIterations(const int Iter) { @@ -1215,10 +1075,7 @@ void AppDef_Variational::SetNbIterations(const int Iter) } //====================== Private Methodes =============================// -//======================================================================= -// function : TheMotor -// purpose : Smoothing's motor like STRIM routine "MOTLIS" -//======================================================================= +//================================================================================================= void AppDef_Variational::TheMotor(occ::handle& J, // const double WQuadratic, const double, @@ -1422,7 +1279,7 @@ void AppDef_Variational::TheMotor(occ::handle& J, COld = CCurrent; OldTi->ChangeArray1() = CurrentTi->Array1(); - // (2.2) Optimization des ti by ACR. + // (2.2) Optimization of ti by ACR. std::stable_sort(CurrentTi->begin(), CurrentTi->end()); @@ -1434,7 +1291,7 @@ void AppDef_Variational::TheMotor(occ::handle& J, ACR(CCurrent, CurrentTi->ChangeArray1(), Decima); lconst = true; - // (2.3) Optimisation des courbes + // (2.3) Optimization of curves EpsLength = SmallValue * CBLONG / NbrPnt; CNew = new ( @@ -1493,7 +1350,7 @@ void AppDef_Variational::TheMotor(occ::handle& J, if (iregre >= 2) { // if (iregre >= 1) { - // (2.7) on restaure l'iteration precedente + // (2.7) restore the previous iteration VALCRI[0] = VOCRI[0]; VALCRI[1] = VOCRI[1]; VALCRI[2] = VOCRI[2]; @@ -1512,7 +1369,7 @@ void AppDef_Variational::TheMotor(occ::handle& J, ToOptim = false; } - // (3) Decoupe eventuelle + // (3) Optional splitting if ((CCurrent->NbElements() < myMaxSegment) && myWithCutting) { @@ -1525,8 +1382,8 @@ void AppDef_Variational::TheMotor(occ::handle& J, COld = CCurrent; OldTi->ChangeArray1() = CurrentTi->Array1(); - // (3.2) On arrange les ti : Trie + recadrage sur (0,1) - // ---> On trie, afin d'assurer l'ordre par la suite. + // (3.2) Arrange the ti: Sort + rescale to (0,1) + // ---> Sort to ensure proper ordering afterwards. std::stable_sort(CurrentTi->begin(), CurrentTi->end()); @@ -1597,10 +1454,7 @@ L8000: delete TheAssembly; } -//======================================================================= -// function : Optimization -// purpose : (like FORTRAN subroutine MINIMI) -//======================================================================= +//================================================================================================= void AppDef_Variational::Optimization(occ::handle& J, FEmTool_Assembly& A, const bool ToAssemble, @@ -1783,7 +1637,7 @@ void AppDef_Variational::Project(const occ::handle& C, if (Ecart <= -Seuil) { - // Pas d'amelioration on s'arrete + // No improvement, stop here EnCour = false; TNew = T0; Dist = Dist0; @@ -1830,11 +1684,11 @@ void AppDef_Variational::ACR(occ::handle& Curve, int ipnt, ii, IElm, IOld, POld, PCnt, ICnt = 0; int NbCntr = myNbPassPoints + myNbTangPoints + myNbCurvPoints; - // (1) Calcul de la longueur de courbe + // (1) Compute the curve length Curve->Length(Ti(TiFirst), Ti(TiLast), CbLong); - // (2) Mise de l'acr dans Ti + // (2) Place the arc-length parameterization in Ti if (NbrPnt >= 2) { @@ -1880,7 +1734,7 @@ void AppDef_Variational::ACR(occ::handle& Curve, ipnt = TiLast; TPara = Ti(ipnt); } - // (2.2), (2.3) Cacul la longueur de courbe + // (2.2), (2.3) Compute the curve length Curve->Length(Ti(TiFirst), TPara, UNew); UNew /= CbLong; @@ -1888,7 +1742,7 @@ void AppDef_Variational::ACR(occ::handle& Curve, while (Knots(IElm + 1) < TPara && IElm < KLast - 1) IElm++; - // (2.4) Mise a jours des parametres de decoupe + // (2.4) Update the splitting parameters DTInv = 1. / (TPara - TOld); DU = UNew - UOld; @@ -1898,7 +1752,7 @@ void AppDef_Variational::ACR(occ::handle& Curve, Knots(ii) = UOld + Ratio * DU; } - // (2.5) Mise a jours des parametres de points. + // (2.5) Update the point parameters. // Very strange loop, because it never works (POld+1 > ipnt-1) for (ii = POld + 1; ii <= ipnt - 1; ii++) @@ -1914,7 +1768,7 @@ void AppDef_Variational::ACR(occ::handle& Curve, TOld = TPara; POld = ipnt; } - // --> Nouveau seuil parametrique pour le decimage + // --> New parametric threshold for decimation if (TPara >= VTest) { @@ -1927,7 +1781,7 @@ void AppDef_Variational::ACR(occ::handle& Curve, } } - // --- On ajuste les valeurs extremes + // --- Adjust the extreme values Ti(TiFirst) = 0.; Ti(TiLast) = 1.; @@ -1941,11 +1795,7 @@ void AppDef_Variational::ACR(occ::handle& Curve, Knots(KLast) = 1.; } -//----------------------------------------------------------// -// int NearIndex // -// Purpose: searching nearest index of TabPar corresponding // -// given value T (is similar to fortran routine MSRRE2) // -//----------------------------------------------------------// +//================================================================================================= static int NearIndex(const double T, const NCollection_Array1& TabPar, @@ -2090,10 +1940,7 @@ void AppDef_Variational::SplitCurve(const occ::handle& InCurve, iscut = false; } -//======================================================================= -// function : InitSmoothCriterion -// purpose : Initializes the SmoothCriterion -//======================================================================= +//================================================================================================= void AppDef_Variational::InitSmoothCriterion() { @@ -2143,7 +1990,7 @@ void AppDef_Variational::InitSmoothCriterion() int NbElem; double CurvTol = Eps2 * Length / myNbPoints; - // Decoupe de l'intervalle en fonction des contraintes + // Subdivision of the interval according to constraints if (myWithCutting && NbConstr != 0) { @@ -2164,11 +2011,7 @@ void AppDef_Variational::InitSmoothCriterion() } // -//======================================================================= -// function : InitParameters -// purpose : Calculation of initial estimation of the multicurve's length -// and parameters for multipoints. -//======================================================================= +//================================================================================================= // void AppDef_Variational::InitParameters(double& Length) { @@ -2203,17 +2046,13 @@ void AppDef_Variational::InitParameters(double& Length) myParameters->SetValue(myLastPoint, 1.); - // Avec peu de point il y a sans doute sous estimation ... + // With few points there is likely underestimation ... if (myNbPoints < 10) Length *= (1. + 0.1 / (myNbPoints - 1)); } // -//======================================================================= -// function : InitCriterionEstimations -// purpose : Calculation of initial estimation of the linear criteria -// -//======================================================================= +//================================================================================================= // void AppDef_Variational::InitCriterionEstimations(const double Length, double& E1, @@ -2345,11 +2184,7 @@ void AppDef_Variational::InitCriterionEstimations(const double Length, } // -//======================================================================= -// function : EstTangent -// purpose : Calculation of estimation of the Tangent -// (see fortran routine MMLIPRI) -//======================================================================= +//================================================================================================= // void AppDef_Variational::EstTangent(const int ipnt, math_Vector& VTang) const @@ -2508,11 +2343,7 @@ void AppDef_Variational::EstTangent(const int ipnt, math_Vector& VTang) const } // -//======================================================================= -// function : EstSecnd -// purpose : Calculation of estimation of the second derivative -// (see fortran routine MLIMSCN) -//======================================================================= +//================================================================================================= // void AppDef_Variational::EstSecnd(const int ipnt, const math_Vector& VTang1, @@ -2591,11 +2422,7 @@ void AppDef_Variational::EstSecnd(const int ipnt, } // -//======================================================================= -// function : InitCutting -// purpose : Realisation of curve's cutting a priory accordingly to -// constraints (see fortran routine MLICUT) -//======================================================================= +//================================================================================================= // void AppDef_Variational::InitCutting(const PLib_HermitJacobi& aBase, const double CurvTol, @@ -2710,10 +2537,7 @@ void AppDef_Variational::InitCutting(const PLib_HermitJacobi& aBase, } } -//======================================================================= -// function : Adjusting -// purpose : Smoothing's adjusting like STRIM routine "MAJLIS" -//======================================================================= +//================================================================================================= void AppDef_Variational::Adjusting(occ::handle& J, double& WQuadratic, double& WQuality, @@ -2748,7 +2572,7 @@ void AppDef_Variational::Adjusting(occ::handle& J, iter = 0; tbpoid.Init(1.); - /* ============ boucle sur le moteur de lissage ============== */ + /* ============ loop on the smoothing engine ============== */ vtest = WQuality * .9; j1cibl = std::sqrt(myCriterium[0] / (NbrPnt - NbrConstraint)); @@ -2758,7 +2582,7 @@ void AppDef_Variational::Adjusting(occ::handle& J, ++iter; - /* (1) Sauvegarde de l'etat precedents */ + /* (1) Save the previous state */ vocri[0] = myCriterium[0]; vocri[1] = myCriterium[1]; @@ -2767,14 +2591,14 @@ void AppDef_Variational::Adjusting(occ::handle& J, erold = myMaxError; emold = myAverageError; - /* (2) Augmentation du poids des moindre carre */ + /* (2) Increase the least squares weight */ if (j1cibl > vtest) { WQuadratic = j1cibl / vtest * WQuadratic; } - /* (3) Augmentation du poid associe aux points a problemes */ + /* (3) Increase the weight associated with problematic points */ vseuil = WQuality * .88; @@ -2787,7 +2611,7 @@ void AppDef_Variational::Adjusting(occ::handle& J, } } - /* (4) Decoupe force */ + /* (4) Forced splitting */ if (TheCurve->NbElements() < myMaxSegment && myWithCutting) { diff --git a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_BSpGradient.gxx b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_BSpGradient.gxx index a4ef269fd2..9c3b5eab6c 100644 --- a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_BSpGradient.gxx +++ b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_BSpGradient.gxx @@ -14,10 +14,10 @@ // lpa, le 11/09/91 -// Application de la methode du gradient corrige pour minimiser -// F = somme(||C(ui, Poles(ui)) - ptli||2. -// La methode de gradient conjugue est programmee dans la bibliotheque -// mathematique: math_BFGS. +// Application of the corrected gradient method to minimize +// F = sum(||C(ui, Poles(ui)) - ptli||2. +// The conjugate gradient method is implemented in the mathematical +// library: math_BFGS. #define No_Standard_RangeError #define No_Standard_OutOfRange @@ -179,9 +179,9 @@ void AppParCurves_BSpGradient::Perform( NCollection_Array1 TabV(1, mynbP3d); NCollection_Array1 TabV2d(1, mynbP2d); - // Calcul de la fonction F= somme(||C(ui)-Ptli||2): - // Appel a une fonction heritant de MultipleVarFunctionWithGradient - // pour calculer F et grad_F. + // Calculation of the function F= sum(||C(ui)-Ptli||2): + // Call to a function inheriting from MultipleVarFunctionWithGradient + // to compute F and grad_F. // ================================================================ int nbpoles = -Deg - 1; @@ -234,7 +234,7 @@ void AppParCurves_BSpGradient::Perform( if (MError3d > Tol3d || MError2d > Tol2d) { - // Stockage des Poles des courbes pour projeter: + // Storage of curve poles for projection: // ============================================ i2 = 0; for (k = 1; k <= nbP3d; k++) diff --git a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_Gradient.gxx b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_Gradient.gxx index 69442137f1..3b1f5abc51 100644 --- a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_Gradient.gxx +++ b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_Gradient.gxx @@ -14,15 +14,15 @@ // lpa, le 11/09/91 -// Application de la methode du gradient corrige pour minimiser -// F = somme(||C(ui, Poles(ui)) - ptli||2. -// La methode de gradient conjugue est programmee dans la bibliotheque -// mathematique: math_BFGS. -// cet algorithme doit etre appele uniquement lorsque on a affaire a un set -// de points contraints (ailleurs qu aux extremites). En effet, l appel de la -// fonction F a minimiser implique un appel a ParLeastSquare et ResConstraint. -// Si ce n est pas le cas, l appel a ResConstraint est equivalent a une -// seconde resolution par les moindres carres donc beaucoup de temps perdu. +// Application of the corrected gradient method to minimize +// F = sum(||C(ui, Poles(ui)) - ptli||2. +// The conjugate gradient method is implemented in the mathematical +// library: math_BFGS. +// This algorithm must be called only when dealing with a set +// of constrained points (other than at extremities). Indeed, the call to the +// function F to minimize implies a call to ParLeastSquare and ResConstraint. +// If this is not the case, the call to ResConstraint is equivalent to a +// second least squares resolution, thus wasting a lot of time. #define No_Standard_RangeError #define No_Standard_OutOfRange @@ -83,9 +83,9 @@ AppParCurves_Gradient::AppParCurves_Gradient( NCollection_Array1 TabV(1, mynbP3d); NCollection_Array1 TabV2d(1, mynbP2d); - // Calcul de la fonction F= somme(||C(ui)-Ptli||2): - // Appel a une fonction heritant de MultipleVarFunctionWithGradient - // pour calculer F et grad_F. + // Calculation of the function F= sum(||C(ui)-Ptli||2): + // Call to a function inheriting from MultipleVarFunctionWithGradient + // to compute F and grad_F. // ================================================================ AppParCurves_ParFunction MyF(SSP, FirstPoint, LastPoint, TheConstraints, Parameters, Deg); @@ -103,7 +103,7 @@ AppParCurves_Gradient::AppParCurves_Gradient( NCollection_Array1 TheCoef(1, (deg + 1) * mynbP3d); NCollection_Array1 TheCoef2d(1, (deg + 1) * mynbP2d); - // Stockage des Poles des courbes pour projeter: + // Storage of curve poles for projection: // ============================================ i2 = 0; for (k = 1; k <= nbP3d; k++) diff --git a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_LeastSquare.gxx b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_LeastSquare.gxx index 518d07ab1e..c79163ba65 100644 --- a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_LeastSquare.gxx +++ b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_LeastSquare.gxx @@ -13,11 +13,11 @@ // commercial license or contractual agreement. // lpa, le 27/07/91 -// pmn, 30/10/98 : Protection dans les cas surcontraint -> "isready" +// pmn, 30/10/98 : Protection for overconstrained cases -> "isready" -// Approximation d une MultiLine de points decrite par le tool MLineTool. -// Ce programme utilise les moindres carres pour le cas suivant: -// passage et tangences aux extremites. +// Approximation of a MultiLine of points described by the tool MLineTool. +// This program uses the least squares method for the following case: +// passing points and tangencies at extremities. #define No_Standard_RangeError #define No_Standard_OutOfRange @@ -282,7 +282,7 @@ void AppParCurves_LeastSquare::Init(const MultiLine& SSP, const int FirstPoint, FirstP = TheFirstPoint(FirstConstraint, myfirstp); LastP = TheLastPoint(LastConstraint, mylastp); - // Reperage des contraintes aux extremites: + // Identification of constraints at extremities: // ======================================== int i, j, k, i2; @@ -522,7 +522,7 @@ void AppParCurves_LeastSquare::Perform(const math_Vector& Parameters) // gp_Pnt2d Pt2d; iscalculated = false; - // calcul de la matrice A et DA des fonctions d approximation: + // Calculation of matrix A and DA of approximation functions: ComputeFunction(Parameters); if (FirstConstraint != AppParCurves_TangencyPoint && LastConstraint != AppParCurves_TangencyPoint) @@ -676,7 +676,7 @@ void AppParCurves_LeastSquare::Perform(const math_Vector& Parameters) else if (LastConstraint >= AppParCurves_TangencyPoint) lambda2 = myTAB.Value(Ninc); - // Les resultats sont stockes dans mypoles. + // The results are stored in mypoles. //========================================= k = 1; i2 = 1; @@ -1422,7 +1422,7 @@ const AppParCurves_MultiBSpCurve& AppParCurves_LeastSquare::BSplineValue() if (ifin <= nbpoles - 1) ifin = nbpoles - 1; - // On met le resultat dans les curves correspondantes + // Put the result in the corresponding curves for (i = ideb; i <= ifin; i++) { j2 = 1; diff --git a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_ResolConstraint.gxx b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_ResolConstraint.gxx index ef92cb0c18..654ce098f8 100644 --- a/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_ResolConstraint.gxx +++ b/src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_ResolConstraint.gxx @@ -14,9 +14,9 @@ // lpa, le 11/09/91 -// Approximation d un ensemble de points contraints (MultiLine) avec une -// solution approchee (MultiCurve). L algorithme utilise est l algorithme -// d Uzawa du package mathematique. +// Approximation of a constrained set of points (MultiLine) with an +// approximate solution (MultiCurve). The algorithm used is the +// Uzawa algorithm from the mathematical package. #define No_Standard_RangeError #define No_Standard_OutOfRange @@ -130,7 +130,7 @@ AppParCurves_ResolConstraint::AppParCurves_ResolConstraint( math_Vector Start(1, CCol * Npol); NCollection_Array2 Ibont(1, NbCu, 1, IncTan); - // Remplissage de Cont pour les points de passage: + // Filling Cont for the passing points: // ================================================= for (i = 1; i <= IncPass; i++) { // Cette partie ne depend que de Bernstein @@ -145,9 +145,9 @@ AppParCurves_ResolConstraint::AppParCurves_ResolConstraint( Cont.Set(IncPass * (i - 1) + 1, IncPass * i, Npol * (i - 1) + 1, Npol * i, ContInit); } - // recuperation des vecteurs de depart pour Uzawa. Ce vecteur represente les - // poles de SCurv. - // Remplissage de secont et resolution. + // Retrieval of starting vectors for Uzawa. This vector represents the + // poles of SCurv. + // Filling of secont and resolution. NCollection_Array1 tabV(1, mynb3d); NCollection_Array1 tabV2d(1, mynb2d); diff --git a/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx b/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx index 948385455b..77736c2c40 100644 --- a/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx +++ b/src/ModelingData/TKGeomBase/Approx/Approx_BSplComputeLine.gxx @@ -112,7 +112,7 @@ static void DUMP(const MultiLine& Line) } } - // le cas des tangentes aux extremites: + // The case of tangents at extremities: if (i == firstP || i == lastP) { if (nbP3d != 0 && nbP2d != 0) @@ -244,7 +244,7 @@ void Approx_BSplComputeLine::FirstTangencyVector(const MultiLine& Line, else { - // recherche d un vecteur tangent par construction d une parabole: + // Search for a tangent vector by construction of a parabola: AppParCurves_Constraint firstC, lastC; firstC = lastC = AppParCurves_PassPoint; int nbpoles = 3; @@ -330,7 +330,7 @@ void Approx_BSplComputeLine::LastTangencyVector(const MultiLine& Line, else { - // recherche d un vecteur tangent par construction d une parabole: + // Search for a tangent vector by construction of a parabola: AppParCurves_Constraint firstC, lastC; firstC = lastC = AppParCurves_PassPoint; int nbpoles = 3; @@ -644,7 +644,7 @@ void Approx_BSplComputeLine::Perform(const MultiLine& Line) int i, Thefirstpt, Thelastpt; bool Finish = false, begin = true; - // recherche des vraies contraintes donnees par la Line: + // Search for the actual constraints given by the Line: FindRealConstraints(Line); Thefirstpt = LineTool::FirstPoint(Line); @@ -682,7 +682,7 @@ void Approx_BSplComputeLine::Perform(const MultiLine& Line) if (!mycut) { - // cas ou on ne desire pas de noeuds supplementaires. + // Case where no additional knots are desired. // ================================================== if (!myhasknots) @@ -725,9 +725,9 @@ void Approx_BSplComputeLine::Perform(const MultiLine& Line) if (!myhasmults) { - // 1er cas: l''utilisateur donne des noeuds de depart mais - // a nous de fixer les multiplicites en fonction de la - // continuite desiree. + // 1st case: the user provides starting knots but + // it is up to us to set the multiplicities according to the + // desired continuity. // ======================================================== NCollection_Array1 TheMults(1, myknots->Length()); @@ -736,8 +736,8 @@ void Approx_BSplComputeLine::Perform(const MultiLine& Line) else { - // 2eme cas: l''utilisateur donne des noeuds de depart - // avec leurs multiplicites. + // 2nd case: the user provides starting knots + // with their multiplicities. // =================================================== alldone = Compute(Line, diff --git a/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx b/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx index c16d090e60..54065cac45 100644 --- a/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx +++ b/src/ModelingData/TKGeomBase/Approx/Approx_ComputeCLine.gxx @@ -138,7 +138,7 @@ void Approx_ComputeCLine::Perform(const MultiLine& Line) while (!Finish) { - // Gestion du decoupage de la multiline pour approximer: + // Management of the multiline splitting for approximation: if (!begin) { if (Ok) @@ -178,7 +178,7 @@ void Approx_ComputeCLine::Perform(const MultiLine& Line) } } - // Calcul des parametres sur ce nouvel intervalle. + // Calculation of parameters on this new interval. Ok = Compute(Line, myfirstU, mylastU, thetol3d, thetol2d); if (Ok) { diff --git a/src/ModelingData/TKGeomBase/Approx/Approx_ComputeLine.gxx b/src/ModelingData/TKGeomBase/Approx/Approx_ComputeLine.gxx index a635aeb515..02cbc16fd0 100644 --- a/src/ModelingData/TKGeomBase/Approx/Approx_ComputeLine.gxx +++ b/src/ModelingData/TKGeomBase/Approx/Approx_ComputeLine.gxx @@ -478,7 +478,7 @@ void Approx_ComputeLine::FirstTangencyVector(const MultiLine& Line, else { - // recherche d un vecteur tangent par construction d une parabole: + // Search for a tangent vector by construction of a parabola: AppParCurves_Constraint firstC, lastC; firstC = lastC = AppParCurves_PassPoint; int nbpoles = 3; @@ -561,7 +561,7 @@ void Approx_ComputeLine::LastTangencyVector(const MultiLine& Line, else { - // recherche d un vecteur tangent par construction d une parabole: + // Search for a tangent vector by construction of a parabola: AppParCurves_Constraint firstC, lastC; firstC = lastC = AppParCurves_PassPoint; int nbpoles = 3; @@ -918,7 +918,7 @@ void Approx_ComputeLine::Perform(const MultiLine& Line) while (!Finish) { oldlastpt = mylastpt; - // Gestion du decoupage de la multiline pour approximer: + // Management of the multiline splitting for approximation: if (!begin) { if (!GoUp) @@ -979,7 +979,7 @@ void Approx_ComputeLine::Perform(const MultiLine& Line) int nbpdsotherligne = LineTool::FirstPoint(anOtherLine1) - LineTool::LastPoint(anOtherLine1); - //-- Si MakeML a echoue on retourne une ligne vide + //-- If MakeML failed, return an empty line if ((nbpdsotherligne == 0) || myMultiLineNb >= 3) { //-- cout<<" ** ApproxComputeLine MakeML Echec ** LBR lbr "<SetValue(1, myCouple1); myConstraints->SetValue(2, myCouple2); - // Calcul des parametres sur ce nouvel intervalle. - // On recupere les parametres initiaux lors du decoupage. + // Calculation of parameters on this new interval. + // Retrieve the initial parameters during splitting. math_Vector Param(myfirstpt, mylastpt); if (begin) @@ -1408,7 +1408,7 @@ bool Approx_ComputeLine::Compute(const MultiLine& Line, else { myMultiCurves.Append(mySCU); - // Stockage des parametres de la partie de MultiLine approximee: + // Storage of parameters of the approximated MultiLine part: // A ameliorer !! (bq trop de recopies) occ::handle> ThePar = new NCollection_HArray1(Para.Lower(), Para.Upper()); @@ -1493,8 +1493,8 @@ bool Approx_ComputeLine::ComputeCurve(const MultiLine& Line, const int firstpt, } if (nbp == 2) { - // S il n y a que 2 points, on verifie quand meme que les tangentes sont - // alignees. + // If there are only 2 points, we still verify that the tangents are + // aligned. #ifdef OCCT_DEBUG Parallel = true; #endif @@ -1642,7 +1642,7 @@ bool Approx_ComputeLine::ComputeCurve(const MultiLine& Line, const int firstpt, return mydone; } - // avec les tangentes. + // with the tangents. deg = nbp + 1; AppParCurves_MultiCurve mySCU(deg + 1); AppParCurves_Constraint Cons = AppParCurves_TangencyPoint; diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC.cxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC.cxx index 3483c709d3..7f7f6ef0b9 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC.cxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC.cxx @@ -14,10 +14,10 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// Modified by MPS (june 96) : correction du trap dans le cas droite/Bezier -// Modified by MPS (mai 97) : PRO 7598 -// tri des solutions pour eviter de rendre plusieurs -// fois la meme solution +// Modified by MPS (june 96) : fix for the trap in the case line/Bezier +// Modified by MPS (may 97) : PRO 7598 +// sort solutions to avoid returning the same +// solution multiple times #include #include @@ -815,7 +815,7 @@ void Extrema_ExtCC::PrepareResults(const Extrema_ExtElC& AlgExt, NbExt = AlgExt.NbExt(); for (i = 1; i <= NbExt; i++) { - // Verification de la validite des parametres + // Verification of the validity of parameters AlgExt.Points(i, P1, P2); if (!theIsInverse) { diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC2d.cxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC2d.cxx index 4b5132fac8..113c67e362 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC2d.cxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtCC2d.cxx @@ -29,6 +29,8 @@ #include #include +//================================================================================================= + Extrema_ExtCC2d::Extrema_ExtCC2d() : myIsFindSingleSolution(false), myDone(false), @@ -47,6 +49,8 @@ Extrema_ExtCC2d::Extrema_ExtCC2d() { } +//================================================================================================= + Extrema_ExtCC2d::Extrema_ExtCC2d(const Adaptor2d_Curve2d& C1, const Adaptor2d_Curve2d& C2, const double TolC1, @@ -61,6 +65,8 @@ Extrema_ExtCC2d::Extrema_ExtCC2d(const Adaptor2d_Curve2d& C1, Perform(C1, Extrema_Curve2dTool::FirstParameter(C1), Extrema_Curve2dTool::LastParameter(C1)); } +//================================================================================================= + Extrema_ExtCC2d::Extrema_ExtCC2d(const Adaptor2d_Curve2d& C1, const Adaptor2d_Curve2d& C2, const double U1, @@ -75,6 +81,8 @@ Extrema_ExtCC2d::Extrema_ExtCC2d(const Adaptor2d_Curve2d& C1, Perform(C1, U1, U2); } +//================================================================================================= + void Extrema_ExtCC2d::Initialize(const Adaptor2d_Curve2d& C2, const double V1, const double V2, @@ -88,6 +96,8 @@ void Extrema_ExtCC2d::Initialize(const Adaptor2d_Curve2d& C2, mytolc2 = TolC2; } +//================================================================================================= + void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, const double U2) { mypoints.Clear(); @@ -115,7 +125,7 @@ void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, cons switch (type1) { // - // La premiere courbe est un cercle: + // The first curve is a circle: // case GeomAbs_Circle: { @@ -169,7 +179,7 @@ void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, cons break; // - // La premiere courbe est une ellipse: + // The first curve is an ellipse: // case GeomAbs_Ellipse: { @@ -229,7 +239,7 @@ void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, cons break; // - // La premiere courbe est une parabole: + // The first curve is a parabola: // case GeomAbs_Parabola: { @@ -293,7 +303,7 @@ void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, cons break; // - // La premiere courbe est une hyperbole: + // The first curve is a hyperbola: // case GeomAbs_Hyperbola: { @@ -356,7 +366,7 @@ void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, cons break; // - // La premiere courbe est une Line: + // The first curve is a line: // case GeomAbs_Line: { @@ -410,7 +420,7 @@ void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, cons break; // - // La premiere courbe est une BezierCurve ou une BSplineCurve: + // The first curve is a BezierCurve or a BSplineCurve: // default: { aParamSolver = opencascade::make_shared(C1, *myC); @@ -428,11 +438,15 @@ void Extrema_ExtCC2d::Perform(const Adaptor2d_Curve2d& C1, const double U1, cons }; } +//================================================================================================= + bool Extrema_ExtCC2d::IsDone() const { return myDone; } +//================================================================================================= + double Extrema_ExtCC2d::SquareDistance(const int N) const { if (!myDone) @@ -442,6 +456,8 @@ double Extrema_ExtCC2d::SquareDistance(const int N) const return mySqDist.Value(N); } +//================================================================================================= + int Extrema_ExtCC2d::NbExt() const { if (!myDone) @@ -449,6 +465,8 @@ int Extrema_ExtCC2d::NbExt() const return mynbext; } +//================================================================================================= + void Extrema_ExtCC2d::Points(const int N, Extrema_POnCurv2d& P1, Extrema_POnCurv2d& P2) const { if (!myDone) @@ -459,6 +477,8 @@ void Extrema_ExtCC2d::Points(const int N, Extrema_POnCurv2d& P1, Extrema_POnCurv P2 = mypoints.Value(2 * N); } +//================================================================================================= + void Extrema_ExtCC2d::TrimmedSquareDistances(double& dist11, double& dist12, double& dist21, @@ -478,6 +498,8 @@ void Extrema_ExtCC2d::TrimmedSquareDistances(double& dist11, P22 = P2l; } +//================================================================================================= + void Extrema_ExtCC2d::Results(const Extrema_ExtElC2d& AlgExt, const double Ut11, const double Ut12, @@ -499,7 +521,7 @@ void Extrema_ExtCC2d::Results(const Extrema_ExtElC2d& AlgExt, NbExt = AlgExt.NbExt(); for (i = 1; i <= NbExt; i++) { - // Verification de la validite des parametres pour le cas trimme: + // Verification of the validity of parameters for the trimmed case: AlgExt.Points(i, P1, P2); if (!inverse) { @@ -550,6 +572,8 @@ void Extrema_ExtCC2d::Results(const Extrema_ExtElC2d& AlgExt, } } +//================================================================================================= + void Extrema_ExtCC2d::Results(const Extrema_ECC2d& AlgExt, const double Ut11, const double Ut12, @@ -569,7 +593,7 @@ void Extrema_ExtCC2d::Results(const Extrema_ECC2d& AlgExt, NbExt = AlgExt.NbExt(); for (i = 1; i <= NbExt; i++) { - // Verification de la validite des parametres pour le cas trimme: + // Verification of parameter validity for the trimmed case: AlgExt.Points(i, P1, P2); U = P1.Parameter(); if (Period1 != 0.0) @@ -598,6 +622,8 @@ void Extrema_ExtCC2d::Results(const Extrema_ECC2d& AlgExt, } } +//================================================================================================= + bool Extrema_ExtCC2d::IsParallel() const { if (!myDone) diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtElC.cxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtElC.cxx index aff4b1469e..4d7944acd0 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtElC.cxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_ExtElC.cxx @@ -37,14 +37,13 @@ static void RefineDir(gp_Dir& aDir); -//======================================================================= +//================================================================================================= // class : ExtremaExtElC_TrigonometricRoots -// purpose : -//== Classe Interne (Donne des racines classees d un polynome trigo) -//== Code duplique avec IntAna_IntQuadQuad.cxx (lbr le 26 mars 98) -//== Solution fiable aux problemes de coefficients proches de 0 -//== avec essai de rattrapage si coeff<1.e-10 (jct le 27 avril 98) -//======================================================================= +// purpose : Internal class (provides sorted roots of a trigonometric polynomial). +// Code duplicated from IntAna_IntQuadQuad.cxx. +// Reliable solution for near-zero coefficient problems +// with recovery attempt if coeff < 1.e-10. +//================================================================================================= class ExtremaExtElC_TrigonometricRoots { private: @@ -172,7 +171,7 @@ ExtremaExtElC_TrigonometricRoots::ExtremaExtElC_TrigonometricRoots(const double } } // - //-- La recherche directe donne n importe quoi. + //-- The direct search gives unreliable results. aMaxCoef = std::max(CC, SC); aMaxCoef = std::max(aMaxCoef, C); aMaxCoef = std::max(aMaxCoef, S); @@ -435,38 +434,36 @@ bool Extrema_ExtElC::PlanarLineCircleExtrema(const gp_Lin& theLin, const gp_Circ return true; } -//======================================================================= -// function : Extrema_ExtElC -// purpose : +//================================================================================================= // Find extreme distances between straight line C1 and circle C2. // // Method: // Let P1=C1(u1) and P2=C2(u2) be two solution points // D the direction of straight line C1 -// T tangent at point P2; +// T tangent at point P2; // Then, ( P1P2.D = 0. (1) // ( P1P2.T = 0. (2) // Let O1 and O2 be the origins of C1 and C2; // Then, (1) <=> (O1P2-u1*D).D = 0. as O1P1 = u1*D -// <=> u1 = O1P2.D as D.D = 1. +// <=> u1 = O1P2.D as D.D = 1. // (2) <=> P1O2.T = 0. as O2P2.T = 0. // <=> ((P2O1.D)D+O1O2).T = 0. as P1O1 = -u1*D = (P2O1.D)D -// <=> (((P2O2+O2O1).D)D+O1O2).T = 0. -// <=> ((P2O2.D)(D.T)+((O2O1.D)D-O2O1).T = 0. -// We are in the reference of the circle; let: +// <=> (((P2O2+O2O1).D)D+O1O2).T = 0. +// <=> ((P2O2.D)(D.T)+((O2O1.D)D-O2O1).T = 0. +// We are in the reference frame of the circle; let: // Cos = std::cos(u2) and Sin = std::sin(u2), // P2 (R*Cos,R*Sin,0.), // T (-R*Sin,R*Cos,0.), -// D (Dx,Dy,Dz), -// V (Vx,Vy,Vz) = (O2O1.D)D-O2O1; +// D (Dx,Dy,Dz), +// V (Vx,Vy,Vz) = (O2O1.D)D-O2O1; // Then, the equation by Cos and Sin is as follows: // -(2*R*R*Dx*Dy) * Cos**2 + A1 // R*R*(Dx**2-Dy**2) * Cos*Sin + 2* A2 // R*Vy * Cos + A3 -// -R*Vx * Sin + A4 +// -R*Vx * Sin + A4 // R*R*Dx*Dy = 0. A5 // Use the algorithm math_TrigonometricFunctionRoots to solve this equation. -//======================================================================= +//================================================================================================= Extrema_ExtElC::Extrema_ExtElC(const gp_Lin& C1, const gp_Circ& C2, const double) { double Dx, Dy, Dz, aRO2O1, aTolRO2O1; @@ -500,7 +497,7 @@ Extrema_ExtElC::Extrema_ExtElC(const gp_Lin& C1, const gp_Circ& C2, const double RefineDir(D); D.Coord(Dx, Dy, Dz); // - // Calcul de V dans le repere du cercle: + // Calculate V in the reference frame of the circle: gp_Pnt O1 = C1.Location(); gp_Pnt O2 = C2.Location(); gp_Vec O2O1(O2, O1); diff --git a/src/ModelingData/TKGeomBase/Extrema/Extrema_GFuncExtCC.hxx b/src/ModelingData/TKGeomBase/Extrema/Extrema_GFuncExtCC.hxx index 3b6826acbc..84f127371a 100644 --- a/src/ModelingData/TKGeomBase/Extrema/Extrema_GFuncExtCC.hxx +++ b/src/ModelingData/TKGeomBase/Extrema/Extrema_GFuncExtCC.hxx @@ -132,11 +132,11 @@ private: double myVsupremum; }; -//================================================================================================== +//================================================================================================= // Implementation -//================================================================================================== +//================================================================================================= -//================================================================================================== +//================================================================================================= template #include +//================================================================================================= + GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips, const gp_Pnt& P1, const gp_Pnt& P2, @@ -34,6 +36,8 @@ GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips, TheError = gce_Done; } +//================================================================================================= + GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips, const gp_Pnt& P, const double Alpha, @@ -45,6 +49,8 @@ GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips, TheError = gce_Done; } +//================================================================================================= + GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips, const double Alpha1, const double Alpha2, @@ -55,6 +61,8 @@ GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips, TheError = gce_Done; } +//================================================================================================= + const occ::handle& GC_MakeArcOfEllipse::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeArcOfEllipse::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfHyperbola.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfHyperbola.cxx index fc3ab3439a..bff2c6a38a 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfHyperbola.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfHyperbola.cxx @@ -22,6 +22,8 @@ #include #include +//================================================================================================= + GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr, const gp_Pnt& P1, const gp_Pnt& P2, @@ -34,6 +36,8 @@ GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr, TheError = gce_Done; } +//================================================================================================= + GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr, const gp_Pnt& P, const double Alpha, @@ -45,6 +49,8 @@ GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr, TheError = gce_Done; } +//================================================================================================= + GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr, const double Alpha1, const double Alpha2, @@ -55,6 +61,8 @@ GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr, TheError = gce_Done; } +//================================================================================================= + const occ::handle& GC_MakeArcOfHyperbola::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeArcOfHyperbola::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfParabola.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfParabola.cxx index 2ffdaf1fd6..f1c0ea4a4b 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfParabola.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeArcOfParabola.cxx @@ -22,6 +22,8 @@ #include #include +//================================================================================================= + GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab, const gp_Pnt& P1, const gp_Pnt& P2, @@ -34,6 +36,8 @@ GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab, TheError = gce_Done; } +//================================================================================================= + GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab, const gp_Pnt& P, const double Alpha, @@ -45,6 +49,8 @@ GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab, TheError = gce_Done; } +//================================================================================================= + GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab, const double Alpha1, const double Alpha2, @@ -55,6 +61,8 @@ GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab, TheError = gce_Done; } +//================================================================================================= + const occ::handle& GC_MakeArcOfParabola::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeArcOfParabola::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeCircle.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeCircle.cxx index d453c7edd1..7487291482 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeCircle.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeCircle.cxx @@ -24,12 +24,16 @@ #include #include +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Circ& C) { TheError = gce_Done; TheCircle = new Geom_Circle(C); } +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Ax2& A2, const double Radius) { if (Radius < 0.) @@ -43,6 +47,8 @@ GC_MakeCircle::GC_MakeCircle(const gp_Ax2& A2, const double Radius) } } +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Circ& Circ, const gp_Pnt& Point) { gp_Circ C = gce_MakeCirc(Circ, Point); @@ -50,6 +56,8 @@ GC_MakeCircle::GC_MakeCircle(const gp_Circ& Circ, const gp_Pnt& Point) TheError = gce_Done; } +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Circ& Circ, const double Dist) { gce_MakeCirc C = gce_MakeCirc(Circ, Dist); @@ -60,6 +68,8 @@ GC_MakeCircle::GC_MakeCircle(const gp_Circ& Circ, const double Dist) } } +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) { gce_MakeCirc C = gce_MakeCirc(P1, P2, P3); @@ -70,6 +80,8 @@ GC_MakeCircle::GC_MakeCircle(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P } } +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Pnt& Point, const gp_Dir& Norm, const double Radius) { gce_MakeCirc C = gce_MakeCirc(Point, Norm, Radius); @@ -80,6 +92,8 @@ GC_MakeCircle::GC_MakeCircle(const gp_Pnt& Point, const gp_Dir& Norm, const doub } } +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Pnt& Point, const gp_Pnt& PtAxis, const double Radius) { gce_MakeCirc C = gce_MakeCirc(Point, PtAxis, Radius); @@ -90,6 +104,8 @@ GC_MakeCircle::GC_MakeCircle(const gp_Pnt& Point, const gp_Pnt& PtAxis, const do } } +//================================================================================================= + GC_MakeCircle::GC_MakeCircle(const gp_Ax1& Axis, const double Radius) { gce_MakeCirc C = gce_MakeCirc(Axis, Radius); @@ -100,6 +116,8 @@ GC_MakeCircle::GC_MakeCircle(const gp_Ax1& Axis, const double Radius) } } +//================================================================================================= + const occ::handle& GC_MakeCircle::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeCircle::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeConicalSurface.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeConicalSurface.cxx index 4b330b9db3..a0505fe8aa 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeConicalSurface.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeConicalSurface.cxx @@ -25,6 +25,8 @@ #include #include +//================================================================================================= + GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Ax2& A2, const double Ang, const double Radius) @@ -44,18 +46,15 @@ GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Ax2& A2, } } +//================================================================================================= + GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Cone& C) { TheError = gce_Done; TheCone = new Geom_ConicalSurface(C); } -//========================================================================= -// Creation of a cone by four points. + -// two first give the axis. + -// the third gives the base radius. + -// the third and the fourth the half-angle. + -//========================================================================= +//================================================================================================= GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Pnt& P1, const gp_Pnt& P2, @@ -70,8 +69,7 @@ GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Pnt& P1, } } -//========================================================================= -//========================================================================= +//================================================================================================= GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Pnt& P1, const gp_Pnt& P2, @@ -86,6 +84,8 @@ GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Pnt& P1, } } +//================================================================================================= + const occ::handle& GC_MakeConicalSurface::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeConicalSurface::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeCylindricalSurface.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeCylindricalSurface.cxx index c842c625cf..8febd2abd8 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeCylindricalSurface.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeCylindricalSurface.cxx @@ -25,12 +25,16 @@ #include #include +//================================================================================================= + GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Cylinder& C) { TheError = gce_Done; TheCylinder = new Geom_CylindricalSurface(C); } +//================================================================================================= + GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Ax2& A2, const double Radius) { if (Radius < 0.0) @@ -44,9 +48,7 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Ax2& A2, const dou } } -//========================================================================= -// Construction of a cylinder by axis et radius . + -//========================================================================= +//================================================================================================= GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Ax1& A1, const double Radius) { @@ -58,9 +60,7 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Ax1& A1, const dou } } -//========================================================================= -// Construction of a cylinder by a circle . + -//========================================================================= +//================================================================================================= GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Circ& Circ) { @@ -69,11 +69,7 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Circ& Circ) TheError = gce_Done; } -//========================================================================= -// Construction of a cylinder by tree points , , . + -// Two first points define the axis. + -// The third gives the radius. + -//========================================================================= +//================================================================================================= GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Pnt& P1, const gp_Pnt& P2, @@ -87,6 +83,8 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Pnt& P1, } } +//================================================================================================= + GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Cylinder& Cyl, const double Dist) { TheError = gce_Done; @@ -95,6 +93,8 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Cylinder& Cyl, con TheCylinder->SetRadius(R); } +//================================================================================================= + GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Cylinder& Cyl, const gp_Pnt& Point) { TheError = gce_Done; @@ -105,6 +105,8 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Cylinder& Cyl, con TheCylinder = new Geom_CylindricalSurface(C); } +//================================================================================================= + const occ::handle& GC_MakeCylindricalSurface::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeCylindricalSurface::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeEllipse.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeEllipse.cxx index f3e0c09c94..01d6f2b8bb 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeEllipse.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeEllipse.cxx @@ -22,12 +22,16 @@ #include #include +//================================================================================================= + GC_MakeEllipse::GC_MakeEllipse(const gp_Elips& E) { TheError = gce_Done; TheEllipse = new Geom_Ellipse(E); } +//================================================================================================= + GC_MakeEllipse::GC_MakeEllipse(const gp_Ax2& A2, const double MajorRadius, const double MinorRadius) { if (MinorRadius < 0.0) @@ -45,6 +49,8 @@ GC_MakeEllipse::GC_MakeEllipse(const gp_Ax2& A2, const double MajorRadius, const } } +//================================================================================================= + GC_MakeEllipse::GC_MakeEllipse(const gp_Pnt& S1, const gp_Pnt& S2, const gp_Pnt& Center) { gce_MakeElips E = gce_MakeElips(S1, S2, Center); @@ -55,6 +61,8 @@ GC_MakeEllipse::GC_MakeEllipse(const gp_Pnt& S1, const gp_Pnt& S2, const gp_Pnt& } } +//================================================================================================= + const occ::handle& GC_MakeEllipse::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeEllipse::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeHyperbola.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeHyperbola.cxx index 2f61f9cdd5..e783a4222a 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeHyperbola.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeHyperbola.cxx @@ -22,12 +22,16 @@ #include #include +//================================================================================================= + GC_MakeHyperbola::GC_MakeHyperbola(const gp_Hypr& H) { TheError = gce_Done; TheHyperbola = new Geom_Hyperbola(H); } +//================================================================================================= + GC_MakeHyperbola::GC_MakeHyperbola(const gp_Ax2& A2, const double MajorRadius, const double MinorRadius) @@ -43,6 +47,8 @@ GC_MakeHyperbola::GC_MakeHyperbola(const gp_Ax2& A2, } } +//================================================================================================= + GC_MakeHyperbola::GC_MakeHyperbola(const gp_Pnt& S1, const gp_Pnt& S2, const gp_Pnt& Center) { gce_MakeHypr H = gce_MakeHypr(S1, S2, Center); @@ -53,6 +59,8 @@ GC_MakeHyperbola::GC_MakeHyperbola(const gp_Pnt& S1, const gp_Pnt& S2, const gp_ } } +//================================================================================================= + const occ::handle& GC_MakeHyperbola::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeHyperbola::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeLine.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeLine.cxx index 0585d73457..4e0f0774ad 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeLine.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeLine.cxx @@ -23,27 +23,32 @@ #include #include -//========================================================================= -// Constructions of 3d geometrical elements from Geom. -//========================================================================= +//================================================================================================= + GC_MakeLine::GC_MakeLine(const gp_Pnt& P, const gp_Dir& V) { TheError = gce_Done; TheLine = new Geom_Line(P, V); } +//================================================================================================= + GC_MakeLine::GC_MakeLine(const gp_Ax1& A1) { TheError = gce_Done; TheLine = new Geom_Line(A1); } +//================================================================================================= + GC_MakeLine::GC_MakeLine(const gp_Lin& L) { TheError = gce_Done; TheLine = new Geom_Line(L); } +//================================================================================================= + GC_MakeLine::GC_MakeLine(const gp_Pnt& P1, const gp_Pnt& P2) { gce_MakeLin L(P1, P2); @@ -54,6 +59,8 @@ GC_MakeLine::GC_MakeLine(const gp_Pnt& P1, const gp_Pnt& P2) } } +//================================================================================================= + GC_MakeLine::GC_MakeLine(const gp_Lin& Lin, const gp_Pnt& Point) { gce_MakeLin L(Lin, Point); @@ -64,6 +71,8 @@ GC_MakeLine::GC_MakeLine(const gp_Lin& Lin, const gp_Pnt& Point) } } +//================================================================================================= + const occ::handle& GC_MakeLine::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeLine::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeMirror.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeMirror.cxx index 3981c59cca..ba23bf8ce3 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeMirror.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeMirror.cxx @@ -21,18 +21,15 @@ #include #include -//========================================================================= -// Creation d une symetrie de Geom par rapport a un point. + -//========================================================================= +//================================================================================================= + GC_MakeMirror::GC_MakeMirror(const gp_Pnt& Point) { TheMirror = new Geom_Transformation(); TheMirror->SetMirror(Point); } -//========================================================================= -// Creation d une symetrie de Geom par rapport a une droite. + -//========================================================================= +//================================================================================================= GC_MakeMirror::GC_MakeMirror(const gp_Ax1& Axis) { @@ -40,9 +37,7 @@ GC_MakeMirror::GC_MakeMirror(const gp_Ax1& Axis) TheMirror->SetMirror(Axis); } -//========================================================================= -// Creation d une symetrie de Geom par rapport a une droite. + -//========================================================================= +//================================================================================================= GC_MakeMirror::GC_MakeMirror(const gp_Lin& Line) { @@ -50,10 +45,7 @@ GC_MakeMirror::GC_MakeMirror(const gp_Lin& Line) TheMirror->SetMirror(gp_Ax1(Line.Location(), Line.Direction())); } -//========================================================================= -// Creation d une symetrie 3d de Geom par rapport a une droite definie + -// par un point et une direction. + -//========================================================================= +//================================================================================================= GC_MakeMirror::GC_MakeMirror(const gp_Pnt& Point, const gp_Dir& Direc) { @@ -61,10 +53,7 @@ GC_MakeMirror::GC_MakeMirror(const gp_Pnt& Point, const gp_Dir& Direc) TheMirror->SetMirror(gp_Ax1(Point, Direc)); } -//========================================================================= -// Creation d une symetrie 3d de Geom par rapport a un plan defini par + -// un Ax2 (Normale au plan et axe x du plan). + -//========================================================================= +//================================================================================================= GC_MakeMirror::GC_MakeMirror(const gp_Ax2& Plane) { @@ -72,9 +61,7 @@ GC_MakeMirror::GC_MakeMirror(const gp_Ax2& Plane) TheMirror->SetMirror(Plane); } -//========================================================================= -// Creation d une symetrie 3d de gp par rapport a un plan Plane. + -//========================================================================= +//================================================================================================= GC_MakeMirror::GC_MakeMirror(const gp_Pln& Plane) { @@ -82,6 +69,8 @@ GC_MakeMirror::GC_MakeMirror(const gp_Pln& Plane) TheMirror->SetMirror(Plane.Position().Ax2()); } +//================================================================================================= + const occ::handle& GC_MakeMirror::Value() const { return TheMirror; diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakePlane.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakePlane.cxx index b07cdbae44..475b6269b2 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakePlane.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakePlane.cxx @@ -26,18 +26,24 @@ #include #include +//================================================================================================= + GC_MakePlane::GC_MakePlane(const gp_Pln& Pl) { TheError = gce_Done; ThePlane = new Geom_Plane(Pl); } +//================================================================================================= + GC_MakePlane::GC_MakePlane(const gp_Pnt& P, const gp_Dir& V) { TheError = gce_Done; ThePlane = new Geom_Plane(P, V); } +//================================================================================================= + GC_MakePlane::GC_MakePlane(const double A, const double B, const double C, const double D) { if (std::sqrt(A * A + B * B + C * C) <= gp::Resolution()) @@ -51,9 +57,7 @@ GC_MakePlane::GC_MakePlane(const double A, const double B, const double C, const } } -//========================================================================= -// Creation d un Geom_Plane passant par trois points. + -//========================================================================= +//================================================================================================= GC_MakePlane::GC_MakePlane(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) { @@ -65,9 +69,7 @@ GC_MakePlane::GC_MakePlane(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) } } -//========================================================================= -// Creation d un Geom_Plane parallele a un pln a une distance donnee. + -//========================================================================= +//================================================================================================= GC_MakePlane::GC_MakePlane(const gp_Pln& Pl, const double Dist) { @@ -76,10 +78,7 @@ GC_MakePlane::GC_MakePlane(const gp_Pln& Pl, const double Dist) ThePlane = new Geom_Plane(Pln); } -//========================================================================= -// Creation d un Geom_Plane parallele a un pln passant par un point + -// . + -//========================================================================= +//================================================================================================= GC_MakePlane::GC_MakePlane(const gp_Pln& Pl, const gp_Pnt& Point) { @@ -88,9 +87,7 @@ GC_MakePlane::GC_MakePlane(const gp_Pln& Pl, const gp_Pnt& Point) ThePlane = new Geom_Plane(Pln); } -//========================================================================= -// Creation d un Geom_Plane a partir d un Ax1 (Point + Normale). + -//========================================================================= +//================================================================================================= GC_MakePlane::GC_MakePlane(const gp_Ax1& Axis) { @@ -99,9 +96,7 @@ GC_MakePlane::GC_MakePlane(const gp_Ax1& Axis) ThePlane = new Geom_Plane(Pln); } -//========================================================================= -// Creation d un Geom_Plane par un tableau de points. + -//========================================================================= +//================================================================================================= /*GC_MakePlane::GC_MakePlane(const NCollection_Array1& Pts , double ErrMax , @@ -114,6 +109,8 @@ GC_MakePlane::GC_MakePlane(const gp_Ax1& Axis) } */ +//================================================================================================= + const occ::handle& GC_MakePlane::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakePlane::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeRotation.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeRotation.cxx index 13d3353c58..d9acd41150 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeRotation.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeRotation.cxx @@ -21,20 +21,15 @@ #include #include -//========================================================================= -// Creation d une rotation 3d de gp d angle Angle par rapport a une + -// droite Line. + -//========================================================================= +//================================================================================================= + GC_MakeRotation::GC_MakeRotation(const gp_Lin& Line, const double Angle) { TheRotation = new Geom_Transformation(); TheRotation->SetRotation(gp_Ax1(Line.Location(), Line.Direction()), Angle); } -//========================================================================= -// Creation d une rotation 3d de gp d angle Angle par rapport a un + -// axe Axis. + -//========================================================================= +//================================================================================================= GC_MakeRotation::GC_MakeRotation(const gp_Ax1& Axis, const double Angle) { @@ -42,10 +37,7 @@ GC_MakeRotation::GC_MakeRotation(const gp_Ax1& Axis, const double Angle) TheRotation->SetRotation(Axis, Angle); } -//========================================================================= -// Creation d une rotation 3d de gp d angle Angle par rapport a une + -// droite issue du point Point et de direction Direc. + -//========================================================================= +//================================================================================================= GC_MakeRotation::GC_MakeRotation(const gp_Pnt& Point, const gp_Dir& Direc, const double Angle) { @@ -53,6 +45,8 @@ GC_MakeRotation::GC_MakeRotation(const gp_Pnt& Point, const gp_Dir& Direc, const TheRotation->SetRotation(gp_Ax1(Point, Direc), Angle); } +//================================================================================================= + const occ::handle& GC_MakeRotation::Value() const { return TheRotation; diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeScale.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeScale.cxx index bd42679a3a..9974c49ca4 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeScale.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeScale.cxx @@ -19,15 +19,16 @@ #include #include -//========================================================================= -// Creation d un homothetie de gp de centre Point et de rapport Scale. + -//========================================================================= +//================================================================================================= + GC_MakeScale::GC_MakeScale(const gp_Pnt& Point, const double Scale) { TheScale = new Geom_Transformation(); TheScale->SetScale(Point, Scale); } +//================================================================================================= + const occ::handle& GC_MakeScale::Value() const { return TheScale; diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeSegment.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeSegment.cxx index 7cbb1f69ac..8b17769bfc 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeSegment.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeSegment.cxx @@ -23,6 +23,8 @@ #include #include +//================================================================================================= + GC_MakeSegment::GC_MakeSegment(const gp_Pnt& P1, const gp_Pnt& P2) { double dist = P1.Distance(P2); @@ -31,6 +33,8 @@ GC_MakeSegment::GC_MakeSegment(const gp_Pnt& P1, const gp_Pnt& P2) TheError = gce_Done; } +//================================================================================================= + GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line, const gp_Pnt& Point, const double U) { double Ufirst = ElCLib::Parameter(Line, Point); @@ -39,6 +43,8 @@ GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line, const gp_Pnt& Point, const do TheError = gce_Done; } +//================================================================================================= + GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line, const gp_Pnt& P1, const gp_Pnt& P2) { double Ufirst = ElCLib::Parameter(Line, P1); @@ -48,6 +54,8 @@ GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line, const gp_Pnt& P1, const gp_Pn TheError = gce_Done; } +//================================================================================================= + GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line, const double U1, const double U2) { occ::handle L = new Geom_Line(Line); @@ -55,6 +63,8 @@ GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line, const double U1, const double TheError = gce_Done; } +//================================================================================================= + const occ::handle& GC_MakeSegment::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeSegment::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeTranslation.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeTranslation.cxx index 11e9398d64..dcf2245ddf 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeTranslation.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeTranslation.cxx @@ -20,19 +20,15 @@ #include #include -//========================================================================= -// Creation of a 3D Geom translation of translation vector Vec. + -//========================================================================= +//================================================================================================= + GC_MakeTranslation::GC_MakeTranslation(const gp_Vec& Vec) { TheTranslation = new Geom_Transformation(); TheTranslation->SetTranslation(Vec); } -//========================================================================= -// Creation of a 3D Geom translation of translation vector connecting + -// Point1 and Point2. + -//========================================================================= +//================================================================================================= GC_MakeTranslation::GC_MakeTranslation(const gp_Pnt& Point1, const gp_Pnt& Point2) { @@ -40,6 +36,8 @@ GC_MakeTranslation::GC_MakeTranslation(const gp_Pnt& Point1, const gp_Pnt& Point TheTranslation->SetTranslation(Point1, Point2); } +//================================================================================================= + const occ::handle& GC_MakeTranslation::Value() const { return TheTranslation; diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCone.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCone.cxx index d365e6f76a..b594d52542 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCone.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCone.cxx @@ -24,12 +24,8 @@ #include #include -//========================================================================= -// Creation of a cone by four points. + -// First two give the axis. + -// The third gives the base radius. + -// the third and the fourth demi-angle. + -//========================================================================= +//================================================================================================= + GC_MakeTrimmedCone::GC_MakeTrimmedCone(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3, @@ -50,8 +46,7 @@ GC_MakeTrimmedCone::GC_MakeTrimmedCone(const gp_Pnt& P1, } } -//========================================================================= -//========================================================================= +//================================================================================================= GC_MakeTrimmedCone::GC_MakeTrimmedCone(const gp_Pnt& P1, const gp_Pnt& P2, diff --git a/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCylinder.cxx b/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCylinder.cxx index b2e329f282..c39b0d356c 100644 --- a/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCylinder.cxx +++ b/src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCylinder.cxx @@ -24,11 +24,8 @@ #include #include -//=========================================================================== -// Creation of a cylinder limited by three points , and . + -// the height og the resulting cylinder is the distance from to + -// The radius is the distance from to axis . + -//=========================================================================== +//================================================================================================= + GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) { GC_MakeCylindricalSurface Cyl(P1, P2, P3); @@ -45,9 +42,7 @@ GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Pnt& P1, const gp_Pnt& P } } -//========================================================================= -// Creation of a cylinder limited by a circle and height. + -//========================================================================= +//================================================================================================= GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Circ& Circ, const double Height) { @@ -59,8 +54,7 @@ GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Circ& Circ, const double } } -//========================================================================= -//========================================================================= +//================================================================================================= GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Ax1& A1, const double Radius, @@ -74,6 +68,8 @@ GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Ax1& A1, } } +//================================================================================================= + const occ::handle& GC_MakeTrimmedCylinder::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GC_MakeTrimmedCylinder::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfCircle.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfCircle.cxx index 68ea967641..32b1ed09ed 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfCircle.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfCircle.cxx @@ -26,6 +26,8 @@ #include #include +//================================================================================================= + GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Pnt2d& P1, const gp_Pnt2d& P2, const gp_Pnt2d& P3) @@ -42,6 +44,8 @@ GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Pnt2d& P1, } } +//================================================================================================= + GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Pnt2d& P1, const gp_Vec2d& V, const gp_Pnt2d& P2) @@ -80,6 +84,8 @@ GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Pnt2d& P1, } } +//================================================================================================= + GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ, const gp_Pnt2d& P1, const gp_Pnt2d& P2, @@ -92,6 +98,8 @@ GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ, const gp_Pnt2d& P, const double Alpha, @@ -103,6 +111,8 @@ GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ, const double Alpha1, const double Alpha2, @@ -113,6 +123,8 @@ GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ, TheError = gce_Done; } +//================================================================================================= + const occ::handle& GCE2d_MakeArcOfCircle::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeArcOfCircle::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfEllipse.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfEllipse.cxx index 9ee6e4cadc..47e6ae85ae 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfEllipse.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfEllipse.cxx @@ -22,6 +22,8 @@ #include #include +//================================================================================================= + GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips, const gp_Pnt2d& P1, const gp_Pnt2d& P2, @@ -34,6 +36,8 @@ GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips, const gp_Pnt2d& P, const double Alpha, @@ -45,6 +49,8 @@ GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips, const double Alpha1, const double Alpha2, @@ -55,6 +61,8 @@ GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips, TheError = gce_Done; } +//================================================================================================= + const occ::handle& GCE2d_MakeArcOfEllipse::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeArcOfEllipse::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfHyperbola.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfHyperbola.cxx index a45511dabd..5b8e9ed42f 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfHyperbola.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfHyperbola.cxx @@ -22,6 +22,8 @@ #include #include +//================================================================================================= + GCE2d_MakeArcOfHyperbola::GCE2d_MakeArcOfHyperbola(const gp_Hypr2d& Hypr, const gp_Pnt2d& P1, const gp_Pnt2d& P2, @@ -34,6 +36,8 @@ GCE2d_MakeArcOfHyperbola::GCE2d_MakeArcOfHyperbola(const gp_Hypr2d& Hypr, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfHyperbola::GCE2d_MakeArcOfHyperbola(const gp_Hypr2d& Hypr, const gp_Pnt2d& P, const double Alpha, @@ -45,6 +49,8 @@ GCE2d_MakeArcOfHyperbola::GCE2d_MakeArcOfHyperbola(const gp_Hypr2d& Hypr, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfHyperbola::GCE2d_MakeArcOfHyperbola(const gp_Hypr2d& Hypr, const double Alpha1, const double Alpha2, @@ -55,6 +61,8 @@ GCE2d_MakeArcOfHyperbola::GCE2d_MakeArcOfHyperbola(const gp_Hypr2d& Hypr, TheError = gce_Done; } +//================================================================================================= + const occ::handle& GCE2d_MakeArcOfHyperbola::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeArcOfHyperbola::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfParabola.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfParabola.cxx index 6bc4e5fea2..548bea2e83 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfParabola.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfParabola.cxx @@ -22,6 +22,8 @@ #include #include +//================================================================================================= + GCE2d_MakeArcOfParabola::GCE2d_MakeArcOfParabola(const gp_Parab2d& Parab, const gp_Pnt2d& P1, const gp_Pnt2d& P2, @@ -34,6 +36,8 @@ GCE2d_MakeArcOfParabola::GCE2d_MakeArcOfParabola(const gp_Parab2d& Parab, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfParabola::GCE2d_MakeArcOfParabola(const gp_Parab2d& Parab, const gp_Pnt2d& P, const double Alpha, @@ -45,6 +49,8 @@ GCE2d_MakeArcOfParabola::GCE2d_MakeArcOfParabola(const gp_Parab2d& Parab, TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeArcOfParabola::GCE2d_MakeArcOfParabola(const gp_Parab2d& Parab, const double Alpha1, const double Alpha2, @@ -55,6 +61,8 @@ GCE2d_MakeArcOfParabola::GCE2d_MakeArcOfParabola(const gp_Parab2d& Parab, TheError = gce_Done; } +//================================================================================================= + const occ::handle& GCE2d_MakeArcOfParabola::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeArcOfParabola::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeCircle.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeCircle.cxx index cb6cc9ddfe..77d2487e5e 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeCircle.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeCircle.cxx @@ -23,12 +23,16 @@ #include #include +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Circ2d& C) { TheError = gce_Done; TheCircle = new Geom2d_Circle(C); } +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Ax2d& A, const double Radius, const bool Sense) { if (Radius < 0.0) @@ -42,6 +46,8 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Ax2d& A, const double Radius, const } } +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Ax22d& A, const double Radius) { if (Radius < 0.0) @@ -55,6 +61,8 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Ax22d& A, const double Radius) } } +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Circ2d& Circ, const gp_Pnt2d& Point) { gp_Circ2d C = gce_MakeCirc2d(Circ, Point); @@ -62,6 +70,8 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Circ2d& Circ, const gp_Pnt2d& Point) TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Circ2d& Circ, const double Dist) { gce_MakeCirc2d C = gce_MakeCirc2d(Circ, Dist); @@ -72,6 +82,8 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Circ2d& Circ, const double Dist) } } +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& P1, const gp_Pnt2d& P2, const gp_Pnt2d& P3) { gce_MakeCirc2d C = gce_MakeCirc2d(P1, P2, P3); @@ -82,6 +94,8 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& P1, const gp_Pnt2d& P2, const } } +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& Point, const double Radius, const bool Sense) { gce_MakeCirc2d C = gce_MakeCirc2d(Point, Radius, Sense); @@ -92,6 +106,8 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& Point, const double Radius, c } } +//================================================================================================= + GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& Center, const gp_Pnt2d& Point, const bool Sense) { gce_MakeCirc2d C = gce_MakeCirc2d(Center, Point, Sense); @@ -102,6 +118,8 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& Center, const gp_Pnt2d& Point } } +//================================================================================================= + const occ::handle& GCE2d_MakeCircle::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeCircle::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeEllipse.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeEllipse.cxx index e283bfe871..7036953eaf 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeEllipse.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeEllipse.cxx @@ -23,12 +23,16 @@ #include #include +//================================================================================================= + GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Elips2d& E) { TheError = gce_Done; TheEllipse = new Geom2d_Ellipse(E); } +//================================================================================================= + GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Ax22d& Axis, const double MajorRadius, const double MinorRadius) @@ -41,6 +45,8 @@ GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Ax22d& Axis, } } +//================================================================================================= + GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Ax2d& MajorAxis, const double MajorRadius, const double MinorRadius, @@ -54,6 +60,8 @@ GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Ax2d& MajorAxis, } } +//================================================================================================= + GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Pnt2d& S1, const gp_Pnt2d& S2, const gp_Pnt2d& Center) { gce_MakeElips2d E = gce_MakeElips2d(S1, S2, Center); @@ -64,6 +72,8 @@ GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Pnt2d& S1, const gp_Pnt2d& S2, con } } +//================================================================================================= + const occ::handle& GCE2d_MakeEllipse::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeEllipse::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeHyperbola.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeHyperbola.cxx index e437c4c01a..010955dbe1 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeHyperbola.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeHyperbola.cxx @@ -23,12 +23,16 @@ #include #include +//================================================================================================= + GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Hypr2d& H) { TheError = gce_Done; TheHyperbola = new Geom2d_Hyperbola(H); } +//================================================================================================= + GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Ax2d& MajorAxis, const double MajorRadius, const double MinorRadius, @@ -42,6 +46,8 @@ GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Ax2d& MajorAxis, } } +//================================================================================================= + GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Ax22d& Axis, const double MajorRadius, const double MinorRadius) @@ -54,6 +60,8 @@ GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Ax22d& Axis, } } +//================================================================================================= + GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Pnt2d& S1, const gp_Pnt2d& S2, const gp_Pnt2d& Center) @@ -66,6 +74,8 @@ GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Pnt2d& S1, } } +//================================================================================================= + const occ::handle& GCE2d_MakeHyperbola::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeHyperbola::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeLine.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeLine.cxx index 5f874b92a5..9ebaa81731 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeLine.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeLine.cxx @@ -23,27 +23,32 @@ #include #include -//========================================================================= -// Constructions of 2d geometrical elements from Geom2d. -//========================================================================= +//================================================================================================= + GCE2d_MakeLine::GCE2d_MakeLine(const gp_Ax2d& A) { TheError = gce_Done; TheLine = new Geom2d_Line(A); } +//================================================================================================= + GCE2d_MakeLine::GCE2d_MakeLine(const gp_Lin2d& L) { TheError = gce_Done; TheLine = new Geom2d_Line(L); } +//================================================================================================= + GCE2d_MakeLine::GCE2d_MakeLine(const gp_Pnt2d& P, const gp_Dir2d& V) { TheError = gce_Done; TheLine = new Geom2d_Line(P, V); } +//================================================================================================= + GCE2d_MakeLine::GCE2d_MakeLine(const gp_Pnt2d& P1, const gp_Pnt2d& P2) { gce_MakeLin2d L(P1, P2); @@ -54,6 +59,8 @@ GCE2d_MakeLine::GCE2d_MakeLine(const gp_Pnt2d& P1, const gp_Pnt2d& P2) } } +//================================================================================================= + GCE2d_MakeLine::GCE2d_MakeLine(const gp_Lin2d& Lin, const gp_Pnt2d& Point) { gce_MakeLin2d L(Lin, Point); @@ -64,6 +71,8 @@ GCE2d_MakeLine::GCE2d_MakeLine(const gp_Lin2d& Lin, const gp_Pnt2d& Point) } } +//================================================================================================= + GCE2d_MakeLine::GCE2d_MakeLine(const gp_Lin2d& Lin, const double Dist) { gce_MakeLin2d L(Lin, Dist); @@ -74,6 +83,8 @@ GCE2d_MakeLine::GCE2d_MakeLine(const gp_Lin2d& Lin, const double Dist) } } +//================================================================================================= + const occ::handle& GCE2d_MakeLine::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeLine::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeMirror.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeMirror.cxx index 35e8187db5..611d6641f1 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeMirror.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeMirror.cxx @@ -21,18 +21,15 @@ #include #include -//========================================================================= -// Creation d une symetrie de Geom2d par rapport a un point. + -//========================================================================= +//================================================================================================= + GCE2d_MakeMirror::GCE2d_MakeMirror(const gp_Pnt2d& Point) { TheMirror = new Geom2d_Transformation(); TheMirror->SetMirror(Point); } -//========================================================================= -// Creation d une symetrie de Geom2d par rapport a une droite. + -//========================================================================= +//================================================================================================= GCE2d_MakeMirror::GCE2d_MakeMirror(const gp_Ax2d& Axis) { @@ -40,9 +37,7 @@ GCE2d_MakeMirror::GCE2d_MakeMirror(const gp_Ax2d& Axis) TheMirror->SetMirror(Axis); } -//========================================================================= -// Creation d une symetrie de Geom2d par rapport a une droite. + -//========================================================================= +//================================================================================================= GCE2d_MakeMirror::GCE2d_MakeMirror(const gp_Lin2d& Line) { @@ -50,10 +45,7 @@ GCE2d_MakeMirror::GCE2d_MakeMirror(const gp_Lin2d& Line) TheMirror->SetMirror(gp_Ax2d(Line.Location(), Line.Direction())); } -//========================================================================= -// Creation d une symetrie 3d de Geom2d par rapport a une droite + -// definie par un point et une direction. + -//========================================================================= +//================================================================================================= GCE2d_MakeMirror::GCE2d_MakeMirror(const gp_Pnt2d& Point, const gp_Dir2d& Direc) { @@ -61,6 +53,8 @@ GCE2d_MakeMirror::GCE2d_MakeMirror(const gp_Pnt2d& Point, const gp_Dir2d& Direc) TheMirror->SetMirror(gp_Ax2d(Point, Direc)); } +//================================================================================================= + const occ::handle& GCE2d_MakeMirror::Value() const { return TheMirror; diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeParabola.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeParabola.cxx index bdb68b8872..1470c2eac0 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeParabola.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeParabola.cxx @@ -23,12 +23,16 @@ #include #include +//================================================================================================= + GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Parab2d& Prb) { TheError = gce_Done; TheParabola = new Geom2d_Parabola(Prb); } +//================================================================================================= + GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Ax2d& MirrorAxis, const double Focal, const bool Sense) @@ -44,6 +48,8 @@ GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Ax2d& MirrorAxis, } } +//================================================================================================= + GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Ax22d& Axis, const double Focal) { if (Focal < 0.0) @@ -57,6 +63,8 @@ GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Ax22d& Axis, const double Focal) } } +//================================================================================================= + GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Ax2d& D, const gp_Pnt2d& F, const bool Sense) { TheError = gce_Done; @@ -64,6 +72,8 @@ GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Ax2d& D, const gp_Pnt2d& F, cons TheParabola = new Geom2d_Parabola(para); } +//================================================================================================= + GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Pnt2d& S1, const gp_Pnt2d& O) { gce_MakeParab2d P = gce_MakeParab2d(S1, O); @@ -74,6 +84,8 @@ GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Pnt2d& S1, const gp_Pnt2d& O) } } +//================================================================================================= + const occ::handle& GCE2d_MakeParabola::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeParabola::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeRotation.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeRotation.cxx index c0acad394f..fe4cf7eca0 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeRotation.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeRotation.cxx @@ -18,16 +18,16 @@ #include #include -//========================================================================= -// Creation d une rotation 3d de gp d angle Angle par rapport a une + -// droite Line. + -//========================================================================= +//================================================================================================= + GCE2d_MakeRotation::GCE2d_MakeRotation(const gp_Pnt2d& Point, const double Angle) { TheRotation = new Geom2d_Transformation(); TheRotation->SetRotation(Point, Angle); } +//================================================================================================= + const occ::handle& GCE2d_MakeRotation::Value() const { return TheRotation; diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeScale.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeScale.cxx index d5507ed3c1..88b7b2cd3d 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeScale.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeScale.cxx @@ -18,15 +18,16 @@ #include #include -//========================================================================= -// Creation d un homothetie de gp de centre Point et de rapport Scale. + -//========================================================================= +//================================================================================================= + GCE2d_MakeScale::GCE2d_MakeScale(const gp_Pnt2d& Point, const double Scale) { TheScale = new Geom2d_Transformation(); TheScale->SetScale(Point, Scale); } +//================================================================================================= + const occ::handle& GCE2d_MakeScale::Value() const { return TheScale; diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeSegment.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeSegment.cxx index 1444c317da..f083036d60 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeSegment.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeSegment.cxx @@ -24,6 +24,8 @@ #include #include +//================================================================================================= + GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Pnt2d& P1, const gp_Dir2d& V, const gp_Pnt2d& P2) { gp_Lin2d Line(P1, V); @@ -40,6 +42,8 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Pnt2d& P1, const gp_Dir2d& V, cons } } +//================================================================================================= + GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Pnt2d& P1, const gp_Pnt2d& P2) { double dist = P1.Distance(P2); @@ -55,6 +59,8 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Pnt2d& P1, const gp_Pnt2d& P2) } } +//================================================================================================= + GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line, const gp_Pnt2d& Point, const double U) { double Ufirst = ElCLib::Parameter(Line, Point); @@ -63,6 +69,8 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line, const gp_Pnt2d& Point TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line, const gp_Pnt2d& P1, const gp_Pnt2d& P2) { double Ufirst = ElCLib::Parameter(Line, P1); @@ -72,6 +80,8 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line, const gp_Pnt2d& P1, c TheError = gce_Done; } +//================================================================================================= + GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line, const double U1, const double U2) { occ::handle L = new Geom2d_Line(Line); @@ -79,6 +89,8 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line, const double U1, cons TheError = gce_Done; } +//================================================================================================= + const occ::handle& GCE2d_MakeSegment::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "GCE2d_MakeSegment::Value() - no result"); diff --git a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeTranslation.cxx b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeTranslation.cxx index 75e6f67c10..b54e92b638 100644 --- a/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeTranslation.cxx +++ b/src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeTranslation.cxx @@ -19,19 +19,15 @@ #include #include -//========================================================================= -// 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 translation le + -// vecteur reliant Point1 a Point2. + -//========================================================================= +//================================================================================================= GCE2d_MakeTranslation::GCE2d_MakeTranslation(const gp_Pnt2d& Point1, const gp_Pnt2d& Point2) { @@ -39,6 +35,8 @@ GCE2d_MakeTranslation::GCE2d_MakeTranslation(const gp_Pnt2d& Point1, const gp_Pn TheTranslation->SetTranslation(Point1, Point2); } +//================================================================================================= + const occ::handle& GCE2d_MakeTranslation::Value() const { return TheTranslation; diff --git a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction.cxx b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction.cxx index 3140bb6a0c..aea5e35b5b 100644 --- a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction.cxx +++ b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction.cxx @@ -36,7 +36,6 @@ GCPnts_DistFunction::GCPnts_DistFunction(const Adaptor3d_Curve& theCurve, } } -// //================================================================================================= bool GCPnts_DistFunction::Value(const double X, double& F) diff --git a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction2d.cxx b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction2d.cxx index 06768d4cce..eda4329aea 100644 --- a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction2d.cxx +++ b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_DistFunction2d.cxx @@ -48,7 +48,6 @@ bool GCPnts_DistFunction2d::Value(const double X, double& F) return true; } -// //================================================================================================= GCPnts_DistFunction2dMV::GCPnts_DistFunction2dMV(GCPnts_DistFunction2d& theCurvLinDist) diff --git a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformAbscissa.cxx b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformAbscissa.cxx index 19b3fa5274..4cccafa098 100644 --- a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformAbscissa.cxx +++ b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformAbscissa.cxx @@ -140,7 +140,7 @@ void GCPnts_QuasiUniformAbscissa::initialize(const TheCurve& theC, typename GCPnts_TCurveTypes::Point aP1, aP2; aP1 = theC.Value(theU1); - // On additionne toutes les distances + // Sum all distances for (int i = 0; i < 2 * theNbPoints; ++i) { aP2 = theC.Value(theU1 + i * dU); @@ -150,8 +150,8 @@ void GCPnts_QuasiUniformAbscissa::initialize(const TheCurve& theC, aP1 = aP2; } - // On cherche a mettre NbPoints dans la curve. - // on met les points environ a Length/NbPoints. + // Try to distribute NbPoints on the curve. + // Place points approximately at intervals of Length/NbPoints. if (IsEqual(aLength, 0.0)) { // use usual analytical grid double aStep = (theU2 - theU1) / (theNbPoints - 1); diff --git a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformDeflection.cxx b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformDeflection.cxx index 8036c4925a..1a6aa27674 100644 --- a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformDeflection.cxx +++ b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_QuasiUniformDeflection.cxx @@ -99,7 +99,7 @@ static void QuasiFleche(const TheCurve& theC, bool isFlecheOk = false; if (aNorme > theEps && aNorme > 16. * theDeflection2) { - // Evaluation de la fleche par interpolation. Voir IntWalk_IWalking::TestDeflection + // Evaluation of the deflection by interpolation. See IntWalk_IWalking::TestDeflection double N1 = theVdeb.SquareMagnitude(); double N2 = aVdelta.SquareMagnitude(); if (N1 > theEps && N2 > theEps) @@ -405,7 +405,7 @@ static bool PerformCurve(NCollection_Sequence& theParameters, thePoints, aNbCallQF); } - // cout << "Nb de pts: " << Points.Length()<< endl; + // cout << "Nb of pts: " << Points.Length()<< endl; return true; } @@ -421,9 +421,7 @@ static bool PerformComposite(NCollection_Sequence& theParameters, const double theEPSILON, const GeomAbs_Shape theContinuity) { - // - // coherence avec Intervals - // + // Consistency with Intervals const int aNbIntervals = theC.NbIntervals(GeomAbs_C2); int aPIndex = 0; NCollection_Array1 aTI(1, aNbIntervals + 1); diff --git a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_TangentialDeflection.cxx b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_TangentialDeflection.cxx index a06ef035bc..0d25c4e0c6 100644 --- a/src/ModelingData/TKGeomBase/GCPnts/GCPnts_TangentialDeflection.cxx +++ b/src/ModelingData/TKGeomBase/GCPnts/GCPnts_TangentialDeflection.cxx @@ -518,7 +518,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) double Du, Dusave, MiddleU, L1, L2; double U1 = myFirstu; - constexpr double LTol = Precision::Confusion(); // protection longueur nulle + constexpr double LTol = Precision::Confusion(); // protection against zero length double ATol = 1.e-2 * myAngularDeflection; if (ATol > 1.e-2) { @@ -531,7 +531,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) D0(theC, myLastU, LastPoint); - // Initialization du calcul + // Initialization of the computation bool NotDone = true; Dusave = (myLastU - myFirstu) * Us3; @@ -547,12 +547,12 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) if (NotDone || Du > 5. * Dusave) { - // C'est soit une droite, soit une singularite : + // It is either a line or a singularity: V1 = (LastPoint.XYZ() - CurrentPoint.XYZ()); L1 = V1.Modulus(); if (L1 > LTol) { - // Si c'est une droite on verifie en calculant minNbPoints : + // If it is a line, we verify by computing minNbPoints: bool IsLine = true; int NbPoints = (myMinNbPnts > 3) ? myMinNbPnts : 3; switch (theC.GetType()) @@ -616,7 +616,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) } else { - // c'etait une singularite on continue: + // It was a singularity, continue: // Du = Dusave; EvaluateDu(theC, param, MiddlePoint, Du, NotDone); } @@ -630,8 +630,8 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) L1 = V1.Modulus(); if (L1 < LTol) { - // L1 < LTol C'est une courbe de longueur nulle, calcul termine : - // on renvoi un segment de 2 points (protection) + // L1 < LTol: this is a zero-length curve, computation is finished: + // return a segment of 2 points (protection) myParameters.Append(myLastU); myPoints.Append(LastPoint); return; @@ -655,7 +655,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) } } - // Traitement normal pour une courbe + // Normal processing for a curve bool MorePoints = true; double U2 = myFirstu; double AngleMax = myAngularDeflection * 0.5; // because we take the midpoint @@ -669,7 +669,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) aIdx[0] = getIntervalIdx(U1, Intervs, aIdx[0]); U2 += Du; - if (U2 >= myLastU) // Bout de courbe + if (U2 >= myLastU) // End of curve { U2 = myLastU; CurrentPoint = LastPoint; @@ -678,7 +678,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) } else { - D0(theC, U2, CurrentPoint); // Point suivant + D0(theC, U2, CurrentPoint); // Next point } double Coef = 0.0, ACoef = 0., FCoef = 0.; @@ -687,7 +687,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) Correction = true; TooSmall = false; - while (Correction) // Ajustement Du + while (Correction) // Adjustment of Du { if (isNeedToCheck) { @@ -707,16 +707,16 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) } } } - MiddleU = (U1 + U2) * 0.5; // Verif / au point milieu + MiddleU = (U1 + U2) * 0.5; // Verification at the midpoint D0(theC, MiddleU, MiddlePoint); - V1 = (CurrentPoint.XYZ() - aPrevPoint.XYZ()); // Critere de fleche + V1 = (CurrentPoint.XYZ() - aPrevPoint.XYZ()); // Deflection criterion V2 = (MiddlePoint.XYZ() - aPrevPoint.XYZ()); L1 = V1.Modulus(); FCoef = (L1 > myMinLen) ? V1.CrossMagnitude(V2) / (L1 * myCurvatureDeflection) : 0.0; - V1 = (CurrentPoint.XYZ() - MiddlePoint.XYZ()); // Critere d'angle + V1 = (CurrentPoint.XYZ() - MiddlePoint.XYZ()); // Angular criterion L1 = V1.Modulus(); L2 = V2.Modulus(); if (L1 > myMinLen && L2 > myMinLen) @@ -729,7 +729,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) ACoef = 0.0; } - // On retient le plus penalisant + // Keep the most penalizing coefficient Coef = std::max(ACoef, FCoef); if (isNeedToCheck && Coef < 0.55) @@ -815,7 +815,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) { if (FCoef > ACoef) { - // La fleche est critere de decoupage + // Deflection is the splitting criterion EvaluateDu(theC, U2, CurrentPoint, Du, NotDone); if (NotDone) { @@ -828,7 +828,7 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) } else { - // L'angle est le critere de decoupage + // Angle is the splitting criterion Du += (Du - Dusave) * (Du / Dusave); if (Du > 1.5 * Dusave) Du = 1.5 * Dusave; @@ -855,11 +855,11 @@ void GCPnts_TangentialDeflection::PerformCurve(const TheCurve& theC) Dusave = Du; } } - // Recalage avant dernier point : + // Readjustment of the second to last point: i = myPoints.Length() - 1; // Real d = myPoints (i).Distance (myPoints (i+1)); // if (std::abs(myParameters (i) - myParameters (i+1))<= 0.000001 || d < Precision::Confusion()) { - // cout<<"deux points confondus"< #include -//================================================================================================== +//================================================================================================= // Line Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Line_FiniteSegment) { @@ -157,9 +157,9 @@ TEST(BndLibTest, Line_DiagonalDirection_BothInfinite) EXPECT_TRUE(aBox.IsOpenZmax()) << "Zmax should be open"; } -//================================================================================================== +//================================================================================================= // Circle Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Circle_Full) { @@ -229,9 +229,9 @@ TEST(BndLibTest, Circle_RotatedAxis) EXPECT_NEAR(aZmax, 3., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // Ellipse Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Ellipse_Full) { @@ -272,9 +272,9 @@ TEST(BndLibTest, Ellipse_Arc) EXPECT_NEAR(aYmax, 5., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // Hyperbola Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Hyperbola_SimpleArc) { @@ -340,9 +340,9 @@ TEST(BndLibTest, Hyperbola_InfiniteParameter) EXPECT_TRUE(aBox.IsOpenYmax()) << "Ymax should be open for hyperbola with P2=+Inf"; } -//================================================================================================== +//================================================================================================= // Parabola Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Parabola_FiniteArc) { @@ -378,9 +378,9 @@ TEST(BndLibTest, Parabola_InfiniteParameter) EXPECT_TRUE(aBox.IsOpenYmax()) << "Ymax should be open for parabola with P2=+Inf"; } -//================================================================================================== +//================================================================================================= // Sphere Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Sphere_Full) { @@ -443,9 +443,9 @@ TEST(BndLibTest, Sphere_Translated) EXPECT_NEAR(aZmax, 33., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // Cylinder Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Cylinder_FinitePatch) { @@ -502,9 +502,9 @@ TEST(BndLibTest, Cylinder_PartialU) EXPECT_NEAR(aZmax, 10., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // Cone Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Cone_FinitePatch) { @@ -568,9 +568,9 @@ TEST(BndLibTest, Cone_InfiniteV) EXPECT_TRUE(aBox.IsOpenZmax()) << "Zmax should be open for cone with VMax=+Inf"; } -//================================================================================================== +//================================================================================================= // Torus Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Torus_Full) { @@ -692,9 +692,9 @@ TEST(BndLibTest, Torus_Translated) EXPECT_NEAR(aZmax, 5. + 2., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // 2D Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Line2d_FiniteSegment) { @@ -784,9 +784,9 @@ TEST(BndLibTest, Parabola2d_FiniteArc) EXPECT_NEAR(aYmax, 4., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // Tolerance Tests -//================================================================================================== +//================================================================================================= TEST(BndLibTest, Circle_WithTolerance) { @@ -827,9 +827,9 @@ TEST(BndLibTest, Sphere_WithTolerance) EXPECT_NEAR(aZmax, 4., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // BndLib_Add3dCurve Tests -//================================================================================================== +//================================================================================================= TEST(BndLib_Add3dCurveTest, Circle_Full) { @@ -1019,9 +1019,9 @@ TEST(BndLib_Add3dCurveTest, Circle_Rotated) EXPECT_NEAR(aZmax, 4., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // BndLib_Add2dCurve Tests -//================================================================================================== +//================================================================================================= TEST(BndLib_Add2dCurveTest, Circle_Full) { @@ -1166,9 +1166,9 @@ TEST(BndLib_Add2dCurveTest, Adaptor_Circle) EXPECT_NEAR(aYmax, 8., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= // BndLib_AddSurface Tests -//================================================================================================== +//================================================================================================= TEST(BndLib_AddSurfaceTest, Plane) { diff --git a/src/ModelingData/TKGeomBase/GTests/GeomConvert_CompCurveToBSplineCurve_Test.cxx b/src/ModelingData/TKGeomBase/GTests/GeomConvert_CompCurveToBSplineCurve_Test.cxx index 4817ac4c09..d1bf24b018 100644 --- a/src/ModelingData/TKGeomBase/GTests/GeomConvert_CompCurveToBSplineCurve_Test.cxx +++ b/src/ModelingData/TKGeomBase/GTests/GeomConvert_CompCurveToBSplineCurve_Test.cxx @@ -27,9 +27,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Basic concatenation tests -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateClampedBSplines) { @@ -75,7 +75,7 @@ TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateClampedBSplines) EXPECT_NEAR(aEnd.Distance(gp_Pnt(6., 0., 0.)), 0., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateTrimmedCircleArcs) { @@ -114,7 +114,7 @@ TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateTrimmedCircleArcs) EXPECT_NEAR(aEnd.Distance(gp_Pnt(-5., 0., 0.)), 0., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateWithReversal) { @@ -161,7 +161,7 @@ TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateWithReversal) EXPECT_NEAR(aEnd.Distance(gp_Pnt(6., 0., 0.)), 0., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, FailsForDisjointCurves) { @@ -197,7 +197,7 @@ TEST(GeomConvert_CompCurveToBSplineCurveTest, FailsForDisjointCurves) EXPECT_FALSE(isAdded) << "Should fail to concatenate disjoint curves"; } -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateNonClampedBSpline_Bug30007) { @@ -264,7 +264,7 @@ TEST(GeomConvert_CompCurveToBSplineCurveTest, ConcatenateNonClampedBSpline_Bug30 EXPECT_NEAR(aEnd.Distance(gp_Pnt(8., 0., 0.)), 0., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, PrependCurve) { @@ -310,7 +310,7 @@ TEST(GeomConvert_CompCurveToBSplineCurveTest, PrependCurve) EXPECT_NEAR(aEnd.Distance(gp_Pnt(6., 0., 0.)), 0., Precision::Confusion()); } -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, EmptyInitialCurve) { @@ -341,7 +341,7 @@ TEST(GeomConvert_CompCurveToBSplineCurveTest, EmptyInitialCurve) ASSERT_FALSE(aResult.IsNull()) << "Result curve should not be null"; } -//================================================================================================== +//================================================================================================= TEST(GeomConvert_CompCurveToBSplineCurveTest, ClearAndReuse) { diff --git a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert.cxx b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert.cxx index 127fbfd326..2ea8b3903b 100644 --- a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert.cxx +++ b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert.cxx @@ -182,8 +182,8 @@ occ::handle Geom2dConvert::CurveToBSplineCurve( double U1 = Ctrim->FirstParameter(); double U2 = Ctrim->LastParameter(); - // Si la courbe n'est pas vraiment restreinte, on ne risque pas - // le Raise dans le BS->Segment. + // If the curve is not truly restricted, there is no risk of + // a Raise in BS->Segment. if (!Curv->IsPeriodic()) { if (U1 < Curv->FirstParameter()) @@ -457,10 +457,7 @@ private: occ::handle myAncore; }; -//======================================================================= -// function : MultNumandDenom -// purpose : Multiply two BSpline curves to make one -//======================================================================= +//================================================================================================= static occ::handle MultNumandDenom(const occ::handle& a, const occ::handle& BS) @@ -509,7 +506,7 @@ static occ::handle MultNumandDenom(const occ::handleNbPoles(); ii++) for (jj = 1; jj <= 2; jj++) BSPoles(ii).SetCoord(jj, BSPoles(ii).Coord(jj) * BSWeights(ii)); - // POP pour NT + // POP for NT Geom2dConvert_law_evaluator ev(anAncore); BSplCLib::FunctionMultiply(ev, BS->Degree(), @@ -535,11 +532,7 @@ static occ::handle MultNumandDenom(const occ::handle>& tab) @@ -561,11 +554,7 @@ static void Pretreatment(NCollection_Array1>& t } } -//======================================================================= -// function : NeedToBeTreated -// purpose : Say if the BSpline is rational and if the two first and two -// last weights are different -//======================================================================= +//================================================================================================= static bool NeedToBeTreated(const occ::handle& BS) @@ -587,11 +576,7 @@ static bool NeedToBeTreated(const occ::handle& BS) return false; } -//======================================================================= -// function : Need2DegRepara -// purpose : in the case of wire closed G1 it says if you will to use a -// two degree reparametrisation to close it C1 -//======================================================================= +//================================================================================================= static bool Need2DegRepara(const NCollection_Array1>& tab) @@ -611,10 +596,7 @@ static bool Need2DegRepara(const NCollection_Array1>& tab) { @@ -876,12 +858,12 @@ void Geom2dConvert::ConcatG1( { int nb_curve = ArrayOfCurves.Length(), nb_vertexG1, nb_group = 0, index = 0, i, ii, j, jj, indexmin, nb_vertex_group0 = 0; - double lambda, // coeff de raccord G1 + double lambda, // G1 junction coefficient First, PreLast = 0; - gp_Vec2d Vec1, Vec2; // vecteurs tangents consecutifs + gp_Vec2d Vec1, Vec2; // consecutive tangent vectors gp_Pnt2d Pint; occ::handle Curve1, Curve2; - NCollection_Array1 tabG1(0, nb_curve - 2); // tableau de continuite G1 aux raccords + NCollection_Array1 tabG1(0, nb_curve - 2); // G1 continuity table at junctions NCollection_Array1 local_tolerance(0, ArrayOfToler.Length() - 1); for (i = 0; i < ArrayOfToler.Length(); i++) @@ -911,7 +893,7 @@ void Geom2dConvert::ConcatG1( } while (index <= nb_curve - 1) - { // determination des caracteristiques du Wire + { // Determination of Wire characteristics nb_vertexG1 = 0; while (((index + nb_vertexG1) <= nb_curve - 2) && (tabG1(index + nb_vertexG1))) nb_vertexG1++; @@ -945,7 +927,7 @@ void Geom2dConvert::ConcatG1( } if ((nb_group == 1) && (ClosedFlag)) - { // traitement d'un cas particulier + { // treatment of a particular case indexmin = Indexmin(ArrayOfCurves); if (indexmin != (ArrayOfCurves.Length() - 1)) ReorderArrayOfG1(ArrayOfCurves, local_tolerance, tabG1, indexmin, ClosedTolerance); @@ -996,7 +978,7 @@ void Geom2dConvert::ConcatG1( for (ii = 1; ii <= Curve1->NbPoles(); ii++) for (jj = 1; jj <= 2; jj++) Curve1Poles(ii).SetCoord(jj, Curve1Poles(ii).Coord(jj) * Curve1Weights(ii)); - // POP pour NT + // POP for NT Geom2dConvert_reparameterise_evaluator ev(aPolynomialCoefficient); BSplCLib::FunctionReparameterise(ev, Curve1->Degree(), @@ -1042,12 +1024,12 @@ void Geom2dConvert::ConcatG1( } Geom2dConvert_CompCurveToBSplineCurve C(Curve2); fusion = C.Add(Curve1, - local_tolerance(j - 1)); // fusion de deux courbes adjacentes + local_tolerance(j - 1)); // merge two adjacent curves if (!fusion) throw Standard_ConstructionError("Geom2dConvert Concatenation Error"); Curve2 = C.BSplineCurve(); } - Curve2->SetPeriodic(); // 1 seule courbe C1 + Curve2->SetPeriodic(); // single C1 curve Curve2->RemoveKnot(Curve2->LastUKnotIndex(), Curve2->Multiplicity(Curve2->LastUKnotIndex()) - 1, Precision::Confusion()); @@ -1056,8 +1038,8 @@ void Geom2dConvert::ConcatG1( else // clang-format off - for (i=0;i<=nb_group-1;i++){ //boucle principale sur chaque groupe de - nb_vertexG1=0; //continuite interne G1 + for (i=0;i<=nb_group-1;i++){ //main loop on each group of + nb_vertexG1=0; //internal G1 continuity while (((index+nb_vertexG1)<=nb_curve-2)&&(tabG1(index+nb_vertexG1))) nb_vertexG1++; @@ -1113,12 +1095,12 @@ void Geom2dConvert::ConcatC1( { int nb_curve = ArrayOfCurves.Length(), nb_vertexG1, nb_group = 0, index = 0, i, ii, j, jj, indexmin, nb_vertex_group0 = 0; - double lambda, // coeff de raccord G1 + double lambda, // G1 junction coefficient First, PreLast = 0; - gp_Vec2d Vec1, Vec2; // vecteurs tangents consecutifs + gp_Vec2d Vec1, Vec2; // consecutive tangent vectors gp_Pnt2d Pint; occ::handle Curve1, Curve2; - NCollection_Array1 tabG1(0, nb_curve - 2); // tableau de continuite G1 aux raccords + NCollection_Array1 tabG1(0, nb_curve - 2); // G1 continuity table at junctions NCollection_Array1 local_tolerance(0, ArrayOfToler.Length() - 1); for (i = 0; i < ArrayOfToler.Length(); i++) @@ -1162,7 +1144,7 @@ void Geom2dConvert::ConcatC1( } while (index <= nb_curve - 1) - { // determination des caracteristiques du Wire + { // Determination of Wire characteristics nb_vertexG1 = 0; while (((index + nb_vertexG1) <= nb_curve - 2) && (tabG1(index + nb_vertexG1))) nb_vertexG1++; @@ -1196,7 +1178,7 @@ void Geom2dConvert::ConcatC1( } if ((nb_group == 1) && (ClosedFlag)) - { // traitement d'un cas particulier + { // treatment of a particular case ArrayOfIndices->SetValue(0, 0); ArrayOfIndices->SetValue(1, 0); indexmin = Indexmin(ArrayOfCurves); @@ -1259,7 +1241,7 @@ void Geom2dConvert::ConcatC1( for (ii = 1; ii <= Curve1->NbPoles(); ii++) for (jj = 1; jj <= 2; jj++) Curve1Poles(ii).SetCoord(jj, Curve1Poles(ii).Coord(jj) * Curve1Weights(ii)); - // POP pour NT + // POP for NT Geom2dConvert_reparameterise_evaluator ev(aPolynomialCoefficient); BSplCLib::FunctionReparameterise(ev, Curve1->Degree(), @@ -1288,13 +1270,13 @@ void Geom2dConvert::ConcatC1( } Geom2dConvert_CompCurveToBSplineCurve C(Curve2); fusion = C.Add(Curve1, - local_tolerance(j - 1)); // fusion de deux courbes adjacentes + local_tolerance(j - 1)); // merge two adjacent curves if (!fusion) throw Standard_ConstructionError("Geom2dConvert Concatenation Error"); Curve2 = C.BSplineCurve(); } } - Curve2->SetPeriodic(); // 1 seule courbe C1 + Curve2->SetPeriodic(); // single C1 curve Curve2->RemoveKnot(Curve2->LastUKnotIndex(), Curve2->Multiplicity(Curve2->LastUKnotIndex()) - 1, Precision::Confusion()); @@ -1311,7 +1293,7 @@ void Geom2dConvert::ConcatC1( nb_vertexG1++; if ((!ClosedFlag) || (nb_group == 1)) - { // remplissage du tableau des indices conserves + { // Filling the array of preserved indices k++; ArrayOfIndices->SetValue(k - 1, index); if (k == nb_group) diff --git a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxArcsSegments.cxx b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxArcsSegments.cxx index b312d88ae2..3a887de23a 100644 --- a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxArcsSegments.cxx +++ b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxArcsSegments.cxx @@ -110,10 +110,7 @@ Geom2dConvert_ApproxArcsSegments::Geom2dConvert_ApproxArcsSegments( } } -//======================================================================= -// function : makeCircle -// purpose : method for creation of circle -//======================================================================= +//================================================================================================= occ::handle Geom2dConvert_ApproxArcsSegments::makeCircle( const Geom2dConvert_PPoint& theFirst, @@ -132,11 +129,7 @@ occ::handle Geom2dConvert_ApproxArcsSegments::makeCircle( return aResult; } -//======================================================================= -// function : makeArc -// purpose : creation arcs by two points and derivative in the first point -/// : parameter isFirst specified direction of the arc. -//======================================================================= +//================================================================================================= bool Geom2dConvert_ApproxArcsSegments::makeArc(const Geom2dConvert_PPoint& theParam1, Geom2dConvert_PPoint& theParam2, @@ -212,10 +205,7 @@ bool Geom2dConvert_ApproxArcsSegments::makeArc(const Geom2dConvert_PPoint& return false; } -//======================================================================= -// function : makeLine -// purpose : method for creation of line -//======================================================================= +//================================================================================================= occ::handle Geom2dConvert_ApproxArcsSegments::makeLine( Geom2dConvert_PPoint& theFirst, @@ -279,10 +269,7 @@ occ::handle Geom2dConvert_ApproxArcsSegments::makeLine( return aResult; } -//======================================================================= -// function : makeFreeform -// purpose : get a sequence of Geom curves from one curve -//======================================================================= +//================================================================================================= bool Geom2dConvert_ApproxArcsSegments::makeFreeform() { @@ -375,10 +362,7 @@ bool Geom2dConvert_ApproxArcsSegments::makeFreeform() return (mySeqCurves.Length() && myStatus != StatusError); } -//======================================================================= -// function : getLinearParts -// purpose : method for getting inflection points -//======================================================================= +//================================================================================================= void Geom2dConvert_ApproxArcsSegments::getLinearParts( NCollection_Sequence& theSeqPar) @@ -504,11 +488,7 @@ void Geom2dConvert_ApproxArcsSegments::getLinearParts( } } -//======================================================================= -// function : findInflection -// purpose : Dichotomic search of the boundary of inflection interval, between -// two parameters on the Curve -//======================================================================= +//================================================================================================= Geom2dConvert_PPoint Geom2dConvert_ApproxArcsSegments::findInflection( const Geom2dConvert_PPoint& theParamIsInfl, @@ -528,10 +508,7 @@ Geom2dConvert_PPoint Geom2dConvert_ApproxArcsSegments::findInflection( return Geom2dConvert_PPoint(aTest, myCurve); } -//======================================================================= -// function : makeApproximation -// purpose : make approximation non-linear part of the other curve -//======================================================================= +//================================================================================================= bool Geom2dConvert_ApproxArcsSegments::makeApproximation(Geom2dConvert_PPoint& theFirstParam, Geom2dConvert_PPoint& theLastParam) @@ -571,10 +548,7 @@ bool Geom2dConvert_ApproxArcsSegments::makeApproximation(Geom2dConvert_PPoint& t return isDone; } -//======================================================================= -// function : calculateBiArcs -// purpose : method for calculation of the biarcs. -//======================================================================= +//================================================================================================= bool Geom2dConvert_ApproxArcsSegments::calculateBiArcs(Geom2dConvert_PPoint& theFirstParam, Geom2dConvert_PPoint& theLastParam) @@ -677,10 +651,7 @@ bool Geom2dConvert_ApproxArcsSegments::calculateBiArcs(Geom2dConvert_PPoint& the return false; } -//======================================================================= -// function : calculateLines -// purpose : method for calculation of the linear interpolation. -//======================================================================= +//================================================================================================= bool Geom2dConvert_ApproxArcsSegments::calculateLines(Geom2dConvert_PPoint& theFirstParam, Geom2dConvert_PPoint& theLastParam) @@ -718,10 +689,7 @@ bool Geom2dConvert_ApproxArcsSegments::calculateLines(Geom2dConvert_PPoint& theF return true; } -//======================================================================= -// function : checkCurve -// purpose : method for checking max deflection Geom curve from Adaptor Curve -//======================================================================= +//================================================================================================= bool Geom2dConvert_ApproxArcsSegments::checkCurve(const occ::handle& aCurve, const double theFirstParam, @@ -791,10 +759,7 @@ bool Geom2dConvert_ApproxArcsSegments::checkCurve(const occ::handle& theCurve1, const occ::handle& theCurve2, @@ -809,10 +774,7 @@ bool checkContinuity(const occ::handle& theCurve1, return (v11.IsParallel(v21, theAngleTol)); } -//======================================================================= -// function : getParameter -// purpose : getting the nearest point on AdaptorCurve to the specified point. -//======================================================================= +//================================================================================================= Geom2dConvert_PPoint getParameter(const gp_XY& theXY1, const double theFirstParam, @@ -865,11 +827,7 @@ Geom2dConvert_PPoint getParameter(const gp_XY& theXY1, return aResult; } -//======================================================================= -// function : isInflectionPoint -// purpose : method calculating that point specified by parameter -// is inflection point -//======================================================================= +//================================================================================================= bool isInflectionPoint(const double theParam, const Adaptor2d_Curve2d& theCurve) { @@ -881,11 +839,7 @@ bool isInflectionPoint(const double theParam, const Adaptor2d_Curve2d& theCurve) return (aCurvature < MyCurvatureTolerance); } -//======================================================================= -// function : isInflectionPoint -// purpose : method calculating that point specified by parameter -// is inflection point -//======================================================================= +//================================================================================================= bool isInflectionPoint(const double theParam, const Geom2dConvert_PPoint& theFirstInfl, diff --git a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxCurve.cxx b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxCurve.cxx index cf41dc38bb..1a4eb7cdd9 100644 --- a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxCurve.cxx +++ b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_ApproxCurve.cxx @@ -28,10 +28,7 @@ #include #include -//======================================================================= -// class : Geom2dConvert_ApproxCurve_Eval -// purpose: evaluator class for approximation -//======================================================================= +//================================================================================================= class Geom2dConvert_ApproxCurve_Eval : public AdvApprox_EvaluatorFunction { public: diff --git a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveKnotSplitting.cxx b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveKnotSplitting.cxx index 9e940f39e9..781b762786 100644 --- a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveKnotSplitting.cxx +++ b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveKnotSplitting.cxx @@ -13,7 +13,7 @@ // commercial license or contractual agreement. // Jean-Claude Vauthier 27 November 1991 -// Passage sur C1 Aout 1992 +// Switch to C1 August 1992 #include #include diff --git a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveToBezierCurve.cxx b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveToBezierCurve.cxx index 5f3ba2f234..4c29c78059 100644 --- a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveToBezierCurve.cxx +++ b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_BSplineCurveToBezierCurve.cxx @@ -62,14 +62,14 @@ Geom2dConvert_BSplineCurveToBezierCurve::Geom2dConvert_BSplineCurveToBezierCurve myCurve->LocateU(U1, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (myCurve->Knot(I1) > U1) Uf = myCurve->Knot(I1); } myCurve->LocateU(U2, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (myCurve->Knot(I1) < U2) Ul = myCurve->Knot(I1); } diff --git a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_CompCurveToBSplineCurve.cxx b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_CompCurveToBSplineCurve.cxx index f60b6b73e9..f62d9d06a5 100644 --- a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_CompCurveToBSplineCurve.cxx +++ b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_CompCurveToBSplineCurve.cxx @@ -130,7 +130,7 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle occ::handle& SecondCurve, const bool After) { - // Harmonisation des degres. + // Harmonize the degrees. int Deg = std::max(FirstCurve->Degree(), SecondCurve->Degree()); if (FirstCurve->Degree() < Deg) { @@ -141,7 +141,7 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle SecondCurve->IncreaseDegree(Deg); } - // Declarationd + // Declarations double L1, L2, U_de_raccord; int ii, jj; double Ratio = 1, Ratio1, Ratio2, Delta1, Delta2; @@ -152,7 +152,7 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle NCollection_Array1 Poids(1, NbP1 + NbP2 - 1); NCollection_Array1 Mults(1, NbK1 + NbK2 - 1); - // Ratio de reparametrisation (C1 si possible) + // Reparameterization ratio (C1 if possible) L1 = FirstCurve->DN(FirstCurve->LastParameter(), 1).Magnitude(); L2 = SecondCurve->DN(SecondCurve->FirstParameter(), 1).Magnitude(); @@ -167,7 +167,7 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle if (After) { - // On ne bouge pas la premiere courbe + // Do not move the first curve Ratio1 = 1; Delta1 = 0; Ratio2 = 1 / Ratio; @@ -176,7 +176,7 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle } else { - // On ne bouge pas la seconde courbe + // Do not move the second curve Ratio1 = Ratio; Delta1 = Ratio1 * FirstCurve->Knot(NbK1) - SecondCurve->Knot(1); Ratio2 = 1; @@ -184,7 +184,7 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle U_de_raccord = SecondCurve->FirstParameter(); } - // Les Noeuds + // The Knots for (ii = 1; ii < NbK1; ii++) { @@ -200,7 +200,7 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle } Ratio = FirstCurve->Weight(NbP1); Ratio /= SecondCurve->Weight(1); - // Les Poles et Poids + // The Poles and Weights for (ii = 1; ii < NbP1; ii++) { Poles(ii) = FirstCurve->Pole(ii); @@ -210,16 +210,16 @@ void Geom2dConvert_CompCurveToBSplineCurve::Add(occ::handle { Poles(jj) = SecondCurve->Pole(ii); // - // attentiion les poids ne se raccord pas forcement C0 - // d'ou Ratio + // Note: the weights may not necessarily connect with C0 continuity, + // hence the use of Ratio // Poids(jj) = Ratio * SecondCurve->Weight(ii); } - // Creation de la BSpline + // Create the BSpline myCurve = new (Geom2d_BSplineCurve)(Poles, Poids, Noeuds, Mults, Deg); - // Reduction eventuelle de la multiplicite + // Optionally reduce multiplicity bool Ok = true; int M = Mults(NbK1); while ((M > 0) && Ok) diff --git a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_PPoint.cxx b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_PPoint.cxx index 07484ef623..a9868d5ea8 100644 --- a/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_PPoint.cxx +++ b/src/ModelingData/TKGeomBase/Geom2dConvert/Geom2dConvert_PPoint.cxx @@ -28,20 +28,14 @@ Geom2dConvert_PPoint::Geom2dConvert_PPoint(const double theParameter theAdaptor.D1(theParameter, myPoint, myD1); } -//======================================================================= -// function : Geom2dConvert_PPoint::operator == -// purpose : Compare two values of this type. -//======================================================================= +//================================================================================================= bool Geom2dConvert_PPoint::operator==(const Geom2dConvert_PPoint& theOther) const { return (fabs(myParameter - theOther.Parameter()) <= Precision::PConfusion()); } -//======================================================================= -// function : Geom2dConvert_PPoint::operator != -// purpose : Compare two values of this type. -//======================================================================= +//================================================================================================= bool Geom2dConvert_PPoint::operator!=(const Geom2dConvert_PPoint& theOther) const { diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert.cxx index 502c963010..8c4c7c44d0 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert.cxx @@ -162,8 +162,8 @@ occ::handle GeomConvert::CurveToBSplineCurve( double U1 = Ctrim->FirstParameter(); double U2 = Ctrim->LastParameter(); - // Si la courbe n'est pas vraiment restreinte, on ne risque pas - // le Raise dans le BS->Segment. + // If the curve is not truly restricted, there is no risk of + // a Raise in BS->Segment. if (!Curv->IsPeriodic()) { if (U1 < Curv->FirstParameter()) @@ -431,10 +431,7 @@ occ::handle GeomConvert::CurveToBSplineCurve( return TheCurve; } -//======================================================================= -// class : law_evaluator -// purpose : useful to estimate the value of a function -//======================================================================= +//================================================================================================= class GeomConvert_law_evaluator : public BSplCLib_EvaluatorFunction { @@ -467,10 +464,7 @@ private: occ::handle myAncore; }; -//======================================================================= -// function : MultNumandDenom -// purpose : Multiply two BSpline curves to make one -//======================================================================= +//================================================================================================= static occ::handle MultNumandDenom(const occ::handle& a, const occ::handle& BS) @@ -521,7 +515,7 @@ static occ::handle MultNumandDenom(const occ::handleNbPoles(); ii++) for (jj = 1; jj <= 3; jj++) BSPoles(ii).SetCoord(jj, BSPoles(ii).Coord(jj) * BSWeights(ii)); - // POP pour WNT + // POP for WNT GeomConvert_law_evaluator ev(anAncore); BSplCLib::FunctionMultiply(ev, @@ -549,11 +543,7 @@ static occ::handle MultNumandDenom(const occ::handle>& tab) @@ -575,11 +565,7 @@ static void Pretreatment(NCollection_Array1>& tab } } -//======================================================================= -// function : NeedToBeTreated -// purpose : Say if the BSpline is rational and if the two first and two -// last weights are different -//======================================================================= +//================================================================================================= static bool NeedToBeTreated(const occ::handle& BS) @@ -601,11 +587,7 @@ static bool NeedToBeTreated(const occ::handle& BS) return false; } -//======================================================================= -// function : Need2DegRepara -// purpose : in the case of wire closed G1 it says if you will to use a -// two degree reparametrisation to close it C1 -//======================================================================= +//================================================================================================= static bool Need2DegRepara(const NCollection_Array1>& tab) @@ -625,10 +607,7 @@ static bool Need2DegRepara(const NCollection_Array1>& tab) { @@ -644,10 +623,7 @@ static int Indexmin(const NCollection_Array1>& ta return index; } -//======================================================================= -// function : NewTabClosedG1 -// purpose : Sort the array of BSplines to start at the nb_vertex_group0 index -//======================================================================= +//================================================================================================= static void ReorderArrayOfG1Curves( NCollection_Array1>& ArrayOfCurves, @@ -868,7 +844,7 @@ void GeomConvert::ConcatG1( for (ii = 1; ii <= Curve1->NbPoles(); ii++) for (jj = 1; jj <= 3; jj++) Curve1Poles(ii).SetCoord(jj, Curve1Poles(ii).Coord(jj) * Curve1Weights(ii)); - // POP pour WNT + // POP for WNT GeomConvert_reparameterise_evaluator ev(aPolynomialCoefficient); // BSplCLib::FunctionReparameterise(reparameterise_evaluator, BSplCLib::FunctionReparameterise(ev, @@ -1113,7 +1089,7 @@ void GeomConvert::ConcatC1( for (ii = 1; ii <= Curve1->NbPoles(); ii++) for (jj = 1; jj <= 3; jj++) Curve1Poles(ii).SetCoord(jj, Curve1Poles(ii).Coord(jj) * Curve1Weights(ii)); - // POP pour WNT + // POP for WNT GeomConvert_reparameterise_evaluator ev(aPolynomialCoefficient); BSplCLib::FunctionReparameterise(ev, diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_1.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_1.cxx index 81a2d02e86..ea9ca53f29 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_1.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_1.cxx @@ -533,7 +533,7 @@ occ::handle GeomConvert::SurfaceToBSplineSurface( } else { - // Nombre de spans : ouverture maximale = 150 degres ( = PI / 1.2 rds) + // Number of spans: maximum opening = 150 degrees ( = PI / 1.2 rad) const int nbUSpans = (int)std::trunc(1.2 * (ULast - UFirst) / M_PI) + 1; AlfaU = (ULast - UFirst) / (nbUSpans * 2); NbUPoles = 2 * nbUSpans + 1; @@ -728,7 +728,7 @@ occ::handle GeomConvert::SurfaceToBSplineSurface( GeomConvert_ApproxSurface BSpS(Sr, Tol3d, cont, cont, MaxDegree, MaxDegree, MaxSeg, 1); TheSurface = BSpS.Surface(); } - } // Fin du cas Rectangular::TrimmedSurface + } // End of Rectangular::TrimmedSurface case else { @@ -902,6 +902,6 @@ occ::handle GeomConvert::SurfaceToBSplineSurface( GeomConvert_ApproxSurface BSpS(Sr, Tol3d, ucont, vcont, MaxDegree, MaxDegree, MaxSeg, 1); TheSurface = BSpS.Surface(); } - } // Fin du cas direct + } // End of direct case return TheSurface; } diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxCurve.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxCurve.cxx index e3fdff2579..7f421991d1 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxCurve.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxCurve.cxx @@ -27,10 +27,7 @@ #include #include -//======================================================================= -// class : GeomConvert_ApproxCurve_Eval -// purpose: evaluator class for approximation -//======================================================================= +//================================================================================================= class GeomConvert_ApproxCurve_Eval : public AdvApprox_EvaluatorFunction { public: diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxSurface.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxSurface.cxx index 7b5d3ee3f5..f1e1ed856c 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxSurface.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_ApproxSurface.cxx @@ -86,7 +86,7 @@ void GeomConvert_ApproxSurface_Eval::Evaluate(int* Dimension, *ErrorCode = 1; } - // Parametres incorrects + // Incorrect parameters /* if (*FavorIso==1) { Upar = *ConstParam; if (( Upar < UStartEnd[0] ) || ( Upar > UStartEnd[1] )) { @@ -357,7 +357,7 @@ void GeomConvert_ApproxSurface::Approximate(const occ::handle double V0 = theSurf->FirstVParameter(); double V1 = theSurf->LastVParameter(); - // " Init des nombres de sous-espaces et des tolerances" + // "Init of subspace counts and tolerances" int nb1 = 0, nb2 = 0, nb3 = 1; occ::handle> nul1 = new NCollection_HArray1(1, 1); nul1->SetValue(1, 0.); @@ -392,12 +392,12 @@ void GeomConvert_ApproxSurface::Approximate(const occ::handle NbDec = theSurf->NbVIntervals(GeomAbs_C3); NCollection_Array1 VDec_C3(1, NbDec + 1); theSurf->VIntervals(VDec_C3, GeomAbs_C3); - // Approximation avec decoupe preferentiel - // aux lieux de discontinuitees C2 + // Approximation with preferential splitting + // at C2 discontinuity locations AdvApprox_PrefAndRec pUDec(UDec_C2, UDec_C3); AdvApprox_PrefAndRec pVDec(VDec_C2, VDec_C3); - // POP pour WNT + // POP for WNT GeomConvert_ApproxSurface_Eval ev(theSurf); AdvApp2Var_ApproxAFunc2Var approx(nb1, nb2, diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveKnotSplitting.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveKnotSplitting.cxx index 037c4de629..12f91780b4 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveKnotSplitting.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveKnotSplitting.cxx @@ -13,7 +13,7 @@ // commercial license or contractual agreement. // Jean-Claude Vauthier 27 November 1991 -// Passage sur C1 Aout 1992 +// Switch to C1 August 1992 #include #include diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveToBezierCurve.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveToBezierCurve.cxx index 9dd637b50d..92c5c5aee2 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveToBezierCurve.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineCurveToBezierCurve.cxx @@ -36,11 +36,7 @@ GeomConvert_BSplineCurveToBezierCurve::GeomConvert_BSplineCurveToBezierCurve( myCurve->Degree()); } -//======================================================================= -// function : GeomConvert_BSplineCurveToBezierCurve -// purpose : -// 01/12/1997 PMN: On elimine d'eventuelles micro-courbe PRO11516 -//=======================================================================Real I +//================================================================================================= GeomConvert_BSplineCurveToBezierCurve::GeomConvert_BSplineCurveToBezierCurve( const occ::handle& BasisCurve, @@ -59,14 +55,14 @@ GeomConvert_BSplineCurveToBezierCurve::GeomConvert_BSplineCurveToBezierCurve( myCurve->LocateU(U1, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (myCurve->Knot(I1) > U1) Uf = myCurve->Knot(I1); } myCurve->LocateU(U2, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (myCurve->Knot(I1) < U2) Ul = myCurve->Knot(I1); } diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceKnotSplitting.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceKnotSplitting.cxx index 7716c6ea07..2d7693fd87 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceKnotSplitting.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceKnotSplitting.cxx @@ -13,7 +13,7 @@ // commercial license or contractual agreement. // Jean-Claude Vauthier 28 Novembre 1991 -// Passage sur C1 Aout 1992 +// Switch to C1 August 1992 #include #include diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceToBezierSurface.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceToBezierSurface.cxx index d201ed962c..bf02d319e1 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceToBezierSurface.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_BSplineSurfaceToBezierSurface.cxx @@ -59,28 +59,28 @@ GeomConvert_BSplineSurfaceToBezierSurface::GeomConvert_BSplineSurfaceToBezierSur mySurface->LocateU(U1, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (mySurface->UKnot(I1) > U1) Uf = mySurface->UKnot(I1); } mySurface->LocateU(U2, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (mySurface->UKnot(I1) < U2) Ul = mySurface->UKnot(I1); } mySurface->LocateV(V1, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (mySurface->VKnot(I1) > V1) Vf = mySurface->VKnot(I1); } mySurface->LocateV(V2, PTol, I1, I2); if (I1 == I2) - { // On est sur le noeud + { // We are on the knot if (mySurface->VKnot(I1) < V2) Vl = mySurface->VKnot(I1); } diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompBezierSurfacesToBSplineSurface.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompBezierSurfacesToBSplineSurface.cxx index 0ff8ce8913..1980f67dd0 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompBezierSurfacesToBSplineSurface.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompBezierSurfacesToBSplineSurface.cxx @@ -36,7 +36,7 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo { int ii; myDone = true; - // Choix des noeuds + // Choice of knots myUKnots = new (NCollection_HArray1)(1, Beziers.ColLength() + 1); for (ii = 0; ii < myUKnots->Length(); ii++) { @@ -49,7 +49,7 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo myVKnots->SetValue(ii + 1, ii); } - // Calcul des Poles + // Compute the Poles Perform(Beziers); } @@ -69,12 +69,12 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo myDone = true; - // Choix des noeuds + // Choice of knots myUKnots = new (NCollection_HArray1)(1, Beziers.ColLength() + 1); myVKnots = new (NCollection_HArray1)(1, Beziers.RowLength() + 1); - // --> en U + // --> in U myUKnots->SetValue(1, 0); jj = myVKnots->Length() / 2; FirstCurve = Beziers(1, jj)->VIso(0.3); @@ -101,7 +101,7 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo V3 = vec.Magnitude(); L2 = P1.Distance(P2) + P2.Distance(P3); - // On calcul le ratio, en evitant les cas tordus... + // Compute the ratio, avoiding degenerate cases... if ((V2 > 1000 * L2) || (V2 < L2 * 1.e-3)) V2 = L2; if ((V3 > 1000 * L2) || (V3 < L2 * 1.e-3)) @@ -117,11 +117,11 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo Ratio = 1; } - // On en deduit un nouveau noeud + // Deduce a new knot val = myUKnots->Value(ii); myUKnots->SetValue(ii + 1, val + Ratio * (val - myUKnots->Value(ii - 1))); - // Et c'est reparti, pour un tour + // And off we go again, for another round L1 = L2; V1 = V3; FirstCurve = SecondCurve; @@ -154,7 +154,7 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo V3 = vec.Magnitude(); L2 = P1.Distance(P2) + P2.Distance(P3); - // On calcul le ratio, en evitant les cas tordus... + // Compute the ratio, avoiding degenerate cases... if ((V2 > 1000 * L2) || (V2 < L2 * 1.e-3)) V2 = L2; if ((V3 > 1000 * L2) || (V3 < L2 * 1.e-3)) @@ -170,17 +170,17 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo Ratio = 1; } - // On en deduit un nouveau noeud + // Deduce a new knot val = myVKnots->Value(jj); myVKnots->SetValue(jj + 1, val + Ratio * (val - myVKnots->Value(jj - 1))); - // Et c'est reparti, pour un tour + // And off we go again, for another round L1 = L2; V1 = V3; FirstCurve = SecondCurve; } - // Calcul des Poles + // Compute the Poles Perform(Beziers); // Reduction de la multiplicite @@ -219,7 +219,7 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo } } - // Les nouveaux champs sont arrivees .... + // The new fields have been computed.... myPoles = new NCollection_HArray2(Surface->Poles()); myUMults = new NCollection_HArray1(Surface->UMultiplicities()); myVMults = new NCollection_HArray1(Surface->VMultiplicities()); @@ -242,17 +242,17 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo myDone = true; - // Recuperation des noeuds + // Retrieve the knots myUKnots = new (NCollection_HArray1)(1, Beziers.ColLength() + 1); myUKnots->ChangeArray1() = UKnots; myVKnots = new (NCollection_HArray1)(1, Beziers.RowLength() + 1); myVKnots->ChangeArray1() = VKnots; - // Calcul des Poles + // Compute the Poles Perform(Beziers); - // Obtention des bonne continuitee + // Obtaining the correct continuity switch (UContinuity) { @@ -336,7 +336,7 @@ GeomConvert_CompBezierSurfacesToBSplineSurface::GeomConvert_CompBezierSurfacesTo } } - // Les nouveaux champs sont arrivees .... + // The new fields have been computed.... myPoles = new NCollection_HArray2(Surface->Poles()); myUMults = new NCollection_HArray1(Surface->UMultiplicities()); myVMults = new NCollection_HArray1(Surface->VMultiplicities()); @@ -350,7 +350,7 @@ void GeomConvert_CompBezierSurfacesToBSplineSurface::Perform( { int IU, IV; - // (1) Determination des degrees et si le resultat est rationnel. + // (1) Determine the degrees and whether the result is rational. isrational = false; myUDegree = 1; myVDegree = 1; @@ -372,7 +372,7 @@ void GeomConvert_CompBezierSurfacesToBSplineSurface::Perform( Standard_NotImplemented_Raise_if(isrational, "CompBezierSurfacesToBSpl : rational !"); - // (2) Boucle sur les carreaux ----------------------------- + // (2) Loop over the patches ----------------------------- occ::handle Patch; int UIndex, VIndex, uindex, vindex, udeb, vdeb; @@ -393,10 +393,10 @@ void GeomConvert_CompBezierSurfacesToBSplineSurface::Perform( Patch = Beziers(IU, IV); VIndex = (IV - 1) * myVDegree + 1; - // (2.1) Augmentation du degree + // (2.1) Increase the degree Patch->Increase(myUDegree, myVDegree); - // (2.2) Poles a recopier + // (2.2) Poles to copy if (IU == 1) { udeb = 1; @@ -474,7 +474,7 @@ void GeomConvert_CompBezierSurfacesToBSplineSurface::Perform( } } - // (4) Init des multiplicites + // (4) Init of multiplicities myUMults = new (NCollection_HArray1)(1, myUKnots->Length()); myUMults->Init(myUDegree); myUMults->SetValue(1, myUDegree + 1); diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompCurveToBSplineCurve.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompCurveToBSplineCurve.cxx index a62ef9e73e..c42c4a25dd 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompCurveToBSplineCurve.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CompCurveToBSplineCurve.cxx @@ -93,16 +93,16 @@ bool GeomConvert_CompCurveToBSplineCurve::Add(const occ::handle& FirstCurve, occ::handle& SecondCurve, const bool After, const bool WithRatio, const int MinM) { - // Harmonisation des degres. + // Harmonize the degrees. int Deg = std::max(FirstCurve->Degree(), SecondCurve->Degree()); if (FirstCurve->Degree() < Deg) { @@ -143,7 +145,7 @@ void GeomConvert_CompCurveToBSplineCurve::Add(occ::handle& Fi SecondCurve->IncreaseDegree(Deg); } - // Declarationd + // Declarations double L1, L2; int ii, jj; double Ratio = 1, Ratio1, Ratio2, Delta1, Delta2; @@ -154,7 +156,7 @@ void GeomConvert_CompCurveToBSplineCurve::Add(occ::handle& Fi NCollection_Array1 Poids(1, NbP1 + NbP2 - 1); NCollection_Array1 Mults(1, NbK1 + NbK2 - 1); - // Ratio de reparametrisation (C1 si possible) + // Reparameterization ratio (C1 if possible) if (WithRatio) { L1 = FirstCurve->DN(FirstCurve->LastParameter(), 1).Magnitude(); @@ -172,7 +174,7 @@ void GeomConvert_CompCurveToBSplineCurve::Add(occ::handle& Fi if (After) { - // On ne bouge pas la premiere courbe + // Do not move the first curve Ratio1 = 1; Delta1 = 0; Ratio2 = 1 / Ratio; @@ -180,14 +182,14 @@ void GeomConvert_CompCurveToBSplineCurve::Add(occ::handle& Fi } else { - // On ne bouge pas la seconde courbe + // Do not move the second curve Ratio1 = Ratio; Delta1 = Ratio1 * FirstCurve->Knot(NbK1) - SecondCurve->Knot(1); Ratio2 = 1; Delta2 = 0; } - // Les Noeuds + // The Knots double eps; for (ii = 1; ii <= NbK1; ii++) { @@ -220,7 +222,7 @@ void GeomConvert_CompCurveToBSplineCurve::Add(occ::handle& Fi Ratio = FirstCurve->Weight(NbP1); Ratio /= SecondCurve->Weight(1); - // Les Poles et Poids + // The Poles and Weights for (ii = 1; ii < NbP1; ii++) { Poles(ii) = FirstCurve->Pole(ii); @@ -230,16 +232,16 @@ void GeomConvert_CompCurveToBSplineCurve::Add(occ::handle& Fi { Poles(jj) = SecondCurve->Pole(ii); // - // attentiion les poids ne se raccord pas forcement C0 - // d'ou Ratio + // Note: the weights may not necessarily connect with C0 continuity, + // hence the use of Ratio // Poids(jj) = Ratio * SecondCurve->Weight(ii); } - // Creation de la BSpline + // Create the BSpline myCurve = new (Geom_BSplineCurve)(Poles, Poids, Noeuds, Mults, Deg); - // Reduction eventuelle de la multiplicite jusqu'a MinM + // Optionally reduce multiplicity down to MinM bool Ok = true; int M = Mults(NbK1); while ((M > MinM) && Ok) diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CurveToAnaCurve.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CurveToAnaCurve.cxx index 7aa9dc2e1f..92af567a61 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CurveToAnaCurve.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_CurveToAnaCurve.cxx @@ -243,7 +243,7 @@ bool GeomConvert_CurveToAnaCurve::GetCircle(gp_Circ& crc, crc = mkc.Value(); if (crc.Radius() < gp::Resolution()) return false; - // Recalage sur P0 + // Align to P0 gp_Pnt PC = crc.Location(); gp_Ax2 axe = crc.Position(); gp_Vec VX(PC, P0); @@ -321,10 +321,6 @@ occ::handle GeomConvert_CurveToAnaCurve::ComputeCircle( return circ; } -//======================================================================= -// Compute Ellipse -//======================================================================= - //================================================================================================= static bool IsArrayPntPlanar(const occ::handle>& HAP, @@ -397,20 +393,20 @@ static bool ConicDefinition(const double a, // Equation (a,b,c,d,e,f); b = b1 / 2.; d = d1 / 2.; - e = e1 / 2.; // chgt de variable + e = e1 / 2.; // change of variable - double eps = 1.E-08; // ?? comme ComputedForm + double eps = 1.E-08; // ?? same as ComputedForm if (IsParab) { } else { - // -> Conique a centre, cas general - // On utilise les Determinants des matrices : + // -> Central conic, general case + // We use the determinants of the matrices: // | a b d | - // gdet (3x3) = | b c e | et pdet (2X2) = | a b | - // | d e f | | b c | + // gdet (3x3) = | b c e | and pdet (2x2) = | a b | + // | d e f | | b c | double gdet = a * c * f + 2 * b * d * e - c * d * d - a * e * e - b * b * f; double pdet = a * c - b * b; diff --git a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_SurfToAnaSurf.cxx b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_SurfToAnaSurf.cxx index 7031fe3759..172268992b 100644 --- a/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_SurfToAnaSurf.cxx +++ b/src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_SurfToAnaSurf.cxx @@ -53,12 +53,7 @@ #include #include -//======================================================================= -// function : CheckVTrimForRevSurf -// purpose : -// static method for checking surface of revolution -// To avoid two-parts cone-like surface -//======================================================================= +//================================================================================================= void GeomConvert_SurfToAnaSurf::CheckVTrimForRevSurf( const occ::handle& aRevSurf, double& V1, @@ -107,11 +102,7 @@ void GeomConvert_SurfToAnaSurf::CheckVTrimForRevSurf( } } -//======================================================================= -// function : TryCylinderCone -// purpose : -// static method to try create cylindrical or conical surface -//======================================================================= +//================================================================================================= occ::handle GeomConvert_SurfToAnaSurf::TryCylinerCone( const occ::handle& theSurf, const bool theVCase, @@ -224,11 +215,9 @@ occ::handle GeomConvert_SurfToAnaSurf::TryCylinerCone( return aNewSurf; } -//======================================================================= -// function : GetCylByLS -// purpose : -// static method to create cylinrical surface using least square method -//======================================================================= +//================================================================================================= +//================================================================================================= + static void GetLSGap(const occ::handle>& thePoints, const gp_Ax3& thePos, const double theR, @@ -358,11 +347,7 @@ bool GeomConvert_SurfToAnaSurf::GetCylByLS( return false; } -//======================================================================= -// function : TryCylinderByGaussField -// purpose : -// static method to try create cylinrical surface based on its Gauss field -//======================================================================= +//================================================================================================= occ::handle GeomConvert_SurfToAnaSurf::TryCylinderByGaussField( const occ::handle& theSurf, @@ -507,12 +492,7 @@ occ::handle GeomConvert_SurfToAnaSurf::TryCylinderByGaussField( return aNewSurf; } -//======================================================================= -// function : TryTorusSphere -// purpose : -// static method to try create toroidal surface. -// In case = true try to use V isoline radius as minor radaius. -//======================================================================= +//================================================================================================= occ::handle GeomConvert_SurfToAnaSurf::TryTorusSphere( const occ::handle& theSurf, diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib.cxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib.cxx index 9ef64b6047..58089905dd 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib.cxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib.cxx @@ -15,31 +15,25 @@ // commercial license or contractual agreement. // Version: -// pmn 24/09/96 Ajout du prolongement de courbe. -// jct 15/04/97 Ajout du prolongement de surface. -// jct 24/04/97 simplification ou suppression de calculs -// inutiles dans ExtendSurfByLength -// correction de Tbord et Continuity=0 accepte -// correction du calcul de lambda et appel a -// TangExtendToConstraint avec lambmin au lieu de 1. -// correction du passage Sr rat --> BSp nD -// xab 26/06/97 treatement partiel anulation des derivees -// partiels du denonimateur des Surfaces BSplines Rationnelles -// dans le cas de valeurs proportionnelles des denominateurs -// en umin umax et/ou vmin vmax. -// pmn 4/07/97 Gestion de la continuite dans BuildCurve3d (PRO9097) -// xab 10/07/97 on revient en arriere sur l'ajout du 26/06/97 -// pmn 26/09/97 Ajout des parametres d'approx dans BuildCurve3d -// xab 29/09/97 on reintegre l'ajout du 26/06/97 -// pmn 31/10/97 Ajoute AdjustExtremity -// jct 26/11/98 blindage dans ExtendSurf qd NTgte = 0 (CTS21288) -// jct 19/01/99 traitement de la periodicite dans ExtendSurf -// Design: -// Warning: None -// References: None -// Language: C++2.0 -// Purpose: -// Declarations: +// pmn 24/09/96 Added curve extension. +// jct 15/04/97 Added surface extension. +// jct 24/04/97 simplification or removal of unnecessary +// computations in ExtendSurfByLength; +// correction of Tbord and Continuity=0 accepted; +// correction of lambda computation and call to +// TangExtendToConstraint with lambmin instead of 1; +// correction of rational surface to nD BSpline conversion. +// xab 26/06/97 partial treatment of derivative cancellation +// in the denominator of rational BSpline surfaces +// when denominator values are proportional +// at umin, umax and/or vmin, vmax. +// pmn 4/07/97 Continuity management in BuildCurve3d (PRO9097) +// xab 10/07/97 reverted the addition from 26/06/97 +// pmn 26/09/97 Added approx parameters in BuildCurve3d +// xab 29/09/97 reintegrated the addition from 26/06/97 +// pmn 31/10/97 Added AdjustExtremity +// jct 26/11/98 safeguard in ExtendSurf when NTgte = 0 (CTS21288) +// jct 19/01/99 periodicity handling in ExtendSurf #include @@ -128,11 +122,7 @@ static bool CompareWeightPoles(const NCollection_Array1& thePoles1 const NCollection_Array1* const theW2, const double theTol); -//======================================================================= -// function : ComputeLambda -// purpose : Calcul le facteur lambda qui minimise la variation de vittesse -// sur une interpolation d'hermite d'ordre (i,0) -//======================================================================= +//================================================================================================= static void ComputeLambda(const math_Matrix& Constraint, const math_Matrix& Hermit, const double Length, @@ -238,7 +228,7 @@ static void ComputeLambda(const math_Matrix& Constraint, if (EMin > Precision::Confusion()) { - // Recheche des extrema de la fonction + // Search for extrema of the function GeomLib_PolyFunc FF(pol4); GeomLib_LogSample S(Lambda / 1000, 50 * Lambda, 100); math_FunctionAllRoots Solve(FF, @@ -407,12 +397,12 @@ void GeomLib::FuseIntervals(const NCollection_Array1& I1, { int ind1 = 1, ind2 = 1; double v1, v2; - // Initialisations : les IND1 et IND2 pointent sur le 1er element - // de chacune des 2 tables a traiter.INDS pointe sur le dernier - // element cree de TABSOR + // Initializations: IND1 and IND2 point to the 1st element + // of each of the 2 tables to process. INDS points to the last + // created element of TABSOR - //--- On remplit TABSOR en parcourant TABLE1 et TABLE2 simultanement --- - //------------------ en eliminant les occurrences multiples ------------ + //--- Fill TABSOR by traversing TABLE1 and TABLE2 simultaneously --- + //------------------ eliminating multiple occurrences ---------------- while ((ind1 <= I1.Upper()) && (ind2 <= I2.Upper())) { @@ -420,7 +410,7 @@ void GeomLib::FuseIntervals(const NCollection_Array1& I1, v2 = I2(ind2); if (std::abs(v1 - v2) <= Epspar) { - // Ici les elements de I1 et I2 conviennent . + // Here the elements of I1 and I2 match. if (IsAdjustToFirstInterval) { Seq.Append(v1); @@ -434,13 +424,13 @@ void GeomLib::FuseIntervals(const NCollection_Array1& I1, } else if (v1 < v2) { - // Ici l' element de I1 convient. + // Here the element of I1 is suitable. Seq.Append(v1); ind1++; } else { - // Ici l' element de TABLE2 convient. + // Here the element of TABLE2 is suitable. Seq.Append(v2); ind2++; } @@ -448,7 +438,7 @@ void GeomLib::FuseIntervals(const NCollection_Array1& I1, if (ind1 > I1.Upper()) { - //----- Ici I1 est epuise, on complete avec la fin de TABLE2 ------- + //----- Here I1 is exhausted, complete with the end of TABLE2 ------- for (; ind2 <= I2.Upper(); ind2++) { @@ -458,7 +448,7 @@ void GeomLib::FuseIntervals(const NCollection_Array1& I1, if (ind2 > I2.Upper()) { - //----- Ici I2 est epuise, on complete avec la fin de I1 ------- + //----- Here I2 is exhausted, complete with the end of I1 ------- for (; ind1 <= I1.Upper(); ind1++) { Seq.Append(I1(ind1)); @@ -698,8 +688,8 @@ occ::handle GeomLib::GTransform(const occ::handle& C if (Form != gp_Other) { - // Alors, la GTrsf est en fait une Trsf. - // La geometrie des courbes sera alors inchangee. + // Then, the GTrsf is actually a Trsf. + // The curve geometry will then remain unchanged. occ::handle C = occ::down_cast(Curve->Transformed(GTrsf.Trsf2d())); return C; @@ -726,8 +716,8 @@ occ::handle GeomLib::GTransform(const occ::handle& C || TheBasisType == STANDARD_TYPE(Geom2d_BezierCurve)) { - // Dans ces cas le parametrage est conserve sur la courbe transformee - // on peut donc la trimmer avec les parametres de la courbe de base. + // In these cases the parameterization is preserved on the transformed curve, + // so we can trim it with the parameters of the base curve. double U1 = C->FirstParameter(); double U2 = C->LastParameter(); @@ -739,10 +729,9 @@ occ::handle GeomLib::GTransform(const occ::handle& C else if (TheBasisType == STANDARD_TYPE(Geom2d_Line)) { - // Dans ce cas, le parametrage n`est plus conserve. - // Il faut recalculer les parametres de Trimming sur la courbe - // resultante. ( Calcul par projection ( ElCLib) des points debut - // et fin transformes) + // In this case, the parameterization is no longer preserved. + // We must recompute the trimming parameters on the resulting + // curve (by projecting the transformed start and end points using ElCLib). occ::handle L = occ::down_cast(GTransform(C->BasisCurve(), GTrsf)); @@ -764,8 +753,8 @@ occ::handle GeomLib::GTransform(const occ::handle& C || TheBasisType == STANDARD_TYPE(Geom2d_Hyperbola)) { - // Dans ces cas, la geometrie de la courbe n`est pas conservee - // on la convertir en BSpline avant de lui appliquer la Trsf. + // In these cases, the curve geometry is not preserved; + // convert it to BSpline before applying the Trsf. occ::handle BS = Geom2dConvert::CurveToBSplineCurve(C); return GTransform(BS, GTrsf); @@ -773,7 +762,7 @@ occ::handle GeomLib::GTransform(const occ::handle& C else { - // La transformee d`une OffsetCurve vaut ????? Sais pas faire !! + // The transform of an OffsetCurve is not supported. occ::handle dummy; return dummy; @@ -785,7 +774,7 @@ occ::handle GeomLib::GTransform(const occ::handle& C occ::handle L = occ::down_cast(Curve->Copy()); gp_Lin2d Lin = L->Lin2d(); gp_Pnt2d P = Lin.Location(); - gp_Pnt2d PP = L->Value(10.); // pourquoi pas !! + gp_Pnt2d PP = L->Value(10.); // arbitrary point P.SetXY(GTrsf.Transformed(P.XY())); PP.SetXY(GTrsf.Transformed(PP.XY())); L->SetLocation(P); @@ -796,9 +785,8 @@ occ::handle GeomLib::GTransform(const occ::handle& C else if (TheType == STANDARD_TYPE(Geom2d_BezierCurve)) { - // Les GTrsf etant des operation lineaires, la transformee d`une courbe - // a poles est la courbe dont les poles sont la transformee des poles - // de la courbe de base. + // Since GTrsf is a linear operation, the transform of a pole-based curve + // is the curve whose poles are the transforms of the base curve's poles. occ::handle C = occ::down_cast(Curve->Copy()); const int NbPoles = C->NbPoles(); @@ -813,7 +801,7 @@ occ::handle GeomLib::GTransform(const occ::handle& C else if (TheType == STANDARD_TYPE(Geom2d_BSplineCurve)) { - // Voir commentaire pour les Bezier. + // See comment for Bezier curves above. occ::handle C = occ::down_cast(Curve->Copy()); const int NbPoles = C->NbPoles(); @@ -828,8 +816,8 @@ occ::handle GeomLib::GTransform(const occ::handle& C else if (TheType == STANDARD_TYPE(Geom2d_Circle) || TheType == STANDARD_TYPE(Geom2d_Ellipse)) { - // Dans ces cas, la geometrie de la courbe n`est pas conservee - // on la convertir en BSpline avant de lui appliquer la Trsf. + // In these cases, the curve geometry is not preserved; + // convert it to BSpline before applying the Trsf. occ::handle C = Geom2dConvert::CurveToBSplineCurve(Curve); return GTransform(C, GTrsf); @@ -838,7 +826,7 @@ occ::handle GeomLib::GTransform(const occ::handle& C || TheType == STANDARD_TYPE(Geom2d_OffsetCurve)) { - // On ne sait pas faire : return a null Handle; + // Not supported: return a null Handle; occ::handle dummy; return dummy; @@ -910,9 +898,9 @@ void GeomLib::SameRange(const double Tolerance, NewCurvePtr = new Geom2d_TrimmedCurve(NewCurvePtr, RequestedFirst, RequestedLast); } // - // attention a des problemes de limitation : utiliser le MEME test que dans - // Geom2d_TrimmedCurve::SetTrim car sinon comme on risque de relimite sur - // RequestedFirst et RequestedLast on aura un probleme + // Beware of limitation issues: use the SAME test as in + // Geom2d_TrimmedCurve::SetTrim, otherwise since we may re-trim on + // RequestedFirst and RequestedLast we will have a problem // // else if (std::abs(LastOnCurve - FirstOnCurve) > Precision::PConfusion() @@ -979,10 +967,7 @@ void GeomLib::SameRange(const double Tolerance, } } -//======================================================================= -// class : GeomLib_CurveOnSurfaceEvaluator -// purpose: The evaluator for the Curve 3D building -//======================================================================= +//================================================================================================= class GeomLib_CurveOnSurfaceEvaluator : public AdvApprox_EvaluatorFunction { @@ -1020,7 +1005,7 @@ void GeomLib_CurveOnSurfaceEvaluator::Evaluate(int*, /*Dimension*/ { gp_Pnt Point; - // Gestion des positionnements gauche / droite + // Handle left / right positioning if ((DebutFin[0] != FirstParam) || (DebutFin[1] != LastParam)) { TrimCurve = CurveOnSurface.Trim(DebutFin[0], DebutFin[1], Precision::PConfusion()); @@ -1028,7 +1013,7 @@ void GeomLib_CurveOnSurfaceEvaluator::Evaluate(int*, /*Dimension*/ LastParam = DebutFin[1]; } - // Positionemment + // Positioning if (*DerivativeRequest == 0) { TrimCurve->D0((*Parameter), Point); @@ -1129,7 +1114,7 @@ void GeomLib::BuildCurve3d(const double Tolerance, occ::handle> Tolerance3DPtr = new NCollection_HArray1(1, 1); Tolerance3DPtr->SetValue(1, Tolerance); - // Recherche des discontinuitees + // Search for discontinuities int NbIntervalC2 = Curve.NbIntervals(GeomAbs_C2); NCollection_Array1 Param_de_decoupeC2(1, NbIntervalC2 + 1); Curve.Intervals(Param_de_decoupeC2, GeomAbs_C2); @@ -1142,7 +1127,7 @@ void GeomLib::BuildCurve3d(const double Tolerance, // To force Trim on first evaluator call GeomLib_CurveOnSurfaceEvaluator ev(Curve, FirstParameter - 1., LastParameter + 1.); - // Approximation avec decoupe preferentiel + // Approximation with preferential cutting AdvApprox_PrefAndRec Preferentiel(Param_de_decoupeC2, Param_de_decoupeC3); AdvApprox_ApproxAFunction anApproximator(0, 0, @@ -1164,7 +1149,7 @@ void GeomLib::BuildCurve3d(const double Tolerance, GeomLib_MakeCurvefromApprox aCurveBuilder(anApproximator); occ::handle aCurvePtr = aCurveBuilder.Curve(1); - // On rend les resultats de l'approx + // Return the approximation results MaxDeviation = anApproximator.MaxError(3, 1); AverageDeviation = anApproximator.AverageError(3, 1); NewCurvePtr = aCurvePtr; @@ -1179,7 +1164,7 @@ void GeomLib::AdjustExtremity(occ::handle& Curve, const gp_Vec& T1, const gp_Vec& T2) { - // il faut Convertir l'entree (en preservant si possible le parametrage) + // Convert the input (preserving the parameterization if possible) occ::handle aIn, aDef; aIn = GeomConvert::CurveToBSplineCurve(Curve, Convert_QuasiAngular); @@ -1201,7 +1186,7 @@ void GeomLib::AdjustExtremity(occ::handle& Curve, FK(ii) = aIn->LastParameter(); } - // Calculs des contraintes de deformations + // Calculation of deformation constraints aIn->D1(Ti(1), P, V); PolesDef(1).ChangeCoord() = P1.XYZ() - P.XYZ(); Vtan = T1; @@ -1216,7 +1201,7 @@ void GeomLib::AdjustExtremity(occ::handle& Curve, DV = Vtan * (Vtan * V) - V; PolesDef(4).ChangeCoord() = (Ti(4) - Ti(1)) * DV.XYZ(); - // Interpolation des contraintes + // Interpolation of constraints math_Matrix Mat(1, 4, 1, 4); if (!PLib::HermiteCoefficients(0., 1., 1, 1, Mat)) throw Standard_ConstructionError(); @@ -1233,7 +1218,7 @@ void GeomLib::AdjustExtremity(occ::handle& Curve, PLib::CoefficientsPoles(Coeffs, PLib::NoWeights(), PolesDef, PLib::NoWeights()); - // Ajout de la deformation + // Add the deformation NCollection_Array1 K(1, 2); NCollection_Array1 M(1, 2); K(1) = Ti(1); @@ -1279,10 +1264,10 @@ void GeomLib::ExtendCurveToPoint(occ::handle& Curve, int ii, jj; gp_Vec d1, d2, d3; gp_Pnt p0; - // il faut Convertir l'entree (en preservant si possible le parametrage) + // Convert the input (preserving the parameterization if possible) GeomConvert_CompCurveToBSplineCurve Concat(Curve, Convert_QuasiAngular); - // Les contraintes de constructions + // Construction constraints NCollection_Array1 Cont(1, size); if (After) { @@ -1293,14 +1278,14 @@ void GeomLib::ExtendCurveToPoint(occ::handle& Curve, Ubord = Curve->FirstParameter(); } PLib::HermiteCoefficients(0, - 1, // Les Bornes + 1, // The Bounds Continuity, - 0, // Les Ordres de contraintes + 0, // The constraint orders MatCoefs); Curve->D3(Ubord, p0, d1, d2, d3); if (!After) - { // Inversion du parametrage + { // Invert the parameterization d1 *= -1; d3 *= -1; } @@ -1326,7 +1311,7 @@ void GeomLib::ExtendCurveToPoint(occ::handle& Curve, norm /= 9; dt = d1.Magnitude() / norm; if ((dt < 1.5) && (dt > 0.75)) - { // Le bord est dans la moyenne on le garde + { // The edge is within the average, keep it Lambda = ((double)1) / std::max(d1.Magnitude() / L1, Tol); } else @@ -1336,10 +1321,10 @@ void GeomLib::ExtendCurveToPoint(occ::handle& Curve, } else { - return; // Pas d'extension + return; // No extension } - // Optimisation du Lambda + // Optimization of Lambda math_Matrix Cons(1, 3, 1, size); Cons(1, 1) = p0.X(); Cons(2, 1) = p0.Y(); @@ -1364,7 +1349,7 @@ void GeomLib::ExtendCurveToPoint(occ::handle& Curve, } ComputeLambda(Cons, MatCoefs, L1, Lambda); - // Construction dans la Base Polynomiale + // Construction in the Polynomial Basis Cont(1) = p0.XYZ(); Cont(2) = d1.XYZ() * Lambda; if (Continuity >= 2) @@ -1386,7 +1371,7 @@ void GeomLib::ExtendCurveToPoint(occ::handle& Curve, } } - // Convertion Dans la Base de Bernstein + // Conversion to the Bernstein Basis PLib::CoefficientsPoles(ExtraCoeffs, PLib::NoWeights(), ExtrapPoles, PLib::NoWeights()); occ::handle Bezier = new (Geom_BezierCurve)(ExtrapPoles); @@ -1403,10 +1388,7 @@ void GeomLib::ExtendCurveToPoint(occ::handle& Curve, Curve = Concat.BSplineCurve(); } -//======================================================================= -// function : ExtendKPart -// purpose : Extension par longueur des surfaces cannonique -//======================================================================= +//================================================================================================= static bool ExtendKPart(occ::handle& Surface, const double Length, const bool InU, @@ -1485,7 +1467,7 @@ void GeomLib::ExtendSurfByLength(occ::handle& Surface, return; } - // format BSplineSurface avec un degre suffisant pour la continuite voulue + // BSplineSurface format with a degree sufficient for the desired continuity occ::handle BS = occ::down_cast(Surface); if (BS.IsNull()) { @@ -1533,11 +1515,11 @@ void GeomLib::ExtendSurfByLength(occ::handle& Surface, for (Kount = 0, Ok = false; Kount <= 2 && !Ok; Kount++) { - // transformation de la surface en une BSpline non rationnelle a une variable - // de degre UDegree ou VDegree et de dimension 3 ou 4 x NbVpoles ou NbUpoles - // le nombre de poles egal a NbUpoles ou NbVpoles - // ATTENTION : dans le cas rationnel, un point de coordonnees (x,y,z) - // et de poids w devient un point de coordonnees (wx, wy, wz, w ) + // Transform the surface into a non-rational BSpline in one variable + // of degree UDegree or VDegree and dimension 3 or 4 x NbVpoles or NbUpoles + // the number of poles equals NbUpoles or NbVpoles + // WARNING: in the rational case, a point with coordinates (x,y,z) + // and weight w becomes a point with coordinates (wx, wy, wz, w) if (InU) { @@ -1773,7 +1755,7 @@ void GeomLib::ExtendSurfByLength(occ::handle& Surface, *FKRadr, *PRadr); - // recopie des poles du resultat sous forme de points 3D et de poids + // Copy the result poles as 3D points and weights int NU, NV, indice; if (InU) { @@ -1865,8 +1847,8 @@ void GeomLib::ExtendSurfByLength(occ::handle& Surface, } } - // recopie des noeuds plats sous forme de noeuds avec leurs multiplicites - // calcul des degres du resultat + // Copy flat knots as knots with their multiplicities. + // Compute the degrees of the result. int Usize = BS->NbUKnots(), Vsize = BS->NbVKnots(), UDeg, VDeg; if (InU) Usize++; @@ -1901,7 +1883,7 @@ void GeomLib::ExtendSurfByLength(occ::handle& Surface, UDeg = BS->UDegree(); } - // construction de la surface BSpline resultat + // Construct the resulting BSpline surface occ::handle Res = new (Geom_BSplineSurface)(NewPoles->Array2(), NewWeights->Array2(), UKnots, @@ -2062,12 +2044,7 @@ void GeomLib::AxeOfInertia(const NCollection_Array1& Points, Axe = TheAxe; } -//======================================================================= -// function : CanBeTreated -// purpose : indicates if the surface can be treated(if the conditions are -// filled) and need to be treated(if the surface hasn't been yet -// treated or if the surface is rational and non periodic) -//======================================================================= +//================================================================================================= static bool CanBeTreated(occ::handle& BSurf) @@ -2107,10 +2084,7 @@ static bool CanBeTreated(occ::handle& BSurf) return true; } -//======================================================================= -// class : law_evaluator -// purpose : useful to estimate the value of a function of 2 variables -//======================================================================= +//================================================================================================= class law_evaluator : public BSplSLib_EvaluatorFunction { @@ -2142,10 +2116,7 @@ private: GeomLib_DenominatorMultiplierPtr myDenominator; }; -//======================================================================= -// function : CheckIfKnotExists -// purpose : true if the knot already exists in the knot sequence -//======================================================================= +//================================================================================================= static bool CheckIfKnotExists(const NCollection_Array1& surface_knots, const double knot) @@ -2158,11 +2129,7 @@ static bool CheckIfKnotExists(const NCollection_Array1& surface_knots, c return false; } -//======================================================================= -// function : AddAKnot -// purpose : add a knot and its multiplicity to the knot sequence. This knot -// will be C2 and the degree is increased of deltasurface_degree -//======================================================================= +//================================================================================================= static void AddAKnot(const NCollection_Array1& knots, const NCollection_Array1& mults, @@ -2195,10 +2162,7 @@ static void AddAKnot(const NCollection_Array1& knots, } } -//======================================================================= -// function : Sort -// purpose : give the new flat knots(u or v) of the surface -//======================================================================= +//================================================================================================= static void BuildFlatKnot(const NCollection_Array1& surface_knots, const NCollection_Array1& surface_mults, @@ -2280,11 +2244,7 @@ static void BuildFlatKnot(const NCollection_Array1& surface_knot } } -//======================================================================= -// function : FunctionMultiply -// purpose : multiply the surface BSurf by a(u,v) (law_evaluator) on its -// numerator and denominator -//======================================================================= +//================================================================================================= static void FunctionMultiply(occ::handle& BSurf, const double knotmin, @@ -2351,7 +2311,7 @@ static void FunctionMultiply(occ::handle& BSurf, BSplCLib::KnotSequence(newuknots->ChangeArray1(), newumults->ChangeArray1(), newuflatknots); BSplCLib::KnotSequence(newvknots->ChangeArray1(), newvmults->ChangeArray1(), newvflatknots); - // POP pour WNT + // POP for WNT law_evaluator ev(&aDenominator); // BSplSLib::FunctionMultiply(law_evaluator, //multiplication BSplSLib::FunctionMultiply(ev, // multiplication @@ -2392,10 +2352,7 @@ static void FunctionMultiply(occ::handle& BSurf, 2 * (BSurf->VDegree())); } -//======================================================================= -// function : CancelDenominatorDerivative1D -// purpose : cancel the denominator derivative in one direction -//======================================================================= +//================================================================================================= static void CancelDenominatorDerivative1D(occ::handle& BSurf) @@ -2879,13 +2836,7 @@ bool GeomLib::IsBzVClosed(const occ::handle& S, return CompareWeightPoles(aPF, nullptr, aPL, nullptr, Tol2); } -//======================================================================= -// function : CompareWeightPoles -// purpose : Checks if thePoles1(i)*theW1(i) is equal to thePoles2(i)*theW2(i) -// with tolerance theTol. -// It is necessary for non-rational B-splines and Bezier curves -// to set theW1 and theW2 addresses to zero. -//======================================================================= +//================================================================================================= static bool CompareWeightPoles(const NCollection_Array1& thePoles1, const NCollection_Array1* const theW1, const NCollection_Array1& thePoles2, diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_CheckCurveOnSurface.cxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_CheckCurveOnSurface.cxx index 56960bb9b5..6d3a7f2f0f 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_CheckCurveOnSurface.cxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_CheckCurveOnSurface.cxx @@ -47,10 +47,8 @@ static int FillSubIntervals(const occ::handle& theCurve3d, int& theNbParticles, NCollection_Array1* const theSubIntervals = nullptr); -//======================================================================= -// class : GeomLib_CheckCurveOnSurface_TargetFunc -// purpose : Target function (to be minimized) -//======================================================================= +//================================================================================================= + class GeomLib_CheckCurveOnSurface_TargetFunc : public math_MultipleVarFunctionWithHessian { public: @@ -205,10 +203,8 @@ private: const double myLast; }; -//======================================================================= -// class : GeomLib_CheckCurveOnSurface_Local -// purpose : Created for parallelization possibility only -//======================================================================= +//================================================================================================= + class GeomLib_CheckCurveOnSurface_Local { public: @@ -427,13 +423,8 @@ void GeomLib_CheckCurveOnSurface::Perform( } } -//======================================================================= -// Function : FillSubIntervals -// purpose : Divides [theFirst, theLast] interval on parts -// in order to make searching-algorithm more precisely -// (fills theSubIntervals array). -// Returns number of subintervals. -//======================================================================= +//================================================================================================= + int FillSubIntervals(const occ::handle& theCurve3d, const occ::handle& theCurve2d, const double theFirst, @@ -638,10 +629,8 @@ int FillSubIntervals(const occ::handle& theCurve3d, return aNbSubIntervals; } -//======================================================================= -// class : PSO_Perform -// purpose : Searches minimal distance with math_PSO class -//======================================================================= +//================================================================================================= + bool PSO_Perform(GeomLib_CheckCurveOnSurface_TargetFunc& theFunction, const math_Vector& theParInf, const math_Vector& theParSup, @@ -688,10 +677,8 @@ bool PSO_Perform(GeomLib_CheckCurveOnSurface_TargetFunc& theFunction, return true; } -//======================================================================= -// class : MinComputing -// purpose : Performs computing minimal value -//======================================================================= +//================================================================================================= + bool MinComputing(GeomLib_CheckCurveOnSurface_TargetFunc& theFunction, const double theEpsilon, // 1.0e-3 const int theNbParticles, diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_DenominatorMultiplier.cxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_DenominatorMultiplier.cxx index 9daf3c1c45..15f821f73a 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_DenominatorMultiplier.cxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_DenominatorMultiplier.cxx @@ -37,10 +37,7 @@ GeomLib_DenominatorMultiplier::GeomLib_DenominatorMultiplier( myKnotFlatVector.SetValue(i, KnotVector(i)); } -//======================================================================= -// function : value -// purpose : give the value of a(UParameter,VParameter) -//======================================================================= +//================================================================================================= double GeomLib_DenominatorMultiplier::Value(const double UParameter, const double VParameter) const diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_IsPlanarSurface.cxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_IsPlanarSurface.cxx index d75926b8a8..47c3be07cb 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_IsPlanarSurface.cxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_IsPlanarSurface.cxx @@ -52,7 +52,7 @@ static bool Controle(const NCollection_Array1& Poles, if (DU.SquareMagnitude() > gp::Resolution() && DV.SquareMagnitude() > gp::Resolution()) { - // On prend DX le plus proche possible de DU + // Choose DX as close as possible to DU gp_Dir du(DU); double Angle1 = du.Angle(DX); double Angle2 = du.Angle(DY); diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_PolyFunc.cxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_PolyFunc.cxx index 419e55b127..3aac73a157 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_PolyFunc.cxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_PolyFunc.cxx @@ -20,7 +20,7 @@ GeomLib_PolyFunc::GeomLib_PolyFunc(const math_Vector& Coeffs) : myCoeffs(1, Coeffs.Length() - 1) -{ // On construit le polynome derive +{ // Construct the derivative polynomial for (int ii = 1; ii <= myCoeffs.Length(); ii++) myCoeffs(ii) = ii * Coeffs(ii + 1); } diff --git a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Tool.cxx b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Tool.cxx index c3f387326e..63ee6ac27b 100644 --- a/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Tool.cxx +++ b/src/ModelingData/TKGeomBase/GeomLib/GeomLib_Tool.cxx @@ -32,12 +32,7 @@ // value can't be too high to be not in conflict with previous rule. static const double PARTOLERANCE = 1.e-9; -//======================================================================= -// function : Parameter -// purpose : Get parameter on curve of given point -// return FALSE if point is far from curve than MaxDist -// or computation fails -//======================================================================= +//================================================================================================= bool GeomLib_Tool::Parameter(const occ::handle& Curve, const gp_Pnt& Point, @@ -82,12 +77,7 @@ bool GeomLib_Tool::Parameter(const occ::handle& Curve, return true; } -//======================================================================= -// function : Parameters -// purpose : Get parameters on surface of given point -// return FALSE if point is far from surface than MaxDist -// or computation fails -//======================================================================= +//================================================================================================= bool GeomLib_Tool::Parameters(const occ::handle& Surface, const gp_Pnt& Point, @@ -136,12 +126,7 @@ bool GeomLib_Tool::Parameters(const occ::handle& Surface, return true; } -//======================================================================= -// function : Parameter -// purpose : Get parameter on curve of given point -// return FALSE if point is far from curve than MaxDist -// or computation fails -//======================================================================= +//================================================================================================= bool GeomLib_Tool::Parameter(const occ::handle& Curve, const gp_Pnt2d& Point, @@ -289,19 +274,7 @@ private: }; } // namespace -//======================================================================= -// function : ComputeDeviation -// purpose : Computes parameter on curve (*thePrmOnCurve) where maximal deviation -// (maximal value of correspond function FuncSolveDeviation) is obtained. -// ALGORITHM! -// The point is looked for where 1st derivative of the function -// FuncSolveDeviation is equal to 0. It is made by iterative formula: -// -// U(n+1)=U(n) - D1/D2, -// -// where D1 and D2 are 1st and 2nd derivative of the function, computed in -// the point U(n). U(0) = theStartParameter. -//======================================================================= +//================================================================================================= double GeomLib_Tool::ComputeDeviation(const Geom2dAdaptor_Curve& theCurve, const double theFPar, const double theLPar, @@ -396,13 +369,7 @@ double GeomLib_Tool::ComputeDeviation(const Geom2dAdaptor_Curve& theCurve, return std::sqrt(aSqDefl); } -//======================================================================= -// function : ComputeDeviation -// purpose : Computes parameter on curve (*thePrmOnCurve) where maximal deviation -// (maximal value of correspond function FuncSolveDeviation) is obtained -// (fast but not precisely). -// math_PSO Algorithm is used. -//======================================================================= +//================================================================================================= double GeomLib_Tool::ComputeDeviation(const Geom2dAdaptor_Curve& theCurve, const double theFPar, const double theLPar, diff --git a/src/ModelingData/TKGeomBase/GeomTools/GeomTools_SurfaceSet.cxx b/src/ModelingData/TKGeomBase/GeomTools/GeomTools_SurfaceSet.cxx index f05a392433..92a83172d8 100644 --- a/src/ModelingData/TKGeomBase/GeomTools/GeomTools_SurfaceSet.cxx +++ b/src/ModelingData/TKGeomBase/GeomTools/GeomTools_SurfaceSet.cxx @@ -676,10 +676,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, gp_Ax3& A3) return IS; } -//======================================================================= -// function : operator>> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -689,10 +686,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -704,10 +698,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -720,10 +711,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -735,10 +723,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -751,10 +736,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -766,10 +748,7 @@ static Standard_IStream& operator>>(Standard_IStream& return IS; } -//======================================================================= -// function : operator>> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -781,10 +760,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -813,10 +789,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { @@ -882,10 +855,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -900,10 +870,7 @@ static Standard_IStream& operator>>(Standard_IStream& return IS; } -//======================================================================= -// function : operator>> -// purpose : -//======================================================================= +//================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) { diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_Curve.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_Curve.cxx index dbaaf3d4c3..74c44ec4e2 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_Curve.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_Curve.cxx @@ -20,21 +20,21 @@ #endif //---------------------------------------------------------------------- -//-- Differents constructeurs sont proposes qui correspondent aux -//-- polynomes en Z : +//-- Various constructors are provided corresponding to +//-- polynomials in Z: //-- A(std::sin(Theta),std::cos(Theta)) Z**2 //-- + B(std::sin(Theta),std::cos(Theta)) Z //-- + C(std::sin(Theta),std::cos(Theta)) //-- -//-- Une Courbe est definie sur un domaine +//-- A Curve is defined on a domain //-- -//-- Value retourne le point de parametre U(Theta),V(Theta) -//-- ou V est la solution du polynome A V**2 + B V + C -//-- (Selon les cas, on prend V+ ou V-) +//-- Value returns the point at parameter U(Theta),V(Theta) +//-- where V is the solution of the polynomial A V**2 + B V + C +//-- (Depending on the case, V+ or V- is taken) //-- -//-- D1u calcule le vecteur tangent a la courbe -//-- et retourne le booleen false si ce calcul ne peut -//-- pas etre mene a bien. +//-- D1u computes the tangent vector to the curve +//-- and returns false if this computation cannot +//-- be carried out. //---------------------------------------------------------------------- #include @@ -88,10 +88,10 @@ IntAna_Curve::IntAna_Curve() { } -//======================================================================= +//================================================================================================= // function : SetConeQuadValues -// purpose : Description de l intersection Cone Quadrique -//======================================================================= +// purpose : Description of the Cone-Quadric intersection +//================================================================================================= void IntAna_Curve::SetConeQuadValues(const gp_Cone& Cone, const double Qxx, const double Qyy, @@ -118,15 +118,15 @@ void IntAna_Curve::SetConeQuadValues(const gp_Cone& Cone, typequadric = GeomAbs_Cone; - TwoCurves = twocurves; //-- deux Z pour un meme parametre - TakeZPositive = takezpositive; //-- Prendre sur la courbe le Z Positif - //-- ( -B + std::sqrt()) et non (-B - std::sqrt()) + TwoCurves = twocurves; //-- two Z values for the same parameter + TakeZPositive = takezpositive; //-- Take the positive Z on the curve + //-- ( -B + std::sqrt()) and not (-B - std::sqrt()) - Z0Cte = Q1; //-- Attention On a Z?Cos std::cos(t) - Z0Sin = 0.0; //-- et Non 2 Z?Cos std::cos(t) !!! - Z0Cos = 0.0; //-- Ce pour tous les Parametres - Z0CosCos = 0.0; //-- ie pas de Coefficient 2 - Z0SinSin = 0.0; //-- devant les termes CS C S + Z0Cte = Q1; //-- Note: we have Z?Cos std::cos(t) + Z0Sin = 0.0; //-- and not 2 Z?Cos std::cos(t) !!! + Z0Cos = 0.0; //-- This applies to all parameters + Z0CosCos = 0.0; //-- i.e. no coefficient 2 + Z0SinSin = 0.0; //-- in front of the CS C S terms Z0CosSin = 0.0; Z1Cte = 2.0 * (UnSurTgAngle)*Qz; @@ -154,10 +154,10 @@ void IntAna_Curve::SetConeQuadValues(const gp_Cone& Cone, myLastParameter = (TwoCurves) ? DomainSup + DomainSup - DomainInf : DomainSup; } -//======================================================================= +//================================================================================================= // function : SetCylinderQuadValues -// purpose : Description de l intersection Cylindre Quadrique -//======================================================================= +// purpose : Description of the Cylinder-Quadric intersection +//================================================================================================= void IntAna_Curve::SetCylinderQuadValues(const gp_Cylinder& Cyl, const double Qxx, const double Qyy, @@ -180,8 +180,8 @@ void IntAna_Curve::SetCylinderQuadValues(const gp_Cylinder& Cyl, RCyl = Cyl.Radius(); typequadric = GeomAbs_Cylinder; - TwoCurves = twocurves; //-- deux Z pour un meme parametre - TakeZPositive = takezpositive; //-- Prendre sur la courbe le Z Positif + TwoCurves = twocurves; //-- two Z values for the same parameter + TakeZPositive = takezpositive; //-- Take the positive Z on the curve double RCylmul2 = RCyl + RCyl; //-- ( -B + std::sqrt()) Z0Cte = Q1; @@ -242,7 +242,7 @@ void IntAna_Curve::Domain(double& theFirst, double& theLast) const bool IntAna_Curve::IsConstant() const { - //-- ??? Pas facile de decider a la seule vue des Param. + //-- ??? Not easy to decide based only on the parameters. return (false); } @@ -394,7 +394,7 @@ gp_Pnt IntAna_Curve::Value(const double theta) bool IntAna_Curve::D1u(const double theta, gp_Pnt& Pt, gp_Vec& Vec) { - //-- Pour detecter le cas ou le calcul est impossible + //-- To detect the case where the computation is impossible double A, B, C, U, V, sint, cost, SigneSqrtDis; A = 0.0; B = 0.0; @@ -410,7 +410,7 @@ bool IntAna_Curve::D1u(const double theta, gp_Pnt& Pt, gp_Vec& Vec) if (std::abs(A) < 1.0e-7 || std::abs(SigneSqrtDis) < 1.0e-10) return (false); - //-- Approximation de la derivee (mieux que le calcul mathematique!) + //-- Approximation of the derivative (better than the mathematical computation!) double dtheta = (DomainSup - DomainInf) * 1.0e-6; double theta2 = theta + dtheta; if ((theta2 < DomainInf) || ((theta2 > DomainSup) && (!TwoCurves)) @@ -426,13 +426,13 @@ bool IntAna_Curve::D1u(const double theta, gp_Pnt& Pt, gp_Vec& Vec) return (true); } -//======================================================================= +//================================================================================================= // function : FindParameter // purpose : Projects P to the ALine. Returns the list of parameters as a results // of projection. // Sometimes aline can be self-intersected line (see bug #29807 where // ALine goes through the cone apex). -//======================================================================= +//================================================================================================= void IntAna_Curve::FindParameter(const gp_Pnt& theP, NCollection_List& theParams) const { const double aPIpPI = M_PI + M_PI, anEpsAng = 1.e-8, diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntConicQuad.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntConicQuad.cxx index c2f44eaf88..ef52b59ca1 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntConicQuad.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntConicQuad.cxx @@ -71,16 +71,16 @@ PERFORM(const gp_Lin& L, const IntAna_Quadric& Quad) done = inquadric = parallel = false; //---------------------------------------------------------------------- - //-- Substitution de x=t Lx + Lx0 ( exprime dans ) - //-- y=t Ly + Ly0 ( le systeme de coordonnees ) - //-- z=t Lz + Lz0 ( canonique ) + //-- Substitution of x=t Lx + Lx0 ( expressed in ) + //-- y=t Ly + Ly0 ( the canonical coordinate ) + //-- z=t Lz + Lz0 ( system ) //-- - //-- Dans Qxx x**2 + Qyy y**2 + Qzz z**2 + //-- Into Qxx x**2 + Qyy y**2 + Qzz z**2 //-- + 2 ( Qxy x y + Qxz x z + Qyz y z ) //-- + 2 ( Qx x + Qy y + Qz z ) //-- + QCte //-- - //-- Done un polynome en t : A2 t**2 + A1 t + A0 avec : + //-- Gives a polynomial in t: A2 t**2 + A1 t + A0 with: //---------------------------------------------------------------------- double Lx0, Ly0, Lz0, Lx, Ly, Lz; @@ -140,15 +140,15 @@ PERFORM(const gp_Circ& C, const IntAna_Quadric& Quad) double Qxx, Qyy, Qzz, Qxy, Qxz, Qyz, Qx, Qy, Qz, QCte; //---------------------------------------------------------------------- - //-- Dans le repere liee a C.Position() : + //-- In the reference frame associated with C.Position(): //-- xC = R * Cos[t] //-- yC = R * Sin[t] //-- zC = 0 //-- - //-- On exprime la quadrique dans ce repere et on substitue - //-- xC,yC et zC a x,y et z + //-- We express the quadric in this frame and substitute + //-- xC, yC and zC for x, y and z //-- - //-- On Obtient un polynome en Cos[t] et Sin[t] de degre 2 + //-- We obtain a polynomial in Cos[t] and Sin[t] of degree 2 //---------------------------------------------------------------------- done = inquadric = parallel = false; @@ -210,15 +210,15 @@ PERFORM(const gp_Elips& E, const IntAna_Quadric& Quad) done = inquadric = parallel = false; //---------------------------------------------------------------------- - //-- Dans le repere liee a E.Position() : + //-- In the reference frame associated with E.Position(): //-- xE = R * Cos[t] //-- yE = r * Sin[t] //-- zE = 0 //-- - //-- On exprime la quadrique dans ce repere et on substitue - //-- xE,yE et zE a x,y et z + //-- We express the quadric in this frame and substitute + //-- xE, yE and zE for x, y and z //-- - //-- On Obtient un polynome en Cos[t] et Sin[t] de degre 2 + //-- We obtain a polynomial in Cos[t] and Sin[t] of degree 2 //---------------------------------------------------------------------- Quad.Coefficients(Qxx, Qyy, Qzz, Qxy, Qxz, Qyz, Qx, Qy, Qz, QCte); @@ -278,15 +278,15 @@ PERFORM(const gp_Parab& P, const IntAna_Quadric& Quad) done = inquadric = parallel = false; //---------------------------------------------------------------------- - //-- Dans le repere liee a P.Position() : + //-- In the reference frame associated with P.Position(): //-- xP = y*y / (2 p) //-- yP = y //-- zP = 0 //-- - //-- On exprime la quadrique dans ce repere et on substitue - //-- xP,yP et zP a x,y et z + //-- We express the quadric in this frame and substitute + //-- xP, yP and zP for x, y and z //-- - //-- On Obtient un polynome en y de degre 4 + //-- We obtain a polynomial in y of degree 4 //---------------------------------------------------------------------- Quad.Coefficients(Qxx, Qyy, Qzz, Qxy, Qxz, Qyz, Qx, Qy, Qz, QCte); @@ -340,15 +340,15 @@ PERFORM(const gp_Hypr& H, const IntAna_Quadric& Quad) done = inquadric = parallel = false; //---------------------------------------------------------------------- - //-- Dans le repere liee a P.Position() : + //-- In the reference frame associated with H.Position(): //-- xH = R Ch[t] //-- yH = r Sh[t] //-- zH = 0 //-- - //-- On exprime la quadrique dans ce repere et on substitue - //-- xP,yP et zP a x,y et z + //-- We express the quadric in this frame and substitute + //-- xH, yH and zH for x, y and z //-- - //-- On Obtient un polynome en Exp[t] de degre 4 + //-- We obtain a polynomial in Exp[t] of degree 4 //---------------------------------------------------------------------- Quad.Coefficients(Qxx, Qyy, Qzz, Qxy, Qxz, Qyz, Qx, Qy, Qz, QCte); diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntLinTorus.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntLinTorus.cxx index 08cd25204c..ba0bfd0b0f 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntLinTorus.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntLinTorus.cxx @@ -13,8 +13,8 @@ // commercial license or contractual agreement. //-- IntAna_IntLinTorus.cxx -//-- lbr : la methode avec les coefficients est catastrophique. -//-- Mise en place d'une vraie solution. +//-- lbr : the method using coefficients is catastrophic. +//-- Implementation of a proper solution. #include #include @@ -52,7 +52,7 @@ void IntAna_IntLinTorus::Perform(const gp_Lin& L, const gp_Torus& T) gp_Pnt NewPL(PL.XYZ() + ParamOfNewPL * DL.XYZ()); //-------------------------------------------------------------- - //-- Coefficients de la ligne dans le repere du cone + //-- Coefficients of the line in the torus reference frame //-- gp_Trsf trsf; trsf.SetTransformation(T.Position()); diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx index 342e5056b6..72ca695914 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx @@ -115,10 +115,10 @@ static void AddSpecialPoints(const IntAna_Quadric& theQuad, } } -//======================================================================= +//================================================================================================= // class : TrigonometricRoots -// purpose: Classe Interne (Donne des racines classees d un polynome trigo) -//====================================================================== +// purpose: Internal class (provides sorted roots of a trigonometric polynomial) +//================================================================================================= class TrigonometricRoots { @@ -238,7 +238,7 @@ TrigonometricRoots::TrigonometricRoots(const double CC, } } // - //-- La recherche directe donne n importe quoi. + //-- The direct search gives unreliable results. SvNbRoots = NbRoots; for (i = 0; i < SvNbRoots; ++i) { @@ -282,12 +282,11 @@ TrigonometricRoots::TrigonometricRoots(const double CC, } } -//======================================================================= +//================================================================================================= // class : MyTrigonometricFunction -// purpose : -// Classe interne : Donne Value et Derivative sur un polynome -// trigonometrique -//====================================================================== +// purpose : Internal class: provides Value and Derivative for a +// trigonometric polynomial +//================================================================================================= class MyTrigonometricFunction { @@ -338,10 +337,10 @@ public: }; ////////// -//======================================================================= +//================================================================================================= // function : IntAna_IntQuadQuad::IntAna_IntQuadQuad -// purpose : C o n s t r u c t e u r v i d e -//======================================================================= +// purpose : Empty constructor +//================================================================================================= IntAna_IntQuadQuad::IntAna_IntQuadQuad() { done = false; @@ -355,10 +354,10 @@ IntAna_IntQuadQuad::IntAna_IntQuadQuad() memset(previouscurve, 0, sizeof(previouscurve)); } -//======================================================================= +//================================================================================================= // function : IntAna_IntQuadQuad::IntAna_IntQuadQuad -// purpose : I n t e r s e c t i o n C y l i n d r e Q u a d r i q u e -//======================================================================= +// purpose : Intersection Cylinder - Quadric +//================================================================================================= IntAna_IntQuadQuad::IntAna_IntQuadQuad(const gp_Cylinder& Cyl, const IntAna_Quadric& Quad, const double Tol) @@ -369,10 +368,10 @@ IntAna_IntQuadQuad::IntAna_IntQuadQuad(const gp_Cylinder& Cyl, Perform(Cyl, Quad, Tol); } -//======================================================================= +//================================================================================================= // function : Perform -// purpose : I n t e r s e c t i o n C y l i n d r e Q u a d r i q u e -//======================================================================= +// purpose : Intersection Cylinder - Quadric +//================================================================================================= void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Quad, const double) { done = true; @@ -399,7 +398,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q RCyl = Cyl.Radius(); aRealEpsilon = RealEpsilon(); //---------------------------------------------------------------------- - //-- Coefficients de la quadrique : + //-- Coefficients of the quadric: //-- 2 2 2 //-- Qxx x + Qyy y + Qzz z + 2 ( Qxy x y + Qxz x z + Qyz y z ) //-- + 2 ( Qx x + Qy y + Qz z ) + Q1 @@ -407,21 +406,21 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q Quad.Coefficients(Qxx, Qyy, Qzz, Qxy, Qxz, Qyz, Qx, Qy, Qz, Q1); //---------------------------------------------------------------------- - //-- Ecriture des Coefficients de la Quadrique dans le repere liee - //-- au Cylindre + //-- Writing the quadric coefficients in the reference frame + //-- associated with the Cylinder //-- Cyl.Position() -> Ax2 //---------------------------------------------------------------------- Quad.NewCoefficients(Qxx, Qyy, Qzz, Qxy, Qxz, Qyz, Qx, Qy, Qz, Q1, Cyl.Position()); //---------------------------------------------------------------------- - //-- Parametrage du Cylindre Cyl : + //-- Parameterization of Cylinder Cyl: //-- X = Rcyl * std::cos(Theta) //-- Y = Rcyl * std::sin(Theta) //-- Z = Z //---------------------------------------------------------------------- - //-- Donne une Equation de la forme : + //-- Gives an equation of the form: //-- F(std::sin(Theta),std::cos(Theta),ZCyl) = 0 - //-- (Equation du second degre en ZCyl) + //-- (Quadratic equation in ZCyl) //-- ZCyl**2 CoeffZ2(Theta) + ZCyl CoeffZ1(Theta) + CoeffZ0(Theta) //---------------------------------------------------------------------- //-- CoeffZ0 = Q1 + 2*Qx*RCyl*Cos[Theta] + Qxx*RCyl^2*Cos[Theta]^2 @@ -429,13 +428,13 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q //-- Qyy*RCyl^2*Sin[Theta]^2; //-- CoeffZ1 =2.0 * ( Qz + RCyl*(Qxz*Cos[Theta] + Sin[Theta]*Qyz)) ; //-- CoeffZ2 = Qzz; - //-- !!!! Attention , si on norme sur Qzz pour detecter le cas 1er degre + //-- !!!! Warning: if normalizing by Qzz to detect the linear case //---------------------------------------------------------------------- - //-- On Cherche Les Racines en Theta du discriminant de cette equation : + //-- We search for the Theta roots of the discriminant of this equation: //-- DIS(Theta) = C_1 + C_SS std::sin()**2 + C_CC std::cos()**2 + 2 C_SC std::sin() std::cos() //-- + 2 C_S std::sin() + 2 C_C std::cos() //-- - //-- Si Qzz = 0 Alors On Resout Z=Fct(Theta) sur le domaine de Theta + //-- If Qzz = 0 Then we solve Z=Fct(Theta) on the Theta domain //---------------------------------------------------------------------- if (std::abs(Qzz) < myEpsilonCoeffPolyNull) @@ -446,7 +445,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q else { // #0 //---------------------------------------------------------------------- - //--- Cas ou F(Z,Theta) est du second degre en Z ---- + //--- Case where F(Z,Theta) is quadratic in Z ---- //---------------------------------------------------------------------- R2 = RCyl * RCyl; @@ -506,16 +505,16 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q else { // #1 //--------------------------------------------------------------- - //-- La Recherche des Zero de DIS a reussi + //-- The search for zeros of DIS has succeeded //--------------------------------------------------------------- int nbsolDIS = PolDIS.NbSolutions(); if (nbsolDIS == 0) { //-------------------------------------------------------------- - //-- Le Discriminant a un signe constant : + //-- The Discriminant has a constant sign: //-- - //-- Si Positif ---> 2 Courbes - //-- Sinon ---> Pas de solution + //-- If Positive ---> 2 Curves + //-- Otherwise ---> No solution //-------------------------------------------------------------- if (MTF.Value(M_PI) >= -aRealEpsilon) { @@ -558,7 +557,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q else { //------------------------------------------------------------ - //-- Le Discriminant est toujours Negatif + //-- The Discriminant is always negative //------------------------------------------------------------ NbCurves = 0; } @@ -566,23 +565,23 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q else { // #2 //------------------------------------------------------------ - //-- Le Discriminant a des racines - //-- (Le Discriminant est une fonction periodique donc ... ) + //-- The Discriminant has roots + //-- (The Discriminant is a periodic function, hence ...) //------------------------------------------------------------ if (nbsolDIS == 1) { //------------------------------------------------------------ - //-- Point de Tangence pour ce Theta Solution - //-- Si Signe de Discriminant >=0 pour tout Theta - //-- Alors - //-- Courbe Solution pour la partie Positive - //-- entre les 2 racines ( Ici Tout le domaine ) - //-- Sinon Seulement un point Tangent + //-- Tangent point for this Theta solution + //-- If Discriminant sign >= 0 for all Theta + //-- Then + //-- Solution curve for the positive part + //-- between the 2 roots (here the entire domain) + //-- Otherwise only a tangent point //------------------------------------------------------------ if (MTF.Value(PolDIS.Value(1) + M_PI) >= -aRealEpsilon) { //------------------------------------------------------------ - //-- On a Un Point de Tangence + Une Courbe Solution + //-- We have a tangent point + a solution curve //------------------------------------------------------------ TheCurve[0].SetCylinderQuadValues(Cyl, Qxx, @@ -622,7 +621,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q else { //------------------------------------------------------------ - //-- On a simplement un Point de tangence + //-- We simply have a tangent point //------------------------------------------------------------ //--double Theta = PolDIS(1); //--double SecPar= -0.5 * MTFZ1.Value(Theta) / MTFZ2.Value(Theta); @@ -635,22 +634,22 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q else { // #3 //------------------------------------------------------------ - //-- On detecte : Les racines double - //-- : Les Zones Positives [Modulo 2 PI] - //-- Les Courbes solutions seront obtenues pour les valeurs - //-- de Theta ou Discriminant(Theta) > 0 (>=0? en limite) - //-- Par la resolution de l equation implicite avec Theta fixe + //-- We detect : Double roots + //-- : Positive zones [modulo 2 PI] + //-- The solution curves will be obtained for the values + //-- of Theta where Discriminant(Theta) > 0 (>=0? at boundary) + //-- By solving the implicit equation with fixed Theta //------------------------------------------------------------ - //-- Si tout est solution, Alors on est sur une iso - //-- Ce cas devrait etre traite en amont + //-- If everything is a solution, then we are on an iso + //-- This case should be handled upstream //------------------------------------------------------------ - //-- On construit la fonction permettant connaissant un Theta - //-- de calculer les Z+ et Z- Correspondants. + //-- We build the function that, given a Theta, computes + //-- the corresponding Z+ and Z-. //------------------------------------------------------------- //------------------------------------------------------------- - //-- Calcul des Intervalles ou Discriminant >=0 - //-- On a au plus nbsol intervalles ( en fait 2 ) + //-- Computation of intervals where Discriminant >= 0 + //-- At most nbsol intervals (in practice 2) //-- (1,2) (2,3) .. (nbsol,1+2PI) //------------------------------------------------------------- int i; @@ -665,8 +664,8 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q Theta1 = PolDIS.Value(i); Theta2 = (i < nbsolDIS) ? PolDIS.Value(i + 1) : (PolDIS.Value(1) + PIpPI); //---------------------------------------------------------------- - //-- On detecte les racines doubles - //-- Si il n y a que 2 racines alors on prend tout l interval + //-- We detect double roots + //-- If there are only 2 roots then we take the entire interval //---------------------------------------------------------------- if (std::abs(Theta2 - Theta1) <= aRealEpsilon) { @@ -735,23 +734,23 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl, const IntAna_Quadric& Q //-- i++; } else - { //-- On evite les pbs numeriques (Tout est du meme signe entre les racines) + { //-- We avoid numerical issues (everything has the same sign between the roots) qwet = MTF.Value(0.5 * (Theta1 + Theta2)) + MTF.Value(0.4 * Theta1 + 0.6 * Theta2) + MTF.Value(0.6 * Theta1 + 0.4 * Theta2); if (qwet >= 0.) { //------------------------------------------------------------ - //-- On est positif a partir de Theta1 - //-- L intervalle Theta1,Theta2 est retenu + //-- We are positive starting from Theta1 + //-- The interval Theta1, Theta2 is retained //------------------------------------------------------------ - //-- le 8 octobre 1997 : - //-- PB: Racine en 0 pi/2 pi/2 et 2pi - //-- On cree 2 courbes : 0 -> pi/2 2zpartheta - //-- pi/2 -> 2pi 2zpartheta + //-- October 8, 1997: + //-- PB: Root at 0 pi/2 pi/2 and 2pi + //-- We create 2 curves: 0 -> pi/2 2zpertheta + //-- pi/2 -> 2pi 2zpertheta //-- - //-- la courbe 0 pi/2 passe par le double pt de tangence pi/2 - //-- il faut donc couper cette courbe en 2 + //-- The curve 0 pi/2 passes through the double tangent point pi/2 + //-- so this curve must be split in 2 //-- Theta3 = ((i + 1) < nbsolDIS) ? PolDIS.Value(i + 2) : (PolDIS.Value(1) + PIpPI); // ft @@ -932,7 +931,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad { if (!nbsol1) { - //-- B(t)*z + C(t) = 0 avec C(t) != 0 + //-- B(t)*z + C(t) = 0 with C(t) != 0 TheCurve[0].SetConeQuadValues(Cone, Qxx, Qyy, @@ -961,7 +960,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad } else { - //-- Pas de Solutions + //-- No solutions } } return; @@ -970,7 +969,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad // else { //#5 // // 2 - //-- f(z,t)=A(t)*z + B(t)*z + C(t)=0 avec A n est pas toujours nul + //-- f(z,t)=A(t)*z + B(t)*z + C(t)=0 where A is not always zero // // 2 // 3. Try to explore s.c. Discriminant: D(t)=B(t)-4*A(t)*C(t) => Pol @@ -1047,13 +1046,13 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad // if (!nbsol && (MTF.Value(M_PI) < 0.)) { - //-- Discriminant signe constant negatif + //-- Discriminant has constant negative sign return; } // else {//# 3 // - //-- On Traite le cas : Discriminant(t) > 0 pour tout t en simulant 1 - // racine double en 0 + //-- We handle the case: Discriminant(t) > 0 for all t by simulating + // a double root at 0 bool DiscriminantConstantPositif = false; if (!nbsol) { @@ -1061,8 +1060,8 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad DiscriminantConstantPositif = true; } //---------------------------------------------------------------------- - //-- Le discriminant admet au moins une racine ( -> Point de Tangence ) - //-- ou est constant positif. + //-- The discriminant has at least one root ( -> Tangent Point ) + //-- or is constant positive. //---------------------------------------------------------------------- for (i = 1; i <= nbsol; ++i) { @@ -1090,15 +1089,15 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad continue; } //--------------------------------------------------------------------- - //-- On a des Solutions entre Theta1 et Theta 2 + //-- We have solutions between Theta1 and Theta2 //--------------------------------------------------------------------- //--------------------------------------------------------------------- - //-- On Subdivise si necessaire Theta1-->Theta2 - //-- en Theta1-->t1 t1--->t2 ... tn--->Theta2 - //-- ou t1,t2,...tn sont des racines de A(t) + //-- We subdivide if necessary Theta1-->Theta2 + //-- into Theta1-->t1 t1--->t2 ... tn--->Theta2 + //-- where t1,t2,...tn are roots of A(t) //-- - //-- Seule la courbe Z_NEGATIF est affectee + //-- Only the Z_NEGATIF curve is affected //---------------------------------------------------------------------- bool RacinesdePolZ2DansTheta1Theta2; int i2; @@ -1126,7 +1125,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad if (!RacinesdePolZ2DansTheta1Theta2) { //-------------------------------------------------------------------- - //-- Pas de Branches Infinies + //-- No infinite branches TheCurve[NbCurves].SetConeQuadValues(Cone, Qxx, Qyy, @@ -1192,7 +1191,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad if (to < NewMax && to > NewMin) { //----------------------------------------------------------------- - //-- On coupe au moins une fois le domaine Theta1 Theta2 + //-- We split at least once the domain Theta1 Theta2 //----------------------------------------------------------------- NoChanges = false; TheCurve[NbCurves].SetConeQuadValues(Cone, @@ -1296,8 +1295,8 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad Z_POSITIF); //------------------------------------------------------------ //-- A == 0 - //-- Si B < 0 Alors Infini sur Z+ - //-- Sinon Infini sur Z- + //-- If B < 0 Then infinity on Z+ + //-- Otherwise infinity on Z- //------------------------------------------------------------ if (PolZ2.IsARoot(Theta1)) { @@ -1361,8 +1360,8 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad Z_POSITIF); //------------------------------------------------------------ //-- A == 0 - //-- Si B < 0 Alors Infini sur Z+ - //-- Sinon Infini sur Z- + //-- If B < 0 Then infinity on Z+ + //-- Otherwise infinity on Z- //------------------------------------------------------------ if (PolZ2.IsARoot(NewMin)) { @@ -1396,18 +1395,17 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone, const IntAna_Quadric& Quad InternalSetNextAndPrevious(); } -//======================================================================= -// function :InternalSetNextAndPrevious -// purpose : -//-- Raccordement des courbes bout a bout -//-- - Utilisation du champ : IsFirstOpen -//-- - IsLastOpen -//-- Pas de verification si ces champs retournent Vrai. +//================================================================================================= +// function : InternalSetNextAndPrevious +// purpose : End-to-end connection of curves +//-- - Uses the field: IsFirstOpen +//-- - IsLastOpen +//-- No verification if these fields return True. //-- //-- -//-- 1: Test de Fin(C1) = Debut(C2) ->N(C1) et P(C2) -//-- 2: Debut(C1) = Fin(C2) ->P(C1) et N(C2) -//======================================================================= +//-- 1: Test if End(C1) = Start(C2) ->N(C1) and P(C2) +//-- 2: Start(C1) = End(C2) ->P(C1) and N(C2) +//================================================================================================= void IntAna_IntQuadQuad::InternalSetNextAndPrevious() { bool NotLastOpenC2, NotFirstOpenC2; diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx index fa62d81a2d..1adc95d256 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx @@ -64,7 +64,7 @@ static double EstimDist(const gp_Cone& theCon1, const gp_Cone& theCon2); //======================================================================= // class : AxeOperator -// purpose : O p e r a t i o n s D i v e r s e s s u r d e s A x 1 +// purpose : V a r i o u s O p e r a t i o n s o n A x 1 //======================================================================= class AxeOperator { @@ -203,7 +203,7 @@ AxeOperator::AxeOperator(const gp_Ax1& A1, } else { - ptintersect.SetCoord(0, 0, 0); //-- Pour eviter des FPE + ptintersect.SetCoord(0, 0, 0); //-- To avoid FPE } } @@ -212,7 +212,7 @@ AxeOperator::AxeOperator(const gp_Ax1& A1, void AxeOperator::Distance(double& dist, double& Param1, double& Param2) { gp_Vec O1O2(Axe1.Location(), Axe2.Location()); - gp_Dir U1 = Axe1.Direction(); //-- juste pour voir. + gp_Dir U1 = Axe1.Direction(); //-- just to see. gp_Dir U2 = Axe2.Direction(); gp_Dir N = U1.Crossed(U2); @@ -223,9 +223,9 @@ void AxeOperator::Distance(double& dist, double& Param1, double& Param2) Param1 = Det33(O1O2.X(), U2.X(), N.X(), O1O2.Y(), U2.Y(), N.Y(), O1O2.Z(), U2.Z(), N.Z()) / (-D); //------------------------------------------------------------ - //-- On resout P1 * Dir1 + P2 * Dir2 + d * N = O1O2 - //-- soit : Segment perpendiculaire : O1+P1 D1 - //-- O2-P2 D2 + //-- We solve P1 * Dir1 + P2 * Dir2 + d * N = O1O2 + //-- i.e.: Perpendicular segment: O1+P1 D1 + //-- O2-P2 D2 Param2 = Det33(U1.X(), O1O2.X(), N.X(), U1.Y(), O1O2.Y(), N.Y(), U1.Z(), O1O2.Z(), N.Z()) / (D); } } @@ -559,7 +559,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, P.Coefficients(A, B, C, D); axec.Location().Coord(X, Y, Z); - // la distance axe/plan est evaluee a l origine de l axe. + // The axis/plane distance is evaluated at the origin of the axis. dist = A * X + B * Y + C * Z + D; double tolang = Tolang; @@ -589,8 +589,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, if (inter.IsParallel()) { - // Le resultat de l intersection Plan-Cylindre est de type droite. - // il y a 1 ou 2 droites + // The result of the Plane-Cylinder intersection is of line type. + // There are 1 or 2 lines typeres = IntAna_Line; omega.SetCoord(X - dist * A, Y - dist * B, Z - dist * C); @@ -623,7 +623,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, { nbint = 2; h = std::sqrt(radius * radius - dist * dist); - axey = axec.Direction().XYZ().Crossed(normp); // axey est normalise + axey = axec.Direction().XYZ().Crossed(normp); // axey is normalized pt1.SetXYZ(omega - h * axey); pt2.SetXYZ(omega + h * axey); @@ -659,8 +659,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, } // else nbint = 0 - // debug JAG : le nbint = 0 doit etre remplace par typeres = IntAna_Empty - // et ne pas etre seulement supprime... + // debug JAG : nbint = 0 should be replaced by typeres = IntAna_Empty + // and not just be removed... else { @@ -668,8 +668,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, } } else - { // Il y a un point d intersection. C est le centre du cercle - // ou de l ellipse solution. + { // There is one intersection point. It is the center of the circle + // or of the solution ellipse. nbint = 1; axey = normp.Crossed(axec.Direction().XYZ()); @@ -680,22 +680,22 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, if (sint < Tol / radius) { - // on construit un cercle avec comme axes X et Y ceux du cylindre + // Construct a circle with the X and Y axes of the cylinder typeres = IntAna_Circle; - dir1 = axec.Direction(); // axe Z + dir1 = axec.Direction(); // Z axis dir2 = Cl.Position().XDirection(); param1 = radius; } else { - // on construit un ellipse + // construct an ellipse typeres = IntAna_Ellipse; cost = std::abs(axec.Direction().XYZ().Dot(normp)); axex = axey.Crossed(normp); - dir1.SetXYZ(normp); // Modif ds ce bloc + dir1.SetXYZ(normp); // Modified in this block dir2.SetXYZ(axex); param1 = radius / cost; @@ -754,11 +754,11 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, gp_Pnt apex(Co.Apex()); apex.Coord(X, Y, Z); - dist = A * X + B * Y + C * Z + D; // distance signee sommet du cone/ Plan + dist = A * X + B * Y + C * Z + D; // signed distance from cone apex to plane gp_XYZ normp = P.Axis().Direction().XYZ(); if (!P.Direct()) - { //-- lbr le 14 jan 97 + { //-- lbr 14 Jan 97 normp.Reverse(); } @@ -770,7 +770,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, cosa = std::cos(angl); sina = std::abs(std::sin(angl)); - // Angle entre la normale au plan et l axe du cone, ramene entre 0. et PI/2. + // Angle between the plane normal and the cone axis, brought between 0 and PI/2. sint = axey.Modulus(); cost = std::abs(Co.Axis().Direction().XYZ().Dot(normp)); @@ -866,7 +866,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, param1 = deltacenter * sina * sina; } else if (sint < Tolang) - { // plan perpendiculaire a l axe + { // plane perpendicular to the axis typeres = IntAna_Circle; nbint = 1; pt1 = center; @@ -889,7 +889,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, param1bis = param2bis = cost * sina * distance / std::sqrt(sina * sina - cost * cost); } else - { // on a alors cost > sina + { // here cost > sina typeres = IntAna_Ellipse; nbint = 1; double radius = cost * sina * cosa * distance / (cost * cost - sina * sina); @@ -904,9 +904,9 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, } } - //-- On a du mal a gerer plus loin (Value ProjLib, Params ... ) - //-- des hyperboles trop bizarres - //-- On retourne False -> Traitement par biparametree + //-- Difficult to handle further (Value ProjLib, Params ... ) + //-- hyperbolas that are too extreme + //-- Return False -> Treatment by biparametric method static double EllipseLimit = 1.0E+9; // OCC513(apo) 1000000 static double HyperbolaLimit = 2.0E+6; // OCC537(apo) 50000 if (typeres == IntAna_Ellipse && nbint >= 1) @@ -999,7 +999,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, const gp_Sphere& S) dir2 = P.Position().XDirection(); param1 = std::sqrt(radius * radius - dist * dist); } - param2bis = 0.0; //-- pour eviter param2bis not used .... + param2bis = 0.0; //-- to avoid param2bis unused warning done = true; } @@ -2034,7 +2034,7 @@ void IntAna_QuadQuadGeo::Perform(const gp_Sphere& Sph1, const gp_Sphere& Sph2, c double R2 = Sph2.Radius(); double Rmin, Rmax; typeres = IntAna_Empty; - param2bis = 0.0; //-- pour eviter param2bis not used .... + param2bis = 0.0; //-- to avoid param2bis unused warning if (R1 > R2) { diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_Quadric.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_Quadric.cxx index 99aabb1b04..207513687a 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_Quadric.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_Quadric.cxx @@ -26,7 +26,7 @@ //---------------------------------------------------------------------- //-- -//-- Equation generale des quadriques : +//-- General equation of quadrics: //-- //-- f(x,y,z) = CXX X**2 + CYY Y**2 + CZZ Z**2 //-- @@ -39,7 +39,7 @@ //-- //---------------------------------------------------------------------- //---------------------------------------------------------------------- -//-- Quadric Vide +//-- Empty Quadric //---------------------------------------------------------------------- IntAna_Quadric::IntAna_Quadric() { @@ -50,10 +50,10 @@ IntAna_Quadric::IntAna_Quadric() //---------------------------------------------------------------------- //-- Pln -----> Quadric //-- -//-- Coefficients sur gp_Pln retourne A,B,C,D -//-- avec f(x,y,z) = A x + B y + C z + D +//-- Coefficients from gp_Pln return A,B,C,D +//-- with f(x,y,z) = A x + B y + C z + D //-- -//-- que l on identifie a 2( CX x + CY y + CZ z ) + CCte +//-- which we identify as 2( CX x + CY y + CZ z ) + CCte //---------------------------------------------------------------------- void IntAna_Quadric::SetQuadric(const gp_Pln& P) { @@ -117,7 +117,7 @@ IntAna_Quadric::IntAna_Quadric(const gp_Sphere& Sph) } //---------------------------------------------------------------------- -//-- Returns the Coefficients of the Quadric +//-- Returns the coefficients of the quadric //---------------------------------------------------------------------- void IntAna_Quadric::Coefficients(double& _CXX, double& _CYY, @@ -143,7 +143,7 @@ void IntAna_Quadric::Coefficients(double& _CXX, } //---------------------------------------------------------------------- -//-- Computes the Coefficients in a new coordinate system +//-- Computes the coefficients in a new coordinate system //---------------------------------------------------------------------- void IntAna_Quadric::NewCoefficients(double& _CXX, double& _CYY, diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_1.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_1.cxx index 052402fb59..32c8d9ffec 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_1.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_1.cxx @@ -75,16 +75,16 @@ void IntAna2d_AnaIntersection::Perform(const gp_Lin2d& L1, const gp_Lin2d& L2) double denom = be2 - rap * be1; if (std::abs(denom) <= RealEpsilon()) - { // Directions confondues + { // Coincident directions para = true; nbp = 0; if (std::abs(ga2 - rap * ga1) <= RealEpsilon()) - { // Droites confondues + { // Coincident lines iden = true; empt = false; } else - { // Droites paralleles + { // Parallel lines iden = false; empt = true; } diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_2.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_2.cxx index 0b0c2c2fcb..de03b38459 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_2.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_2.cxx @@ -30,22 +30,22 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& C1, const gp_Circ2d& C2) double dif = std::abs(R1 - R2); if (d <= RealEpsilon()) - { // Cercle concentriques + { // Concentric circles para = true; nbp = 0; if (dif <= RealEpsilon()) - { // Cercles confondus + { // Coincident circles empt = false; iden = true; } else - { // Cercles paralleles + { // Parallel circles empt = true; iden = false; } } else if ((d - sum) > Epsilon(sum)) - { // Cercles exterieurs l un a l autre + { // Circles exterior to each other // et No solution empt = true; para = false; @@ -53,7 +53,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& C1, const gp_Circ2d& C2) nbp = 0; } else if (std::abs(d - sum) <= Epsilon(sum)) - { // Cercles exterieurs et tangents + { // Externally tangent circles empt = false; para = false; iden = false; @@ -64,12 +64,12 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& C1, const gp_Circ2d& C2) double XS = (C1.Location().X() * R2 + C2.Location().X() * R1) / sum; double YS = (C1.Location().Y() * R2 + C2.Location().Y() * R1) / sum; - double ang1 = Ox1.Angle(ax); // Resultat entre -PI et +PI + double ang1 = Ox1.Angle(ax); // Result between -PI and +PI double ang2 = Ox2.Angle(ax) + M_PI; if (ang1 < 0) { ang1 = 2 * M_PI + ang1; - } // On revient entre 0 et 2PI + } // Normalize to range [0, 2PI] lpnt[0].SetValue(XS, YS, ang1, ang2); } else if (((sum - d) > Epsilon(sum)) && ((d - dif) > Epsilon(d + dif))) @@ -81,8 +81,8 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& C1, const gp_Circ2d& C2) gp_Vec2d ax(C1.Location(), C2.Location()); gp_Vec2d Ox1(C1.XAxis().Direction()); gp_Vec2d Ox2(C2.XAxis().Direction()); - double ref1 = Ox1.Angle(ax); // Resultat entre -PI et +PI - double ref2 = Ox2.Angle(ax); // Resultat entre -PI et +PI + double ref1 = Ox1.Angle(ax); // Result between -PI and +PI + double ref2 = Ox2.Angle(ax); // Result between -PI and +PI double l1 = (d * d + R1 * R1 - R2 * R2) / (2.0 * d); if (R1 * R1 - l1 * l1 < 0.) @@ -105,9 +105,9 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& C1, const gp_Circ2d& C2) double ang1, ang2; - // ang1 et ang2 correspondent aux solutions avec sinus positif - // si l'axe de reference est l'axe des centres C1C2 - // On prend l'arccos entre pi/2 et 3pi/2, l'arcsin sinon. + // ang1 and ang2 correspond to the solutions with positive sine + // when the reference axis is the axis of centers C1C2. + // We use arccos between pi/2 and 3pi/2, arcsin otherwise. if (std::abs(cost1) <= 0.707) { @@ -173,7 +173,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& C1, const gp_Circ2d& C2) lpnt[1].SetValue(XS2, YS2, ang12, ang22); } else if (std::abs(d - dif) <= Epsilon(sum)) - { // Cercles tangents interieurs + { // Internally tangent circles empt = false; para = false; iden = false; @@ -184,23 +184,23 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& C1, const gp_Circ2d& C2) gp_Vec2d Ox1(C1.XAxis().Direction()); gp_Vec2d Ox2(C2.XAxis().Direction()); - double ang1 = Ox1.Angle(ax); // Resultat entre -PI et +PI + double ang1 = Ox1.Angle(ax); // Result between -PI and +PI double ang2 = Ox2.Angle(ax); if (ang1 < 0) { ang1 = 2 * M_PI + ang1; - } // On revient entre 0 et 2PI + } // Normalize to range [0, 2PI] if (ang2 < 0) { ang2 = 2 * M_PI + ang2; - } // On revient entre 0 et 2PI + } // Normalize to range [0, 2PI] double XS = (C1.Location().X() * R2 - C2.Location().X() * R1) / (R2 - R1); double YS = (C1.Location().Y() * R2 - C2.Location().Y() * R1) / (R2 - R1); lpnt[0].SetValue(XS, YS, ang1, ang2); } else - { // On doit avoir d0 donc - // 1 cercle dans l autre et no solution + { // We must have d0, therefore + // one circle inside the other and no solution empt = true; para = false; iden = false; diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_3.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_3.cxx index 31026e4bc9..b33e6ef0e6 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_3.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_3.cxx @@ -41,7 +41,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Lin2d& L, const gp_Circ2d& C) nbp = 0; } else - { // Au moins 1 solution + { // At least 1 solution empt = false; // // modified by NIZNHY-PKV Fri Jun 15 09:55:00 2007f @@ -50,7 +50,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Lin2d& L, const gp_Circ2d& C) // ang = ang + M_PI / 2.0; // modified by NIZNHY-PKV Fri Jun 15 09:55:29 2007t if (std::abs(std::abs(d) - C.Radius()) <= Epsilon(C.Radius())) - { // Cas de tangence + { // Tangency case double u, XS, YS, ang; // @@ -77,7 +77,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Lin2d& L, const gp_Circ2d& C) lpnt[0].SetValue(XS, YS, u, ang); } else - { // 2 points d intersection + { // 2 intersection points // clang-format off double h, XS1,YS1, XS2,YS2, ang1,ang2, u1,u2;//,cost,sint angt; // clang-format on diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_4.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_4.cxx index adc481b2aa..02afe29c5b 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_4.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_4.cxx @@ -41,8 +41,8 @@ void IntAna2d_AnaIntersection::Perform(const gp_Lin2d& L, const IntAna2d_Conic& X0 = L.Location().X(); Y0 = L.Location().Y(); - // Parametre: L - // X = Xo - L DR_B et Y = Yo + L DR_A + // Parameter: L + // X = Xo - L*DR_B and Y = Yo + L*DR_A px0 = F + X0 * (D + D + A * X0 + 2.0 * C * Y0) + Y0 * (E + E + B * Y0); px1 = 2.0 * (E * DR_A - D * DR_B + X0 * (C * DR_A - A * DR_B) + Y0 * (B * DR_A - C * DR_B)); diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_5.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_5.cxx index 8e9f072c2b..2e1a366f25 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_5.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_5.cxx @@ -43,7 +43,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& Circle, const IntAna2d_C Conic.Coefficients(A, B, C, D, E, F); Conic.NewCoefficients(A, B, C, D, E, F, Axe_rep); - // Parametre a avec x=Radius std::cos(a) et y=Radius std::sin(a) + // Parameter a with x=Radius*cos(a) and y=Radius*sin(a) pss = B * radius_P2; pcc = A * radius_P2 - pss; // COS ^2 diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_6.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_6.cxx index f86a946b75..341623c816 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_6.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_6.cxx @@ -44,7 +44,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Elips2d& Elips, const IntAna2d_C Conic.Coefficients(A, B, C, D, E, F); Conic.NewCoefficients(A, B, C, D, E, F, Axe_rep); - // Parametre : a avec x=MajorRadius std::cos(a) et y=MinorRadius std::sin(a) + // Parameter: a with x=MajorRadius*cos(a) and y=MinorRadius*sin(a) pss = B * minor_radius * minor_radius; // SIN ^2 pcc = A * major_radius * major_radius - pss; // COS ^2 diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_7.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_7.cxx index a37d7359e3..d1ec930e6f 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_7.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_7.cxx @@ -42,7 +42,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Parab2d& P, const IntAna2d_Conic Conic.Coefficients(A, B, C, D, E, F); Conic.NewCoefficients(A, B, C, D, E, F, Axe_rep); - //-------- 'Parametre' y avec y=y x=y^2/(2 p) + //-------- Parameter y with y=y, x=y^2/(2p) px0 = F; px1 = E + E; diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_8.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_8.cxx index e8d1379820..d768c93e29 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_8.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_AnaIntersection_8.cxx @@ -24,19 +24,19 @@ #include // ----------------------------------------------------------------- -// ------ Verification de la validite des points obtenus ---------- -// --- Methode a implementer dans les autres routines si on constate -// --- des problemes d'instabilite numerique sur -// --- * la construction des polynomes en t (t:parametre) -// --- * la resolution du polynome -// --- * le retour : parametre t -> point d'intersection -// --- Probleme : A partir de quelle Tolerance un point n'est -// --- plus un point de la courbe. (f(x,y)=1e-10 ??) -// --- ne donne pas d'info. sur la dist. du pt a la courbe +// ------ Verification of the validity of obtained points ---------- +// --- Method to implement in other routines if numerical +// --- instability problems are observed in: +// --- * polynomial construction in t (t: parameter) +// --- * polynomial solving +// --- * reverse mapping: parameter t -> intersection point +// --- Problem: From which tolerance is a point no longer +// --- a point on the curve? (f(x,y)=1e-10 ??) +// --- gives no info on the distance from pt to curve // ----------------------------------------------------------------- -// ------ Methode non implementee pour les autres Intersections -// --- Si un probleme est constate : Dupliquer le code entre les -// --- commentaires VERIF-VALID +// ------ Method not implemented for other Intersections +// --- If a problem is observed: Duplicate the code between +// --- the VERIF-VALID comments // ----------------------------------------------------------------- void IntAna2d_AnaIntersection::Perform(const gp_Hypr2d& H, const IntAna2d_Conic& Conic) { @@ -62,9 +62,9 @@ void IntAna2d_AnaIntersection::Perform(const gp_Hypr2d& H, const IntAna2d_Conic& double B_minor_radiusP2 = B * minor_radius * minor_radius; double C_2_major_minor_radius = C * 2.0 * major_radius * minor_radius; - // Parametre : t avec x=MajorRadius*Ch(t) y=:minorRadius*Sh(t) - // Le polynome est reecrit en Exp(t) - // Suivent les Coeffs du polynome P multiplie par 4*Exp(t)^2 + // Parameter: t with x=MajorRadius*Ch(t) y=minorRadius*Sh(t) + // The polynomial is rewritten in Exp(t) + // The following are the coefficients of polynomial P multiplied by 4*Exp(t)^2 px0 = A_major_radiusP2 - C_2_major_minor_radius + B_minor_radiusP2; px1 = 4.0 * (D * major_radius - E * minor_radius); @@ -88,8 +88,8 @@ void IntAna2d_AnaIntersection::Perform(const gp_Hypr2d& H, const IntAna2d_Conic& done = true; return; } - // On a X=(CosH(t)*major_radius)/2 , Y=(SinH(t)*minor_radius)/2 - // la Resolution est en S=Exp(t) + // We have X=(CosH(t)*major_radius)/2, Y=(SinH(t)*minor_radius)/2 + // the resolution is in S=Exp(t) nbp = Sol.NbSolutions(); int nb_sol_valides = 0; for (i = 1; i <= nbp; i++) @@ -100,11 +100,11 @@ void IntAna2d_AnaIntersection::Perform(const gp_Hypr2d& H, const IntAna2d_Conic& tx = 0.5 * major_radius * (S + 1 / S); ty = 0.5 * minor_radius * (S - 1 / S); - //--- Est-on sur la bonne branche de l'Hyperbole - //--------------- VERIF-VALIDITE-INTERSECTION ---------- - //--- On Suppose que l'ecart sur la courbe1 est nul - //--- (le point a ete obtenu par parametrage) - //--- ??? la tolerance a ete fixee a 1e-10 ????????????? + //--- Are we on the correct branch of the Hyperbola? + //--------------- VERIF-VALIDITY-INTERSECTION ---------- + //--- We assume that the deviation on curve1 is zero + //--- (the point was obtained by parameterization) + //--- ??? the tolerance was set to 1e-10 ????????????? nb_sol_valides++; Coord_Ancien_Repere(tx, ty, Axe_rep); diff --git a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_Outils.cxx b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_Outils.cxx index 1d0c8681c7..13a365484d 100644 --- a/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_Outils.cxx +++ b/src/ModelingData/TKGeomBase/IntAna2d/IntAna2d_Outils.cxx @@ -76,7 +76,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const double A4, { PbPossible = true; } - //-- On recherche le plus petit coeff entre A4 et A0 + //-- Search for the smallest coefficient between A4 and A0 if (PbPossible) { // Modified by Sergey KHROMOV - Thu Oct 24 12:45:35 2002 Begin @@ -96,7 +96,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const double A4, if (MATH_A4321.IsDone()) { nbp = MATH_A4321.NbSolutions(); - //-- On Ajoute les valeurs au tableau + //-- Add the values to the array for (i = 1; i <= nbp; i++) { double x = MATH_A4321.Value(i); @@ -121,7 +121,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const double A4, if (MATH_A3210.IsDone()) { nbp = MATH_A3210.NbSolutions(); - //-- On Ajoute les valeurs au tableau + //-- Add the values to the array for (i = 1; i <= nbp; i++) { double x = MATH_A3210.Value(i); @@ -146,7 +146,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const double A4, if (MATH_A210.IsDone()) { nbp = MATH_A210.NbSolutions(); - //-- On Ajoute les valeurs au tableau + //-- Add the values to the array for (i = 1; i <= nbp; i++) { double x = MATH_A210.Value(i); @@ -168,7 +168,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const double A4, } } //------------------------------------------------------------ - //-- On trie les valeurs par ordre decroissant de val + //-- Sort values by decreasing order of val //-- for(i=0;i 0) && Non_Egalite; j--) { - // <--- Deja Teste ---> + // <--- Already Tested ---> // | 1 |2 | | J | |I-1| I |I+1| |NPTS| // | 1 |2 | | J | |I-1|XXX|I+1| |NPTS| // | 1 |2 | | J | |I-1|I+1|I+2| |NPTS| @@ -292,14 +292,15 @@ void Traitement_Points_Confondus(int& nb_pts, IntAna2d_IntPoint* pts) } } -//----------------------------------------------------------------------------- +//================================================================================================= + void Coord_Ancien_Repere(double& x1, double& y1, const gp_Ax2d& Dir1) { double t11, t12, t21, t22, t13, t23; double x0, y0; - // x1 et y1 Sont les Coordonnees dans le repere lie a Dir1 - // On Renvoie ces Coordonnees dans le repere "absolu" + // x1 and y1 are the coordinates in the reference frame associated with Dir1 + // We return these coordinates in the "absolute" reference frame Dir1.Direction().Coord(t11, t21); Dir1.Location().Coord(t13, t23); diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_CompProjectedCurve.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_CompProjectedCurve.cxx index 78b8b53d77..4141f8befb 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_CompProjectedCurve.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_CompProjectedCurve.cxx @@ -127,19 +127,13 @@ static void SplitOnDirection(SplitDS& theSplitDS); //! Perform recursive search of the split points. static void FindSplitPoint(SplitDS& theSplitDS, const double theMinParam, const double theMaxParam); -//======================================================================= -// function : Comparator -// purpose : used in sort algorithm -//======================================================================= +//================================================================================================= inline bool Comparator(const double theA, const double theB) { return theA < theB; } -//======================================================================= -// function : d1 -// purpose : computes first derivative of the projected curve -//======================================================================= +//================================================================================================= static void d1(const double t, const double u, @@ -167,10 +161,7 @@ static void d1(const double t, V = -gp_Vec2d(gp_Vec2d(M.Row(1)) * dE_dt, gp_Vec2d(M.Row(2)) * dE_dt); } -//======================================================================= -// function : d2 -// purpose : computes second derivative of the projected curve -//======================================================================= +//================================================================================================= static void d2(const double t, const double u, @@ -233,15 +224,9 @@ static void d2(const double t, V2 = -gp_Vec2d(gp_Vec2d(M.Row(1)) * Sum, gp_Vec2d(M.Row(2)) * Sum); } -//======================================================================= -// function : d1CurveOnSurf -// purpose : computes first derivative of the 3d projected curve -//======================================================================= +//================================================================================================= -//======================================================================= -// function : d2CurveOnSurf -// purpose : computes second derivative of the 3D projected curve -//======================================================================= +//================================================================================================= static void d2CurvOnSurf(const double t, const double u, @@ -310,10 +295,7 @@ static void d2CurvOnSurf(const double t, + DS2_v * V12d.Y() * V12d.Y() + DS1_v * V22d.Y(); } -//======================================================================= -// function : ExactBound -// purpose : computes exact boundary point -//======================================================================= +//================================================================================================= static bool ExactBound(gp_Pnt& Sol, const double NotSol, @@ -427,10 +409,7 @@ static bool ExactBound(gp_Pnt& Sol, return isDone; } -//======================================================================= -// function : DichExactBound -// purpose : computes exact boundary point -//======================================================================= +//================================================================================================= static void DichExactBound(gp_Pnt& Sol, const double NotSol, @@ -2159,11 +2138,7 @@ void BuildCurveSplits(const occ::handle& theCurve, std::sort(aDS.mySplits.begin(), aDS.mySplits.end(), Comparator); } -//======================================================================= -// function : SplitOnDirection -// purpose : This method compute points in the parameter space of the curve -// on which curve should be split since period jump is happen. -//======================================================================= +//================================================================================================= void SplitOnDirection(SplitDS& theSplitDS) { // Algorithm: diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx index f4a8c3c7a2..7afefb571b 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApprox.cxx @@ -268,7 +268,7 @@ static void Function_SetUVBounds(double& myU1, W1 = myCurve->FirstParameter(); W2 = myCurve->LastParameter(); W = 0.5 * (W1 + W2); - // on ouvre l`intervalle + // open the interval // W1 += 1.0e-9; // W2 -= 1.0e-9; P1 = myCurve->Value(W1); @@ -575,8 +575,8 @@ static void Function_SetUVBounds(double& myU1, // A x + B y + C z + D = 0 (2) // x > 0 (3) // y = 0 (4) - // REM : (1) (2) : equation du cercle - // (1) (3) (4) : equation de la couture. + // REM : (1) (2) : equation of the circle + // (1) (3) (4) : equation of the seam. int NbSolutions = 0; double A, B, C, D, R, Tol = 1.e-10; double U1, U2, V1, V2; @@ -689,7 +689,7 @@ static void Function_SetUVBounds(double& myU1, if (NbSolutions == 1) { if (std::abs(U1 - U2) > M_PI) - { // on traverse la couture + { // crossing the seam if (U1 > M_PI) { myU1 = U1; @@ -702,7 +702,7 @@ static void Function_SetUVBounds(double& myU1, } } else - { // on ne traverse pas la couture + { // not crossing the seam if (U1 > U2) { myU2 = U1; @@ -716,7 +716,7 @@ static void Function_SetUVBounds(double& myU1, } } else - { // 0 ou 2 solutions + { // 0 or 2 solutions gp_Pnt Center = Circle.Location(); double U, V; ElSLib::SphereParameters(gp_Ax3(gp::XOY()), 1, Center, U, V); @@ -1268,7 +1268,7 @@ void ProjLib_ComputeApprox::Perform(const occ::handle& C, int i; int NbCurves = Fit.NbMultiCurves(); - // on essaie de rendre la courbe au moins C1 + // try to make the curve at least C1 Convert_CompBezierCurves2dToBSplineCurve2d Conv; double Tol3d, Tol2d; @@ -1276,13 +1276,13 @@ void ProjLib_ComputeApprox::Perform(const occ::handle& C, { Fit.Error(i, Tol3d, Tol2d); aNewTol2d = std::max(aNewTol2d, Tol2d); - AppParCurves_MultiCurve MC = Fit.Value(i); // Charge la Ieme Curve - NCollection_Array1 Poles2d(1, MC.Degree() + 1); // Recupere les poles + AppParCurves_MultiCurve MC = Fit.Value(i); // Load the i-th Curve + NCollection_Array1 Poles2d(1, MC.Degree() + 1); // Retrieve the poles MC.Curve(1, Poles2d); Conv.AddCurve(Poles2d); } - // mise a jour des fields de ProjLib_Approx + // update the fields of ProjLib_Approx Conv.Perform(); NbPoles = Conv.NbPoles(); NbKnots = Conv.NbKnots(); @@ -1305,11 +1305,11 @@ void ProjLib_ComputeApprox::Perform(const occ::handle& C, // to avoid problems if trim is used. NewKnots(NbKnots) = C->LastParameter(); - // il faut recadrer les poles de debut et de fin: - // ( Car pour les problemes de couture, on a du ouvrir l`intervalle - // de definition de la courbe.) - // On choisit de calculer ces poles par prolongement de la courbe - // approximee. + // The start and end poles need to be adjusted: + // (Due to seam issues, we had to open the definition interval + // of the curve.) + // We choose to compute these poles by extending the approximated + // curve. myBSpline = new Geom2d_BSplineCurve(NewPoles, NewKnots, NewMults, Conv.Degree()); if (aFistC == AppParCurves_PassPoint || aLastC == AppParCurves_PassPoint) diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx index 32b478c350..42cf495709 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx @@ -84,10 +84,7 @@ struct aFuncStruct double myPeriod[2]; // U and V period correspondingly. }; -//======================================================================= -// function : computePeriodicity -// purpose : Compute period information on adaptor. -//======================================================================= +//================================================================================================= static void computePeriodicity(const occ::handle& theSurf, double& theUPeriod, double& theVPeriod) @@ -143,10 +140,7 @@ static void computePeriodicity(const occ::handle& theSurf, } } -//======================================================================= -// function : aFuncValue -// purpose : compute functional value in (theU,theV) point -//======================================================================= +//================================================================================================= static double anOrthogSqValue(const gp_Pnt& aBasePnt, const occ::handle& Surf, const double theU, @@ -173,11 +167,7 @@ static double anOrthogSqValue(const gp_Pnt& aBasePnt, return (aFirstPart * aFirstPart + aSecondPart * aSecondPart); } -//======================================================================= -// function : Value -// purpose : (OCC217 - apo)- Compute Point2d that project on polar surface() 3D -// use for calculate start 2D point. -//======================================================================= +//================================================================================================= static gp_Pnt2d Function_Value(const double theU, const aFuncStruct& theData) { gp_Pnt2d p2d = theData.myInitCurve2d->Value(theU); @@ -420,10 +410,7 @@ static gp_Pnt2d Function_Value(const double theU, const aFuncStruct& theData) return p2d; } -//======================================================================= -// function : ProjLib_PolarFunction -// purpose : (OCC217 - apo)- This class produce interface to call "gp_Pnt2d Function_Value(...)" -//======================================================================= +//================================================================================================= class ProjLib_PolarFunction : public AppCont_Function { @@ -507,10 +494,7 @@ ProjLib_ComputeApproxOnPolarSurface::ProjLib_ComputeApproxOnPolarSurface( myBSpline = Perform(theInitialCurve2d, theCurve, theSurface); } -//======================================================================= -// function : ProjLib_ComputeApproxOnPolarSurface -// purpose : case without curve of initialization -//======================================================================= +//================================================================================================= ProjLib_ComputeApproxOnPolarSurface::ProjLib_ComputeApproxOnPolarSurface( const occ::handle& theCurve, @@ -530,10 +514,7 @@ ProjLib_ComputeApproxOnPolarSurface::ProjLib_ComputeApproxOnPolarSurface( myBSpline = Perform(anInitCurve2d, theCurve, theSurface); } -//======================================================================= -// function : ProjLib_ComputeApproxOnPolarSurface -// purpose : Process the case of sewing -//======================================================================= +//================================================================================================= ProjLib_ComputeApproxOnPolarSurface::ProjLib_ComputeApproxOnPolarSurface( const occ::handle& theInitialCurve2d, diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Cylinder.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Cylinder.cxx index 71d13c7dd4..800766a7c7 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Cylinder.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Cylinder.cxx @@ -69,11 +69,7 @@ void ProjLib_Cylinder::Init(const gp_Cylinder& Cyl) isDone = false; } -//======================================================================= -// function : EvalPnt2d / EvalDir2d -// purpose : returns the Projected Pnt / Dir in the parametrization range -// of myPlane. -//======================================================================= +//================================================================================================= static gp_Pnt2d EvalPnt2d(const gp_Pnt& P, const gp_Cylinder& Cy) { @@ -156,8 +152,8 @@ void ProjLib_Cylinder::Project(const gp_Circ& C) // void ProjLib_Cylinder::Project(const gp_Elips& E) void ProjLib_Cylinder::Project(const gp_Elips&) { - // Pour de vastes raisons de periodicite mal gerees, - // la projection d`une ellipse sur un cylindre sera passee aux approx. + // Due to widespread issues with poorly handled periodicity, + // the projection of an ellipse onto a cylinder is delegated to approximation. } void ProjLib_Cylinder::Project(const gp_Parab& P) diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Plane.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Plane.cxx index c8e5c91cbb..9ac1be41ff 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Plane.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Plane.cxx @@ -82,11 +82,7 @@ void ProjLib_Plane::Init(const gp_Pln& Pl) myPlane = Pl; } -//======================================================================= -// function : EvalPnt2d / EvalDir2d -// purpose : returns the Projected Pnt / Dir in the parametrization range -// of myPlane. -//======================================================================= +//================================================================================================= static gp_Pnt2d EvalPnt2d(const gp_Pnt& P, const gp_Pln& Pl) { diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_PrjFunc.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_PrjFunc.cxx index 89f6c3e80c..338693bdc5 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_PrjFunc.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_PrjFunc.cxx @@ -153,6 +153,6 @@ gp_Pnt2d ProjLib_PrjFunc::Solution() const case 3: return gp_Pnt2d(myt, myU); } - // pout NT, meme si on n'y passe pas. + // For NT, even if we never reach this point. return gp_Pnt2d(0., 0.); } diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnPlane.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnPlane.cxx index a4768d8347..bd8802c8bc 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnPlane.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnPlane.cxx @@ -46,10 +46,7 @@ const double aParabolaLimit = 20000.; const double aHyperbolaLimit = 10.; -//======================================================================= -// function : OnPlane_Value -// purpose : Evaluate current point of the projected curve -//======================================================================= +//================================================================================================= static gp_Pnt OnPlane_Value(const double U, const occ::handle& aCurvePtr, @@ -71,10 +68,7 @@ static gp_Pnt OnPlane_Value(const double U, return Point; } -//======================================================================= -// function : OnPlane_DN -// purpose : Evaluate current point of the projected curve -//======================================================================= +//================================================================================================= static gp_Vec OnPlane_DN(const double U, const int DerivativeRequest, @@ -226,10 +220,7 @@ static bool OnPlane_D3(const double U, return true; } -//======================================================================= -// class : ProjLib_OnPlane -// purpose : Use to approximate the projection on a plane -//======================================================================= +//================================================================================================= class ProjLib_OnPlane : public AppCont_Function @@ -269,11 +260,7 @@ public: } }; -//======================================================================= -// class : ProjLib_MaxCurvature -// purpose : Use to search apex of parabola or hyperbola, which is its projection -// on a plane. Apex is point with maximal curvature -//======================================================================= +//================================================================================================= class ProjLib_MaxCurvature : public math_Function @@ -493,11 +480,7 @@ occ::handle ProjLib_ProjectOnPlane::ShallowCopy() const return aCopy; } -//======================================================================= -// function : Project -// purpose : Returns the projection of a point on a plane -// along a direction . -//======================================================================= +//================================================================================================= static gp_Pnt ProjectPnt(const gp_Ax3& ThePlane, const gp_Dir& TheDir, const gp_Pnt& Point) { @@ -512,11 +495,7 @@ static gp_Pnt ProjectPnt(const gp_Ax3& ThePlane, const gp_Dir& TheDir, const gp_ return P; } -//======================================================================= -// function : Project -// purpose : Returns the projection of a Vector on a plane -// along a direction . -//======================================================================= +//================================================================================================= static gp_Vec ProjectVec(const gp_Ax3& ThePlane, const gp_Dir& TheDir, const gp_Vec& Vec) { @@ -571,7 +550,7 @@ void ProjLib_ProjectOnPlane::Load(const occ::handle& C, gp_Vec Xc = ProjectVec(myPlane, myDirection, gp_Vec(L.Direction())); if (Xc.Magnitude() < Precision::Confusion()) - { // line orthog au plan + { // line orthogonal to the plane myType = GeomAbs_BSplineCurve; gp_Pnt P = ProjectPnt(myPlane, myDirection, L.Location()); NCollection_Array1 Mults(1, 2); diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnSurface.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnSurface.cxx index 8dbc8b45bf..326a220048 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnSurface.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnSurface.cxx @@ -29,10 +29,7 @@ #include #include -//======================================================================= -// function : OnSurface_Value -// purpose : Evaluate current point of the projected curve -//======================================================================= +//================================================================================================= static gp_Pnt OnSurface_Value(const double U, const occ::handle& myCurve, Extrema_ExtPS* myExtPS) @@ -73,10 +70,7 @@ static bool OnSurface_D1(const double, // U, return false; } -//======================================================================= -// class : ProjLib_OnSurface -// purpose : Use to approximate the projection on a plane -//======================================================================= +//================================================================================================= class ProjLib_OnSurface : public AppCont_Function diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectedCurve.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectedCurve.cxx index 92de122409..bb19c7fd82 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectedCurve.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectedCurve.cxx @@ -410,8 +410,8 @@ void ProjLib_ProjectedCurve::Perform(const occ::handle& C) Project(P, myCurve); if (P.IsDone()) { - // on met dans la pseudo-periode ( car Sphere n'est pas - // periodique en V !) + // Place into the pseudo-period (since Sphere is not + // periodic in V!) P.SetInBounds(myCurve->FirstParameter()); } else @@ -628,7 +628,7 @@ void ProjLib_ProjectedCurve::Perform(const occ::handle& C) { return; } - // Approximons cette courbe algorithmique. + // Approximate this algorithmic curve. bool Only3d = false; bool Only2d = true; GeomAbs_Shape Continuity = GeomAbs_C1; @@ -1078,7 +1078,7 @@ int ProjLib_ProjectedCurve::Degree() const return myResult.Bezier()->Degree(); } - // portage WNT + // porting WNT return 0; } @@ -1097,7 +1097,7 @@ bool ProjLib_ProjectedCurve::IsRational() const { return myResult.Bezier()->IsRational(); } - // portage WNT + // porting WNT return false; } @@ -1117,7 +1117,7 @@ int ProjLib_ProjectedCurve::NbPoles() const return myResult.Bezier()->NbPoles(); } - // portage WNT + // porting WNT return 0; } diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Sphere.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Sphere.cxx index b853b53cfc..6510fbd711 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Sphere.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Sphere.cxx @@ -60,17 +60,7 @@ void ProjLib_Sphere::Init(const gp_Sphere& Sp) isDone = false; } -//======================================================================= -// function : EvalPnt2d / EvalDir2d -// purpose : returns the Projected Pnt / Dir in the parametrization range -// of mySphere. -// P is a point on a sphere with the same Position as Sp, -// but with a radius equal to 1. ( in order to avoid to divide -// by Radius) -// / X = cosV cosU U = Atan(Y/X) -// P = | Y = cosV sinU ==> -// \ Z = sinV V = std::asin( Z) -//======================================================================= +//================================================================================================= static gp_Pnt2d EvalPnt2d(const gp_Vec& P, const gp_Sphere& Sp) { @@ -239,7 +229,7 @@ void ProjLib_Sphere::SetInBounds(const double U) myLin.Translate(gp_Vec2d(M_PI, 0.)); - // il faut maintenant recadrer en U + // Now we need to adjust the U parameter double newX, X = ElCLib::Value(U, myLin).X(); newX = ElCLib::InPeriod(X, 0., 2. * M_PI); myLin.Translate(gp_Vec2d(newX - X, 0.)); diff --git a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Torus.cxx b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Torus.cxx index e3c0d5d2ba..c91454de69 100644 --- a/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Torus.cxx +++ b/src/ModelingData/TKGeomBase/ProjLib/ProjLib_Torus.cxx @@ -54,17 +54,7 @@ void ProjLib_Torus::Init(const gp_Torus& To) isDone = false; } -//======================================================================= -// function : EvalPnt2d / EvalDir2d -// purpose : returns the Projected Pnt / Dir in the parametrization range -// of myPlane. -// P is a point on a torus with the same Position as To, -// but with a major an minor radius equal to 1. -// ( in order to avoid to divide by Radius) -// / X = (1+cosV)*cosU U = Atan(Y/X) -// P = | Y = (1+cosV)*sinU ==> -// \ Z = sinV V = std::asin( Z) -//======================================================================= +//================================================================================================= static gp_Pnt2d EvalPnt2d(const gp_Vec& Ve, const gp_Torus& To) { @@ -138,8 +128,8 @@ void ProjLib_Torus::Project(const gp_Circ& C) P1.SetY(V); P2.SetY(V); gp_Vec2d V2d(P1, P2); - // Normalement std::abs( P1.X() - P2.X()) = PI/2 - // Si != PI/2, on a traverse la periode => On reverse la Direction + // Normally std::abs( P1.X() - P2.X()) = PI/2 + // If != PI/2, we crossed the period => Reverse the Direction if (std::abs(P1.X() - P2.X()) > M_PI) V2d.Reverse(); @@ -155,14 +145,14 @@ void ProjLib_Torus::Project(const gp_Circ& C) if (U < 0.) U += 2 * M_PI; - // Origine de la droite + // Origin of the line double V1 = OC.AngleWithRef(Xc, OC ^ Zt); if (V1 < 0.) V1 += 2 * M_PI; gp_Pnt2d P1(U, V1); - // Direction de la droite + // Direction of the line gp_Dir2d D2 = gp::DY2d(); if (((OC ^ Zt) * (Xc ^ Yc)) < 0.) { diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeCirc.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeCirc.cxx index 3138e0c7a3..bdfe292f4f 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeCirc.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeCirc.cxx @@ -27,28 +27,16 @@ #include #include -//========================================================================= -// function : gce_MakeCirc -// purpose : -// Creation d un cercle 3d de gp passant par trois points. + -// Trois cas de figures : + -// 1/ Les trois points sont confondus. + -// ----------------------------------- + -// Le resultat est le cercle centre en Point1 de rayon zero. + -// 2/ Deux des trois points sont confondus. + -// ---------------------------------------- + -// Pas de solution (Erreur : Points confondus). + -// 3/ Les trois points sont distinct. + -// ---------------------------------- + -// On cree la mediatrice a P1P2 ainsi que la mediatrice a P1P3. + -// La solution a pour centre l intersection de ces deux droite et + -// pour rayon la distance entre ce centre et l un des trois points. + -//========================================================================= +//================================================================================================= + gce_MakeCirc::gce_MakeCirc(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) { - //========================================================================= - // Traitement. + - //========================================================================= + // Three cases: + // 1) All three points are coincident: result is a circle centered at P1 with zero radius. + // 2) Two of the three points are coincident: no solution (error: ConfusedPoints). + // 3) All three points are distinct: create the perpendicular bisector of P1P2 and + // the perpendicular bisector of P2P3. The center is their intersection and + // the radius is the distance from that center to any of the three points. double dist1, dist2, dist3, aResolution; // aResolution = gp::Resolution(); @@ -182,10 +170,8 @@ gce_MakeCirc::gce_MakeCirc(const gp_Ax2& A2, const double Radius) } } -//========================================================================= -// Creation d un gp_Circ par son centre
, son plan et + -// son rayon . + -//========================================================================= +//================================================================================================= + gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Pln& Plane, const double Radius) { gce_MakeCirc C = gce_MakeCirc(Center, Plane.Position().Direction(), Radius); @@ -193,11 +179,8 @@ gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Pln& Plane, const doub TheError = C.Status(); } -//======================================================================= -// function : gce_MakeCirc -// purpose : Creation d un gp_Circ par son centre
, -// sa normale et son rayon . -//======================================================================= +//================================================================================================= + gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Dir& Norm, const double Radius) { if (Radius < 0.) @@ -214,12 +197,10 @@ gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Dir& Norm, const doubl double Cabs = std::abs(C); gp_Ax2 Pos; - //========================================================================= - // pour determiner l'axe X : + - // on dit que le produit scalaire Vx.Norm = 0. + - // et on recherche le max(A,B,C) pour faire la division. + - // l'une des coordonnees du vecteur est nulle. + - //========================================================================= + // To determine the X axis: + // the dot product Vx.Norm = 0. + // find the max(A,B,C) for the division. + // one of the vector coordinates is zero. if (Babs <= Aabs && Babs <= Cabs) { @@ -259,11 +240,8 @@ gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Dir& Norm, const doubl } } -//======================================================================= -// function : gce_MakeCirc -// purpose : Creation d un gp_Circ par son centre
, -// sa normale et son rayon -//======================================================================= +//================================================================================================= + gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Pnt& Ptaxis, const double Radius) { if (Radius < 0.) @@ -286,12 +264,10 @@ gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Pnt& Ptaxis, const dou double Cabs = std::abs(C); gp_Ax2 Pos; - //========================================================================= - // pour determiner l'axe X : + - // on dit que le produit scalaire Vx.Norm = 0. + - // et on recherche le max(A,B,C) pour faire la division. + - // l'une des coordonnees du vecteur est nulle. + - //========================================================================= + // To determine the X axis: + // the dot product Vx.Norm = 0. + // find the max(A,B,C) for the division. + // one of the vector coordinates is zero. gp_Dir Norm = gce_MakeDir(Center, Ptaxis); if (Babs <= Aabs && Babs <= Cabs) @@ -333,10 +309,8 @@ gce_MakeCirc::gce_MakeCirc(const gp_Pnt& Center, const gp_Pnt& Ptaxis, const dou } } -//======================================================================= -// function : gce_MakeCirc -// purpose : Creation d un gp_Circ par son axe et son rayon . -//======================================================================= +//================================================================================================= + gce_MakeCirc::gce_MakeCirc(const gp_Ax1& Axis, const double Radius) { if (Radius < 0.) @@ -355,12 +329,10 @@ gce_MakeCirc::gce_MakeCirc(const gp_Ax1& Axis, const double Radius) double Cabs = std::abs(C); gp_Ax2 Pos; - //========================================================================= - // pour determiner l'axe X : + - // on dit que le produit scalaire Vx.Norm = 0. + - // et on recherche le max(A,B,C) pour faire la division. + - // l'une des coordonnees du vecteur est nulle. + - //========================================================================= + // To determine the X axis: + // the dot product Vx.Norm = 0. + // find the max(A,B,C) for the division. + // one of the vector coordinates is zero. if (Babs <= Aabs && Babs <= Cabs) { @@ -400,11 +372,8 @@ gce_MakeCirc::gce_MakeCirc(const gp_Ax1& Axis, const double Radius) } } -//======================================================================= -// function : gce_MakeCirc -// purpose : Creation d un gp_Circ concentrique a un autre gp_circ a une distance + -// donnee. -//======================================================================= +//================================================================================================= + gce_MakeCirc::gce_MakeCirc(const gp_Circ& Circ, const double Dist) { double Rad = Circ.Radius() + Dist; @@ -419,11 +388,8 @@ gce_MakeCirc::gce_MakeCirc(const gp_Circ& Circ, const double Dist) } } -//======================================================================= -// function : gce_MakeCirc -// purpose : Creation d un gp_Circ concentrique a un autre gp_circ dont le rayon -// est egal a la distance de a l axe de . -//======================================================================= +//================================================================================================= + gce_MakeCirc::gce_MakeCirc(const gp_Circ& Circ, const gp_Pnt& P) { double Rad = gp_Lin(Circ.Axis()).Distance(P); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeCirc2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeCirc2d.cxx index a94add9d96..7e38a1d241 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeCirc2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeCirc2d.cxx @@ -26,31 +26,19 @@ #include #include -//========================================================================= -// Creation d un cercle 2d de gp passant par trois points. + -// Trois cas de figures : + -// 1/ Les trois points sont confondus. + -// ----------------------------------- + -// Le resultat est le cercle centre en Point1 de rayon zero. + -// 2/ Deux des trois points sont confondus. + -// ---------------------------------------- + -// On cree la mediatrice a deux points non confondus ainsi que la + -// droite passant par ces deux points. + -// La solution a pour centre l intersection de ces deux droite et + -// pour rayon la distance entre ce centre et l un des trois points. + -// 3/ Les trois points sont distinct. + -// ---------------------------------- + -// On cree la mediatrice a P1P2 ainsi que la mediatrice a P1P3. + -// La solution a pour centre l intersection de ces deux droite et + -// pour rayon la distance entre ce centre et l un des trois points. + -//========================================================================= +//================================================================================================= + gce_MakeCirc2d::gce_MakeCirc2d(const gp_Pnt2d& P1, const gp_Pnt2d& P2, const gp_Pnt2d& P3) { gp_Dir2d dirx(gp_Dir2d::D::X); - //========================================================================= - // Traitement. + - //========================================================================= + // Three cases: + // 1) All three points are coincident: result is a circle centered at P1 with zero radius. + // 2) Two of the three points are coincident: create the perpendicular bisector of the two + // distinct points and the line through them. The center is their intersection. + // 3) All three points are distinct: create the perpendicular bisector of P1P2 and + // the perpendicular bisector of P1P3. The center is their intersection and + // the radius is the distance from that center to any of the three points. double dist1 = P1.Distance(P2); double dist2 = P1.Distance(P3); @@ -122,9 +110,7 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Pnt2d& P1, const gp_Pnt2d& P2, const gp_ } } -//========================================================================== -// Creation d un gp_Circ2d par son Axe et son rayon . + -//========================================================================== +//================================================================================================= gce_MakeCirc2d::gce_MakeCirc2d(const gp_Ax2d& XAxis, const double Radius, const bool Sense) { @@ -139,9 +125,7 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Ax2d& XAxis, const double Radius, const } } -//========================================================================== -// Creation d un gp_Circ2d par son Repere et son rayon . + -//========================================================================== +//================================================================================================= gce_MakeCirc2d::gce_MakeCirc2d(const gp_Ax22d& Axis, const double Radius) { @@ -156,10 +140,7 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Ax22d& Axis, const double Radius) } } -//========================================================================== -// Creation d un gp_Circ2d par son centre
et son rayon + -// . + -//========================================================================== +//================================================================================================= gce_MakeCirc2d::gce_MakeCirc2d(const gp_Pnt2d& Center, const double Radius, const bool Sense) { @@ -174,10 +155,7 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Pnt2d& Center, const double Radius, cons } } -//========================================================================== -// Creation d un gp_Circ2d par son centre
et un point de sa + -// circonference . + -//========================================================================== +//================================================================================================= gce_MakeCirc2d::gce_MakeCirc2d(const gp_Pnt2d& Center, const gp_Pnt2d& Point, const bool Sense) { @@ -185,10 +163,7 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Pnt2d& Center, const gp_Pnt2d& Point, co TheError = gce_Done; } -//========================================================================== -// Creation d un cercle concentrique a passant par le + -// point . + -//========================================================================== +//================================================================================================= gce_MakeCirc2d::gce_MakeCirc2d(const gp_Circ2d& Circ, const gp_Pnt2d& Point) { @@ -196,10 +171,7 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Circ2d& Circ, const gp_Pnt2d& Point) TheError = gce_Done; } -//========================================================================== -// Creation d un cercle concentrique a a une distance + -// . + -//========================================================================== +//================================================================================================= gce_MakeCirc2d::gce_MakeCirc2d(const gp_Circ2d& Circ, const double Dist1) { @@ -207,17 +179,23 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Circ2d& Circ, const double Dist1) TheError = gce_Done; } +//================================================================================================= + const gp_Circ2d& gce_MakeCirc2d::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeCirc2d::Value() - no result"); return TheCirc2d; } +//================================================================================================= + const gp_Circ2d& gce_MakeCirc2d::Operator() const { return Value(); } +//================================================================================================= + gce_MakeCirc2d::operator gp_Circ2d() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeCone.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeCone.cxx index 0f95ce534c..59400cf885 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeCone.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeCone.cxx @@ -23,10 +23,8 @@ #include #include -//========================================================================= -// Construction d un cone par son axe , le rayon de sa base et le demi + -// angle d ouverture. + -//========================================================================= +//================================================================================================= + gce_MakeCone::gce_MakeCone(const gp_Ax2& A2, const double Ang, const double Radius) { if (Radius < 0.0) @@ -47,15 +45,13 @@ gce_MakeCone::gce_MakeCone(const gp_Ax2& A2, const double Ang, const double Radi } } -//========================================================================= -// Constructions d un cone de gp par quatre points P1, P2, P3 et P4. + -// P1 et P2 donnent l axe du cone, la distance de P3 a l axe donne + -// le rayon de la base du cone et la distance de P4 a l axe donne le + -// rayon du cone pour la section passant par P4. + -//========================================================================= +//================================================================================================= gce_MakeCone::gce_MakeCone(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3, const gp_Pnt& P4) { + // P1 and P2 define the cone axis. The distance from P3 to the axis gives + // the base radius, and the distance from P4 to the axis gives the radius + // of the section passing through P4. if (P1.Distance(P2) < RealEpsilon() || P3.Distance(P4) < RealEpsilon()) { TheError = gce_ConfusedPoints; @@ -119,15 +115,12 @@ gce_MakeCone::gce_MakeCone(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3, TheError = gce_Done; } -//========================================================================= -// Constructions d un cone de gp par son axe et deux points P1, P2. + -// La distance de P1 a l axe donne le rayon de la base du cone et la + -// distance de P2 a l axe donne le rayon du cone pour la section passant + -// par P2. + -//========================================================================= +//================================================================================================= gce_MakeCone::gce_MakeCone(const gp_Ax1& Axis, const gp_Pnt& P1, const gp_Pnt& P2) { + // The distance from P1 to the axis gives the base radius, and + // the distance from P2 to the axis gives the section radius at P2. gp_Pnt P3(Axis.Location()); gp_Pnt P4(P3.XYZ() + Axis.Direction().XYZ()); gce_MakeCone Cone(P3, P4, P1, P2); @@ -142,10 +135,7 @@ gce_MakeCone::gce_MakeCone(const gp_Ax1& Axis, const gp_Pnt& P1, const gp_Pnt& P } } -//========================================================================= -// Constructions d un cone parallele a un autre cone passant par un + -// donne. + -//========================================================================= +//================================================================================================= // gce_MakeCone::gce_MakeCone(const gp_Cone& cone , // const gp_Pnt& P ) @@ -154,10 +144,7 @@ gce_MakeCone::gce_MakeCone(const gp_Cone&, const gp_Pnt&) TheError = gce_ConfusedPoints; } -//========================================================================= -// Constructions d un cone parallele a un autre cone a une distance + -// donnee. + -//========================================================================= +//================================================================================================= // gce_MakeCone::gce_MakeCone(const gp_Cone& cone , // const double Dist ) @@ -166,12 +153,7 @@ gce_MakeCone::gce_MakeCone(const gp_Cone&, const double) TheError = gce_Done; } -//========================================================================= -// Constructions d un cone de gp par son axe et deux points P1, P2. + -// La distance de P1 a l axe donne le rayon de la base du cone et la + -// distance de P2 a l axe donne le rayon du cone pour la section passant + -// par P2. + -//========================================================================= +//================================================================================================= gce_MakeCone::gce_MakeCone(const gp_Lin& Axis, const gp_Pnt& P1, const gp_Pnt& P2) { @@ -189,13 +171,11 @@ gce_MakeCone::gce_MakeCone(const gp_Lin& Axis, const gp_Pnt& P1, const gp_Pnt& P } } -//========================================================================= -// cone par deux points (axe du cone.) et deux rayons (rayon des + -// sections passant par chacun de ces points). + -//========================================================================= +//================================================================================================= gce_MakeCone::gce_MakeCone(const gp_Pnt& P1, const gp_Pnt& P2, const double R1, const double R2) { + // Cone defined by two points (axis) and two radii (section radii at each point). double dist = P1.Distance(P2); if (dist < RealEpsilon()) { @@ -244,17 +224,23 @@ gce_MakeCone::gce_MakeCone(const gp_Pnt& P1, const gp_Pnt& P2, const double R1, } } +//================================================================================================= + const gp_Cone& gce_MakeCone::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeCone::Value() - no result"); return TheCone; } +//================================================================================================= + const gp_Cone& gce_MakeCone::Operator() const { return Value(); } +//================================================================================================= + gce_MakeCone::operator gp_Cone() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeCylinder.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeCylinder.cxx index 6e42d98dc0..000f06af7a 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeCylinder.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeCylinder.cxx @@ -24,10 +24,8 @@ #include #include -//========================================================================= -// Constructions d un cylindre de gp par son Ax2 A2 et son rayon + -// Radius. + -//========================================================================= +//================================================================================================= + gce_MakeCylinder::gce_MakeCylinder(const gp_Ax2& A2, const double Radius) { if (Radius < 0.0) @@ -41,10 +39,7 @@ gce_MakeCylinder::gce_MakeCylinder(const gp_Ax2& A2, const double Radius) } } -//========================================================================= -// Constructions d un cylindre de gp par son axe Axis et son rayon + -// Radius. + -//========================================================================= +//================================================================================================= gce_MakeCylinder::gce_MakeCylinder(const gp_Ax1& Axis, const double Radius) { @@ -76,9 +71,7 @@ gce_MakeCylinder::gce_MakeCylinder(const gp_Ax1& Axis, const double Radius) } } -//========================================================================= -// Constructions d un cylindre de gp par un cercle. + -//========================================================================= +//================================================================================================= gce_MakeCylinder::gce_MakeCylinder(const gp_Circ& Circ) { @@ -86,14 +79,12 @@ gce_MakeCylinder::gce_MakeCylinder(const gp_Circ& Circ) TheError = gce_Done; } -//========================================================================= -// Constructions d un cylindre de gp par trois points P1, P2, P3. + -// P1 et P2 donnent l axe du cylindre, la distance de P3 a l axe donne + -// le rayon du cylindre. + -//========================================================================= +//================================================================================================= gce_MakeCylinder::gce_MakeCylinder(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) { + // P1 and P2 define the cylinder axis, the distance from P3 to the axis + // gives the cylinder radius. if (P1.Distance(P2) < gp::Resolution()) { TheError = gce_ConfusedPoints; @@ -122,10 +113,7 @@ gce_MakeCylinder::gce_MakeCylinder(const gp_Pnt& P1, const gp_Pnt& P2, const gp_ } } -//========================================================================= -// Constructions d un cylindre de gp concentrique a un autre cylindre de + -// gp a une distance Dist. + -//========================================================================= +//================================================================================================= gce_MakeCylinder::gce_MakeCylinder(const gp_Cylinder& Cyl, const double Dist) { @@ -142,10 +130,7 @@ gce_MakeCylinder::gce_MakeCylinder(const gp_Cylinder& Cyl, const double Dist) } } -//========================================================================= -// Constructions d un cylindre de gp concentrique a un autre cylindre de + -// gp passant par le point P. + -//========================================================================= +//================================================================================================= gce_MakeCylinder::gce_MakeCylinder(const gp_Cylinder& Cyl, const gp_Pnt& P) { @@ -156,17 +141,23 @@ gce_MakeCylinder::gce_MakeCylinder(const gp_Cylinder& Cyl, const gp_Pnt& P) TheError = gce_Done; } +//================================================================================================= + const gp_Cylinder& gce_MakeCylinder::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeCylinder::Value() - no result"); return TheCylinder; } +//================================================================================================= + const gp_Cylinder& gce_MakeCylinder::Operator() const { return Value(); } +//================================================================================================= + gce_MakeCylinder::operator gp_Cylinder() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeDir.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeDir.cxx index 7405ac3a5d..f069bbf0d4 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeDir.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeDir.cxx @@ -22,9 +22,8 @@ #include #include -//========================================================================= -// Creation d une direction 3d (Dir) de gp a partir de 2 Pnt de gp. + -//========================================================================= +//================================================================================================= + gce_MakeDir::gce_MakeDir(const gp_Pnt& P1, const gp_Pnt& P2) { if (P1.Distance(P2) <= gp::Resolution()) @@ -38,6 +37,8 @@ gce_MakeDir::gce_MakeDir(const gp_Pnt& P1, const gp_Pnt& P2) } } +//================================================================================================= + gce_MakeDir::gce_MakeDir(const gp_XYZ& Coord) { if (Coord.Modulus() <= gp::Resolution()) @@ -51,6 +52,8 @@ gce_MakeDir::gce_MakeDir(const gp_XYZ& Coord) } } +//================================================================================================= + gce_MakeDir::gce_MakeDir(const gp_Vec& V) { if (V.Magnitude() <= gp::Resolution()) @@ -64,6 +67,8 @@ gce_MakeDir::gce_MakeDir(const gp_Vec& V) } } +//================================================================================================= + gce_MakeDir::gce_MakeDir(const double Xv, const double Yv, const double Zv) { if (Xv * Xv + Yv * Yv + Zv * Zv <= gp::Resolution()) @@ -77,17 +82,23 @@ gce_MakeDir::gce_MakeDir(const double Xv, const double Yv, const double Zv) } } +//================================================================================================= + const gp_Dir& gce_MakeDir::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeDir::Value() - no result"); return TheDir; } +//================================================================================================= + const gp_Dir& gce_MakeDir::Operator() const { return Value(); } +//================================================================================================= + gce_MakeDir::operator gp_Dir() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeDir2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeDir2d.cxx index b2dd34f4a6..1403949c98 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeDir2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeDir2d.cxx @@ -22,9 +22,8 @@ #include #include -//========================================================================= -// Creation d une direction 2d (Dir2d) de gp a partir de 2 Pnt2d de gp. + -//========================================================================= +//================================================================================================= + gce_MakeDir2d::gce_MakeDir2d(const gp_Pnt2d& P1, const gp_Pnt2d& P2) { if (P1.Distance(P2) <= gp::Resolution()) @@ -38,6 +37,8 @@ gce_MakeDir2d::gce_MakeDir2d(const gp_Pnt2d& P1, const gp_Pnt2d& P2) } } +//================================================================================================= + gce_MakeDir2d::gce_MakeDir2d(const gp_XY& Coord) { if (Coord.Modulus() <= gp::Resolution()) @@ -51,6 +52,8 @@ gce_MakeDir2d::gce_MakeDir2d(const gp_XY& Coord) } } +//================================================================================================= + gce_MakeDir2d::gce_MakeDir2d(const gp_Vec2d& V) { if (V.Magnitude() <= gp::Resolution()) @@ -64,6 +67,8 @@ gce_MakeDir2d::gce_MakeDir2d(const gp_Vec2d& V) } } +//================================================================================================= + gce_MakeDir2d::gce_MakeDir2d(const double Xv, const double Yv) { if (Xv * Xv + Yv * Yv <= gp::Resolution()) @@ -77,17 +82,23 @@ gce_MakeDir2d::gce_MakeDir2d(const double Xv, const double Yv) } } +//================================================================================================= + const gp_Dir2d& gce_MakeDir2d::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeDir2d::Value() - no result"); return TheDir2d; } +//================================================================================================= + const gp_Dir2d& gce_MakeDir2d::Operator() const { return Value(); } +//================================================================================================= + gce_MakeDir2d::operator gp_Dir2d() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeElips.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeElips.cxx index f80e683a01..a567212c80 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeElips.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeElips.cxx @@ -22,10 +22,8 @@ #include #include -//========================================================================= -// Creation d une Ellipse 3d de gp a partir de son Ax2 et de son + -// grand rayon et son petit rayon . + -//========================================================================= +//================================================================================================= + gce_MakeElips::gce_MakeElips(const gp_Ax2& A2, const double MajorRadius, const double MinorRadius) { if (MajorRadius < MinorRadius) @@ -43,11 +41,7 @@ gce_MakeElips::gce_MakeElips(const gp_Ax2& A2, const double MajorRadius, const d } } -//========================================================================= -// Creation d une Ellipse 3d de gp de centre
et de sommets + -// et . + -// donne le grand rayon et le petit rayon. + -//========================================================================= +//================================================================================================= gce_MakeElips::gce_MakeElips(const gp_Pnt& S1, const gp_Pnt& S2, const gp_Pnt& Center) { @@ -73,17 +67,23 @@ gce_MakeElips::gce_MakeElips(const gp_Pnt& S1, const gp_Pnt& S2, const gp_Pnt& C } } +//================================================================================================= + const gp_Elips& gce_MakeElips::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeElips::Value() - no result"); return TheElips; } +//================================================================================================= + const gp_Elips& gce_MakeElips::Operator() const { return Value(); } +//================================================================================================= + gce_MakeElips::operator gp_Elips() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeElips2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeElips2d.cxx index 132d76a7b5..0cc02edc4e 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeElips2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeElips2d.cxx @@ -23,12 +23,8 @@ #include #include -//========================================================================= -// Creation d une Ellipse 2d de gp de centre
et de sommets + -// et . + -// donne le grand axe . + -// donne le grand rayon et le petit rayon. + -//========================================================================= +//================================================================================================= + gce_MakeElips2d::gce_MakeElips2d(const gp_Pnt2d& S1, const gp_Pnt2d& S2, const gp_Pnt2d& Center) { double D1 = S1.Distance(Center); @@ -50,6 +46,8 @@ gce_MakeElips2d::gce_MakeElips2d(const gp_Pnt2d& S1, const gp_Pnt2d& S2, const g } } +//================================================================================================= + gce_MakeElips2d::gce_MakeElips2d(const gp_Ax2d& MajorAxis, const double MajorRadius, const double MinorRadius, @@ -70,6 +68,8 @@ gce_MakeElips2d::gce_MakeElips2d(const gp_Ax2d& MajorAxis, } } +//================================================================================================= + gce_MakeElips2d::gce_MakeElips2d(const gp_Ax22d& A, const double MajorRadius, const double MinorRadius) @@ -89,17 +89,23 @@ gce_MakeElips2d::gce_MakeElips2d(const gp_Ax22d& A, } } +//================================================================================================= + const gp_Elips2d& gce_MakeElips2d::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeElips2d::Value() - no result"); return TheElips2d; } +//================================================================================================= + const gp_Elips2d& gce_MakeElips2d::Operator() const { return Value(); } +//================================================================================================= + gce_MakeElips2d::operator gp_Elips2d() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeHypr.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeHypr.cxx index 71e7c6fef6..913e95d92b 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeHypr.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeHypr.cxx @@ -22,7 +22,7 @@ #include #include -//================================================================================================== +//================================================================================================= gce_MakeHypr::gce_MakeHypr(const gp_Pnt& S1, const gp_Pnt& S2, const gp_Pnt& Center) { @@ -50,7 +50,7 @@ gce_MakeHypr::gce_MakeHypr(const gp_Pnt& S1, const gp_Pnt& S2, const gp_Pnt& Cen TheError = gce_Done; } -//================================================================================================== +//================================================================================================= gce_MakeHypr::gce_MakeHypr(const gp_Ax2& A2, const double MajorRadius, const double MinorRadius) { @@ -65,7 +65,7 @@ gce_MakeHypr::gce_MakeHypr(const gp_Ax2& A2, const double MajorRadius, const dou } } -//================================================================================================== +//================================================================================================= const gp_Hypr& gce_MakeHypr::Value() const { @@ -73,14 +73,14 @@ const gp_Hypr& gce_MakeHypr::Value() const return TheHypr; } -//================================================================================================== +//================================================================================================= const gp_Hypr& gce_MakeHypr::Operator() const { return Value(); } -//================================================================================================== +//================================================================================================= gce_MakeHypr::operator gp_Hypr() const { diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeHypr2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeHypr2d.cxx index 86fb08ece2..3a805e921f 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeHypr2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeHypr2d.cxx @@ -23,7 +23,7 @@ #include #include -//================================================================================================== +//================================================================================================= gce_MakeHypr2d::gce_MakeHypr2d(const gp_Pnt2d& S1, const gp_Pnt2d& S2, const gp_Pnt2d& Center) { @@ -52,7 +52,7 @@ gce_MakeHypr2d::gce_MakeHypr2d(const gp_Pnt2d& S1, const gp_Pnt2d& S2, const gp_ TheError = gce_Done; } -//================================================================================================== +//================================================================================================= gce_MakeHypr2d::gce_MakeHypr2d(const gp_Ax2d& MajorAxis, const double MajorRadius, @@ -70,7 +70,7 @@ gce_MakeHypr2d::gce_MakeHypr2d(const gp_Ax2d& MajorAxis, } } -//================================================================================================== +//================================================================================================= gce_MakeHypr2d::gce_MakeHypr2d(const gp_Ax22d& A, const double MajorRadius, @@ -87,7 +87,7 @@ gce_MakeHypr2d::gce_MakeHypr2d(const gp_Ax22d& A, } } -//================================================================================================== +//================================================================================================= const gp_Hypr2d& gce_MakeHypr2d::Value() const { @@ -95,14 +95,14 @@ const gp_Hypr2d& gce_MakeHypr2d::Value() const return TheHypr2d; } -//================================================================================================== +//================================================================================================= const gp_Hypr2d& gce_MakeHypr2d::Operator() const { return Value(); } -//================================================================================================== +//================================================================================================= gce_MakeHypr2d::operator gp_Hypr2d() const { diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeLin.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeLin.cxx index 9c80a9ec6d..68a3efd0aa 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeLin.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeLin.cxx @@ -22,19 +22,15 @@ #include #include -//========================================================================= -// Creation d une ligne 3d de gp a partir d un Ax1 de gp. + -//========================================================================= +//================================================================================================= + gce_MakeLin::gce_MakeLin(const gp_Ax1& A1) { TheLin = gp_Lin(A1); TheError = gce_Done; } -//========================================================================= -// Creation d une ligne 3d de gp a partir de son origine P (Pnt de gp) + -// et d une direction V (Dir de gp). + -//========================================================================= +//================================================================================================= gce_MakeLin::gce_MakeLin(const gp_Pnt& P, const gp_Dir& V) { @@ -42,10 +38,7 @@ gce_MakeLin::gce_MakeLin(const gp_Pnt& P, const gp_Dir& V) TheError = gce_Done; } -//========================================================================= -// Creation d une ligne 3d de gp passant par les deux points et + -// . + -//========================================================================= +//================================================================================================= gce_MakeLin::gce_MakeLin(const gp_Pnt& P1, const gp_Pnt& P2) { @@ -60,10 +53,7 @@ gce_MakeLin::gce_MakeLin(const gp_Pnt& P1, const gp_Pnt& P2) } } -//========================================================================= -// Creation d une ligne 3d de gp parallele a une autre et passant + -// par le point

. + -//========================================================================= +//================================================================================================= gce_MakeLin::gce_MakeLin(const gp_Lin& Lin, const gp_Pnt& P) { @@ -71,17 +61,23 @@ gce_MakeLin::gce_MakeLin(const gp_Lin& Lin, const gp_Pnt& P) TheError = gce_Done; } +//================================================================================================= + const gp_Lin& gce_MakeLin::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeLin::Value() - no result"); return TheLin; } +//================================================================================================= + const gp_Lin& gce_MakeLin::Operator() const { return Value(); } +//================================================================================================= + gce_MakeLin::operator gp_Lin() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeLin2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeLin2d.cxx index aa5533b9a0..10bcd72cb4 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeLin2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeLin2d.cxx @@ -22,19 +22,15 @@ #include #include -//========================================================================= -// Creation d une ligne 2d de gp a partir d un Ax2d de gp. + -//========================================================================= +//================================================================================================= + gce_MakeLin2d::gce_MakeLin2d(const gp_Ax2d& A) { TheLin2d = gp_Lin2d(A); TheError = gce_Done; } -//========================================================================= -// Creation d une ligne 2d de gp a partir de son origine P (Pnt2d de gp)+ -// et d une direction V (Dir2d de gp). + -//========================================================================= +//================================================================================================= gce_MakeLin2d::gce_MakeLin2d(const gp_Pnt2d& P, const gp_Dir2d& V) { @@ -42,10 +38,7 @@ gce_MakeLin2d::gce_MakeLin2d(const gp_Pnt2d& P, const gp_Dir2d& V) TheError = gce_Done; } -//========================================================================= -// Creation d une ligne 2d de gp a partir des parametres de son + -// equation. + -//========================================================================= +//================================================================================================= gce_MakeLin2d::gce_MakeLin2d(const double A, const double B, const double C) { @@ -60,10 +53,7 @@ gce_MakeLin2d::gce_MakeLin2d(const double A, const double B, const double C) } } -//========================================================================= -// Creation d une ligne 2d de gp passant par les deux points et + -// . + -//========================================================================= +//================================================================================================= gce_MakeLin2d::gce_MakeLin2d(const gp_Pnt2d& P1, const gp_Pnt2d& P2) { @@ -78,10 +68,7 @@ gce_MakeLin2d::gce_MakeLin2d(const gp_Pnt2d& P1, const gp_Pnt2d& P2) } } -//========================================================================= -// Creation d une ligne 2d de gp parallele a une autre ligne + -// passant par le point . + -//========================================================================= +//================================================================================================= gce_MakeLin2d::gce_MakeLin2d(const gp_Lin2d& Line, const gp_Pnt2d& Point) { @@ -89,10 +76,7 @@ gce_MakeLin2d::gce_MakeLin2d(const gp_Lin2d& Line, const gp_Pnt2d& Point) TheError = gce_Done; } -//========================================================================= -// Creation d une ligne 2d de gp parallele a une autre ligne + -// a une distance . + -//========================================================================= +//================================================================================================= gce_MakeLin2d::gce_MakeLin2d(const gp_Lin2d& Line, const double Dist) { @@ -101,17 +85,23 @@ gce_MakeLin2d::gce_MakeLin2d(const gp_Lin2d& Line, const double Dist) TheError = gce_Done; } +//================================================================================================= + gp_Lin2d gce_MakeLin2d::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeLin2d::Value() - no result"); return TheLin2d; } +//================================================================================================= + gp_Lin2d gce_MakeLin2d::Operator() const { return Value(); } +//================================================================================================= + gce_MakeLin2d::operator gp_Lin2d() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeMirror.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeMirror.cxx index 599e7863dc..35d7425d0e 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeMirror.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeMirror.cxx @@ -20,71 +20,64 @@ #include #include -//========================================================================= -// Creation d une symetrie de gp par rapport a un point. + -//========================================================================= +//================================================================================================= + gce_MakeMirror::gce_MakeMirror(const gp_Pnt& Point) { TheMirror.SetMirror(Point); } -//========================================================================= -// Creation d une symetrie de gp par rapport a une droite. + -//========================================================================= +//================================================================================================= gce_MakeMirror::gce_MakeMirror(const gp_Ax1& Axis) { TheMirror.SetMirror(Axis); } -//========================================================================= -// Creation d une symetrie de gp par rapport a une droite. + -//========================================================================= +//================================================================================================= gce_MakeMirror::gce_MakeMirror(const gp_Lin& Line) { TheMirror.SetMirror(gp_Ax1(Line.Location(), Line.Direction())); } -//========================================================================= -// Creation d une symetrie de gp par rapport a une droite definie + -// par un point et une direction. + -//========================================================================= +//================================================================================================= gce_MakeMirror::gce_MakeMirror(const gp_Pnt& Point, const gp_Dir& Direc) { TheMirror.SetMirror(gp_Ax1(Point, Direc)); } -//========================================================================= -// Creation d une symetrie 3d de gp par rapport a un plan defini par + -// un Ax2 (Normale au plan et axe x du plan). + -//========================================================================= +//================================================================================================= gce_MakeMirror::gce_MakeMirror(const gp_Ax2& Plane) { TheMirror.SetMirror(Plane); } -//========================================================================= -// Creation d une symetrie 3d de gp par rapport a un plan Plane. + -//========================================================================= +//================================================================================================= gce_MakeMirror::gce_MakeMirror(const gp_Pln& Plane) { TheMirror.SetMirror(Plane.Position().Ax2()); } +//================================================================================================= + const gp_Trsf& gce_MakeMirror::Value() const { return TheMirror; } +//================================================================================================= + const gp_Trsf& gce_MakeMirror::Operator() const { return TheMirror; } +//================================================================================================= + gce_MakeMirror::operator gp_Trsf() const { return TheMirror; diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeMirror2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeMirror2d.cxx index c7816d7052..c3647a39ea 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeMirror2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeMirror2d.cxx @@ -21,52 +21,50 @@ #include #include -//========================================================================= -// Creation d une symetrie 2d de gp par rapport a un point. + -//========================================================================= +//================================================================================================= + gce_MakeMirror2d::gce_MakeMirror2d(const gp_Pnt2d& Point) { TheMirror2d.SetMirror(Point); } -//========================================================================= -// Creation d une symetrie 2d de gp par rapport a une droite. + -//========================================================================= +//================================================================================================= gce_MakeMirror2d::gce_MakeMirror2d(const gp_Ax2d& Axis) { TheMirror2d.SetMirror(Axis); } -//========================================================================= -// Creation d une symetrie 2d de gp par rapport a une droite. + -//========================================================================= +//================================================================================================= gce_MakeMirror2d::gce_MakeMirror2d(const gp_Lin2d& Line) { TheMirror2d.SetMirror(gp_Ax2d(Line.Location(), Line.Direction())); } -//========================================================================= -// Creation d une symetrie 2d de gp par rapport a une droite definie + -// par un point et une direction. + -//========================================================================= +//================================================================================================= gce_MakeMirror2d::gce_MakeMirror2d(const gp_Pnt2d& Point, const gp_Dir2d& Direc) { TheMirror2d.SetMirror(gp_Ax2d(Point, Direc)); } +//================================================================================================= + const gp_Trsf2d& gce_MakeMirror2d::Value() const { return TheMirror2d; } +//================================================================================================= + const gp_Trsf2d& gce_MakeMirror2d::Operator() const { return TheMirror2d; } +//================================================================================================= + gce_MakeMirror2d::operator gp_Trsf2d() const { return TheMirror2d; diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeParab2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeParab2d.cxx index 2d0abdcf41..5337d2f9df 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeParab2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeParab2d.cxx @@ -22,6 +22,8 @@ #include #include +//================================================================================================= + gce_MakeParab2d::gce_MakeParab2d(const gp_Ax22d& A, const double Focal) { if (Focal < 0.0) @@ -35,6 +37,8 @@ gce_MakeParab2d::gce_MakeParab2d(const gp_Ax22d& A, const double Focal) } } +//================================================================================================= + gce_MakeParab2d::gce_MakeParab2d(const gp_Ax2d& MirrorAxis, const double Focal, const bool Sense) { if (Focal < 0.0) @@ -48,18 +52,15 @@ gce_MakeParab2d::gce_MakeParab2d(const gp_Ax2d& MirrorAxis, const double Focal, } } +//================================================================================================= + gce_MakeParab2d::gce_MakeParab2d(const gp_Ax2d& D, const gp_Pnt2d& F, const bool Sense) { TheParab2d = gp_Parab2d(D, F, Sense); TheError = gce_Done; } -//========================================================================= -// Creation d une Parabole 2d de gp de centre

et de sommet + -// . + -// donne le grand axe . + -// donne la focale. + -//========================================================================= +//================================================================================================= gce_MakeParab2d::gce_MakeParab2d(const gp_Pnt2d& S, const gp_Pnt2d& Center, const bool Sense) { @@ -75,17 +76,23 @@ gce_MakeParab2d::gce_MakeParab2d(const gp_Pnt2d& S, const gp_Pnt2d& Center, cons } } +//================================================================================================= + const gp_Parab2d& gce_MakeParab2d::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakeParab2d::Value() - no result"); return TheParab2d; } +//================================================================================================= + const gp_Parab2d& gce_MakeParab2d::Operator() const { return Value(); } +//================================================================================================= + gce_MakeParab2d::operator gp_Parab2d() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakePln.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakePln.cxx index 74f3531395..24df43e778 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakePln.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakePln.cxx @@ -24,18 +24,24 @@ #include #include +//================================================================================================= + gce_MakePln::gce_MakePln(const gp_Ax2& A2) { ThePln = gp_Pln(gp_Ax3(A2)); TheError = gce_Done; } +//================================================================================================= + gce_MakePln::gce_MakePln(const gp_Pnt& P, const gp_Dir& V) { ThePln = gp_Pln(P, V); TheError = gce_Done; } +//================================================================================================= + gce_MakePln::gce_MakePln(const gp_Pnt& P1, const gp_Pnt& P2) { if (P1.Distance(P2) <= gp::Resolution()) @@ -50,6 +56,8 @@ gce_MakePln::gce_MakePln(const gp_Pnt& P1, const gp_Pnt& P2) } } +//================================================================================================= + gce_MakePln::gce_MakePln(const double A, const double B, const double C, const double D) { if (A * A + B * B + C * C <= gp::Resolution()) @@ -63,9 +71,7 @@ gce_MakePln::gce_MakePln(const double A, const double B, const double C, const d } } -//========================================================================= -// Creation d un gp_pln passant par trois points. + -//========================================================================= +//================================================================================================= gce_MakePln::gce_MakePln(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) { @@ -85,9 +91,7 @@ gce_MakePln::gce_MakePln(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) } } -//========================================================================= -// Creation d un gp_pln parallele a un autre pln a une distance donnee. + -//========================================================================= +//================================================================================================= gce_MakePln::gce_MakePln(const gp_Pln& Pl, const double Dist) { @@ -96,10 +100,7 @@ gce_MakePln::gce_MakePln(const gp_Pln& Pl, const double Dist) TheError = gce_Done; } -//========================================================================= -// Creation d un gp_pln parallele a un autre pln passant par un point + -// . + -//========================================================================= +//================================================================================================= gce_MakePln::gce_MakePln(const gp_Pln& Pl, const gp_Pnt& Point) { @@ -107,9 +108,7 @@ gce_MakePln::gce_MakePln(const gp_Pln& Pl, const gp_Pnt& Point) TheError = gce_Done; } -//========================================================================= -// Creation d un gp_pln a partir d un Ax1 (Point + Normale). + -//========================================================================= +//================================================================================================= gce_MakePln::gce_MakePln(const gp_Ax1& Axis) { @@ -117,28 +116,23 @@ gce_MakePln::gce_MakePln(const gp_Ax1& Axis) TheError = gce_Done; } -//========================================================================= -// Creation d un gp_pln par un tableau de points. + -//========================================================================= +//================================================================================================= -/*gce_MakePln::gce_MakePln(const gp_Array1OfPnt& Pts , - double ErrMax , - double ErrMean ) -{ - TheError = gce_ConfusedPoints; -} -*/ const gp_Pln& gce_MakePln::Value() const { StdFail_NotDone_Raise_if(TheError != gce_Done, "gce_MakePln::Value() - no result"); return ThePln; } +//================================================================================================= + const gp_Pln& gce_MakePln::Operator() const { return Value(); } +//================================================================================================= + gce_MakePln::operator gp_Pln() const { return Value(); diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeRotation.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeRotation.cxx index 5194bbe611..b0ca029e3b 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeRotation.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeRotation.cxx @@ -20,45 +20,43 @@ #include #include -//========================================================================= -// Creation d une rotation 3d de gp d angle Angle par rapport a une + -// droite Line. + -//========================================================================= +//================================================================================================= + gce_MakeRotation::gce_MakeRotation(const gp_Lin& Line, const double Angle) { TheRotation.SetRotation(gp_Ax1(Line.Position()), Angle); } -//========================================================================= -// Creation d une rotation 3d de gp d angle Angle par rapport a un + -// axe Axis. + -//========================================================================= +//================================================================================================= gce_MakeRotation::gce_MakeRotation(const gp_Ax1& Axis, const double Angle) { TheRotation.SetRotation(Axis, Angle); } -//========================================================================= -// Creation d une rotation 3d de gp d angle Angle par rapport a une + -// droite issue du point Point et de direction Direc. + -//========================================================================= +//================================================================================================= gce_MakeRotation::gce_MakeRotation(const gp_Pnt& Point, const gp_Dir& Direc, const double Angle) { TheRotation.SetRotation(gp_Ax1(Point, Direc), Angle); } +//================================================================================================= + const gp_Trsf& gce_MakeRotation::Value() const { return TheRotation; } +//================================================================================================= + const gp_Trsf& gce_MakeRotation::Operator() const { return TheRotation; } +//================================================================================================= + gce_MakeRotation::operator gp_Trsf() const { return TheRotation; diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeRotation2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeRotation2d.cxx index 790b65a52d..b8ef438bc2 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeRotation2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeRotation2d.cxx @@ -18,25 +18,29 @@ #include #include -//========================================================================= -// Creation d une rotation 2d de gp d angle Angle par rapport a un + -// point Point. + -//========================================================================= +//================================================================================================= + gce_MakeRotation2d::gce_MakeRotation2d(const gp_Pnt2d& Point, const double Angle) { TheRotation2d.SetRotation(Point, Angle); } +//================================================================================================= + const gp_Trsf2d& gce_MakeRotation2d::Value() const { return TheRotation2d; } +//================================================================================================= + const gp_Trsf2d& gce_MakeRotation2d::Operator() const { return TheRotation2d; } +//================================================================================================= + gce_MakeRotation2d::operator gp_Trsf2d() const { return TheRotation2d; diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeScale.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeScale.cxx index 0cd5ff1aa0..f63b8d8bf6 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeScale.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeScale.cxx @@ -18,24 +18,29 @@ #include #include -//========================================================================= -// Creation d un homothetie de gp de centre Point et de rapport Scale. + -//========================================================================= +//================================================================================================= + gce_MakeScale::gce_MakeScale(const gp_Pnt& Point, const double Scale) { TheScale.SetScale(Point, Scale); } +//================================================================================================= + const gp_Trsf& gce_MakeScale::Value() const { return TheScale; } +//================================================================================================= + const gp_Trsf& gce_MakeScale::Operator() const { return TheScale; } +//================================================================================================= + gce_MakeScale::operator gp_Trsf() const { return TheScale; diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeScale2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeScale2d.cxx index 0569e1c05c..960d3b45b4 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeScale2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeScale2d.cxx @@ -18,24 +18,29 @@ #include #include -//========================================================================= -// Creation d un homothetie de gp de centre Point et de rapport Scale. + -//========================================================================= +//================================================================================================= + gce_MakeScale2d::gce_MakeScale2d(const gp_Pnt2d& Point, const double Scale) { TheScale2d.SetScale(Point, Scale); } +//================================================================================================= + const gp_Trsf2d& gce_MakeScale2d::Value() const { return TheScale2d; } +//================================================================================================= + const gp_Trsf2d& gce_MakeScale2d::Operator() const { return TheScale2d; } +//================================================================================================= + gce_MakeScale2d::operator gp_Trsf2d() const { return TheScale2d; diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation.cxx index bf3111e857..a64850acd7 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation.cxx @@ -19,34 +19,36 @@ #include #include -//========================================================================= -// Creation d une translation 3d de gp de vecteur de translation Vec. + -//========================================================================= +//================================================================================================= + gce_MakeTranslation::gce_MakeTranslation(const gp_Vec& Vec) { TheTranslation.SetTranslation(Vec); } -//========================================================================= -// Creation d une translation 3d de gp de vecteur de translation le + -// vecteur reliant Point1 a Point2. + -//========================================================================= +//================================================================================================= gce_MakeTranslation::gce_MakeTranslation(const gp_Pnt& Point1, const gp_Pnt& Point2) { TheTranslation.SetTranslation(gp_Vec(Point1, Point2)); } +//================================================================================================= + const gp_Trsf& gce_MakeTranslation::Value() const { return TheTranslation; } +//================================================================================================= + const gp_Trsf& gce_MakeTranslation::Operator() const { return TheTranslation; } +//================================================================================================= + gce_MakeTranslation::operator gp_Trsf() const { return TheTranslation; diff --git a/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation2d.cxx b/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation2d.cxx index 59bc1eec64..2e155c766a 100644 --- a/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation2d.cxx +++ b/src/ModelingData/TKGeomBase/gce/gce_MakeTranslation2d.cxx @@ -19,34 +19,36 @@ #include #include -//========================================================================= -// Creation d une translation 2d de gp de vecteur de translation Vec. + -//========================================================================= +//================================================================================================= + gce_MakeTranslation2d::gce_MakeTranslation2d(const gp_Vec2d& Vec) { TheTranslation2d.SetTranslation(Vec); } -//========================================================================= -// Creation d une translation 2d de gp de vecteur de translation le + -// vecteur reliant Point1 a Point2. + -//========================================================================= +//================================================================================================= gce_MakeTranslation2d::gce_MakeTranslation2d(const gp_Pnt2d& Point1, const gp_Pnt2d& Point2) { TheTranslation2d.SetTranslation(gp_Vec2d(Point1, Point2)); } +//================================================================================================= + const gp_Trsf2d& gce_MakeTranslation2d::Value() const { return TheTranslation2d; } +//================================================================================================= + const gp_Trsf2d& gce_MakeTranslation2d::Operator() const { return TheTranslation2d; } +//================================================================================================= + gce_MakeTranslation2d::operator gp_Trsf2d() const { return TheTranslation2d; diff --git a/src/Visualization/TKService/GTests/Graphic3d_BndBox_Test.cxx b/src/Visualization/TKService/GTests/Graphic3d_BndBox_Test.cxx index c71f0cb7fa..281d953fa8 100644 --- a/src/Visualization/TKService/GTests/Graphic3d_BndBox_Test.cxx +++ b/src/Visualization/TKService/GTests/Graphic3d_BndBox_Test.cxx @@ -22,9 +22,9 @@ #include #include -//================================================================================================== +//================================================================================================= // Constructor Tests -//================================================================================================== +//================================================================================================= TEST(Graphic3d_BndBox3dTest, DefaultConstructor) { @@ -59,9 +59,9 @@ TEST(Graphic3d_BndBox3dTest, PointsConstructor) EXPECT_DOUBLE_EQ(6.0, aBox.CornerMax().z()) << "Zmax should match constructor input"; } -//================================================================================================== +//================================================================================================= // Add and Combine Tests -//================================================================================================== +//================================================================================================= TEST(Graphic3d_BndBox3dTest, AddPoint) { @@ -93,9 +93,9 @@ TEST(Graphic3d_BndBox3dTest, CombineBoxes) EXPECT_DOUBLE_EQ(6.0, aBox1.CornerMax().z()) << "Combined box should adopt max Z from either box"; } -//================================================================================================== +//================================================================================================= // Size, Center and Area Tests -//================================================================================================== +//================================================================================================= TEST(Graphic3d_BndBox3dTest, BoxSize) { @@ -125,9 +125,9 @@ TEST(Graphic3d_BndBox3dTest, BoxArea) EXPECT_DOUBLE_EQ(52.0, anArea) << "Area should be 2*(XY + YZ + ZX) = 52 for box 2x3x4"; } -//================================================================================================== +//================================================================================================= // Transformation Tests -//================================================================================================== +//================================================================================================= TEST(Graphic3d_BndBox3dTest, TransformationIdentity) {