mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0022312: Translation of french commentaries in OCCT files
This commit is contained in:
@@ -78,7 +78,7 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
STAT.NbConstrShape++;
|
||||
#endif
|
||||
|
||||
//-- impasse sur les surfs definies sur plus d une periode
|
||||
//-- dead end on surfaces defined on more than one period
|
||||
|
||||
Face.Orientation(TopAbs_FORWARD);
|
||||
Handle(BRepAdaptor_HSurface) surf = new BRepAdaptor_HSurface();
|
||||
@@ -141,7 +141,7 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
//if(degenerated==Standard_False)
|
||||
// C3d.Initialize(edge,Face);
|
||||
|
||||
//-- Verification des cas ou on a oublie de coder degenereted : PRO17410 (janv 99)
|
||||
//-- Check cases when it was forgotten to code degenerated : PRO17410 (janv 99)
|
||||
if(degenerated == Standard_False)
|
||||
{
|
||||
C3d.Initialize(edge,Face);
|
||||
@@ -168,7 +168,7 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
|
||||
//Standard_Integer nbs = 1 + Geom2dInt_Geom2dCurveTool::NbSamples(C);
|
||||
Standard_Integer nbs = Geom2dInt_Geom2dCurveTool::NbSamples(C);
|
||||
//-- Attention aux bsplines rationnelles de degree 3. (bouts de cercles entre autres)
|
||||
//-- Attention to rational bsplines of degree 3. (ends of circles among others)
|
||||
if (nbs > 2) nbs*=4;
|
||||
du = (plbid-pfbid)/(Standard_Real)(nbs-1);
|
||||
|
||||
@@ -176,10 +176,10 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
else { u = plbid; du=-du; }
|
||||
|
||||
//-- ------------------------------------------------------------
|
||||
//-- On regarde la distance uv entre le point de debut de l edge
|
||||
//-- et le dernier point enregistre dans SeqPnt2d
|
||||
//-- On cherche a eloigner le premier point de l edge courant
|
||||
//-- du dernier point enregistre
|
||||
//-- Check distance uv between the start point of the edge
|
||||
//-- and the last point registered in SeqPnt2d
|
||||
//-- Try to remote the first point of the current edge
|
||||
//-- from the last saved point
|
||||
#ifdef DEB
|
||||
gp_Pnt2d Pnt2dDebutEdgeCourant=
|
||||
#endif
|
||||
@@ -247,14 +247,14 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
} //-- Edges -> for(Ware.Explorer
|
||||
|
||||
if(NbEdges)
|
||||
{ //-- on compte ++ avec un explorateur normal et -- avec le Wire Exploreur
|
||||
{ //-- on compte ++ with a normal explorer and with the Wire Explorer
|
||||
/*
|
||||
#ifdef DEB
|
||||
|
||||
cout << endl;
|
||||
cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probablement FAUX **" << endl;
|
||||
cout << "*** WireExplorer ne trouve pas tous les edges " << endl;
|
||||
cout << "*** On Branche l ancien classifieur" << endl;
|
||||
cout << "*** WireExplorer does not find all edges " << endl;
|
||||
cout << "*** Connect old classifier" << endl;
|
||||
#endif
|
||||
*/
|
||||
TColgp_Array1OfPnt2d PClass(1,2);
|
||||
@@ -272,12 +272,12 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
Standard_Real angle = 0.0, square = 0.0;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
//-- ** Le mode de calcul a ete un peu change
|
||||
//-- Avant le 31 oct 97 , on evaluait l'angle total de
|
||||
//-- rotation du wire sur tous les angles sauf le dernier
|
||||
//-- ** Maintenant , on evalue exactement l'angle de rotation
|
||||
//-- Si trouve une valeur eloignee de 2PI ou -2PI, c'est qu il
|
||||
//-- y a eu un nombre impair de boucles
|
||||
//-- ** The mode of calculation was somewhat changed
|
||||
//-- Before Oct 31 97 , the total angle of
|
||||
//-- rotation of the wire was evaluated on all angles except for the last
|
||||
//-- ** Now, exactly the angle of rotation is evaluated
|
||||
//-- If a value remote from 2PI or -2PI is found, it means that there is
|
||||
//-- an uneven number of loops
|
||||
|
||||
if(nbpnts>3)
|
||||
{
|
||||
@@ -318,9 +318,9 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
// TabOrien.Append(-1);
|
||||
//#ifdef DEB
|
||||
// cout << endl;
|
||||
// cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probablement FAUX **" << endl;
|
||||
// cout << "*** Angle de rotation cumule du wire : " << angle << endl;
|
||||
// cout << "*** On Branche l ancien classifieur" << endl;
|
||||
// cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probably FALSE **" << endl;
|
||||
// cout << "*** Total rotation angle of the wire : " << angle << endl;
|
||||
// cout << "*** Connect the old classifier" << endl;
|
||||
//#endif
|
||||
// }
|
||||
// else TabOrien.Append(((angle>0.0)? 1 : 0));
|
||||
@@ -330,9 +330,9 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
{
|
||||
#ifdef DEB
|
||||
cout << endl;
|
||||
cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probablement FAUX **" << endl;
|
||||
cout << "*** Le wire echantillonne comporte moins de 3 points" << endl;
|
||||
cout << "*** On Branche l ancien classifieur" << endl;
|
||||
cout << "*** BRepTopAdaptor_Fclass2d ** Wire Probably FALSE **" << endl;
|
||||
cout << "*** The sample wire contains less than 3 points" << endl;
|
||||
cout << "*** Connect the old classifier" << endl;
|
||||
#endif
|
||||
BadWire=1;
|
||||
TabOrien.Append(-1);
|
||||
@@ -348,7 +348,7 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
|
||||
|
||||
if(nbtabclass>0)
|
||||
{
|
||||
//-- Si une erreur sur un wire a ete detecte : On met tous les TabOrien a -1
|
||||
//-- If an error was detected on a wire: set all TabOrien to -1
|
||||
if(BadWire) TabOrien(1)=-1;
|
||||
|
||||
if( surf->GetType()==GeomAbs_Cone
|
||||
@@ -402,7 +402,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::Perform(const gp_Pnt2d& _Puv,
|
||||
return(TopAbs_IN);
|
||||
}
|
||||
|
||||
//-- U1 est le First Param et U2 ds ce cas est U1+Period
|
||||
//-- U1 is the First Param and U2 in this case is U1+Period
|
||||
Standard_Real u=_Puv.X();
|
||||
Standard_Real v=_Puv.Y();
|
||||
Standard_Real uu = u, vv = v;
|
||||
@@ -485,7 +485,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::Perform(const gp_Pnt2d& _Puv,
|
||||
Status = TopAbs_OUT;
|
||||
}
|
||||
}
|
||||
else { //-- TabOrien(1)=-1 Wire Faux
|
||||
else { //-- TabOrien(1)=-1 False Wire
|
||||
BRepClass_FaceClassifier aClassifier;
|
||||
aClassifier.Perform(Face,Puv,Toluv);
|
||||
Status = aClassifier.State();
|
||||
@@ -538,7 +538,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::TestOnRestriction(const gp_Pnt2d& _Puv,
|
||||
return(TopAbs_IN);
|
||||
}
|
||||
|
||||
//-- U1 est le First Param et U2 ds ce cas est U1+Period
|
||||
//-- U1 is the First Param and U2 in this case is U1+Period
|
||||
Standard_Real u=_Puv.X();
|
||||
Standard_Real v=_Puv.Y();
|
||||
Standard_Real uu = u, vv = v;
|
||||
@@ -617,7 +617,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::TestOnRestriction(const gp_Pnt2d& _Puv,
|
||||
Status = TopAbs_OUT;
|
||||
}
|
||||
}
|
||||
else { //-- TabOrien(1)=-1 Wire Faux
|
||||
else { //-- TabOrien(1)=-1 False Wire
|
||||
BRepClass_FaceClassifier aClassifier;
|
||||
aClassifier.Perform(Face,Puv,Tol);
|
||||
Status = aClassifier.State();
|
||||
|
@@ -18,7 +18,7 @@ BRepTopAdaptor_HVertex::BRepTopAdaptor_HVertex
|
||||
gp_Pnt2d BRepTopAdaptor_HVertex::Value ()
|
||||
{
|
||||
// return myCurve->Value(Parameter(myCurve));
|
||||
return gp_Pnt2d(RealFirst(),RealFirst()); // rien a faire
|
||||
return gp_Pnt2d(RealFirst(),RealFirst()); // do nothing
|
||||
}
|
||||
|
||||
Standard_Real BRepTopAdaptor_HVertex::Parameter
|
||||
@@ -65,13 +65,13 @@ Standard_Real BRepTopAdaptor_HVertex::Resolution
|
||||
|
||||
}
|
||||
|
||||
// a defaut de mieux on borne la resolution parametrique a
|
||||
// 10 million*la tolerance du point
|
||||
// for lack of better options limit the parametric solution to
|
||||
// 10 million*tolerance of the point
|
||||
|
||||
if(tv > 1.e7*mag) ResUV = 1.e7;
|
||||
else ResUV = tv/mag;
|
||||
|
||||
// Controle
|
||||
// Control
|
||||
if (Or == TopAbs_REVERSED) pp = p+ResUV;
|
||||
else pp = p-ResUV;
|
||||
|
||||
@@ -85,7 +85,7 @@ Standard_Real BRepTopAdaptor_HVertex::Resolution
|
||||
|
||||
Standard_Real Dist=P.Distance(P1);
|
||||
if ((Dist>1e-12) && ((Dist > 1.1*tv) || (Dist< 0.8*tv))) {
|
||||
// Raffinement si possible
|
||||
// Refine if possible
|
||||
Standard_Real Dist1;
|
||||
if (Or == TopAbs_REVERSED) pp = p+tv/Dist;
|
||||
else pp = p-tv/Dist;
|
||||
@@ -98,7 +98,7 @@ Standard_Real BRepTopAdaptor_HVertex::Resolution
|
||||
DC.SetLinearForm(v2d.X(),DU,v2d.Y(),DV);
|
||||
Dist1 = P.Distance(P1);
|
||||
if (Abs(Dist1-tv) < Abs(Dist-tv)) {
|
||||
// On prend le resultat d'interpolation
|
||||
// Take the result of interpolation
|
||||
ResUV = tv/Dist;
|
||||
Dist = Dist1;
|
||||
}
|
||||
@@ -115,7 +115,7 @@ Standard_Real BRepTopAdaptor_HVertex::Resolution
|
||||
S.D0(p2d.X(),p2d.Y(),P1);
|
||||
Dist1 = P.Distance(P1);
|
||||
if (Abs(Dist1-tv) < Abs(Dist-tv)) {
|
||||
// On prend la nouvelle estimation
|
||||
// Take the new estimation
|
||||
ResUV = tv/mag;
|
||||
Dist = Dist1;
|
||||
}
|
||||
|
@@ -224,8 +224,7 @@ static
|
||||
return Adaptor3d_TopolTool::Orientation(C);
|
||||
}
|
||||
//-- ============================================================
|
||||
//-- m e t h o d e s u t i l i s e e s p o u r l e s
|
||||
//-- s a m p l e s
|
||||
//-- methods used for samples
|
||||
//-- ============================================================
|
||||
|
||||
//=======================================================================
|
||||
@@ -252,7 +251,7 @@ void Analyse(const TColgp_Array2OfPnt& array2,
|
||||
C.Y()-B.Y()-B.Y()+A.Y(),
|
||||
C.Z()-B.Z()-B.Z()+A.Z());
|
||||
Standard_Integer locnbch=0;
|
||||
for(j=3; j<nbvp;j++) { //-- essai
|
||||
for(j=3; j<nbvp;j++) { //-- test
|
||||
const gp_Pnt& Ax=array2.Value(i,j-1);
|
||||
const gp_Pnt& Bx=array2.Value(i,j);
|
||||
const gp_Pnt& Cx=array2.Value(i,j+1);
|
||||
@@ -284,7 +283,7 @@ void Analyse(const TColgp_Array2OfPnt& array2,
|
||||
C.Y()-B.Y()-B.Y()+A.Y(),
|
||||
C.Z()-B.Z()-B.Z()+A.Z());
|
||||
Standard_Integer locnbch=0;
|
||||
for(i=3; i<nbup;i++) { //-- essai
|
||||
for(i=3; i<nbup;i++) { //-- test
|
||||
const gp_Pnt& Ax=array2.Value(i-1,j);
|
||||
const gp_Pnt& Bx=array2.Value(i,j);
|
||||
const gp_Pnt& Cx=array2.Value(i+1,j);
|
||||
@@ -340,8 +339,8 @@ void Analyse(const TColgp_Array2OfPnt& array2,
|
||||
case GeomAbs_Cone:
|
||||
case GeomAbs_Sphere:
|
||||
case GeomAbs_Torus: {
|
||||
//-- On place 15 echnt pour 2pi
|
||||
//-- pas suffisant ->25 pour 2pi
|
||||
//-- Set 15 for 2pi
|
||||
//-- Not enough ->25 for 2pi
|
||||
nbsu = (Standard_Integer)(8*(usup-uinf));
|
||||
nbsv = (Standard_Integer)(7*(vsup-vinf));
|
||||
if(nbsu<5) nbsu=5;
|
||||
@@ -355,7 +354,7 @@ void Analyse(const TColgp_Array2OfPnt& array2,
|
||||
default: { nbsu = 10; nbsv=10; } break;
|
||||
}
|
||||
|
||||
//-- Si le nb de points est trop grand on analyse
|
||||
//-- If the number of points is too great, analyze
|
||||
//--
|
||||
//--
|
||||
|
||||
|
Reference in New Issue
Block a user