Coding - Method guard iterative update (#732)

Used regex in src folder:
^//[\s\n\r\t]*[-=]{2,}[=]*[\n\r]*//[\s\n\r\t]*[a-z]+[\s\n\r\t]*:[\s\n\r\t]*[a-z0-9_:\t\s]*[\s\n\r\t]*//[\s\n\r\t]*[a-z]+[\s\n\r\t]*:[\s\n\r\t]*[a-z0-9_\s\t./-><]{0,22}//[\s\n\r\t]*[-=]{3,}[=]*
This commit is contained in:
Pasukhin Dmitry
2025-09-21 11:50:56 +01:00
committed by GitHub
parent bbf9fe96a7
commit 47bc102e28
66 changed files with 604 additions and 1093 deletions
@@ -423,10 +423,8 @@ void BRepFill_Draft::Perform(const TopoDS_Shape& StopShape, const Standard_Boole
Sewing();
}
//=======================================================================
// function : Init
// purpose : Construction of laws.
//======================================================================
//=================================================================================================
void BRepFill_Draft::Init(const Handle(Geom_Surface)&,
const Standard_Real Length,
const Bnd_Box& Box)
@@ -272,10 +272,8 @@ void BRepFill_PipeShell::SetDiscrete()
mySection.Nullify(); // It is required to relocalize sections.
}
//=======================================================================
// function : Set
// purpose : Define a law Constant
//=======================================================================
//=================================================================================================
void BRepFill_PipeShell::Set(const gp_Ax2& Axe)
{
myTrihedron = GeomFill_IsFixed;
@@ -27,10 +27,7 @@
#include <TopOpeBRep_VPointInter.hxx>
#include <TopOpeBRepDS_Transition.hxx>
//-----------------------------------------------------------------------
// function : TransitionToOrientation
// purpose : static
//-----------------------------------------------------------------------
//=================================================================================================
static Standard_Boolean TransitionToOrientation(const IntSurf_Transition& T, TopAbs_Orientation& O)
{
@@ -208,9 +208,7 @@ TopAbs_State TopOpeBRep_FacesFiller::StateVPonFace(const TopOpeBRep_VPointInter&
return state;
}
// ----------------------------------------------------------------------
// Class methods
// ----------------------------------------------------------------------
//=================================================================================================
//=======================================================================
// function : Lminmax
@@ -113,10 +113,8 @@ void TopOpeBRepTool_CurveTool::SetGeomTool(const TopOpeBRepTool_GeomTool& GT)
myGeomTool.Define(GT);
}
//-----------------------------------------------------------------------
// function : MakePCurve
// purpose :
//-----------------------------------------------------------------------
//=================================================================================================
Standard_EXPORT Handle(Geom2d_Curve) MakePCurve(const ProjLib_ProjectedCurve& PC)
{
Handle(Geom2d_Curve) C2D;
@@ -246,9 +246,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_projPonS(const gp_Pnt& P
return Standard_True;
}
// ----------------------------------------------------------------------
// projecting point <P> on topologies (edge <E>,face <F>)
// ----------------------------------------------------------------------
//=================================================================================================
// ----------------------------------------------------------------------
Standard_EXPORT Standard_Boolean FUN_tool_projPonE(const gp_Pnt& P,
@@ -718,9 +718,7 @@ Standard_EXPORT void FUN_tool_mkBnd2d(const TopoDS_Shape& W, const TopoDS_Shape&
FUN_tool_UpdateBnd2d(B2d, newB2d);
}
// ----------------------------------------------------------------------
// closing topologies :
// ----------------------------------------------------------------------
//=================================================================================================
// ----------------------------------------------------------------------
Standard_EXPORT Standard_Boolean FUN_tool_IsClosingE(const TopoDS_Edge& E,
@@ -767,9 +765,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClosedE(const TopoDS_Edge& E,TopoDS_Sh
return Standard_False;
}*/
// ----------------------------------------------------------------------
// shared topologies :
// ----------------------------------------------------------------------
//=================================================================================================
// ----------------------------------------------------------------------
Standard_EXPORT Standard_Boolean FUN_tool_inS(const TopoDS_Shape& subshape,
@@ -1063,9 +1059,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_findPinE(const TopoDS_Shape& E,
return r;
}
// ----------------------------------------------------------------------
// tolerances :
// ----------------------------------------------------------------------
//=================================================================================================
// ----------------------------------------------------------------------
Standard_EXPORT Standard_Boolean FUN_tool_maxtol(const TopoDS_Shape& S,
@@ -1319,9 +1313,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_pcurveonF(const TopoDS_Face&
return Standard_False;
}
// ----------------------------------------------------------------------
// shared geometry :
// ----------------------------------------------------------------------
//=================================================================================================
// ----------------------------------------------------------------------
Standard_EXPORT Standard_Boolean FUN_tool_curvesSO(const TopoDS_Edge& E1,
@@ -1426,9 +1418,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_findAncestor(const TopTools_ListOfShap
return Standard_False;
}
// ----------------------------------------------------------------------
// new topologies :
// ----------------------------------------------------------------------
//=================================================================================================
// FUN_ds_* methods are methods of TopOpeBRepDS_BuildTool
// that cannot be called (cyclic dependencies)
@@ -25,9 +25,7 @@
#define M_INTERNAL(ori) (ori == TopAbs_INTERNAL)
#define M_EXTERNAL(ori) (ori == TopAbs_EXTERNAL)
// ----------------------------------------------------------------------
// oriented vectors :
// ----------------------------------------------------------------------
//=================================================================================================
// ----------------------------------------------------------------------
Standard_EXPORT gp_Dir FUN_tool_nCinsideS(const gp_Dir& tgC, const gp_Dir& ngS)
@@ -189,10 +189,7 @@ BRepBlend_RstRstLineBuilder::BRepBlend_RstRstLineBuilder(const Handle(Adaptor3d_
{
}
//=======================================================================
// function : Perform
// purpose : launch the processing
//=======================================================================
//=================================================================================================
void BRepBlend_RstRstLineBuilder::Perform(Blend_RstRstFunction& Func,
Blend_SurfCurvFuncInv& Finv1,
@@ -363,10 +363,8 @@ void GeomFill_SectionPlacement::Perform(const Standard_Real Tol)
Perform(Path, Tol);
}
//===============================================================
// Function :Perform
// Purpose : Recherche automatique
//===============================================================
//=================================================================================================
void GeomFill_SectionPlacement::Perform(const Handle(Adaptor3d_Curve)& Path,
const Standard_Real Tol)
{
@@ -225,9 +225,8 @@ GeomPlate_BuildPlateSurface::GeomPlate_BuildPlateSurface(const Standard_Integer
// =========================================================
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
//-------------------------------------------------------------------------
// Function : TrierTab, internal Function, does not belong to class
//-------------------------------------------------------------------------
//=================================================================================================
// Reorder the table of transformations
// After the call of CourbeJointive the order of curves is modified
// Ex : initial order of curves ==> A B C D E F
@@ -1352,9 +1351,8 @@ Standard_Boolean GeomPlate_BuildPlateSurface::CourbeJointive(const Standard_Real
return Standard_False;
}
//-------------------------------------------------------------------------
// Function : ComputeSurfInit
//-------------------------------------------------------------------------
//=================================================================================================
// Calculate the initial surface either by the method of max flow or by
// the method of the plane of inertia if the contour is not closed or if
// there are point constraints.
@@ -2337,10 +2337,8 @@ IntSurf_PntOn2S MakeNewPoint(const IntSurf_PntOn2S& replacePnt,
return NewPoint;
}
//==================================================================================
// function : Perform
// purpose : base SS Int. function
//==================================================================================
//=================================================================================================
void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_Surface)& Surf1,
const Handle(Adaptor3d_TopolTool)& D1,
const Handle(Adaptor3d_Surface)& Surf2,
@@ -292,10 +292,7 @@ Standard_Boolean Intf_TangentZone::HasCommonRange(const Intf_TangentZone& Other)
return Standard_False;
}
//=======================================================================
// function : Dump
// purpose : Dump the TangentZone.
//=======================================================================
//=================================================================================================
void Intf_TangentZone::Dump(const Standard_Integer /*Indent*/) const
{
@@ -200,10 +200,9 @@ Standard_Integer Contap_ArcFunction::NbSamples() const
}
// modified by NIZNHY-PKV Thu Mar 29 16:53:07 2001f
//=======================================================================
// function : Quadric
// purpose : returns empty Quadric
//=======================================================================
//=================================================================================================
const IntSurf_Quadric& Contap_ArcFunction::Quadric() const
{
return (myQuad);
@@ -211,10 +211,7 @@ HLRBRep_EdgeBuilder::HLRBRep_EdgeBuilder(HLRBRep_VertexList& VList)
Builds(TopAbs_IN);
}
//=======================================================================
// function : InitAreas
// purpose : set on the first area
//=======================================================================
//=================================================================================================
void HLRBRep_EdgeBuilder::InitAreas()
{
@@ -183,10 +183,7 @@ void BRepPrim_Builder::SetParameters(TopoDS_Edge& E,
myBuilder.Range(E, P1, P2);
}
//=======================================================================
// function : AddWireEdge
// purpose : Add an Edge to a Wire
//=======================================================================
//=================================================================================================
void BRepPrim_Builder::AddWireEdge(TopoDS_Wire& W,
const TopoDS_Edge& E,
@@ -205,10 +202,7 @@ void BRepPrim_Builder::AddFaceWire(TopoDS_Face& F, const TopoDS_Wire& W) const
myBuilder.Add(F, W);
}
//=======================================================================
// function : AddShellFace
// purpose : Add a Face to a Shell
//=======================================================================
//=================================================================================================
void BRepPrim_Builder::AddShellFace(TopoDS_Shell& S, const TopoDS_Face& F) const
{
@@ -54,9 +54,8 @@
/*********************************************************************************/
//------------------------------------------------------------------------------
// function: TRI_SOLUTION
//------------------------------------------------------------------------------
//=================================================================================================
static Standard_Boolean TRI_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol, const gp_Pnt& Pt)
{
for (BRepExtrema_SeqOfSolution::iterator anIt = SeqSol.begin(); anIt != SeqSol.end(); anIt++)
@@ -70,9 +69,8 @@ static Standard_Boolean TRI_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol, co
return Standard_True;
}
//------------------------------------------------------------------------------
// function: MIN_SOLUTION
//------------------------------------------------------------------------------
//=================================================================================================
static void MIN_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol1,
const BRepExtrema_SeqOfSolution& SeqSol2,
const Standard_Real DstRef,
@@ -93,9 +91,8 @@ static void MIN_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol1,
}
}
//------------------------------------------------------------------------------
// function: TRIM_INFINIT_EDGE
//------------------------------------------------------------------------------
//=================================================================================================
static void TRIM_INFINIT_EDGE(const TopoDS_Edge& S1,
const TopoDS_Edge& S2,
TopoDS_Edge& aResEdge,
@@ -220,9 +217,8 @@ static void TRIM_INFINIT_EDGE(const TopoDS_Edge& S1,
}
}
//------------------------------------------------------------------------------
// function: TRIM_INFINIT_FACE
//------------------------------------------------------------------------------
//=================================================================================================
static void TRIM_INFINIT_FACE(const TopoDS_Shape& S1,
const TopoDS_Shape& S2,
TopoDS_Face& aResFace,
@@ -409,9 +405,8 @@ static void TRIM_INFINIT_FACE(const TopoDS_Shape& S1,
bIsInfinit = Standard_False;
}
//------------------------------------------------------------------------------
// static function: PERFORM_C0
//------------------------------------------------------------------------------
//=================================================================================================
static void PERFORM_C0(const TopoDS_Edge& S1,
const TopoDS_Edge& S2,
BRepExtrema_SeqOfSolution& SeqSol1,