Coding - Standardize comment separators, translate French comments (#1126)

Normalize method separator lines across the codebase to exactly
100 characters (// followed by 98 = signs) matching the project
coding standard.

Translate remaining French comments to English in ModelingData
packages (TKBRep, TKG2d, TKG3d, TKGeomBase) and FoundationClasses.

Add [[nodiscard]] attribute to Copy() methods on Geom_Geometry,
Geom2d_Geometry, Geom_Transformation, and Geom2d_Transformation
to prevent accidental discard of returned handles.

Fix typo in AppDef_Variational::Dump() debug output: "Nombre of
3d par multipoint" -> "Number of 3d per multipoint".

Update .github/copilot-instructions.md separator examples to match
the corrected convention.
This commit is contained in:
Pasukhin Dmitry
2026-02-27 12:34:21 +00:00
committed by GitHub
parent d7abd72eac
commit 2ce7b26ddb
366 changed files with 3945 additions and 4583 deletions

View File

@@ -20,28 +20,28 @@
#include <TopAbs_Orientation.hxx>
#include <TopoDS_Edge.hxx>
//==================================================================================================
//=================================================================================================
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<BRepAdaptor_Curve>& 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<BRepAdaptor_Curve>& theCurve)
{
@@ -71,7 +71,7 @@ void BRepProp_Curve::initialization(const occ::handle<BRepAdaptor_Curve>& 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,

View File

@@ -15,28 +15,28 @@
#include <TopoDS_Face.hxx>
//==================================================================================================
//=================================================================================================
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<BRepAdaptor_Surface>& 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<BRepAdaptor_Surface>& theSurface)
{
@@ -66,7 +66,7 @@ void BRepProp_Surface::initialization(const occ::handle<BRepAdaptor_Surface>& 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,