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:
@@ -730,7 +730,7 @@ static Standard_Integer vecdc(Draw_Interpretor& di,Standard_Integer ,const char*
|
||||
|
||||
//==========================================================================
|
||||
//function : wexplo
|
||||
// exploration d un wire
|
||||
// exploration of a wire
|
||||
//==========================================================================
|
||||
static Standard_Integer wexplo (Draw_Interpretor&,
|
||||
Standard_Integer argc, const char** argv)
|
||||
@@ -823,7 +823,7 @@ void BRepTest::BasicCommands(Draw_Interpretor& theCommands)
|
||||
mkedgecurve,g);
|
||||
|
||||
theCommands.Add("fsameparameter",
|
||||
"fsameparameter shapename [tol (default 1.e-7)], \nforce le sameparameter sur toutes les aretes du shape",
|
||||
"fsameparameter shapename [tol (default 1.e-7)], \nforce sameparameter on all edges of the shape",
|
||||
__FILE__,
|
||||
sameparameter,g);
|
||||
|
||||
|
@@ -987,8 +987,8 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
|
||||
}
|
||||
}
|
||||
//
|
||||
// reste a faire : fermer le profil avec le premier point du contour
|
||||
// et le point pris avec mouse button 3
|
||||
// to be done : close the profile using the first point of the contour
|
||||
// and the point taken with mouse button 3
|
||||
//
|
||||
Handle(Geom2d_BSplineCurve) C ;
|
||||
Handle(Geom_Curve) curve3d_ptr ;
|
||||
@@ -1559,7 +1559,7 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
|
||||
TopOpeBRep_EdgesIntersector EInter;
|
||||
char name[100];
|
||||
//------------------------------------------------------
|
||||
// Calcul des point d intersection en 2d
|
||||
// Calculate point of intersection 2D
|
||||
//-----------------------------------------------------
|
||||
EInter.SetFaces(F,F);
|
||||
Standard_Real TolInter = 1.e-7;
|
||||
@@ -1569,8 +1569,8 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
|
||||
EInter.Perform (E[0],E[1],reducesegments);
|
||||
|
||||
if (EInter.IsEmpty()) {
|
||||
//cout << " Pas d'intersection trouvee" << endl;
|
||||
di << " Pas d'intersection trouvee" << "\n";
|
||||
//cout << " No intersection found" << endl;
|
||||
di << " No intersection found" << "\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1590,8 +1590,8 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
|
||||
DBRep::Set(name,V);
|
||||
for (Standard_Integer i = 1; i <= 2; i++) {
|
||||
//---------------------------------------------------------------
|
||||
// pour pouvoir ranger le parametre sur l edge
|
||||
// il faut le coder interne....
|
||||
// to be able to rank parameter on edge
|
||||
// it is necessary to code it internally
|
||||
//---------------------------------------------------------------
|
||||
Standard_Real U = P2D.Parameter(i);
|
||||
|
||||
@@ -1600,7 +1600,7 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
|
||||
// B.UpdateVertex(TopoDS::Vertex(V.Oriented(TopAbs_INTERNAL)),
|
||||
// U,E[i-1],Tol);
|
||||
//---------------------------------------------------------------
|
||||
// Orientation du vertex en fct de la transition.
|
||||
// Orientation of vertex in the transition.
|
||||
//---------------------------------------------------------------
|
||||
TopAbs_Orientation OO = TopAbs_REVERSED;
|
||||
if (P2D.IsVertex(i)) {
|
||||
@@ -1609,8 +1609,8 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
|
||||
else if (P2D.Transition(i).Before() == TopAbs_OUT) {
|
||||
OO = TopAbs_FORWARD;
|
||||
}
|
||||
//cout << " Orientation du vertex " << NbV << " sur " << a[i+1] << ": ";
|
||||
di << " Orientation du vertex " << NbV << " sur " << a[i+1] << ": ";
|
||||
//cout << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
|
||||
di << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
|
||||
if (OO == TopAbs_FORWARD) {
|
||||
//cout << "FORWARD" << endl;
|
||||
di << "FORWARD" << "\n";
|
||||
@@ -1647,7 +1647,7 @@ static Standard_Integer concatwire(Draw_Interpretor&, Standard_Integer n, const
|
||||
TopoDS_Wire res;
|
||||
|
||||
|
||||
res=BRepAlgo::ConcatenateWire(W,Option); //treatment
|
||||
res=BRepAlgo::ConcatenateWire(W,Option); //processing
|
||||
DBRep::Set(c[1],res);
|
||||
return 0;
|
||||
}
|
||||
@@ -1662,8 +1662,8 @@ Standard_Integer build3d(Draw_Interpretor& di,
|
||||
{
|
||||
|
||||
if ( (n <2) || (n>3) ) {
|
||||
//cout << " 1 ou 2 arguments attendus" << endl;
|
||||
di << " 1 ou 2 arguments attendus" << "\n";
|
||||
//cout << " 1 or 2 arguments expected" << endl;
|
||||
di << " 1 or 2 arguments expected" << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -212,13 +212,13 @@ static Standard_Integer CheckHist(Draw_Interpretor& di,
|
||||
const char** )
|
||||
{
|
||||
if(Rakk == 0) {
|
||||
//cout<<"Pas de Builder actif"<<endl;
|
||||
di<<"Pas de Builder actif"<<"\n";
|
||||
//cout<<"No active Builder"<<endl;
|
||||
di<<"No active Builder"<<"\n";
|
||||
return 1;
|
||||
}
|
||||
if(!Rakk->IsDone()) {
|
||||
//cout<<"Builder actif Not Done"<<endl;
|
||||
di<<"Builder actif Not Done"<<"\n";
|
||||
//cout<<"Active Builder Not Done"<<endl;
|
||||
di<<"Active Builder Not Done"<<"\n";
|
||||
return 1;
|
||||
}
|
||||
Standard_Integer nbc = Rakk->NbContours();
|
||||
@@ -274,8 +274,8 @@ static Standard_Integer UPDATEVOL(Draw_Interpretor& di,
|
||||
const char** a)
|
||||
{
|
||||
if(Rake == 0){
|
||||
//cout << "MakeFillet non initialise"<<endl;
|
||||
di << "MakeFillet non initialise"<<"\n";
|
||||
//cout << "MakeFillet not initialized"<<endl;
|
||||
di << "MakeFillet not initialized"<<"\n";
|
||||
return 1 ;
|
||||
}
|
||||
if(narg%2 != 0 || narg < 4) return 1;
|
||||
@@ -298,8 +298,8 @@ static Standard_Integer BUILDEVOL(Draw_Interpretor& di,
|
||||
const char**)
|
||||
{
|
||||
if(Rake == 0){
|
||||
//cout << "MakeFillet non initialise"<<endl;
|
||||
di << "MakeFillet non initialise"<<"\n";
|
||||
//cout << "MakeFillet not initialized"<<endl;
|
||||
di << "MakeFillet not initialized"<<"\n";
|
||||
return 1 ;
|
||||
}
|
||||
Rake->Build();
|
||||
@@ -317,7 +317,7 @@ static Standard_Integer BUILDEVOL(Draw_Interpretor& di,
|
||||
|
||||
|
||||
//**********************************************
|
||||
// commande des fusions et coupes avec conges *
|
||||
// command fuse and cut with fillets *
|
||||
//**********************************************
|
||||
|
||||
Standard_Integer topoblend(Draw_Interpretor& di, Standard_Integer narg, const char** a)
|
||||
@@ -497,7 +497,7 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
|
||||
else if (err==FilletSurf_PbFilletCompute) di <<"StatusError=PBFillet"<<"\n";
|
||||
}
|
||||
else {
|
||||
if (Rakk.IsDone()==FilletSurf_IsPartial) di <<"resultat partiel"<<"\n";
|
||||
if (Rakk.IsDone()==FilletSurf_IsPartial) di <<"partial result"<<"\n";
|
||||
|
||||
nb=Rakk.NbSurface();
|
||||
char localname [100];
|
||||
@@ -514,11 +514,11 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
|
||||
//else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
|
||||
// {cout<<" type deb conges = WLBLEND"<<endl;}
|
||||
if (Rakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge)
|
||||
{di<<" type deb conges = WLBLOUT"<<"\n";}
|
||||
{di<<" type start fillets = WLBLOUT"<<"\n";}
|
||||
else if (Rakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge )
|
||||
{ di<<" type deb conges = WLBLSTOP"<<"\n";}
|
||||
{ di<<" type start fillets = WLBLSTOP"<<"\n";}
|
||||
else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
|
||||
{di<<" type deb conges = WLBLEND"<<"\n";}
|
||||
{di<<" type start fillets = WLBLEND"<<"\n";}
|
||||
|
||||
//if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
|
||||
// {cout<<" type fin conges = WLBLOUT"<<endl;}
|
||||
@@ -527,30 +527,30 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
|
||||
//else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge)
|
||||
// { cout<<" type fin conges = WLBLEND"<<endl;}
|
||||
if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
|
||||
{di<<" type fin conges = WLBLOUT"<<"\n";}
|
||||
{di<<" type end fillets = WLBLOUT"<<"\n";}
|
||||
else if (Rakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge)
|
||||
{di<<" type fin conges = WLBLSTOP"<<"\n";}
|
||||
{di<<" type end fillets = WLBLSTOP"<<"\n";}
|
||||
else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge)
|
||||
{ di<<" type fin conges = WLBLEND"<<"\n";}
|
||||
{ di<<" type end fillets = WLBLEND"<<"\n";}
|
||||
Standard_Real f,l;
|
||||
f = Rakk.FirstParameter();
|
||||
l = Rakk.LastParameter();
|
||||
//cout<<"parametre sur edge debut : "<<f<<endl;
|
||||
//cout<<"parametre sur edge fin : "<<l<<endl;
|
||||
di<<"parametre sur edge debut : "<<f<<"\n";
|
||||
di<<"parametre sur edge fin : "<<l<<"\n";
|
||||
//cout<<"parameter on edge start : "<<f<<endl;
|
||||
//cout<<"parameter on edge end : "<<l<<endl;
|
||||
di<<"parametre on edge start : "<<f<<"\n";
|
||||
di<<"parametre on edge end : "<<l<<"\n";
|
||||
for (i=1;i<=nb;i++){
|
||||
//precision
|
||||
//cout<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<endl;
|
||||
di<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<"\n";
|
||||
|
||||
// affichage des surfaces resultats
|
||||
// display resulting surfaces
|
||||
sprintf(localname, "%s%d" ,ns0,i);
|
||||
temp = localname;
|
||||
DrawTrSurf::Set(temp,Rakk.SurfaceFillet(i));
|
||||
di << localname<< " ";
|
||||
|
||||
//affichage des courbes 3d
|
||||
// display curves 3d
|
||||
sprintf(localname, "%s%d" ,"courb1",i);
|
||||
temp =localname;
|
||||
DrawTrSurf::Set(temp,Rakk.CurveOnFace1(i));
|
||||
@@ -560,7 +560,7 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
|
||||
DrawTrSurf::Set(temp,Rakk.CurveOnFace2(i));
|
||||
di << localname<< " ";
|
||||
|
||||
// affichage des supports
|
||||
// display supports
|
||||
sprintf(localname, "%s%d" ,"face1",i);
|
||||
temp =localname ;
|
||||
DBRep::Set(temp,Rakk.SupportFace1(i));
|
||||
@@ -570,7 +570,7 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
|
||||
DBRep::Set(temp,Rakk.SupportFace2(i));
|
||||
di << localname<< " ";
|
||||
|
||||
// affichage des Pcurve sur les faces
|
||||
// display Pcurves on faces
|
||||
sprintf(localname, "%s%d" ,"pcurveonface1",i);
|
||||
temp =localname ;
|
||||
DrawTrSurf::Set(temp,Rakk.PCurveOnFace1(i));
|
||||
@@ -580,7 +580,7 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
|
||||
DrawTrSurf::Set(temp,Rakk.PCurveOnFace2(i));
|
||||
di << localname<< " ";
|
||||
|
||||
// affichage des Pcurve sur le conge
|
||||
// display Pcurves on the fillet
|
||||
sprintf(localname, "%s%d" ,"pcurveonconge1",i);
|
||||
temp =localname;
|
||||
DrawTrSurf::Set(temp,Rakk.PCurve1OnFillet(i));
|
||||
@@ -621,7 +621,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
|
||||
if ( S.IsNull()) return 1;
|
||||
Standard_Real Rad = atof(a[3]);
|
||||
|
||||
Standard_Real Tol = t3d; //le meme que blend ! 1.e-7;
|
||||
Standard_Real Tol = t3d; //the same as blend ! 1.e-7;
|
||||
|
||||
BiTgte_Blend Roll;
|
||||
Roll.Init(S,Rad,Tol,Standard_False);
|
||||
@@ -633,44 +633,44 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( Nb == 0) { // on recupere les faces d'arret.
|
||||
if ( Nb == 0) { // return stop faces.
|
||||
TopoDS_Shape aLocalFace(DBRep::Get(a[i],TopAbs_FACE));
|
||||
TopoDS_Face F1 = TopoDS::Face(aLocalFace);
|
||||
// TopoDS_Face F1 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
|
||||
if ( F1.IsNull()) {
|
||||
//cout << " Face d'arret non reperee." << endl;
|
||||
di << " Face d'arret non reperee." << "\n";
|
||||
//cout << " Stop face not referenced." << endl;
|
||||
di << " Stop face not referenced." << "\n";
|
||||
return 1;
|
||||
}
|
||||
Roll.SetStoppingFace(F1);
|
||||
}
|
||||
else if (Nb == 1) { // on recupere les faces sur lesquelles la bille roule
|
||||
else if (Nb == 1) { // return faces on which the ball rotates
|
||||
TopoDS_Shape aLocalFace(DBRep::Get(a[i],TopAbs_FACE));
|
||||
TopoDS_Face F1 = TopoDS::Face(aLocalFace);
|
||||
// TopoDS_Face F1 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
|
||||
i++;
|
||||
if ( !strcmp(a[i],"@")) {
|
||||
//cout << " Il faut un nombre pair de faces d'appui de la bille" << endl;
|
||||
di << " Il faut un nombre pair de faces d'appui de la bille" << "\n";
|
||||
//cout << " Even number of ball support faces is required " << endl;
|
||||
di << " Even number of ball support faces is required " << "\n";
|
||||
return 1;
|
||||
}
|
||||
aLocalFace = DBRep::Get(a[i],TopAbs_FACE);
|
||||
TopoDS_Face F2 = TopoDS::Face(aLocalFace);
|
||||
// TopoDS_Face F2 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
|
||||
if ( F1.IsNull() || F2.IsNull()) {
|
||||
//cout << " Face d'appui non reperee." << endl;
|
||||
di << " Face d'appui non reperee." << "\n";
|
||||
//cout << " Support face not referenced." << endl;
|
||||
di << " Support face not referenced." << "\n";
|
||||
return 1;
|
||||
}
|
||||
Roll.SetFaces(F1,F2);
|
||||
}
|
||||
else if (Nb == 2) { // on recupere l'arete sur laquelle la bille roule
|
||||
else if (Nb == 2) { // return the edge on which the ball rotates
|
||||
TopoDS_Shape aLocalShape(DBRep::Get(a[i],TopAbs_EDGE));
|
||||
TopoDS_Edge E = TopoDS::Edge(aLocalShape);
|
||||
// TopoDS_Edge E = TopoDS::Edge(DBRep::Get(a[i],TopAbs_EDGE));
|
||||
if ( E.IsNull()) {
|
||||
//cout << " Edge non repere." << endl;
|
||||
di << " Edge non repere." << "\n";
|
||||
//cout << " Edge not referenced." << endl;
|
||||
di << " Edge not referenced." << "\n";
|
||||
return 1;
|
||||
}
|
||||
Roll.SetEdge(E);
|
||||
@@ -688,9 +688,9 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
|
||||
for (Standard_Integer i = 1; i <= NbBranches; i++) {
|
||||
Standard_Integer From,To;
|
||||
Roll.IndicesOfBranche(i,From,To);
|
||||
//cout << " Indices de la " << i << "eme Branche : ";
|
||||
//cout << " Indexes of the " << i << "th Branch : ";
|
||||
//cout << " " << From << " " << To << endl;
|
||||
di << " Indices de la " << i << "eme Branche : ";
|
||||
di << " Indexes of the " << i << "th Branch : ";
|
||||
di << " " << From << " " << To << "\n";
|
||||
for (Standard_Integer j = From; j <= To; j++) {
|
||||
const TopoDS_Shape& CurF = Roll.Face(j);
|
||||
|
@@ -54,7 +54,7 @@ static void DrawCurve(const Handle(Geom2d_Curve)& aCurve,
|
||||
|
||||
//==========================================================================
|
||||
//function : topoLoad
|
||||
// chargement d une face dans l explorer.
|
||||
// loading of a face in the explorer.
|
||||
//==========================================================================
|
||||
static Standard_Integer topoload (Draw_Interpretor& , Standard_Integer argc, const char** argv)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ static Standard_Integer topoload (Draw_Interpretor& , Standard_Integer argc, con
|
||||
|
||||
//==========================================================================
|
||||
//function : drawcont
|
||||
// visualisation du contour defini par l explorateur.
|
||||
// visualization of the contour defined by the explorer.
|
||||
//==========================================================================
|
||||
static Standard_Integer drawcont(Draw_Interpretor& , Standard_Integer , const char**)
|
||||
{
|
||||
@@ -86,8 +86,8 @@ static Standard_Integer drawcont(Draw_Interpretor& , Standard_Integer , const ch
|
||||
|
||||
//==========================================================================
|
||||
//function : mat
|
||||
// calcul de la carte des lieux bisecteur sur le contour defini
|
||||
// par l explorateur.
|
||||
// calculate the map of locations bisector on the contour defined by
|
||||
// the explorer.
|
||||
//==========================================================================
|
||||
static Standard_Integer mat(Draw_Interpretor& , Standard_Integer, const char**)
|
||||
{
|
||||
@@ -97,11 +97,11 @@ static Standard_Integer mat(Draw_Interpretor& , Standard_Integer, const char**)
|
||||
return 0;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//============================================================================
|
||||
//function : zone
|
||||
// construction et affichage de la zone de proximite associee aux
|
||||
// elements de base definis par l edge ou le vertex.
|
||||
//==========================================================================
|
||||
// construction and display of the proximity zone associated to the
|
||||
// base elements defined by the edge or the vertex.
|
||||
//============================================================================
|
||||
static Standard_Integer zone(Draw_Interpretor& , Standard_Integer argc , const char** argv)
|
||||
{
|
||||
if (argc < 2) return 1;
|
||||
@@ -132,8 +132,8 @@ static Standard_Integer zone(Draw_Interpretor& , Standard_Integer argc , const c
|
||||
|
||||
//==========================================================================
|
||||
//function : side
|
||||
// side = left => calcul a gauche du contour.
|
||||
// side = right => calcul a droite du contour.
|
||||
// side = left => calculation to the left of the contour.
|
||||
// side = right => calculation to the right of the contour.
|
||||
//==========================================================================
|
||||
|
||||
static Standard_Integer side(Draw_Interpretor& , Standard_Integer, const char** argv)
|
||||
@@ -148,7 +148,7 @@ static Standard_Integer side(Draw_Interpretor& , Standard_Integer, const char**
|
||||
|
||||
//==========================================================================
|
||||
//function : result
|
||||
// Affichage complet de la carte calculee.
|
||||
// Complete display of the calculated map.
|
||||
//==========================================================================
|
||||
static Standard_Integer result(Draw_Interpretor& , Standard_Integer, const char**)
|
||||
{
|
||||
@@ -165,12 +165,11 @@ static Standard_Integer result(Draw_Interpretor& , Standard_Integer, const char*
|
||||
|
||||
//==========================================================================
|
||||
//function : DrawCurve
|
||||
// Affichage d une courbe <aCurve> de Geom2d. dans une couleur
|
||||
// definie par <Indice>.
|
||||
// Indice = 1 jaune,
|
||||
// Indice = 2 bleu,
|
||||
// Indice = 3 rouge,
|
||||
// Indice = 4 vert.
|
||||
// Display of curve <aCurve> of Geom2d in a color defined by <Indice>.
|
||||
// Indice = 1 yellow,
|
||||
// Indice = 2 blue,
|
||||
// Indice = 3 red,
|
||||
// Indice = 4 green.
|
||||
//==========================================================================
|
||||
void DrawCurve(const Handle(Geom2d_Curve)& aCurve,
|
||||
const Standard_Integer Indice)
|
||||
@@ -187,14 +186,14 @@ void DrawCurve(const Handle(Geom2d_Curve)& aCurve,
|
||||
curve =(*(Handle_Bisector_BisecAna*)&curve)->Geom2dCurve();
|
||||
type = curve->DynamicType();
|
||||
}
|
||||
// PB de representation des courbes semi_infinies.
|
||||
// PB of representation of semi_infinite curves.
|
||||
gp_Parab2d gpParabola;
|
||||
gp_Hypr2d gpHyperbola;
|
||||
Standard_Real Focus;
|
||||
Standard_Real Limit = 50000.;
|
||||
Standard_Real delta = 400;
|
||||
|
||||
// PB de representation des courbes semi_infinies.
|
||||
// PB of representation of semi_infinite curves.
|
||||
if (aCurve->LastParameter() == Precision::Infinite()) {
|
||||
|
||||
if (type == STANDARD_TYPE(Geom2d_Parabola)) {
|
||||
@@ -224,7 +223,7 @@ void DrawCurve(const Handle(Geom2d_Curve)& aCurve,
|
||||
else {
|
||||
CurveDraw = aCurve;
|
||||
}
|
||||
// fin PB.
|
||||
// end PB.
|
||||
}
|
||||
else {
|
||||
CurveDraw = aCurve;
|
||||
|
@@ -543,7 +543,7 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
|
||||
|
||||
if (n > 2) {
|
||||
Standard_Integer cur = 2;
|
||||
// Lecture du Vertex
|
||||
// Reading of Vertex
|
||||
TopoDS_Shape InputVertex(DBRep::Get(a[cur],TopAbs_VERTEX));
|
||||
Vertex = TopoDS::Vertex(InputVertex);
|
||||
// Vertex = TopoDS::Vertex(DBRep::Get(a[cur],TopAbs_VERTEX));
|
||||
@@ -552,25 +552,25 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
|
||||
HasVertex = Standard_True;
|
||||
}
|
||||
|
||||
// Lecture de l'option de translation
|
||||
// Reading of the translation option
|
||||
if ((n>cur) && !strcmp(a[cur],"-T")) {
|
||||
cur++;
|
||||
isT = Standard_True;
|
||||
}
|
||||
|
||||
// Lecture de l'option de rotation
|
||||
// Reading of the rotation option
|
||||
if ((n>cur) && !strcmp(a[cur],"-R")) {
|
||||
cur++;
|
||||
isR = Standard_True;
|
||||
}
|
||||
|
||||
// loi ?
|
||||
// law ?
|
||||
if (n>cur) {
|
||||
Standard_Integer nbreal = n-cur;
|
||||
if ( (nbreal < 4) || (nbreal % 2 != 0) ) {
|
||||
//cout << "bad arguments ! :" <<a[cur] << endl;
|
||||
di << "bad arguments ! :" <<a[cur] << "\n";
|
||||
} else { //loi d'interpolation
|
||||
} else { //law of interpolation
|
||||
Standard_Integer ii, L= nbreal/2;
|
||||
TColgp_Array1OfPnt2d ParAndRad(1, L);
|
||||
for (ii=1; ii<=L; ii++, cur+=2) {
|
||||
@@ -664,7 +664,7 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
|
||||
if (n>cur) {
|
||||
BRepBuilderAPI_TransitionMode Transition = BRepBuilderAPI_Transformed;
|
||||
|
||||
// Lecture Transition
|
||||
// Reading Transition
|
||||
if (!strcmp(a[cur],"-C")) {
|
||||
Transition = BRepBuilderAPI_RightCorner;
|
||||
cur++;
|
||||
@@ -675,7 +675,7 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
|
||||
}
|
||||
Sweep->SetTransitionMode(Transition);
|
||||
}
|
||||
// Lecture solide ?
|
||||
// Reading solid ?
|
||||
if ((n>cur) && (!strcmp(a[cur],"-S")) ) mksolid = Standard_True;
|
||||
|
||||
// Calcul le resultat
|
||||
@@ -746,7 +746,7 @@ static Standard_Integer simulsweep(Draw_Interpretor& di,
|
||||
Sweep->SetTransitionMode(Transition);
|
||||
}
|
||||
|
||||
// Calcul le resultat
|
||||
// Calculate the result
|
||||
Sweep->Simulate(N, List);
|
||||
for (ii=1, it.Initialize(List); it.More(); it.Next(), ii++) {
|
||||
sprintf(name,"%s_%d",a[1],ii);
|
||||
|
Reference in New Issue
Block a user