1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0022312: Translation of french commentaries in OCCT files

This commit is contained in:
YSN
2011-10-27 07:50:55 +00:00
committed by bugmaster
parent b2342827fa
commit 0d9695538c
214 changed files with 8746 additions and 10449 deletions

View File

@@ -99,7 +99,7 @@ Standard_IMPORT Standard_Boolean BRepFeat_GettraceFEATRIB();
//=======================================================================
//function : LFPerform
//purpose : reconstruction topologique des nervures
//purpose : topological reconstruction of ribs
//=======================================================================
void BRepFeat_RibSlot::LFPerform()
@@ -127,7 +127,7 @@ void BRepFeat_RibSlot::LFPerform()
}
Standard_Boolean ChangeOpe = Standard_False;
// On espere qu`il n`y a qu`un solide dans le resultat
// Hope that there is just a solid in the result
Standard_Boolean UntilInShape = Standard_False;
TopTools_MapOfShape M;
@@ -174,7 +174,7 @@ void BRepFeat_RibSlot::LFPerform()
LocOpe_Gluer theGlue;
//cas de collage
//case of gluing
if (theOpe == 1) {
Standard_Boolean Collage = Standard_True;
@@ -216,12 +216,12 @@ void BRepFeat_RibSlot::LFPerform()
theOpe = 2;
ChangeOpe = Standard_True;
#ifdef DEB
cout << "Passage en ope. topologique" << endl;
cout << "Passage to topological operations" << endl;
#endif
}
}
// collage est toujours applicable
// gluing is always applicable
if (theOpe == 1) {
theGlue.Perform();
@@ -232,7 +232,7 @@ void BRepFeat_RibSlot::LFPerform()
//TopTools_ListIteratorOfListOfShape itt1;
if (!LShape.IsEmpty()) {
LocOpe_Builder theTOpe(theGlue.ResultingShape());
// On utilise LTool en temporaire
// Use of LTool is temporary
for (it2.Initialize(LShape);it2.More();it2.Next()) {
const TopTools_ListOfShape& ldf = myMap(it2.Value());
if (ldf.Extent() == 1 && ldf.First().IsSame(it2.Value())) {
@@ -318,7 +318,7 @@ void BRepFeat_RibSlot::LFPerform()
theOpe = 2;
ChangeOpe = Standard_True;
#ifdef DEB
cout << "Passage en ope. topologique" << endl;
cout << "Passage to. topologic operation" << endl;
#endif
}
@@ -340,16 +340,16 @@ void BRepFeat_RibSlot::LFPerform()
theOpe = 2;
ChangeOpe = Standard_True;
#ifdef DEB
cout << "Passage en ope. topologique" << endl;
cout << "Passage to topologic operation" << endl;
#endif
}
}
// cas sans collage
// case without gluing
if (theOpe == 2) {
// Attention si echec de collage, myGShape avec collage n'est pas correct
// Attention, if gluing fails, myGShape with gluing is not correct
if (ChangeOpe) {
myStatusError = BRepFeat_NoGluer;
NotDone();
@@ -504,7 +504,7 @@ void BRepFeat_RibSlot::LFPerform()
// myStatusError = BRepFeat_LocOpeNotDone;
// }
// else {
myStatusError = BRepFeat_LocOpeInvNotDone;// dernier recours (attention new et tangent edges)
myStatusError = BRepFeat_LocOpeInvNotDone;// last resort (attention to new and tangent edges)
#ifdef DEB
if (trc) cout << " Parts of Tool : direct Ope. Top." << endl;
#endif
@@ -594,7 +594,7 @@ const TopTools_ListOfShape& BRepFeat_RibSlot::Generated
if(S.ShapeType() != TopAbs_FACE) {
myGenerated.Clear();
if(myLFMap.IsEmpty() || !myLFMap.IsBound(S)) {
if (myMap.IsBound(S)) { // voir si on filtre sur face ou pas
if (myMap.IsBound(S)) { // check if filter on face or not
static TopTools_ListOfShape list;
list.Clear();
TopTools_ListIteratorOfListOfShape ite(myMap(S));
@@ -727,7 +727,7 @@ void BRepFeat_RibSlot::UpdateDescendants(const LocOpe_Gluer& G)
}
myMap.ChangeFind(orig).Clear();
for (itm.Initialize(newdsc); itm.More(); itm.Next()) {
// on verifie l`appartenance au shape...
// check the belonging to the shape...
for (exp.Init(S,TopAbs_FACE);exp.More();exp.Next()) {
if (exp.Current().IsSame(itm.Key())) {
myMap.ChangeFind(orig).Append(itm.Key());
@@ -812,7 +812,7 @@ BRepFeat_StatusError BRepFeat_RibSlot::CurrentStatusError() const
//=======================================================================
//function : CheckPoint
//purpose : point detrompeur cote matiere (cote d'extrusion)
//purpose : Proofing point material side (side of extrusion)
//=======================================================================
gp_Pnt BRepFeat_RibSlot::CheckPoint(const TopoDS_Edge& e,
@@ -824,9 +824,9 @@ gp_Pnt BRepFeat_RibSlot::CheckPoint(const TopoDS_Edge& e,
Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
if (trc) cout << "BRepFeat_RibSlot::CheckPoint" << endl;
#endif
// Produit vectoriel : normale au plan X direction Wire
// -> donne le cote matiere
// point detrompeur legerement a l'interieur cote matiere
// Vector product : normal to plane X direction Wire
// -> gives the material side
// Proofing point somewhat inside the material side
Standard_Real f, l;
Handle(Geom_Curve) cc = BRep_Tool::Curve(e, f, l);
@@ -847,7 +847,7 @@ gp_Pnt BRepFeat_RibSlot::CheckPoint(const TopoDS_Edge& e,
//=======================================================================
//function : Normal
//purpose : calcul de la normale a une face dans un point
//purpose : calculate the normal to a face in a point
//=======================================================================
gp_Dir BRepFeat_RibSlot::Normal(const TopoDS_Face& F,const gp_Pnt& P)
@@ -894,7 +894,7 @@ gp_Dir BRepFeat_RibSlot::Normal(const TopoDS_Face& F,const gp_Pnt& P)
//=======================================================================
//function : IntPar
//purpose : calcul du parametre d'un point sur une courbe
//purpose : calculate the parameter of a point on a curve
//=======================================================================
Standard_Real BRepFeat_RibSlot::IntPar(const Handle(Geom_Curve)& C,
@@ -933,7 +933,7 @@ Standard_Real BRepFeat_RibSlot::IntPar(const Handle(Geom_Curve)& C,
//=======================================================================
//function : EdgeExtention
//purpose : extention d'un edge en tangence
//purpose : extention of a edge by tangence
//=======================================================================
void BRepFeat_RibSlot::EdgeExtention(TopoDS_Edge& e,
@@ -993,7 +993,7 @@ void BRepFeat_RibSlot::EdgeExtention(TopoDS_Edge& e,
//=======================================================================
//function : ChoiceOfFaces
//purpose : choix de la face d'appui dans le cas d'appui sur un edge
//purpose : choose face of support in case of support on an edge
//=======================================================================
TopoDS_Face BRepFeat_RibSlot::ChoiceOfFaces(TopTools_ListOfShape& faces,
@@ -1053,7 +1053,7 @@ TopoDS_Face BRepFeat_RibSlot::ChoiceOfFaces(TopTools_ListOfShape& faces,
//=======================================================================
//function : HeightMax
//purpose : Calcul de la hauteur du prisme selon les parametres d`une boite englobante
//purpose : Calculate the height of the prism following the parameters of a bounding box
//=======================================================================
Standard_Real BRepFeat_RibSlot::HeightMax(const TopoDS_Shape& theSbase,
@@ -1083,7 +1083,7 @@ Standard_Real BRepFeat_RibSlot::HeightMax(const TopoDS_Shape& theSbase,
//=======================================================================
//function : ExtremeFaces
//purpose : Calcul des faces d'appui de la nervure
//purpose : Calculate the base faces of the rib
//=======================================================================
Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
@@ -1130,7 +1130,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
NumberOfEdges++;
}
// ---Le wire comporte 1 seul edge
// ---the wire includes only one edge
if(NumberOfEdges == 1) {
#ifdef DEB
if (trc) cout << " One Edge" << endl;
@@ -1139,7 +1139,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
Standard_Real f, l;//, f1, l1, temp;
gp_Pnt firstpoint, lastpoint;
// Points limite de l`unique edge
// Points limit the unique edge
const TopoDS_Edge& E = TopoDS::Edge(exp.Current());
Handle(Geom_Curve) cc = BRep_Tool::Curve(E, f, l);
gp_Pnt p1 = BRep_Tool::Pnt(TopExp::FirstVertex(E,Standard_True));
@@ -1148,8 +1148,8 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
Standard_Real FirstPar = f; Standard_Real LastPar = l;
// ---Recherche si les 2 points limites de l`unique edge du wire
// sont sur un edge ou un vertex du shape de base
// ---Find if 2 points limiting the unique edge of the wire
// are on an edge or a vertex of the base shape
Standard_Boolean PtOnFirstVertex = Standard_False;
Standard_Boolean PtOnLastVertex = Standard_False;
TopoDS_Vertex OnFirstVertex, OnLastVertex;
@@ -1162,8 +1162,8 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
if(PtOnFirstEdge) {
if (!PtOnFirstVertex) {
// Recherche de FirstFace : face du shape de base contenant OnFirstEdge
// satisfaisant ChoiceOfFaces
// Find FirstFace : face of the base shape containing OnFirstEdge
// meeting ChoiceOfFaces
TopExp_Explorer ex4, ex5;
ex4.Init(mySbase, TopAbs_FACE);
TopTools_ListOfShape faces;
@@ -1186,8 +1186,8 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
}
}
else if(PtOnFirstVertex) {
// Recherche de FirstFace : face du shape de base contenant OnFirstVertex
// satisfaisant ChoiceOfFaces
// Find FirstFace : face of the base shape containing OnFirstVertex
// meeting ChoiceOfFaces
TopExp_Explorer ex4, ex5;
ex4.Init(mySbase, TopAbs_FACE);
TopTools_ListOfShape faces;
@@ -1218,8 +1218,8 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
if(PtOnLastEdge) {
if (!PtOnLastVertex) {
// Recherche de LastFace : face du shape de base contenant OnLastEdge
// satisfaisant ChoiceOfFaces
// Find LastFace : face of the base shape containing OnLastEdge
// meeting ChoiceOfFaces
TopExp_Explorer ex4, ex5;
ex4.Init(mySbase, TopAbs_FACE);
TopTools_ListOfShape faces;
@@ -1243,8 +1243,8 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
}
}
else if(PtOnLastEdge && PtOnLastVertex) {
// Recherche de LastFace : face du shape de base contenant OnLastVertex
// satisfaisant ChoiceOfFaces
// Find LastFace : face of the base shape containing OnLastVertex
// meeting ChoiceOfFaces
TopExp_Explorer ex4, ex5;
ex4.Init(mySbase, TopAbs_FACE);
TopTools_ListOfShape faces;
@@ -1277,7 +1277,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
return Standard_True;
}
//--- On n'a pas trouve FirstFace ou LastFace
//--- FirstFace or LastFace was not found
#ifdef DEB
if (trc) cout << " FirstFace or LastFace null" << endl;
#endif
@@ -1354,7 +1354,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
return Data;
}
// ---Le wire comporte plusieurs edges
// ---The wire consists of several edges
else {
#ifdef DEB
if (trc) cout << " Multiple Edges" << endl;
@@ -1403,7 +1403,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
}
}
// ---Recherche thepoint est sur un edge ou un vertex de la face f
// ---Find thepoint on an edge or a vertex of face f
PtOnEdgeVertex(RevolRib, f, thePoint, FirstVertex, LastVertex,
PtOnEdge,OnEdge,PtOnVertex,OnVertex);
@@ -1547,8 +1547,8 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
//=======================================================================
//function : PtOnEdgeVertex
//purpose : Recherche si les 2 points limites de l`unique edge du wire
// sont sur un edge ou un vertex du shape de base
//purpose : Find if 2 limit points of the unique edge of a wire
// are on an edge or a vertex of the base shape
//=======================================================================
void BRepFeat_RibSlot::PtOnEdgeVertex(const Standard_Boolean RevolRib,
@@ -1619,7 +1619,7 @@ void BRepFeat_RibSlot::PtOnEdgeVertex(const Standard_Boolean RevolRib,
//=======================================================================
//function : SlidingProfile
//purpose : construction de la face profil en cas de glissement
//purpose : construction of the profile face in case of sliding
//=======================================================================
Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
@@ -1642,9 +1642,9 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
if (trc) cout << "BRepFeat_RibSlot::SlidingProfile" << endl;
#endif
Standard_Boolean ProfileOK = Standard_True;
// --cas de glissement : construction du wire du profil
// -> 1 partie boite englobante + 1 partie wire
// attention a la compatibilite des orientations
// --case of sliding : construction of the wire of the profile
// --> 1 part bounding box + 1 part wire
// attention to the compatibility of orientations
gp_Dir FN, LN;
BRepLib_MakeWire WW;
@@ -1652,9 +1652,9 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
FN = Normal(FirstFace, myFirstPnt);
LN = Normal(LastFace, myLastPnt);
// Cas de la rainure (cut) <> nervure (fuse)
// -> on est dans la matiere
// -> on fait tout en 2d dans le plan de travail : plus facile
// Case of the groove (cut) <> rib (fuse)
// -> we are in the material
// -> make everything in 2d in the working plane : easier
if(!myFuse) {
FN = -FN;
LN = -LN;
@@ -1681,7 +1681,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
Standard_Real par1 = ElCLib::Parameter(ln1->Lin(), myFirstPnt);
Standard_Real par2 = ElCLib::Parameter(ln2->Lin(), myLastPnt);
if(par1 >= myTol || par2 >= myTol) {
Concavite = 2; //paralelle et concave
Concavite = 2; //paralel and concave
BRepLib_MakeEdge e1(myLastPnt, myFirstPnt);
WW.Add(e1);
}
@@ -1700,19 +1700,19 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
}
}
// ---Construction de la face profil
// ---Construction of the profile face
if(Concavite == 1) {
// Si concave : on peut prolonger les premiers et dernier edges du wire
// jusque boite englobante
// if concave : it is possible to extend first and last edges of the wire
// to the bounding box
BRepLib_MakeEdge e1(myLastPnt, Pt);
WW.Add(e1);
BRepLib_MakeEdge e2(Pt, myFirstPnt);
WW.Add(e2);
}
else if(Concavite == 3) {
// BndEdge : edges d'intersection avce la boite englobante
// BndEdge : edges of intersection with the bounding box
TopoDS_Edge BndEdge1, BndEdge2;
// Points d'intersection boite englobante / Profil recherche
// Points of intersection with the bounding box / Find Profile
gp_Pnt BndPnt1, BndPnt2, LastPnt;
TopExp_Explorer expl;
expl.Init(BndFace, TopAbs_WIRE);
@@ -1767,7 +1767,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
WW.Add(e1);
if(BndEdge1.IsSame(BndEdge2)) {
// Cas particulier : meme edge -> cheminement simple a determiner
// Particular case : same edge -> simply determined path
BRepLib_MakeEdge e2(BndPnt1, BndPnt2);
WW.Add(e2);
BRepLib_MakeEdge e3(BndPnt2, myFirstPnt);
@@ -1799,9 +1799,9 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
}
else explo.Init(BndWire);
// On controle si on est dans BndEdge2
// -> si oui : il faut tourner pour rejoindre FirstPnt
// -> si non : on ajoute les edges
// Check if this is BndEdge2
// -> if yes : it is required to turn to join FirstPnt
// -> if no : add edges
Standard_Boolean Fin = Standard_False;
while(!Fin) {
const TopoDS_Edge& e = TopoDS::Edge(explo.Current());
@@ -1813,8 +1813,8 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
LastPnt = pp;
}
else {
// le chemin est ferme
// -> des que l'on recontre BndEdge2, fin des bords sur BndFace
// the path is closed
// -> since met BndEdge2, end of borders on BndFace
Fin = Standard_True;
BRepLib_MakeEdge ee(LastPnt, BndPnt2);
WW.Add(ee);
@@ -1834,10 +1834,10 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
}
}
// ---Construction du profil
// ---Construction of the profile
// On explore le wire fourni par l'utilisateur
// BRepTools_WireExplorer : bon ordre - sans repetition <> TopExp : non ordonne
// Explore the wire provided by the user
// BRepTools_WireExplorer : correct order - without repetition <> TopExp : non ordered
BRepTools_WireExplorer EX(myWire);
Standard_Real ff, ll;
@@ -1867,7 +1867,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
WW.Add(el);
}
else {
// 1 seul edge : traitement particulier
// only one edge : particular processing
Standard_Real fpar = IntPar(FirstCurve, myFirstPnt);
Standard_Real lpar = IntPar(FirstCurve, myLastPnt);
Handle(Geom_Curve) c;
@@ -1892,19 +1892,19 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
}
if(Concavite != 3) {
// Si concave : fac est OK
// if concave : face is OK
Prof = fac;
}
else {
// Si non concave
// CheckPnt : point legerement a l'interieur cote matiere
// Bndface : face/coupe de la boite englobante dans le plen du profil
// if not concave
// CheckPnt : point slightly inside the material side
// Bndface : face/cut of the bounding box in the plane of the profile
BRepTopAdaptor_FClass2d Cl(fac, BRep_Tool::Tolerance(fac));
Standard_Real u, v;
ElSLib::Parameters(myPln->Pln(), CheckPnt, u, v);
gp_Pnt2d checkpnt2d(u, v);
if(Cl.Perform(checkpnt2d, Standard_True) == TopAbs_OUT) {
// Si fac n'est pas le bon morceau de BndFace on prend le complementaire
// If face is not the correct part of BndFace take the complementary
//modified by NIZNHY-PKV Fri Mar 22 16:46:20 2002 f
//BRepAlgo_Cut c(BndFace, fac);
BRepAlgoAPI_Cut c(BndFace, fac);
@@ -1915,7 +1915,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
Prof = TopoDS::Face(ffx.Shape());
}
else {
// Si fac est le bon morceau de BndFace : fac est OK
// If face is the correct part of BndFace : face is OK
Prof = fac;
}
}
@@ -1931,7 +1931,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
}
//=======================================================================
//function : NoSlidingProfile
//purpose : construction de la face profil en cas de glissement
//purpose : construction of the face profile in case of sliding
//=======================================================================
Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
@@ -1995,7 +1995,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
Standard_Real par1 = ElCLib::Parameter(firstln->Lin(), myFirstPnt);
Standard_Real par2 = ElCLib::Parameter(lastln->Lin(), myLastPnt);
if(par1 >= myTol || par2 >= myTol)
Concavite = 2; //paralelle et concave
Concavite = 2; //parallel and concave
}
if(d1.IsEqual(d2, myTol)) {
if(Concavite == 3) TestOK = Standard_False;
@@ -2011,7 +2011,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
}
}
// ---Construction de la face profil
// ---Construction of the face profile
if(Concavite == 3) {
if(OnFirstFace) {
Standard_Real f, l;
@@ -2327,7 +2327,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
if(!theLastEdge.IsNull()) {
const TopoDS_Vertex& v1 = TopExp::LastVertex(theLastEdge,Standard_True);
TopoDS_Vertex v2;
// Attention cas Wire Reversed -> LastVertex sans Standard_True
// Attention case Wire Reversed -> LastVertex without Standard_True
const gp_Pnt& pp = BRep_Tool::Pnt(TopExp::LastVertex(FirstEdge));
if(!theFV.IsNull() && theFirstpoint.Distance(pp) <= myTol) {
v2 = theFV;
@@ -2670,7 +2670,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
}
myMap.ChangeFind(orig).Clear();
for (itm.Initialize(newdsc); itm.More(); itm.Next()) {
// on verifie l`appartenance au shape...
// check the belonging to the shape...
for (exp.Init(S,TopAbs_FACE);exp.More();exp.Next()) {
if (exp.Current().IsSame(itm.Key())) {
// const TopoDS_Shape& sh = itm.Key();
@@ -2727,7 +2727,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
}
myMap.ChangeFind(orig).Clear();
for (itm.Initialize(newdsc); itm.More(); itm.Next()) {
// on verifie l`appartenance au shape...
// check the belonging to the shape...
for (exp.Init(S,TopAbs_FACE);exp.More();exp.Next()) {
if (exp.Current().IsSame(itm.Key())) {
// const TopoDS_Shape& sh = itm.Key();