1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +03:00

Replacing french comments by english one

This commit is contained in:
bugmaster
2011-04-28 16:28:27 +00:00
committed by bugmaster
parent 94354caf54
commit 81bba7173e
140 changed files with 4625 additions and 4701 deletions

View File

@@ -317,7 +317,7 @@ Standard_Real ChFiDS_FilSpine::Radius(const Standard_Integer IE)const
par = parandrad(i).X();
rad = parandrad(i).Y();
if (Abs( rad-StartRad ) > Precision::Confusion())
Standard_DomainError::Raise("Arete non constante");
Standard_DomainError::Raise("Edge is not constant");
if (Abs( Ul-par ) <= gp::Resolution())
return StartRad;
if (par > Ul)
@@ -333,7 +333,7 @@ Standard_Real ChFiDS_FilSpine::Radius(const Standard_Integer IE)const
Standard_Real ChFiDS_FilSpine::Radius()const
{
if (!IsConstant()) Standard_DomainError::Raise("Spine non constante");
if (!IsConstant()) Standard_DomainError::Raise("Spine is not constant");
return parandrad(1).Y();
}
@@ -401,7 +401,7 @@ static void mklaw(Law_Laws& res,
if(npr.IsEmpty()){
if( Rdeb < 0. && Rfin <0. )
Standard_DomainError::Raise("construction de la loi impossible");
Standard_DomainError::Raise("Impossible to create the law");
else if(Rdeb < 0. || Rfin <0.){
Standard_Real r = (Rfin<0.)? Rdeb : Rfin;
Handle(Law_Constant) loi = new Law_Constant();
@@ -415,7 +415,6 @@ static void mklaw(Law_Laws& res,
}
}
else{
//tri bourrin!!
if(!yaunpointsurledeb && Rdeb >= 0.) npr.Append(gp_XY(curdeb,Rdeb));
if(!yaunpointsurlefin && Rfin >= 0.) npr.Append(gp_XY(curfin,Rfin));
Standard_Integer nbp = npr.Length();
@@ -430,7 +429,7 @@ static void mklaw(Law_Laws& res,
}
}
}
//On vire les doublons.
//Duplicates are removed.
Standard_Boolean fini = (nbp <= 1);
i = 1;
while (!fini) {
@@ -479,7 +478,7 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
Standard_Integer ideb = Index(deb,Standard_True);
Standard_Integer ifin = Index(fin,Standard_False);
Standard_Integer len = NbEdges();
// si la spine est periodique attention aux index et aux parametres!!!
// if the spine is periodic, attention to the index and parameters
Standard_Real spinedeb = FirstParameter();
Standard_Real spinefin = LastParameter();
@@ -511,15 +510,15 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
}
if(Els->IsPeriodic()){
//On cree une composite periodique de range eventuellement
//decale par rapport a l elspine, pour ne pas faire de l
//origine un point singulier.
// A pereodic composite is created at range, which is eventually
// offset relatively to the elspine, to avoid a single point at
// origin.
loi->SetPeriodic();
//Y a t il une arete constante?
//Is there a constant edge?
// for(Standard_Integer k = 1; k <= len; k++){
Standard_Integer k;
for( k = 1; k <= len; k++){
if (IsConstant(k)){ // oui !
if (IsConstant(k)){ // yes !
spinedeb = deb = curdeb = FirstParameter(k);
spinefin = fin = deb + Period();
for(Standard_Integer l = 1; l <= len; l++){
@@ -527,7 +526,7 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
}
Rdeb = Rfin = Radius(k);
icur++;
if(len == 1) curfin = LastParameter(k);//car le InPeriod va rendre 0.!!!
if(len == 1) curfin = LastParameter(k);//because InPeriod will make 0.!!!
else curfin = ElCLib::InPeriod(LastParameter(k),spinedeb,spinefin);
Handle(Law_Constant) curloi = new Law_Constant();
curloi->Set(Rdeb,curdeb,curfin);
@@ -536,9 +535,9 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
break;
}
}
if(k > len){ // non !
if(k > len){ // no !
if(parandrad.IsEmpty())
Standard_DomainError::Raise("Rayon non defini");
Standard_DomainError::Raise("Radius not defined");
Standard_Integer nbp = parandrad.Length();
if(nbp > 1){
deb = parandrad.First().X();
@@ -558,7 +557,7 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
}
}
else if(IsPeriodic()){
// le rayon au debut.
// start radius.
if (IsConstant(ind(1))) {
Rdeb = Radius(ind(1));
curfin = LastParameter(ind(1));
@@ -571,29 +570,29 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
icur++;
}
else{
// Il y a forcement un kpart juste avant!
// There is inevitably kpart right before!
Standard_Integer iprec = (ind(1) - 1);
if(iprec == 0) iprec = len;
if (IsConstant(iprec)){
Rdeb = Radius(iprec);
}
else Standard_DomainError::Raise("AppendLaw : pas de precedant constant bizarre!!");
else Standard_DomainError::Raise("AppendLaw : previous constant is missing!");
lawencours = Standard_True;
}
// le rayon a la fin.
// the raduis at end.
if (IsConstant(ind(nbed))) Rfin = Radius(ind(nbed));
else{
// Il y a forcement un kpart juste apres!
// There is inevitably kpart right after!
Standard_Integer isuiv = (ind(nbed) + 1);
if(isuiv == len + 1) isuiv = 1;
if (IsConstant(isuiv)) {
Rfin = Radius(isuiv);
}
else Standard_DomainError::Raise("AppendLaw : pas de suivant constant bizarre!!");
else Standard_DomainError::Raise("AppendLaw : next constant is missing!");
}
}
else{
// le rayon au debut.
// the radius at start.
if (IsConstant(ind(1))) {
Rdeb = Radius(ind(1));
curfin = Min(fin,LastParameter(ind(1)));
@@ -608,30 +607,30 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
if (IsConstant(ind(1) - 1)){
Rdeb = Radius(ind(1) - 1);
}
else Standard_DomainError::Raise("AppendLaw : pas de precedant constant");
else Standard_DomainError::Raise("AppendLaw : previous constant is missing");
}
else if(parandrad.IsEmpty()){
Standard_DomainError::Raise("AppendLaw : pas rayon sur vertex");
Standard_DomainError::Raise("AppendLaw : no radius on vertex");
}
else Rdeb = -1.;
lawencours = Standard_True;
}
// le rayon a la fin.
// the radius at end.
if (IsConstant(ind(nbed))) Rfin = Radius(ind(nbed));
else{
if(ind(nbed) < len){
if (IsConstant(ind(nbed) + 1)) Rfin = Radius(ind(nbed) + 1);
else Standard_DomainError::Raise("AppendLaw : pas de suivant constant");
else Standard_DomainError::Raise("AppendLaw : next constant is missing");
}
else if(parandrad.IsEmpty()){
Standard_DomainError::Raise("AppendLaw : pas rayon sur vertex");
Standard_DomainError::Raise("AppendLaw : no radius on vertex");
}
else Rfin = -1.;
}
}
// On a les infos sur les extremites de l elspine,
// on parcourt toutes les aretes
// There are infos on the extremities of the elspine,
// all edges are parsed
for(; icur <= nbed; icur++){
if (IsConstant(ind(icur))) {
Rcur = Radius(ind(icur));
@@ -647,8 +646,8 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
if(IsPeriodic()){
curfin = ElCLib::InPeriod(curfin,spinedeb + tol3d, spinefin + tol3d);
if(ind(icur) == ind(nbed)){
// Attention le curfin peut etre faut si le dernier edge passe par
// dessus l origine de la spine periodique.
// Attention the curfin can be wrong if the last edge passes
// above the origin periodic spline.
Standard_Real biddeb = FirstParameter(ind(icur));
biddeb = ElCLib::InPeriod(biddeb,spinedeb + tol3d, spinefin + tol3d);
if(biddeb >= curfin) curfin = fin;
@@ -671,8 +670,8 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
curfin = Min(fin,curfin);
lawencours = Standard_True;
if(ind(icur) == ind(nbed)){
// Attention le curfin peut etre faut si le dernier edge passe par
// dessus l origine de la spine periodique.
// Attention the curfin can be wrong if the last edge passes
// above the origin periodic spline.
if(IsPeriodic()) {
Standard_Real biddeb = FirstParameter(ind(icur));
curfin = LastParameter(ind(icur));
@@ -681,7 +680,7 @@ Handle(Law_Composite) ChFiDS_FilSpine::ComputeLaw
if(biddeb >= curfin) curfin = fin;
else curfin = Min(fin,curfin);
}
// ou si on est en fin de spine avec prolongement.
// or if it is the end of spine with extension.
else if(ind(icur) == len) curfin = fin;
Law_Laws temp;
mklaw(temp,parandrad,curdeb,curfin,Rdeb,Rfin,
@@ -719,11 +718,11 @@ Handle(Law_Composite) ChFiDS_FilSpine::Law(const Handle(ChFiDS_HElSpine)& Els) c
Handle(Law_Function)& ChFiDS_FilSpine::ChangeLaw(const TopoDS_Edge& E)
{
if(!SplitDone()) {
Standard_DomainError::Raise("ChFiDS_FilSpine::ChangeLaw : les bornes ne sont pas a jour");
Standard_DomainError::Raise("ChFiDS_FilSpine::ChangeLaw : the limits are not up-to-date");
}
Standard_Integer IE = Index(E);
if (IsConstant(IE)) {
Standard_DomainError::Raise("ChFiDS_FilSpine::ChangeLaw : pas de loi sur les aretes constantes");
Standard_DomainError::Raise("ChFiDS_FilSpine::ChangeLaw : no law on constant edges");
}
Handle(ChFiDS_HElSpine) hsp = ElSpine(IE);
Standard_Real w = 0.5*(FirstParameter(IE) + LastParameter(IE));

View File

@@ -9,31 +9,30 @@
class Spine from ChFiDS inherits TShared from MMgt
---Purpose: Contient les informations necessaires a la
-- construction d un conge volumique :
---Purpose: Contains information necessary for construction of
-- a 3D fillet :
--
--
-- - ligne guide composee d'edges du solide, tangents
-- entre eux, et bordes par des faces tangentes entre
-- elles.
-- - guideline composed of edges of the solid, tangents
-- between them, and borders by faces tangents
-- between them.
--
-- Les outils de construction du Sp
-- par propagation a partir d un edge du solide sont
-- fournis dans le Builder de Fil3d.
-- Tools for construction of the Sp
-- by propagation from an edge of solid
-- are provided in the Builder of Fil3d.
--
-- Le Spine contient par aileurs des
-- informations concernant la nature des extremites
-- du conge ( sur bord libre, sur cassure ou ferme ).
-- The Spine contains among others the
-- information about the nature of extremities
-- of the fillet ( on free border , on section or closed ).
--
-- REMARQUE IMPORTANTE : la ligne guide ainsi
-- representee n est pas C2, alors que le cheminement
-- le reclame. Un certain nombre d amenagements
-- paliatifs (voir les methodes en fin) sont prevus,
-- s ils sont insuffisants il faudra changer notre
-- fusil d epaule et doubler le Spine d
-- une ligne C2 avec les consequences que l on sait
-- pour gerer les va et vient entre KPart Blend dans
-- Fil3d.
-- IMPORTANT NOTE : the guideline
-- represented in this way is not C2, although the path
-- claims it. Several palliative workarounds
-- (see the methods at the end) are planned,
-- but they are not enough. It is necessary to change
-- the approach and double the Spine of line C2 with
-- the known consequences for management of
-- interactions between KPart Blend in Fil3d.
@@ -66,11 +65,11 @@ is
Create(Tol : Real from Standard) returns mutable Spine from ChFiDS;
SetEdges(me : mutable; E : Edge from TopoDS) is static;
---Purpose: stocker les edges qui vont composer la ligne guide
---Purpose: store edges composing the guideline
---C++: inline
PutInFirst(me : mutable; E : Edge from TopoDS) is static;
---Purpose:stocker l edge en premiere position avant tous les autres
---Purpose: store the edge at the first position before all others
---C++: inline
NbEdges(me) returns Integer is static;
@@ -83,14 +82,14 @@ is
SetFirstStatus(me : mutable; S : State from ChFiDS) is static;
---Purpose: stocker si le debut de l ensemble des edges demarre
-- sur une cassure un bord libre ou forme un contour ferme
---Purpose: stores if the start of a set of edges starts on a
-- section of free border or forms a closed contour
---C++: inline
SetLastStatus(me : mutable; S : State from ChFiDS) is static;
---Purpose: stocker si la fin de l ensemble des edges demarre
-- sur une cassure un bord libre ou forme un contour ferme
---Purpose: stores if the end of a set of edges starts on a
-- section of free border or forms a closed contour
---C++: inline
AppendElSpine(me : mutable; Els : HElSpine from ChFiDS)
@@ -124,11 +123,12 @@ is
----------------------
Load(me : mutable) is static;
---Purpose: preparer la ligne guide en fonction des edges qui
-- sont des arcs elementaires (prendre un parametrage
-- unique abscisse curviligne );pour pouvoir appeller
-- les methodes sur la geometrie (first,last,value,d1,d2)
-- il faut d abord preparer sinon une exception sera levee
---Purpose: prepare the guideline depending on the edges that
-- are elementary arks (take parameters from
-- a single curvilinear abscissa); to be able to call
-- methods on the geometry (first,last,value,d1,d2)
-- it is necessary to start with preparation otherwise an
-- exception will be raised
Resolution(me; R3d : Real) returns Real
is static;
@@ -149,17 +149,17 @@ is
is static;
FirstParameter(me; IndexSpine : Integer ) returns Real
---Purpose: donne la longueur cumulee de tous les arcs avant le
-- numero IndexSp
---Purpose: gives the total length of all arcs before the
-- number IndexSp
is static;
LastParameter(me; IndexSpine : Integer ) returns Real
---Purpose: donne la longueur cumulee jusqu a l arc de numero
---Purpose: gives the total length till the ark with number
-- IndexSpine (inclus)
is static;
Length(me;IndexSpine : Integer ) returns Real
---Purpose: donne la longueur de l arc de numero IndexSp
---Purpose: gives the length of ark with number IndexSp
is static;
IsPeriodic(me) returns Boolean
@@ -210,7 +210,7 @@ is
is static;
CurrentElementarySpine (me : mutable; Index : Integer )
---Purpose: set la courbe courante et la renvoie
---Purpose: sets the current curve and returns it
returns Curve from BRepAdaptor is static;
---C++: return const &

View File

@@ -164,9 +164,9 @@ void ChFiDS_Spine::SetFirstParameter(const Standard_Real Par)
{
#ifdef DEB
if(Par >= Precision::Confusion())
cout<<"Prolongement interieur en debut de ligne guide"<<endl;
cout<<"Interior extension at the start of guideline"<<endl;
if(IsPeriodic())
cout<<"WARNING!!! Prolongement sur ligne guide periodique."<<endl;
cout<<"WARNING!!! Extension on periodic guideline."<<endl;
#endif
firstprolon = Standard_True;
firstparam = Par;
@@ -183,9 +183,9 @@ void ChFiDS_Spine::SetLastParameter(const Standard_Real Par)
#ifdef DEB
Standard_Real lll = abscissa->Value(abscissa->Upper());
if((Par - lll) <= -Precision::Confusion())
cout<<"Prolongement interieur en fin de ligne guide"<<endl;
cout<<"Interior extension at the end of guideline"<<endl;
if(IsPeriodic())
cout<<"WARNING!!! Prolongement sur ligne guide periodique."<<endl;
cout<<"WARNING!!! Extension on periodic guideline."<<endl;
#endif
lastprolon = Standard_True;
lastparam = Par;
@@ -310,7 +310,7 @@ Standard_Real ChFiDS_Spine::Absc(const TopoDS_Vertex& V) const
Standard_Real ChFiDS_Spine::Period() const
{
if(!IsPeriodic()) Standard_Failure::Raise("Spine non periodique");
if(!IsPeriodic()) Standard_Failure::Raise("Non-periodic Spine");
return abscissa->Value(abscissa->Upper());
}
@@ -334,16 +334,16 @@ Standard_Real ChFiDS_Spine::Resolution(const Standard_Real R3d) const
void ChFiDS_Spine::SetFirstTgt(const Standard_Real W)
{
if(IsPeriodic()) Standard_Failure::Raise
("Pas de prolongement par tangente sur les contours periodiques");
("No extension by tangent on periodic contours");
#ifdef DEB
if(W >= Precision::Confusion())
cout<<"Prolongement interieur en debut de ligne guide"<<endl;
cout<<"Interior extension at start of the guideline"<<endl;
#endif
//On vire le flag au cas ou il serait deja positionne pour
//ne pas planter le d1
//The flag is suspended if is already positioned to avoid
//stopping d1
hasfirsttgt = Standard_False;
D1(W,firstori,firsttgt);
//et on le remet.
//and it is reset.
hasfirsttgt = Standard_True;
firsttgtpar = W;
}
@@ -357,18 +357,18 @@ void ChFiDS_Spine::SetFirstTgt(const Standard_Real W)
void ChFiDS_Spine::SetLastTgt(const Standard_Real W)
{
if(IsPeriodic()) Standard_Failure::Raise
("Pas de prologement par tangente sur les contours periodiques");
("No extension by tangent periodic contours");
#ifdef DEB
Standard_Real L = W - abscissa->Value(abscissa->Upper());
if(L <= -Precision::Confusion())
cout<<"Prolongement interieur en fin de ligne guide"<<endl;
cout<<"Interior extension at the end of guideline"<<endl;
#endif
//On vire le flag au cas ou il serait deja positionne pour
//ne pas planter le d1
//The flag is suspended if is already positioned to avoid
//stopping d1
haslasttgt = Standard_False;
D1(W,lastori,lasttgt);
//et on le remet.
//and it is reset.
haslasttgt = Standard_True;
lasttgtpar = W;
}
@@ -480,7 +480,7 @@ void ChFiDS_Spine::Load()
{
if(!abscissa.IsNull()){
#ifdef DEB
cout<<"nouveau load du CE"<<endl;
cout<<"new load of CE"<<endl;
#endif
}
Standard_Integer len = spine.Length();