mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-08 06:36:51 +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:
@@ -340,10 +340,8 @@ Standard_Boolean BRepTools_History::prepareModified(const TopoDS_Shape& theIniti
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// data : myEmptyList
|
||||
// purpose :
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const TopTools_ListOfShape BRepTools_History::myEmptyList;
|
||||
|
||||
//=================================================================================================
|
||||
@@ -353,30 +351,22 @@ const TopTools_ListOfShape& BRepTools_History::emptyList()
|
||||
return myEmptyList;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// data : myMsgUnsupportedType
|
||||
// purpose :
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const char* BRepTools_History::myMsgUnsupportedType = "Error: unsupported shape type.";
|
||||
|
||||
//==============================================================================
|
||||
// data : myMsgGeneratedAndRemoved
|
||||
// purpose :
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const char* BRepTools_History::myMsgGeneratedAndRemoved =
|
||||
"Error: a shape is generated and removed simultaneously.";
|
||||
|
||||
//==============================================================================
|
||||
// data : myMsgModifiedAndRemoved
|
||||
// purpose :
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const char* BRepTools_History::myMsgModifiedAndRemoved =
|
||||
"Error: a shape is modified and removed simultaneously.";
|
||||
|
||||
//==============================================================================
|
||||
// data : myMsgGeneratedAndModified
|
||||
// purpose :
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const char* BRepTools_History::myMsgGeneratedAndModified =
|
||||
"Error: a shape is generated and modified "
|
||||
"from the same shape simultaneously.";
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : ModifiedShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& BRepTools_Modifier::ModifiedShape(const TopoDS_Shape& S) const
|
||||
{
|
||||
@@ -30,10 +27,8 @@ inline const TopoDS_Shape& BRepTools_Modifier::ModifiedShape(const TopoDS_Shape&
|
||||
return myMap(S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepTools_Modifier::IsDone() const
|
||||
{
|
||||
return myDone;
|
||||
|
||||
Reference in New Issue
Block a user