mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-05 04:07:58 +08:00
Coding - Method guard iterative update (#674)
- Standardizes comment formatting by replacing detailed comment blocks with a uniform "//=================================================================================================" separator - Removes redundant "function:" and "purpose:" fields that often contained minimal or no useful information - Maintains code functionality while improving visual consistency across the codebase
This commit is contained in:
@@ -20,10 +20,8 @@
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <Extrema_ExtPS.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : Perform
|
||||
// purpose : General intersection
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void GeomInt_IntSS::Perform(const Handle(Geom_Surface)& S1,
|
||||
const Handle(Geom_Surface)& S2,
|
||||
const Standard_Real Tol,
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
#include <IntPatch_Point.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomInt_IntSS
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomInt_IntSS::GeomInt_IntSS()
|
||||
: myNbrestr(0),
|
||||
myTolReached2d(0.0),
|
||||
@@ -30,10 +28,8 @@ inline GeomInt_IntSS::GeomInt_IntSS()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomInt_IntSS
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomInt_IntSS::GeomInt_IntSS(const Handle(Geom_Surface)& S1,
|
||||
const Handle(Geom_Surface)& S2,
|
||||
const Standard_Real Tol,
|
||||
@@ -85,65 +81,51 @@ inline void GeomInt_IntSS::Perform(const Handle(GeomAdaptor_Surface)& HS1,
|
||||
InternalPerform(Tol, Approx, ApproxS1, ApproxS2, Standard_True, U1, V1, U2, V2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomInt_IntSS::IsDone() const
|
||||
{
|
||||
return myIntersector.IsDone();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TolReached2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real GeomInt_IntSS::TolReached2d() const
|
||||
{
|
||||
return myTolReached2d;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TolReached3d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real GeomInt_IntSS::TolReached3d() const
|
||||
{
|
||||
return myTolReached3d;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbLines
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_IntSS::NbLines() const
|
||||
{
|
||||
return sline.Length() - myNbrestr;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbBoundaries
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_IntSS::NbBoundaries() const
|
||||
{
|
||||
StdFail_NotDone_Raise_if(!myIntersector.IsDone(), "GeomInt_IntSS::NbBoundaries() - no result");
|
||||
return myNbrestr;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbPoints
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_IntSS::NbPoints() const
|
||||
{
|
||||
return myIntersector.NbPnts();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Point
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline gp_Pnt GeomInt_IntSS::Point(const Standard_Integer Index) const
|
||||
{
|
||||
return myIntersector.Point(Index).Value();
|
||||
|
||||
@@ -16,20 +16,14 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomInt_LineConstructor
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomInt_LineConstructor::GeomInt_LineConstructor()
|
||||
: done(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Load
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void GeomInt_LineConstructor::Load(const Handle(Adaptor3d_TopolTool)& D1,
|
||||
const Handle(Adaptor3d_TopolTool)& D2,
|
||||
@@ -42,20 +36,14 @@ inline void GeomInt_LineConstructor::Load(const Handle(Adaptor3d_TopolTool)& D1,
|
||||
myHS2 = S2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomInt_LineConstructor::IsDone() const
|
||||
{
|
||||
return done;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbParts
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_LineConstructor::NbParts() const
|
||||
{
|
||||
@@ -66,10 +54,8 @@ inline Standard_Integer GeomInt_LineConstructor::NbParts() const
|
||||
return (seqp.Length() / 2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Part
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void GeomInt_LineConstructor::Part(const Standard_Integer I,
|
||||
Standard_Real& WFirst,
|
||||
Standard_Real& WLast) const
|
||||
|
||||
Reference in New Issue
Block a user