mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 21:28:11 +08:00
Coding - Translate French comments and modernize constants (#932)
This commit performs safe code cleanup across multiple modules:
1. French to English comment translations:
- ApplicationFramework: TNaming, TDF, TDataStd packages
- ModelingAlgorithms: BRepFill, TopOpeBRepBuild, TopOpeBRepTool,
NLPlate, FairCurve, IntSurf, Contap, ShapeFix, MAT2d, LocOpe
- ModelingData: ProjLib, GeomLib, GeomConvert, IntAna, AppDef,
GCPnts, Hermit, BinTools, LProp
- Visualization: PrsDim, AIS, V3d packages
2. Constexpr modernization:
- Convert static const variables to constexpr
- Replace #define macros with constexpr variables
- Add anonymous namespaces for internal constants
- Affected files: V3d_View, V3d_CircularGrid, V3d_RectangularGrid,
Graphic3d_FrameStats, PrsDim_*, Convert_*ToBSplineSurface,
math_BrentMinimum, and others
3. Code organization:
- Wrap file-scope constants in anonymous namespaces
- Use consistent naming convention (THE_* prefix)
No functional changes - all modifications are comment-only or
compile-time constant improvements that preserve identical runtime
behavior.
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
|
||||
// Jeannine PANCIATICI le 06/06/96
|
||||
// Igor FEOKTISTOV 14/12/98 - correction of Approximate() and Init().
|
||||
// Approximation d une MultiLine de points decrite par le tool MLineTool.
|
||||
// avec criteres variationnels
|
||||
// Approximation of a MultiLine of points described by the tool MLineTool.
|
||||
// with variational criteria
|
||||
|
||||
#include <AppDef_MultiLine.hxx>
|
||||
#include <AppDef_Variational.hxx>
|
||||
@@ -1311,8 +1311,8 @@ void AppDef_Variational::TheMotor(Handle(AppDef_SmoothCriterion)& J,
|
||||
|
||||
lconst = Standard_False;
|
||||
|
||||
// (1.2) calcul des criteres de qualites et amelioration
|
||||
// des estimation.
|
||||
// (1.2) calculation of quality criteria and improvement
|
||||
// of estimation.
|
||||
ICDANA = J->QualityValues(J1min, J2min, J3min, VALCRI[0], VALCRI[1], VALCRI[2]);
|
||||
|
||||
if (ICDANA > 0)
|
||||
@@ -1322,8 +1322,8 @@ void AppDef_Variational::TheMotor(Handle(AppDef_SmoothCriterion)& J,
|
||||
|
||||
isnear = ((std::sqrt(ERRQUA / NbrPnt) < 2 * WQuality) && (myNbIterations > 1));
|
||||
|
||||
// (1.3) Optimisation des ti par proj orthogonale
|
||||
// et calcul de l'erreur aux points.
|
||||
// (1.3) Optimization of ti by orthogonal projection
|
||||
// and calculation of the error at points.
|
||||
|
||||
if (isnear)
|
||||
{
|
||||
@@ -1455,15 +1455,15 @@ void AppDef_Variational::TheMotor(Handle(AppDef_SmoothCriterion)& J,
|
||||
|
||||
CCurrent = CNew;
|
||||
|
||||
// (2.4) calcul des criteres de qualites et amelioration
|
||||
// des estimation.
|
||||
// (2.4) calculation of quality criteria and improvement
|
||||
// of estimation.
|
||||
|
||||
ICDANA = J->QualityValues(J1min, J2min, J3min, VALCRI[0], VALCRI[1], VALCRI[2]);
|
||||
if (ICDANA > 0)
|
||||
lconst = Standard_True;
|
||||
|
||||
J->GetEstimation(e1, e2, e3);
|
||||
// (2.5) Optimisation des ti par proj orthogonale
|
||||
// (2.5) Optimization of ti by orthogonal projection
|
||||
|
||||
NewTi = new (TColStd_HArray1OfReal)(1, CurrentTi->Length());
|
||||
Project(CCurrent,
|
||||
|
||||
Reference in New Issue
Block a user