mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-05 12:17:50 +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:
@@ -83,10 +83,7 @@ void BRepPrim_Builder::MakeEdge(TopoDS_Edge& E, const gp_Lin& L) const
|
||||
myBuilder.MakeEdge(E, new Geom_Line(L), Precision::Confusion());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : MakeEdge
|
||||
// purpose : Make a Circular Edge
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepPrim_Builder::MakeEdge(TopoDS_Edge& E, const gp_Circ& C) const
|
||||
{
|
||||
@@ -201,10 +198,7 @@ void BRepPrim_Builder::AddWireEdge(TopoDS_Wire& W,
|
||||
myBuilder.Add(W, EE);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : AddFaceWire
|
||||
// purpose : Add a Wire to a Face
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepPrim_Builder::AddFaceWire(TopoDS_Face& F, const TopoDS_Wire& W) const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Builder
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const BRep_Builder& BRepPrim_Builder::Builder() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Builder
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const BRep_Builder& BRepSweep_Builder::Builder() const
|
||||
{
|
||||
|
||||
@@ -14,30 +14,21 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : More
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepSweep_Iterator::More() const
|
||||
{
|
||||
return myIterator.More();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Value
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& BRepSweep_Iterator::Value() const
|
||||
{
|
||||
return myIterator.Value();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Orientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation BRepSweep_Iterator::Orientation() const
|
||||
{
|
||||
|
||||
@@ -14,50 +14,35 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer Sweep_NumShape::Index() const
|
||||
{
|
||||
return myIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Type
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_ShapeEnum Sweep_NumShape::Type() const
|
||||
{
|
||||
return myType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Closed
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean Sweep_NumShape::Closed() const
|
||||
{
|
||||
return myClosed;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BegInfinite
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean Sweep_NumShape::BegInfinite() const
|
||||
{
|
||||
return myBegInf;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : EndInfinite
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean Sweep_NumShape::EndInfinite() const
|
||||
{
|
||||
|
||||
@@ -14,30 +14,21 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : More
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean Sweep_NumShapeIterator::More() const
|
||||
{
|
||||
return myMore;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Value
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Sweep_NumShape& Sweep_NumShapeIterator::Value() const
|
||||
{
|
||||
return myCurrentNumShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Orientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation Sweep_NumShapeIterator::Orientation() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user