mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Replacing french comments by english one
This commit is contained in:
@@ -96,7 +96,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
Standard_NotImplemented::Raise("calcul abscisse non traite ");
|
||||
Standard_NotImplemented::Raise("calcul abscisse not processed");
|
||||
return 0.;
|
||||
}
|
||||
#endif
|
||||
@@ -133,7 +133,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
||||
else
|
||||
ctyp = CSpine->CurrentElementarySpine(Iedge).GetType();
|
||||
|
||||
// Recuperation des orientations.
|
||||
// Return orientations.
|
||||
TopAbs_Orientation OrFace1 = TopAbs_FORWARD, OrFace2 = TopAbs_FORWARD;
|
||||
Handle(BRepAdaptor_HSurface) HS = Handle(BRepAdaptor_HSurface)::DownCast(S1);
|
||||
if (!HS.IsNull()) OrFace1 = HS->ChangeSurface().Face().Orientation();
|
||||
@@ -184,7 +184,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
||||
Wref,OrFace2,Standard_False);
|
||||
}
|
||||
else{
|
||||
Standard_NotImplemented::Raise("cas particulier non ecrit");
|
||||
Standard_NotImplemented::Raise("particular case not written");
|
||||
}
|
||||
}
|
||||
else if(!CSpine.IsNull()){
|
||||
@@ -233,7 +233,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
||||
Wref,OrFace2,Standard_False);
|
||||
}
|
||||
else{
|
||||
Standard_NotImplemented::Raise("cas particulier non ecrit");
|
||||
Standard_NotImplemented::Raise("particular case not written");
|
||||
}
|
||||
}
|
||||
else if (CSpine->IsChamfer() == ChFiDS_TwoDist) {
|
||||
@@ -281,7 +281,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
||||
Wref,OrFace2,Standard_False);
|
||||
}
|
||||
else{
|
||||
Standard_NotImplemented::Raise("cas particulier non ecrit");
|
||||
Standard_NotImplemented::Raise("particular case not written");
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -330,7 +330,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
|
||||
Wref,OrFace2,Standard_False, DisOnP);
|
||||
}
|
||||
else{
|
||||
Standard_NotImplemented::Raise("cas particulier non ecrit");
|
||||
Standard_NotImplemented::Raise("particular case not written");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -365,8 +365,8 @@ Standard_Boolean ChFiKPart_ComputeData::ComputeCorner
|
||||
Standard_ConstructionError::Raise
|
||||
("la face du conge torique doit etre plane");
|
||||
}
|
||||
// On calcule comme ligne guide le cercle correspondant
|
||||
// a la section de S2, et divers elements de construction.
|
||||
// The guideline is the circle corresponding
|
||||
// to the section of S2, and other construction elements.
|
||||
|
||||
gp_Cylinder cyl;
|
||||
gp_Circ circ;
|
||||
@@ -449,7 +449,7 @@ Standard_Boolean ChFiKPart_ComputeData::ComputeCorner
|
||||
typ1 != GeomAbs_Plane ||
|
||||
typ2 != GeomAbs_Plane){
|
||||
Standard_ConstructionError::Raise
|
||||
("rotule torique seulement entre des plans");
|
||||
("torus joint only between the planes");
|
||||
}
|
||||
return ChFiKPart_MakeRotule(DStr,Data,S->Plane(),S1->Plane(),
|
||||
S2->Plane(),OS,OS1,OS2,Radius,OfS);
|
||||
|
@@ -124,7 +124,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
|
||||
if( ChamfRad < 0 ) {
|
||||
#ifdef DEB
|
||||
cout<<"le chanfrein ne passe pas"<<endl;
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -137,7 +137,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
if (ouvert) {
|
||||
if (Abs(angCon) - Abs(SemiAngl) > -Precision::Confusion() ) {
|
||||
cout<<"mauvais choix d'angle pour le chanfrein"<<endl;
|
||||
cout<<"wrong choice of angle for the chamfer"<<endl;
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
@@ -149,7 +149,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
SemiAngl = Abs(angCon) + Angle;
|
||||
|
||||
if ( (PI / 2. - SemiAngl) < Precision::Confusion() ) {
|
||||
cout <<"mauvais choix d'angle pour le chanfrein"<<endl;
|
||||
cout <<"wrong choice of angle for the chamfer"<<endl;
|
||||
return Standard_False;
|
||||
}
|
||||
Dis1 = move * Tan(SemiAngl) - Dis * Abs(Sin(angCon));
|
||||
@@ -182,7 +182,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
|
||||
if( ChamfRad < 0 ) {
|
||||
#ifdef DEB
|
||||
cout<<"le chanfrein ne passe pas"<<endl;
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
|
@@ -107,7 +107,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
Standard_Boolean pointu = Standard_False;
|
||||
Standard_Real ConRad, Rad, SemiAngl;
|
||||
|
||||
//Calcul des distance
|
||||
//Calculation of distance
|
||||
Standard_Real dis1, dis2, cosNPCyl, sinNPCyl;
|
||||
|
||||
if ( (plandab && DisOnP) || (!plandab && !DisOnP) ) {
|
||||
@@ -139,7 +139,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
Rad = Cyl.Radius() - dis1;
|
||||
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
|
||||
if(Rad < 0 ) {
|
||||
cout<<"le chanfrein ne passe pas"<<endl;
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
@@ -313,7 +313,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeChAsym
|
||||
//purpose : cas cylindre/plan ou plan/cylindre.
|
||||
//purpose : case cylinder/plane or plane/cylinder.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
@@ -332,11 +332,11 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
const Standard_Boolean plandab,
|
||||
const Standard_Boolean DisOnP)
|
||||
{
|
||||
// calcul du conge plan.
|
||||
// or1 et or2 permettent de determiner dans lequel des 4 cotes crees par
|
||||
// l'intersection des 2 surfaces_on est
|
||||
// _|_ et Ofpl qui est l'orientation de la face du plan permettant
|
||||
// |4 de determiner le cote de la matiere
|
||||
// calculation of the fillet plane.
|
||||
// or1 and or2 permit to determine in which of four sides created by
|
||||
// intersection of 2 surfaces we are
|
||||
// _|_ Ofpl is orientation of the plane face allowing
|
||||
// |4 to determine the side of the material
|
||||
|
||||
gp_Pnt OrSpine = ElCLib::Value(First, Spine);
|
||||
gp_Pnt POnCyl, POnPln, OrCyl;
|
||||
@@ -349,15 +349,15 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
{NorF.Reverse();}
|
||||
|
||||
gp_Ax3 AxCyl = Cyl.Position();
|
||||
// OrCyl est le point sur l'axe du cylindre dans le plan normal a l'axe
|
||||
// contenant OrSpine
|
||||
// OrCyl is the point on axis of cylinder in the plane normal to the
|
||||
// axis containing OrSpine
|
||||
gp_Pnt Loc = AxCyl.Location();
|
||||
gp_Vec LocSp(Loc, OrSpine);
|
||||
gp_XYZ temp = AxCyl.Direction().XYZ();
|
||||
temp = temp.Multiplied(LocSp.XYZ().Multiplied(temp) );
|
||||
OrCyl.SetXYZ( (Loc.XYZ()).Added(temp) );
|
||||
|
||||
//construction de POnPln
|
||||
//construction of POnPln
|
||||
gp_Vec VecTranslPln,tmp;
|
||||
|
||||
tmp = gp_Vec(OrSpine,OrCyl);
|
||||
@@ -372,7 +372,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
gp_Vec VecTranslCyl;
|
||||
VecTranslCyl = gp_Vec(OrSpine,OrCyl);
|
||||
|
||||
// Calcul des distances dis1 et dis2, en fonction de Dis et Angle
|
||||
// Calculation of distances dis1 and dis2, depending on Dis and Angle
|
||||
gp_Vec DirSOrC = VecTranslCyl.Normalized();
|
||||
Standard_Real cosA1 = DirSOrC.Dot(VecTranslPln.Normalized());
|
||||
Standard_Real sinA1 = Sqrt(1. - cosA1 * cosA1);
|
||||
@@ -397,7 +397,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
dis2 = temp2 + temp1 * (cosAhOC - temp1);
|
||||
|
||||
if (dis2 < -1.E-09) {
|
||||
cout<<"angle du chanfrein trop grand"<<endl;
|
||||
cout<<"too great angle of chamfer"<<endl;
|
||||
return Standard_False;
|
||||
}
|
||||
else if (dis2 < 1.E-09) {
|
||||
@@ -411,7 +411,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
dis2 = Dis;
|
||||
}
|
||||
|
||||
//construction de POnCyl
|
||||
//construction of POnCyl
|
||||
Standard_Real alpha = ( 2*ASin(dis2*0.5/ray) );
|
||||
gp_Vec VecTemp = VecTranslCyl.Reversed();
|
||||
|
||||
@@ -428,7 +428,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
ElSLib::CylinderD1(UOnCyl, VOnCyl, AxCyl, Cyl.Radius(),
|
||||
POnCyl, DUOnCyl, DVOnCyl);
|
||||
|
||||
// Construction du point sur le plan
|
||||
// Construction of the point on the plane
|
||||
if (!IsDisOnP) {
|
||||
gp_Vec Corde(POnCyl, OrSpine);
|
||||
gp_Vec TCyl = DUOnCyl.Crossed(DVOnCyl);
|
||||
@@ -455,11 +455,11 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
POnPln.SetXYZ( (OrSpine.XYZ()).Added(VecTranslPln.XYZ()) );
|
||||
|
||||
//construction du chanfrein
|
||||
//construction of the chamfer
|
||||
ElSLib::Parameters(Pln,POnPln,UOnPln,VOnPln);
|
||||
POnPln = ElSLib::PlaneValue(UOnPln,VOnPln,AxPln);
|
||||
|
||||
//construction de YDir pour aller de face1 vers face2.
|
||||
//construction of YDir to go from face1 to face2.
|
||||
gp_Vec YDir(POnPln,POnCyl);
|
||||
if (!plandab){
|
||||
YDir.Reverse();
|
||||
@@ -469,7 +469,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
Handle(Geom_Plane) Chamfer = new Geom_Plane(AxCh);
|
||||
Data->ChangeSurf(ChFiKPart_IndexSurfaceInDS(Chamfer,DStr));
|
||||
|
||||
// On charge les FaceInterferences avec les pcurves et courbes 3d.
|
||||
// FaceInterferences are loaded with pcurves and curves 3d.
|
||||
//----------- edge plan-Chamfer
|
||||
gp_Pnt2d PPln2d(UOnPln,VOnPln);
|
||||
gp_Dir2d VPln2d(XDir.Dot(AxPln.XDirection()),
|
||||
@@ -495,7 +495,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
if ( !IsDisOnP && PosChamfPln )
|
||||
toreverse = !toreverse;
|
||||
// On regarde si l orientation du Chamfer est la meme que celle du plan
|
||||
// It is checked if the orientation of the Chamfer is the same as of the plane
|
||||
if (toreverse)
|
||||
{Data->ChangeOrientation() = TopAbs::Reverse(Ofpl);}
|
||||
else
|
||||
@@ -505,7 +505,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
|
||||
if ((!plandab && toreverse) || (plandab && !toreverse))
|
||||
{trans=TopAbs_REVERSED;}
|
||||
|
||||
//trans permet de determiner le cote "matiere" sur S1(2) delimite par L3d
|
||||
//trans allows to determine the "material" side on S1(2) limited by L3d
|
||||
if (plandab)
|
||||
{Data->ChangeInterferenceOnS1().
|
||||
SetInterference(ChFiKPart_IndexCurveInDS(L3d,DStr),trans,LFac,LFil);}
|
||||
|
@@ -121,7 +121,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
Rad = Cyl.Radius()- Dis1;
|
||||
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
|
||||
if(Rad < 0 ) {
|
||||
cout<<"le chanfrein ne passe pas"<<endl;
|
||||
cout<<"the chamfer can't pass"<<endl;
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
@@ -305,7 +305,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeChamfer
|
||||
//purpose : cas cylindre/plan ou plan/cylindre.
|
||||
//purpose : case cylinder/plane or plane/cylinder.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
@@ -323,11 +323,12 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
const TopAbs_Orientation Ofpl,
|
||||
const Standard_Boolean plandab)
|
||||
{
|
||||
//calcul du conge plan.
|
||||
//or1 et or2 permettent de determiner dans lequel des 4 cotes crees par
|
||||
//l'intersection des 2 surfaces_ on est
|
||||
// _|_ et Ofpl qui est l'orientation de la face du plan permettant
|
||||
// |4 de determiner le cote de la matiere
|
||||
// calculation of the fillet plane.
|
||||
// or1 and or2 permit to determine in which of four sides created by
|
||||
// intersection of 2 surfaces we are
|
||||
// _|_ Ofpl is orientation of the plane face allowing
|
||||
// |4 to determine the side of the material
|
||||
|
||||
|
||||
Standard_Real dis1=Dis1, dis2=Dis2;
|
||||
if (!plandab){
|
||||
@@ -345,8 +346,8 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
{NorF.Reverse();}
|
||||
|
||||
gp_Ax3 AxCyl = Cyl.Position();
|
||||
// OrCyl est le point sur l'axe du cylindre dans le plan normal a l'axe
|
||||
// contenant OrSpine
|
||||
// OrCyl is the point on axis of cylinder in the plane normal to the
|
||||
// axis containing OrSpine
|
||||
gp_Pnt Loc = AxCyl.Location();
|
||||
gp_Vec LocSp(Loc, OrSpine);
|
||||
gp_XYZ temp = AxCyl.Direction().XYZ();
|
||||
@@ -357,7 +358,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
// OrCyl.SetXYZ( (AxCyl.Location().XYZ()).Added(temp) );
|
||||
|
||||
|
||||
//construction de POnPln
|
||||
//construction of POnPln
|
||||
gp_Vec VecTranslPln,tmp;
|
||||
|
||||
tmp = gp_Vec(OrSpine,OrCyl);
|
||||
@@ -372,7 +373,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
POnPln.SetXYZ( (OrSpine.XYZ()).Added(VecTranslPln.XYZ()) );
|
||||
|
||||
//construction de POnCyl
|
||||
//construction of POnCyl
|
||||
Standard_Real alpha = ( 2*ASin(dis2*0.5/Cyl.Radius()) );
|
||||
// gp_Vec VecTranslCyl;
|
||||
// VecTranslCyl = gp_Vec(OrSpine,OrCyl);
|
||||
@@ -394,14 +395,14 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
POnCyl.SetXYZ( OrCyl.XYZ().Added(VecCylTransl.XYZ()) );
|
||||
|
||||
//construction du chanfrein
|
||||
//construction of chamfer
|
||||
Standard_Real UOnCyl,VOnCyl,UOnPln,VOnPln;
|
||||
ElSLib::Parameters(Cyl,POnCyl,UOnCyl,VOnCyl);
|
||||
POnCyl = ElSLib::CylinderValue(UOnCyl,VOnCyl,AxCyl,Cyl.Radius());
|
||||
ElSLib::Parameters(Pln,POnPln,UOnPln,VOnPln);
|
||||
POnPln = ElSLib::PlaneValue(UOnPln,VOnPln,AxPln);
|
||||
|
||||
//construction de YDir pour aller de face1 vers face2.
|
||||
//construction of YDir to go to face1 from face2.
|
||||
gp_Vec YDir(POnPln,POnCyl);
|
||||
if (!plandab){
|
||||
YDir.Reverse();
|
||||
@@ -411,8 +412,8 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
Handle(Geom_Plane) Chamfer = new Geom_Plane(AxCh);
|
||||
Data->ChangeSurf(ChFiKPart_IndexSurfaceInDS(Chamfer,DStr));
|
||||
|
||||
// On charge les FaceInterferences avec les pcurves et courbes 3d.
|
||||
//----------- edge plan-Chamfer
|
||||
// FaceInterferences are loaded with pcurves and curves 3d.
|
||||
//----------- edge plane-Chamfer
|
||||
gp_Pnt2d PPln2d(UOnPln,VOnPln);
|
||||
gp_Dir2d VPln2d(XDir.Dot(AxPln.XDirection()),
|
||||
XDir.Dot(AxPln.YDirection()));
|
||||
@@ -438,7 +439,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
if (PosChamfPln )
|
||||
toreverse = !toreverse;
|
||||
// On regarde si l orientation du Chamfer est la meme que celle du plan
|
||||
// It is checked if the orientation of the Chamfer is the same as of the plane
|
||||
if (toreverse)
|
||||
{Data->ChangeOrientation() = TopAbs::Reverse(Ofpl);}
|
||||
else
|
||||
@@ -448,7 +449,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
if ((!plandab && toreverse) || (plandab && !toreverse))
|
||||
{trans=TopAbs_REVERSED;}
|
||||
|
||||
//trans permet de determiner le cote "matiere" sur S1(2) delimite par L3d
|
||||
//trans permits to determine the "material" side on S1(2) limited by L3d
|
||||
if (plandab)
|
||||
{Data->ChangeInterferenceOnS1().
|
||||
SetInterference(ChFiKPart_IndexCurveInDS(L3d,DStr),trans,LFac,LFil);}
|
||||
@@ -456,7 +457,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
|
||||
{Data->ChangeInterferenceOnS2().
|
||||
SetInterference(ChFiKPart_IndexCurveInDS(L3d,DStr),trans,LFac,LFil);}
|
||||
|
||||
//------------edge cylindre-Chamfer
|
||||
//------------edge cylinder-Chamfer
|
||||
gp_Pnt2d PCyl2d(UOnCyl,VOnCyl);
|
||||
gp_Dir2d VCyl2d=gp::DY2d();
|
||||
if ( XDir.Dot(AxCyl.Direction())<0 )
|
||||
|
@@ -45,8 +45,8 @@ Standard_Real ChFiKPart_InPeriod(const Standard_Real U,
|
||||
|
||||
//=======================================================================
|
||||
//function : PCurve
|
||||
//purpose : Calcule une droite sous forme de BSpline pour garantir
|
||||
// les parametres.
|
||||
//purpose : Calculate a straight line in form of BSpline to guarantee
|
||||
// the parameters.
|
||||
//=======================================================================
|
||||
|
||||
Handle(Geom2d_BSplineCurve) ChFiKPart_PCurve(const gp_Pnt2d& UV1,
|
||||
@@ -69,8 +69,8 @@ Handle(Geom2d_BSplineCurve) ChFiKPart_PCurve(const gp_Pnt2d& UV1,
|
||||
|
||||
//=======================================================================
|
||||
//function : ProjPC
|
||||
//purpose : Pour les coins spheriques dont les contours ne sont
|
||||
// pas des isos on projette le cercle.
|
||||
//purpose : For spherical corners the contours which of are not
|
||||
// isos the circle is projected.
|
||||
//=======================================================================
|
||||
|
||||
void ChFiKPart_ProjPC(const GeomAdaptor_Curve& Cg,
|
||||
@@ -156,17 +156,17 @@ void ChFiKPart_ProjPC(const GeomAdaptor_Curve& Cg,
|
||||
break;
|
||||
#endif
|
||||
default :
|
||||
Standard_NotImplemented::Raise("echec approximation de la pcurve ");
|
||||
Standard_NotImplemented::Raise("failed approximation of the pcurve ");
|
||||
}
|
||||
}
|
||||
else {
|
||||
Standard_NotImplemented::Raise("approx pcurve sur une surface gauche");
|
||||
Standard_NotImplemented::Raise("approximate pcurve on the left surface");
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IndexCurveInDS
|
||||
//purpose : Met une Curve dans la DS et renvoie son index.
|
||||
//purpose : Place a Curve in the DS and return its index.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer ChFiKPart_IndexCurveInDS(const Handle(Geom_Curve)& C,
|
||||
@@ -178,7 +178,7 @@ Standard_Integer ChFiKPart_IndexCurveInDS(const Handle(Geom_Curve)& C,
|
||||
|
||||
//=======================================================================
|
||||
//function : IndexSurfaceInDS
|
||||
//purpose : Met une Surface dans la DS et renvoie son index.
|
||||
//purpose : Place a Surface in the DS and return its index.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer ChFiKPart_IndexSurfaceInDS(const Handle(Geom_Surface)& S,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeFillet
|
||||
//purpose : cas cone/plan ou plan/cone.
|
||||
//purpose : case cone/plane or plane/cone.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
@@ -52,7 +52,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
const TopAbs_Orientation Ofpl,
|
||||
const Standard_Boolean plandab)
|
||||
{
|
||||
//calcul du conge (tore ou sphere).
|
||||
//calculate the fillet (torus or sphere).
|
||||
Standard_Boolean c1sphere = Standard_False;
|
||||
gp_Ax3 PosPl = Pln.Position();
|
||||
gp_Dir Dpnat = PosPl.XDirection().Crossed(PosPl.YDirection());
|
||||
@@ -78,8 +78,8 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Precision::Confusion());
|
||||
gp_Pnt Pv;
|
||||
if (CInt.IsDone()) {
|
||||
//On met l origine du conge au point de depart fourni sur la
|
||||
//ligne guide.
|
||||
//The origin of the fillet is set at the start point on the
|
||||
//guideline.
|
||||
Pv = ElCLib::Value(ElCLib::Parameter(CInt.Circle(1),PtSp),
|
||||
CInt.Circle(1));
|
||||
}
|
||||
@@ -113,7 +113,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Rad = Maxrad - Rabio;
|
||||
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
|
||||
else if(Rad < 0){
|
||||
cout<<"le conge ne passe pas"<<endl;
|
||||
cout<<"the fillet does not pass"<<endl;
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
@@ -135,8 +135,8 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Data->ChangeSurf(ChFiKPart_IndexSurfaceInDS(gtor,DStr));
|
||||
}
|
||||
|
||||
// On regarde si l orientation du conge est la meme que celle
|
||||
// des faces.
|
||||
// It is checked if the orientation of the fillet is the same
|
||||
// as of the faces.
|
||||
gp_Pnt P,PP;
|
||||
gp_Vec deru,derv;
|
||||
P.SetCoord(cPln.X()+Rad*Dx.X(),
|
||||
@@ -157,10 +157,10 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
if (toreverse) { Data->ChangeOrientation() = TopAbs_REVERSED; }
|
||||
else { Data->ChangeOrientation() = TopAbs_FORWARD; }
|
||||
|
||||
// On charge les FaceInterferences avec les pcurves et courbes 3d.
|
||||
// FaceInterferences are loaded with pcurves and curves 3d.
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
// La face plane.
|
||||
// The plane face.
|
||||
// --------------
|
||||
|
||||
Handle(Geom2d_Circle) GCirc2dPln;
|
||||
@@ -198,7 +198,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
trans,GCirc2dPln,GLin2dFil1);
|
||||
}
|
||||
|
||||
// La face conique.
|
||||
// The conic face.
|
||||
// ----------------
|
||||
|
||||
P.SetCoord(Pv.X()+Rabio*ddc.X(),
|
||||
|
@@ -36,7 +36,7 @@
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeFillet
|
||||
//purpose : cas cylindre/plan ou plan/cylindre.
|
||||
//purpose : case cylinder/plane or plane/cylinder.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
@@ -53,9 +53,9 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
const TopAbs_Orientation Ofpl,
|
||||
const Standard_Boolean plandab)
|
||||
{
|
||||
//calcul du conge cylindre.
|
||||
//calculate the cylinder fillet.
|
||||
|
||||
//plan deporte de radius
|
||||
//plane deviated from radius
|
||||
gp_Ax3 AxPln = Pln.Position();
|
||||
gp_Dir NorPln = AxPln.XDirection().Crossed(AxPln.YDirection());
|
||||
gp_Dir NorF(NorPln);
|
||||
@@ -64,7 +64,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
if (Or1 == TopAbs_REVERSED) { NorF.Reverse(); }
|
||||
gp_Pln PlanOffset = Pln.Translated(Radius*gp_Vec(NorF));
|
||||
|
||||
// Cylindre parallele
|
||||
// Parallel cylinder
|
||||
Standard_Real ROff = Cyl.Radius();
|
||||
Standard_Boolean dedans = Standard_False;
|
||||
|
||||
@@ -76,11 +76,11 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
}
|
||||
else {
|
||||
#ifdef DEB
|
||||
cout<<"le conge ne passe pas"<<endl;
|
||||
cout<<"the fillet does not pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
// intersection du plan parallele et du cylindre parallele.
|
||||
// intersection of the parallel plane and of the parallel cylinder.
|
||||
gp_Cylinder CylOffset(Cyl.Position(),ROff);
|
||||
IntAna_QuadQuadGeo LInt(PlanOffset,CylOffset,
|
||||
Precision::Angular(),Precision::Confusion());
|
||||
@@ -103,7 +103,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
}
|
||||
else {return Standard_False;}
|
||||
|
||||
// Construction conge
|
||||
// Construction fillet
|
||||
if (DirFillet.Dot(Spine.Direction()) < 0.) {DirFillet.Reverse();}
|
||||
|
||||
Standard_Real UOnCyl,VOnCyl,UOnPln,VOnPln;
|
||||
@@ -123,7 +123,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
OtherDir = tmp;
|
||||
}
|
||||
gp_Ax3 AxFil (OrFillet,DirFillet,XDir);
|
||||
// construction YDir pour aller de face1 vers face2.
|
||||
// construction YDir to go from face1 to face2.
|
||||
if ((XDir^OtherDir).Dot(DirFillet) < 0.)
|
||||
AxFil.YReverse();
|
||||
|
||||
@@ -131,8 +131,8 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Fillet = new Geom_CylindricalSurface(AxFil,Radius);
|
||||
Data->ChangeSurf(ChFiKPart_IndexSurfaceInDS(Fillet,DStr));
|
||||
|
||||
// On charge les FaceInterferences avec les pcurves et courbes 3d.
|
||||
// edge plan-Fillet
|
||||
// FaceInterferences are loaded with pcurves and curves 3D.
|
||||
// edge plane-Fillet
|
||||
gp_Pnt2d PPln2d(UOnPln,VOnPln);
|
||||
gp_Dir2d VPln2d(DirFillet.Dot(AxPln.XDirection()),
|
||||
DirFillet.Dot(AxPln.YDirection()));
|
||||
@@ -151,8 +151,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
ElSLib::CylinderD1(UOnFillet,V,AxFil,Radius,P,deru,derv);
|
||||
gp_Dir NorFil(deru.Crossed(derv));
|
||||
Standard_Boolean toreverse = ( NorFil.Dot(NorPln) <= 0. );
|
||||
// On regarde si l orientation du cylindre est la meme que celle
|
||||
// du plan.
|
||||
// It is checked if the orientation of the cylinder is the same as of the plane.
|
||||
if (toreverse) {Data->ChangeOrientation() = TopAbs::Reverse(Ofpl);}
|
||||
else {Data->ChangeOrientation() = Ofpl;}
|
||||
|
||||
@@ -172,7 +171,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
SetInterference(ChFiKPart_IndexCurveInDS(L3d,DStr),
|
||||
trans,LFac,LFil);
|
||||
|
||||
// edge cylindre-Fillet.
|
||||
// edge cylinder-Fillet.
|
||||
gp_Pnt2d PCyl2d(UOnCyl,VOnCyl);
|
||||
gp_Dir2d DPC = gp::DY2d();
|
||||
if (DirFillet.Dot(AxCyl.Direction()) < 0.) DPC.Reverse();
|
||||
@@ -211,7 +210,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeFillet
|
||||
//purpose : cas cylindre/plan ou plan/cylindre.
|
||||
//purpose : case cylinder/plane or plane/cylinder.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
@@ -229,7 +228,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
const Standard_Boolean plandab)
|
||||
{
|
||||
|
||||
//calcul du conge (tore ou sphere).
|
||||
//calculation of the fillet (torus or sphere).
|
||||
Standard_Boolean c1sphere = Standard_False;
|
||||
gp_Ax3 PosPl = Pln.Position();
|
||||
gp_Dir Dpnat = PosPl.XDirection().Crossed(PosPl.YDirection());
|
||||
@@ -249,7 +248,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Or.Z()+Radius*Dp.Z());
|
||||
gp_Pnt PtSp;
|
||||
gp_Vec DSp;
|
||||
// Modification pour les PtSp trouves du mauvais cote de l'arete de couture.
|
||||
// Modification for the PtSp found at the wrong side of the sewing edge.
|
||||
gp_Pnt PtSp2;
|
||||
gp_Vec DSp2;
|
||||
Standard_Real acote = 1e-7;
|
||||
@@ -267,7 +266,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
ElCLib::D1(PR,Spine,PtSp2,DSp);
|
||||
}
|
||||
}
|
||||
// fin de modif
|
||||
// end of modif
|
||||
gp_Dir Dx(gp_Vec(Or,PtSp));
|
||||
Dx = Dp.Crossed(Dx.Crossed(Dp));
|
||||
gp_Dir Dy(DSp);
|
||||
@@ -285,7 +284,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
|
||||
else if(Rad < 0){
|
||||
#ifdef DEB
|
||||
cout<<"le conge ne passe pas"<<endl;
|
||||
cout<<"the fillet can't pass"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -308,8 +307,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
Data->ChangeSurf(ChFiKPart_IndexSurfaceInDS(gtor,DStr));
|
||||
}
|
||||
|
||||
// On regarde si l orientation du conge est la meme que celle
|
||||
// des faces.
|
||||
// It is checked if the orientation of the fillet is the same as of faces.
|
||||
gp_Pnt P,PP;
|
||||
gp_Vec deru,derv;
|
||||
P.SetCoord(cPln.X()+Rad*Dx.X(),
|
||||
@@ -336,9 +334,9 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
if (toreverse) { Data->ChangeOrientation() = TopAbs_REVERSED; }
|
||||
else { Data->ChangeOrientation() = TopAbs_FORWARD; }
|
||||
|
||||
// On charge les FaceInterferences avec les pcurves et courbes 3d.
|
||||
// FaceInterferences are loaded with pcurves and curves 3d.
|
||||
|
||||
// La face plane.
|
||||
// The plane face.
|
||||
Handle(Geom2d_Circle) GCirc2dPln;
|
||||
Handle(Geom_Circle) GCircPln;
|
||||
gp_Ax2 circAx2 = FilAx3.Ax2();
|
||||
@@ -384,7 +382,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
|
||||
trans,GCirc2dPln,GLin2dFil1);
|
||||
}
|
||||
|
||||
// La face cylindrique.
|
||||
// The cylindrical face.
|
||||
P.SetCoord(Or.X()+cylrad*Dx.X(),
|
||||
Or.Y()+cylrad*Dx.Y(),
|
||||
Or.Z()+cylrad*Dx.Z());
|
||||
|
@@ -26,8 +26,8 @@
|
||||
|
||||
//=======================================================================
|
||||
//function : ChFiKPart_Sphere
|
||||
//purpose : Construction d un conge spherique dont les contours ne sont
|
||||
// pas tous des isos, a partir de ses trois sommets.
|
||||
//purpose : Construction of a spherical fillet the contours which of
|
||||
// are not all isos, from three tops.
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
|
||||
@@ -43,10 +43,10 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
|
||||
const gp_Pnt2d& P1S2,
|
||||
const gp_Pnt2d& P2S2)
|
||||
{
|
||||
// Construction de la sphere :
|
||||
// - pole sud sur PS1
|
||||
// - origine des u donnee par P1S2
|
||||
// - u+ vers P2S2
|
||||
// Construction of the sphere :
|
||||
// - pole south on PS1
|
||||
// - origine of u given by P1S2
|
||||
// - u+ to P2S2
|
||||
|
||||
Standard_Real ptol = Precision::Confusion();
|
||||
gp_Pnt p1,p2,p3;
|
||||
@@ -75,7 +75,7 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
|
||||
dz = gp_Dir(gp_Vec(p1,cen));
|
||||
if(Abs(ds1.Dot(dz)-1.)>ptol){
|
||||
#ifdef DEB
|
||||
cout<<"centre du coin spherique non trouve"<<endl;
|
||||
cout<<"center of the spherical corner not found"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -95,22 +95,22 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
|
||||
gsph = new Geom_SphericalSurface(FilAx3,Rad);
|
||||
Data->ChangeSurf(ChFiKPart_IndexSurfaceInDS(gsph,DStr));
|
||||
|
||||
// on compare la normale de la sphere a celle de la face
|
||||
// orientee pour determiner l orientation finale du conge.
|
||||
// the normal of the sphere is compared to the normal of the face
|
||||
// oriented to determine the final orientation of the fillet.
|
||||
Standard_Boolean toreverse = ( ddz.Dot(df1) <= 0. );
|
||||
if (toreverse) { Data->ChangeOrientation() = TopAbs_REVERSED; }
|
||||
else { Data->ChangeOrientation() = TopAbs_FORWARD; }
|
||||
|
||||
// On calcule les parametres de p2 et p3 sur la Sphere pour avoir
|
||||
// les ranges des courbes.
|
||||
// Parameters of p2 and p3 are calculated on the Sphere to have
|
||||
// ranges of curves.
|
||||
Standard_Real uu1,vv1,uu2,vv2;
|
||||
ElSLib::SphereParameters(FilAx3,Rad,p2,uu1,vv1);
|
||||
uu1 = 0.;
|
||||
ElSLib::SphereParameters(FilAx3,Rad,p3,uu2,vv2);
|
||||
|
||||
// On charge les FaceInterferences avec les pcurves et courbes 3d.
|
||||
// FaceInterferences are loaded with pcurves and curves 3d.
|
||||
|
||||
// Le cote pointu.
|
||||
// Pointed side.
|
||||
|
||||
Handle(Geom_Curve) C;
|
||||
Handle(Geom2d_Curve) C2d;
|
||||
@@ -124,7 +124,7 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
|
||||
SetInterference(ChFiKPart_IndexCurveInDS(C,DStr),
|
||||
trans,C2d,C2dFil);
|
||||
|
||||
// L autre cote.
|
||||
// The other side.
|
||||
|
||||
Standard_Real ang = ddx.Angle(ddy);
|
||||
gp_Dir dci = ddx.Crossed(ddy);
|
||||
|
Reference in New Issue
Block a user