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:
@@ -101,7 +101,7 @@
|
||||
#include <GeomFill_Generator.hxx>
|
||||
|
||||
|
||||
// POP pour NT
|
||||
// POP for NT
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef DRAW
|
||||
@@ -145,7 +145,7 @@ static void DEBVerticesControl (const TopTools_MapOfShape& NewEdges,
|
||||
for (it1LE.Initialize(AsDes->Descendant(NE)); it1LE.More(); it1LE.Next()) {
|
||||
if (AsDes->Ascendant(it1LE.Value()).Extent() < 3) {
|
||||
LVP.Append(it1LE.Value());
|
||||
cout <<"Vertex sur moins de 3 edges."<<endl;
|
||||
cout <<"Vertex on at least 3 edges."<<endl;
|
||||
#ifdef DRAW
|
||||
if (AffichInt2d) {
|
||||
sprintf (name,"VP_%d",NVP++);
|
||||
@@ -154,7 +154,7 @@ static void DEBVerticesControl (const TopTools_MapOfShape& NewEdges,
|
||||
#endif
|
||||
}
|
||||
else if (AsDes->Ascendant(it1LE.Value()).Extent() > 3) {
|
||||
cout <<"Vertex sur plus de 3 edges."<<endl;
|
||||
cout <<"Vertex on more than 3 edges."<<endl;
|
||||
#ifdef DRAW
|
||||
if (AffichInt2d) {
|
||||
sprintf (name,"VM_%d",NVM++);
|
||||
@@ -175,7 +175,7 @@ static void DEBVerticesControl (const TopTools_MapOfShape& NewEdges,
|
||||
}
|
||||
}
|
||||
//------------------------------------------------
|
||||
// Essai de confusion des vertex pourris.
|
||||
// Try to mix spoiled vertices.
|
||||
//------------------------------------------------
|
||||
BRep_Builder B;
|
||||
TopTools_ListIteratorOfListOfShape it1(LVP);
|
||||
@@ -220,7 +220,7 @@ static void DEBVerticesControl (const TopTools_MapOfShape& NewEdges,
|
||||
j++;
|
||||
}
|
||||
i++;
|
||||
cout <<" distmin entre VP : "<<distmin<<endl;
|
||||
cout <<" distmin between VP : "<<distmin<<endl;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -570,8 +570,8 @@ static void RemoveCorks (TopoDS_Shape& S,
|
||||
BRep_Builder B;
|
||||
B.MakeCompound (SS);
|
||||
//-----------------------------------------------------
|
||||
// Construction d un shape sans les bouchons.
|
||||
// et Orientation des bouchons comme dans le shape S.
|
||||
// Construction of a shape without caps.
|
||||
// and Orientation of caps as in shape S.
|
||||
//-----------------------------------------------------
|
||||
TopExp_Explorer exp(S,TopAbs_FACE);
|
||||
for (; exp.More(); exp.Next()) {
|
||||
@@ -581,7 +581,7 @@ static void RemoveCorks (TopoDS_Shape& S,
|
||||
}
|
||||
else {
|
||||
Faces.Remove (Cork);
|
||||
Faces.Add (Cork); // pour la remettre avec la bonne orientation.
|
||||
Faces.Add (Cork); // to reset it with proper orientation.
|
||||
}
|
||||
}
|
||||
S = SS;
|
||||
@@ -650,7 +650,7 @@ void BRepOffset_MakeOffset::MakeOffsetShape()
|
||||
{
|
||||
myDone = Standard_False;
|
||||
//------------------------------------------
|
||||
// Constuction de myShape sans les bouchons.
|
||||
// Construction of myShape without caps.
|
||||
//------------------------------------------
|
||||
RemoveCorks (myShape,myFaces);
|
||||
|
||||
@@ -671,10 +671,10 @@ void BRepOffset_MakeOffset::MakeOffsetShape()
|
||||
Standard_Real TolAngle = 4*ASin(myTol/Abs(myOffset*0.5));
|
||||
myAnalyse.Perform(myShape,TolAngle);
|
||||
//---------------------------------------------------
|
||||
// Construction des Offset a partir de la preanalyse.
|
||||
// Construction of Offset from preanalysis.
|
||||
//---------------------------------------------------
|
||||
//----------------------------
|
||||
// MaJ de la SD Face - Offset
|
||||
// MaJ of SD Face - Offset
|
||||
//----------------------------
|
||||
UpdateFaceOffset();
|
||||
|
||||
@@ -683,7 +683,7 @@ void BRepOffset_MakeOffset::MakeOffsetShape()
|
||||
else if (myJoin == GeomAbs_Intersection)
|
||||
BuildOffsetByInter();
|
||||
//-----------------
|
||||
// Auto debouclage.
|
||||
// Auto unwinding.
|
||||
//-----------------
|
||||
// if (mySelfInter) SelfInter(Modif);
|
||||
//-----------------
|
||||
@@ -699,12 +699,12 @@ void BRepOffset_MakeOffset::MakeOffsetShape()
|
||||
|
||||
if (!Modif.IsEmpty()) Intersection2D (Modif,NewEdges);
|
||||
//-------------------------------------------------------
|
||||
// Debouclage 2D et reconstruction des faces modifiees
|
||||
// Unwinding 2D and reconstruction of modified faces
|
||||
//----------------------------------------------------
|
||||
MakeLoops (Modif);
|
||||
//-----------------------------------------------------
|
||||
// Reconstuction des faces non modifie mais qui partage
|
||||
// des edges recontruits
|
||||
// Reconstruction of non modified faces sharing
|
||||
// reconstructed edges
|
||||
//------------------------------------------------------
|
||||
if (!Modif.IsEmpty()) MakeFaces (Modif);
|
||||
|
||||
@@ -712,24 +712,24 @@ void BRepOffset_MakeOffset::MakeOffsetShape()
|
||||
MakeMissingWalls();
|
||||
|
||||
//-------------------------
|
||||
// Construction des shells.
|
||||
// Construction of shells.
|
||||
//-------------------------
|
||||
MakeShells ();
|
||||
//--------------
|
||||
// Debouclage3d.
|
||||
// Unwinding 3D.
|
||||
//--------------
|
||||
SelectShells ();
|
||||
//----------------------------------
|
||||
// Codage ges regularites.
|
||||
// Coding of regularities.
|
||||
//----------------------------------
|
||||
EncodeRegularity();
|
||||
//----------------------
|
||||
// Creation des solides.
|
||||
// Creation of solids.
|
||||
//----------------------
|
||||
MakeSolid ();
|
||||
|
||||
//-----------------------------
|
||||
// MAJ Tolerance edge et Vertex
|
||||
// MAJ Tolerance edge and Vertex
|
||||
// ----------------------------
|
||||
if (!myOffsetShape.IsNull()) {
|
||||
UpdateTolerance (myOffsetShape,myFaces);
|
||||
@@ -751,13 +751,13 @@ void BRepOffset_MakeOffset::MakeOffsetShape()
|
||||
void BRepOffset_MakeOffset::MakeThickSolid()
|
||||
{
|
||||
//--------------------------------------------------------------
|
||||
// Construction shell parallele au shell (initial sans bouchon).
|
||||
// Construction of shell parallel to shell (initial without cap).
|
||||
//--------------------------------------------------------------
|
||||
MakeOffsetShape ();
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Construction d un solide avec le shell initial le shell parallele
|
||||
// limite par les bouchons.
|
||||
// Construction of a solid with the initial shell, parallel shell
|
||||
// limited by caps.
|
||||
//--------------------------------------------------------------------
|
||||
if (!myFaces.IsEmpty()) {
|
||||
TopoDS_Solid Res;
|
||||
@@ -790,8 +790,8 @@ void BRepOffset_MakeOffset::MakeThickSolid()
|
||||
Res.Closed(Standard_True);
|
||||
myOffsetShape = Res;
|
||||
|
||||
// Test de Validite du resultat le Solide epais doit avoir
|
||||
// plus de face que le solide initial.
|
||||
// Test of Validity of the result of thick Solid
|
||||
// more face than the initial solid.
|
||||
|
||||
Standard_Integer NbOF = 0;
|
||||
for (exp.Init(myOffsetShape,TopAbs_FACE);exp.More(); exp.Next()) {
|
||||
@@ -840,8 +840,8 @@ const TopoDS_Shape& BRepOffset_MakeOffset::Shape() const
|
||||
|
||||
//=======================================================================
|
||||
//function : TrimEdge
|
||||
//purpose : Trim l edge au plus large par ses descendants dans AsDes2d.
|
||||
// Range dans AsDes les deux vertex qui ont trimme l edge.
|
||||
//purpose : Trim the edge of the largest of descendants in AsDes2d.
|
||||
// Order in AsDes two vertices that have trimmed the edge.
|
||||
//=======================================================================
|
||||
|
||||
static void TrimEdge (TopoDS_Edge& NE,
|
||||
@@ -912,7 +912,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
{
|
||||
#ifdef DEB
|
||||
if ( ChronBuild) {
|
||||
cout << " CONSTRUCTION DES OFFSETS :" << endl;
|
||||
cout << " CONSTRUCTION OF OFFSETS :" << endl;
|
||||
Clock.Reset();
|
||||
Clock.Start();
|
||||
}
|
||||
@@ -922,7 +922,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
TopTools_MapOfShape Done;
|
||||
Standard_Boolean OffsetOutside = (myOffset > 0.)? Standard_True : Standard_False;
|
||||
//--------------------------------------------------------
|
||||
// Construction des faces paralleles a des faces initiales
|
||||
// Construction of faces parallel to initial faces
|
||||
//--------------------------------------------------------
|
||||
TopExp_Explorer Exp;
|
||||
TopTools_ListOfShape LF;
|
||||
@@ -980,20 +980,20 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
Handle(BRepAlgo_AsDes) AsDes = new BRepAlgo_AsDes();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Extension des faces et calcul des nouvelles edges d intersection.
|
||||
// Extension of faces and calculation of new edges of intersection.
|
||||
//-------------------------------------------------------------------
|
||||
Standard_Boolean ExtentContext = 0;
|
||||
if (myOffset > 0) ExtentContext = 1;
|
||||
|
||||
BRepOffset_Inter3d Inter3 (AsDes,Side,myTol);
|
||||
// Intersection entre faces paralleles
|
||||
// Intersection between parallel faces
|
||||
Inter3.ConnexIntByInt(myShape,MapSF,myAnalyse,MES,Build,Failed );
|
||||
// Intersection avec les bouchons.
|
||||
// Intersection with caps.
|
||||
Inter3.ContextIntByInt(myFaces,ExtentContext,MapSF,myAnalyse,MES,Build,Failed );
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
// Extension des edges voisines des nouvelles edges.et intersection entre les voisins.
|
||||
// Extension of neighbor edges of new edges and intersection between neighbors.
|
||||
//--------------------------------------------------------------------------------
|
||||
Handle(BRepAlgo_AsDes) AsDes2d = new BRepAlgo_AsDes();
|
||||
for (Exp.Init(myShape,TopAbs_FACE) ; Exp.More(); Exp.Next()) {
|
||||
@@ -1004,7 +1004,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
// Modified by skv - Mon Jan 12 11:50:03 2004 OCC4455 End
|
||||
}
|
||||
//-----------------------------------------------------------
|
||||
// Restriction large des nouvelles edges et mise a jour AsDes.
|
||||
// Great restriction of new edges and update of AsDes.
|
||||
//------------------------------------------ ----------------
|
||||
TopTools_MapOfShape NewEdges;
|
||||
TopExp_Explorer Exp2,ExpC;
|
||||
@@ -1030,9 +1030,9 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
}
|
||||
else {
|
||||
//------------------------------------------------------------
|
||||
// Les Intersections sont en plusieurs edges.
|
||||
// Les morceaux sans intersections avec les voisins
|
||||
// sont supprimes de AsDes.
|
||||
// The Intersections are on several edges.
|
||||
// The pieces without intersections with neighbors
|
||||
// are removed from AsDes.
|
||||
//------------------------------------------------------------
|
||||
for (ExpC.Init(NE,TopAbs_EDGE); ExpC.More(); ExpC.Next()) {
|
||||
if (NewEdges.Add(ExpC.Current())) {
|
||||
@@ -1065,7 +1065,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
}
|
||||
|
||||
//---------------------------------
|
||||
// Intersection2d sur les //
|
||||
// Intersection 2D on //
|
||||
//---------------------------------
|
||||
TopTools_ListOfShape LFE;
|
||||
BRepAlgo_Image IMOE;
|
||||
@@ -1085,7 +1085,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
BRepOffset_Inter2d::Compute(AsDes,NEF,NewEdges,myTol);
|
||||
}
|
||||
//----------------------------------------------
|
||||
// Intersections 2d sur les bouchons.
|
||||
// Intersections 2d on caps.
|
||||
//----------------------------------------------
|
||||
TopTools_MapIteratorOfMapOfShape itCork(myFaces);
|
||||
for (; itCork.More(); itCork.Next()) {
|
||||
@@ -1094,7 +1094,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
}
|
||||
|
||||
//-------------------------------
|
||||
// Debouclage des Faces etendues.
|
||||
// Unwinding of extended Faces.
|
||||
//-------------------------------
|
||||
myMakeLoops.Build(LFE ,AsDes,IMOE);
|
||||
|
||||
@@ -1102,7 +1102,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
TopTools_MapOfShape COES;
|
||||
#endif
|
||||
//---------------------------
|
||||
// MAJ SD. pour les faces //
|
||||
// MAJ SD. for faces //
|
||||
//---------------------------
|
||||
for (Exp.Init(myShape,TopAbs_FACE) ; Exp.More(); Exp.Next()) {
|
||||
const TopoDS_Shape& FI = Exp.Current();
|
||||
@@ -1288,7 +1288,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
|
||||
// Modified by skv - Tue Mar 15 16:20:43 2005
|
||||
|
||||
//---------------------------
|
||||
// MAJ SD. pour les bouchons
|
||||
// MAJ SD. for caps
|
||||
//---------------------------
|
||||
TopTools_MapOfShape View;
|
||||
for (itCork.Initialize(myFaces); itCork.More(); itCork.Next()) {
|
||||
@@ -1349,7 +1349,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
{
|
||||
#ifdef DEB
|
||||
if ( ChronBuild) {
|
||||
cout << " CONSTRUCTION DES OFFSETS :" << endl;
|
||||
cout << " CONSTRUCTION OF OFFSETS :" << endl;
|
||||
Clock.Reset();
|
||||
Clock.Start();
|
||||
}
|
||||
@@ -1359,7 +1359,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
TopTools_MapOfShape Done;
|
||||
Standard_Boolean OffsetOutside = (myOffset > 0.)? Standard_True : Standard_False;
|
||||
//--------------------------------------------------------
|
||||
// Construction des faces paralleles a des faces initiales
|
||||
// Construction of faces parallel to initial faces
|
||||
//--------------------------------------------------------
|
||||
TopExp_Explorer Exp;
|
||||
TopTools_ListOfShape LF;
|
||||
@@ -1406,7 +1406,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
MapSF.Bind(F,OF);
|
||||
}
|
||||
//--------------------------------------------------------
|
||||
// Construction des tuyaux sur arete.
|
||||
// Construction of tubes on edge.
|
||||
//--------------------------------------------------------
|
||||
BRepOffset_Type OT = BRepOffset_Convex;
|
||||
if (myOffset < 0.) OT = BRepOffset_Concave;
|
||||
@@ -1463,7 +1463,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
}
|
||||
else {
|
||||
// ----------------------
|
||||
// bord libre.
|
||||
// free border.
|
||||
// ----------------------
|
||||
TopoDS_Shape aLocalShape = MapSF(Anc.First()).Generated(E);
|
||||
TopoDS_Edge EOn1 = TopoDS::Edge(aLocalShape);
|
||||
@@ -1475,7 +1475,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------
|
||||
// Construction des shperes sur vertex.
|
||||
// Construction of spheres on vertex.
|
||||
//--------------------------------------------------------
|
||||
Done.Clear();
|
||||
TopTools_ListIteratorOfListOfShape it;
|
||||
@@ -1490,7 +1490,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
if (LE.Extent() >= 3 && LE.Extent() == LA.Extent()) {
|
||||
TopTools_ListOfShape LOE;
|
||||
//--------------------------------------------------------
|
||||
// Recuperation des edges connexes sur les tuyaux.
|
||||
// Return connected edges on tubes.
|
||||
//--------------------------------------------------------
|
||||
for (it.Initialize(LE) ; it.More(); it.Next()) {
|
||||
LOE.Append(MapSF(it.Value()).Generated(V).Reversed());
|
||||
@@ -1508,7 +1508,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
MapSF.Bind(V,OF);
|
||||
}
|
||||
//--------------------------------------------------------------
|
||||
// Traitemnet particulier si V est sur au moins un bord libre.
|
||||
// Particular processing if V is at least a free border.
|
||||
//-------------------------------------------------------------
|
||||
TopTools_ListOfShape LBF;
|
||||
myAnalyse.Edges(V,BRepOffset_FreeBoundary,LBF);
|
||||
@@ -1529,8 +1529,8 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
}
|
||||
|
||||
//------------------------------------------------------------
|
||||
// Extension des faces paralleles jusq au contexte.
|
||||
// Les faces etendues sont rangees en SD et Supprime de MapSF.
|
||||
// Extension of parallel faces to the context.
|
||||
// Extended faces are ordered in DS and removed from MapSF.
|
||||
//------------------------------------------------------------
|
||||
if (!myFaces.IsEmpty()) ToContext (MapSF);
|
||||
|
||||
@@ -1549,8 +1549,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
if (SF.Status() == BRepOffset_Reversed ||
|
||||
SF.Status() == BRepOffset_Degenerated ) {
|
||||
//------------------------------------------------
|
||||
// Les faces degenerees ou retournees ne sont pas
|
||||
// stockes.
|
||||
// Degenerated or returned faces are not stored.
|
||||
//------------------------------------------------
|
||||
continue;
|
||||
}
|
||||
@@ -1558,15 +1557,15 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
|
||||
const TopoDS_Face& OF = It.Value().Face();
|
||||
myInitOffsetFace.Bind (SI,OF);
|
||||
myInitOffsetFace.SetRoot (SI); // Initial<-> Offset
|
||||
myImageOffset.SetRoot (OF); // FaceOffset racine des images
|
||||
myImageOffset.SetRoot (OF); // FaceOffset root of images
|
||||
|
||||
if (SI.ShapeType() == TopAbs_FACE) {
|
||||
for (Exp.Init(SI.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
|
||||
Exp.More(); Exp.Next()) {
|
||||
//--------------------------------------------------------------------
|
||||
// A chaque face // on associe les edges qui la restreignent
|
||||
// Les edges qui ne genere pas de tuyaux ou qui ne sont pas tangentes
|
||||
// a deux faces sont supprimees.
|
||||
// To each face are associatedthe edges that restrict that
|
||||
// The edges that do not generate tubes or are not tangent
|
||||
// to two faces are removed.
|
||||
//--------------------------------------------------------------------
|
||||
const TopoDS_Edge& E = TopoDS::Edge(Exp.Current());
|
||||
const BRepOffset_ListOfInterval& L = myAnalyse.Type(E);
|
||||
@@ -1643,15 +1642,15 @@ void BRepOffset_MakeOffset::ToContext (BRepOffset_DataMapOfShapeOffset& MapSF)
|
||||
const TopoDS_Edge& E = TopoDS::Edge(exp.Current());
|
||||
if (!myAnalyse.HasAncestor(E)) {
|
||||
//----------------------------------------------------------------
|
||||
// Les edges des faces de contexte qui ne sont pas dans le shape
|
||||
// initiales peuvent apparaitre dans le resultat.
|
||||
// The edges of context faces that are not in the initial shape
|
||||
// can appear in the result.
|
||||
//----------------------------------------------------------------
|
||||
//myAsDes->Add(CF,E);
|
||||
}
|
||||
}
|
||||
}
|
||||
//--------------------------------------------------------
|
||||
// Determination des edges et des faces a reconstruire par
|
||||
//-------------------------------------------------------
|
||||
// Determine the edges and faces reconstructed by
|
||||
// intersection.
|
||||
//---------------------------------------------------------
|
||||
for ( it.Initialize(myFaces); it.More(); it.Next()) {
|
||||
@@ -1683,7 +1682,7 @@ void BRepOffset_MakeOffset::ToContext (BRepOffset_DataMapOfShapeOffset& MapSF)
|
||||
}
|
||||
}
|
||||
//---------------------------
|
||||
// Reconstruction des faces.
|
||||
// Reconstruction of faces.
|
||||
//---------------------------
|
||||
TopoDS_Face F,NF;
|
||||
BRepOffset_Type RT = BRepOffset_Concave;
|
||||
@@ -1731,7 +1730,7 @@ void BRepOffset_MakeOffset::ToContext (BRepOffset_DataMapOfShapeOffset& MapSF)
|
||||
}
|
||||
else {
|
||||
//------------------
|
||||
// Tuyau
|
||||
// Tube
|
||||
//---------------------
|
||||
for (exp.Init(NF.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
|
||||
exp.More(); exp.Next()) {
|
||||
@@ -1741,9 +1740,9 @@ void BRepOffset_MakeOffset::ToContext (BRepOffset_DataMapOfShapeOffset& MapSF)
|
||||
MapSF.UnBind(S);
|
||||
}
|
||||
|
||||
//----------------
|
||||
// MAJ bords libre
|
||||
//----------------
|
||||
//------------------
|
||||
// MAJ free borders
|
||||
//------------------
|
||||
TopTools_DataMapIteratorOfDataMapOfShapeShape itc;
|
||||
for (itc.Initialize(Created); itc.More(); itc.Next()) {
|
||||
OE = itc.Key();
|
||||
@@ -1838,7 +1837,7 @@ void BRepOffset_MakeOffset::CorrectConicalFaces()
|
||||
//Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &anEdge.TShape());
|
||||
if (BRep_Tool::Degenerated(anEdge))
|
||||
{
|
||||
//Check wether anEdge is a really degenerated edge or not
|
||||
//Check if anEdge is a really degenerated edge or not
|
||||
BRepAdaptor_Curve BACurve(anEdge, aFace);
|
||||
gp_Pnt Pfirst, Plast, Pmid;
|
||||
Pfirst = BACurve.Value(BACurve.FirstParameter());
|
||||
@@ -2550,20 +2549,20 @@ void BRepOffset_MakeOffset::Intersection3D(BRepOffset_Inter3d& Inter)
|
||||
Clock.Start();
|
||||
}
|
||||
#endif
|
||||
TopTools_ListOfShape OffsetFaces; // liste des faces // crees.
|
||||
TopTools_ListOfShape OffsetFaces; // list of faces // created.
|
||||
MakeList (OffsetFaces,myInitOffsetFace,myFaces);
|
||||
|
||||
if (!myFaces.IsEmpty()) {
|
||||
Standard_Boolean InSide = (myOffset < 0.); // PROVISOIRE
|
||||
// il faut calculer Inside en tenant compte de la concavite ou convexite des arretes
|
||||
// entre le bouchon et la piece.
|
||||
Standard_Boolean InSide = (myOffset < 0.); // Temporary
|
||||
// it is necessary to calculate Inside taking account of the concavity or convexity of edges
|
||||
// between the cap and the part.
|
||||
|
||||
if (myJoin == GeomAbs_Arc)
|
||||
Inter.ContextIntByArc (myFaces,InSide,myAnalyse,myInitOffsetFace,myInitOffsetEdge);
|
||||
}
|
||||
if (myInter) {
|
||||
//-------------
|
||||
//Complet.
|
||||
//Complete.
|
||||
//-------------
|
||||
Inter.CompletInt (OffsetFaces,myInitOffsetFace);
|
||||
TopTools_MapOfShape& NewEdges = Inter.NewEdges();
|
||||
@@ -2573,7 +2572,7 @@ void BRepOffset_MakeOffset::Intersection3D(BRepOffset_Inter3d& Inter)
|
||||
}
|
||||
else {
|
||||
//--------------------------------
|
||||
// Seulememt entre face voisines.
|
||||
// Only between neighbor faces.
|
||||
//--------------------------------
|
||||
Inter.ConnexIntByArc(OffsetFaces,myShape,myAnalyse,myInitOffsetFace);
|
||||
}
|
||||
@@ -2597,13 +2596,13 @@ void BRepOffset_MakeOffset::Intersection2D(const TopTools_MapOfShape& Modif,
|
||||
Clock.Start();
|
||||
}
|
||||
#endif
|
||||
//-----------------------------------------------------------
|
||||
// calcul des intersections2d sur les faces touchees par les
|
||||
//--------------------------------------------------------
|
||||
// calculate intersections2d on faces concerned by
|
||||
// intersection3d
|
||||
//---------------------------------------------------------
|
||||
//--------------------------------------------------------
|
||||
TopTools_MapIteratorOfMapOfShape it(Modif);
|
||||
//-----------------------------------------------
|
||||
// Intersection des edges 2 a 2.
|
||||
// Intersection of edges 2 by 2.
|
||||
//-----------------------------------------------
|
||||
for ( it.Initialize(Modif); it.More(); it.Next()) {
|
||||
const TopoDS_Face& F = TopoDS::Face(it.Key());
|
||||
@@ -2636,7 +2635,7 @@ void BRepOffset_MakeOffset::MakeLoops(TopTools_MapOfShape& Modif)
|
||||
TopTools_MapIteratorOfMapOfShape it(Modif);
|
||||
TopTools_ListOfShape LF,LC;
|
||||
//-----------------------------------------
|
||||
// debouclage des faces // modifiees.
|
||||
// unwinding of faces // modified.
|
||||
//-----------------------------------------
|
||||
for (; it.More(); it.Next()) {
|
||||
if (!myFaces.Contains(it.Key())) LF.Append(it.Key());
|
||||
@@ -2644,7 +2643,7 @@ void BRepOffset_MakeOffset::MakeLoops(TopTools_MapOfShape& Modif)
|
||||
myMakeLoops.Build(LF,myAsDes,myImageOffset);
|
||||
|
||||
//-----------------------------------------
|
||||
// debouclage des bouchons.
|
||||
// unwinding of caps.
|
||||
//-----------------------------------------
|
||||
for (it.Initialize(myFaces); it.More(); it.Next()) {
|
||||
LC.Append(it.Key());
|
||||
@@ -2660,15 +2659,15 @@ void BRepOffset_MakeOffset::MakeLoops(TopTools_MapOfShape& Modif)
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeFaces
|
||||
//purpose : Reconstruction des faces topologiquement inchangees qui
|
||||
// partage des edges qui ont ete reconstruites.
|
||||
//purpose : Reconstruction of topologically unchanged faces that
|
||||
// share edges that were reconstructed.
|
||||
//=======================================================================
|
||||
|
||||
void BRepOffset_MakeOffset::MakeFaces(TopTools_MapOfShape& Modif)
|
||||
{
|
||||
#ifdef DEb
|
||||
if (ChronBuild) {
|
||||
cout << " RECONSTRUCTION DES FACES:" << endl;
|
||||
cout << " RECONSTRUCTION OF FACES:" << endl;
|
||||
Clock.Reset();
|
||||
Clock.Start();
|
||||
}
|
||||
@@ -2677,7 +2676,7 @@ void BRepOffset_MakeOffset::MakeFaces(TopTools_MapOfShape& Modif)
|
||||
const TopTools_ListOfShape& Roots = myInitOffsetFace.Roots();
|
||||
TopTools_ListOfShape LOF;
|
||||
//----------------------------------
|
||||
// Boucle sur toutes les faces //.
|
||||
// Loop on all faces //.
|
||||
//----------------------------------
|
||||
for (itr.Initialize(Roots); itr.More(); itr.Next()) {
|
||||
TopoDS_Face F = TopoDS::Face(myInitOffsetFace.Image(itr.Value()).First());
|
||||
@@ -2692,7 +2691,7 @@ void BRepOffset_MakeOffset::MakeFaces(TopTools_MapOfShape& Modif)
|
||||
|
||||
//=======================================================================
|
||||
//function : UpdateInitOffset
|
||||
//purpose : mis a jour et purge de myInitOffset
|
||||
//purpose : Update and cleaning of myInitOffset
|
||||
//=======================================================================
|
||||
|
||||
static void UpdateInitOffset (BRepAlgo_Image& myInitOffset,
|
||||
@@ -3059,7 +3058,7 @@ void BRepOffset_MakeOffset::MakeShells ()
|
||||
{
|
||||
#ifdef DEB
|
||||
if (ChronBuild) {
|
||||
cout << " RECONSTRUCTION DES SHELLS:" << endl;
|
||||
cout << " RECONSTRUCTION OF SHELLS:" << endl;
|
||||
Clock.Reset();
|
||||
Clock.Start();
|
||||
}
|
||||
@@ -3143,9 +3142,9 @@ void BRepOffset_MakeOffset::SelectShells ()
|
||||
TopTools_MapOfShape FreeEdges;
|
||||
TopExp_Explorer exp(myShape,TopAbs_EDGE);
|
||||
//-------------------------------------------------------------
|
||||
// FreeEdges ensemble des edges qui peuvent etre bord libre dans
|
||||
// le shell parallele
|
||||
// 1 - les bord libres de myShape .
|
||||
// FreeEdges all edges that can have free border in the
|
||||
// parallel shell
|
||||
// 1 - free borders of myShape .
|
||||
//-------------------------------------------------------------
|
||||
for ( ; exp.More(); exp.Next()) {
|
||||
const TopoDS_Edge& E = TopoDS::Edge(exp.Current());
|
||||
@@ -3156,8 +3155,8 @@ void BRepOffset_MakeOffset::SelectShells ()
|
||||
}
|
||||
}
|
||||
}
|
||||
// myShape a des bords libres et il n y a pas de bouchons.
|
||||
// pas de debouclage3d.
|
||||
// myShape has free borders and there are no caps
|
||||
// no unwinding 3d.
|
||||
if (!FreeEdges.IsEmpty() && myFaces.IsEmpty()) return;
|
||||
|
||||
myOffsetShape = BRepOffset_Tool::Deboucle3D(myOffsetShape,FreeEdges);
|
||||
@@ -3218,14 +3217,14 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
|
||||
{
|
||||
#ifdef DEB
|
||||
if (ChronBuild) {
|
||||
cout << " CODAGE DES REGULARITES:" << endl;
|
||||
cout << " CODING OF REGULARITIES:" << endl;
|
||||
Clock.Reset();
|
||||
Clock.Start();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (myOffsetShape.IsNull()) return;
|
||||
// recherche des edges G1 dans le resultat
|
||||
// find edges G1 in the result
|
||||
TopExp_Explorer exp(myOffsetShape,TopAbs_EDGE);
|
||||
|
||||
BRep_Builder B;
|
||||
@@ -3246,7 +3245,7 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
|
||||
if (LofOF.Extent() != 2) {
|
||||
#ifdef DEB
|
||||
if ( Standard_False)
|
||||
cout << " Edge partage par " << LofOF.Extent() << " Faces" << endl;
|
||||
cout << " Edge shared by " << LofOF.Extent() << " Faces" << endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -3265,12 +3264,12 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
|
||||
|
||||
if (F1.IsSame(F2)) {
|
||||
if (BRep_Tool::IsClosed(OE,F1)) {
|
||||
// Debug provisoire pour le Bench.
|
||||
// Voir avec YFR.
|
||||
// En mode intersection, les aretes ne sont pas codees dans myInitOffsetEdge
|
||||
// on gere donc au cas par cas.
|
||||
// Remarque DUB; Pour les parties cachees, il FAUT coder CN
|
||||
// les Surf Analytiques.
|
||||
// Temporary Debug for the Bench.
|
||||
// Check with YFR.
|
||||
// In mode intersection, the edges are not coded in myInitOffsetEdge
|
||||
// so, manage case by case
|
||||
// Note DUB; for Hidden parts, it is NECESSARY to code CN
|
||||
// Analytic Surfaces.
|
||||
if (myJoin == GeomAbs_Intersection) {
|
||||
BRepAdaptor_Surface BS(F1,Standard_False);
|
||||
GeomAbs_SurfaceType SType = BS.GetType();
|
||||
@@ -3281,7 +3280,7 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
|
||||
B.Continuity(OE,F1,F1,GeomAbs_CN);
|
||||
}
|
||||
else {
|
||||
// Voir YFR : MaJ de myInitOffsetFace
|
||||
// See YFR : MaJ of myInitOffsetFace
|
||||
}
|
||||
}
|
||||
else if (myInitOffsetEdge.IsImage(ROE)) {
|
||||
@@ -3302,16 +3301,15 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
|
||||
}
|
||||
|
||||
|
||||
// on code les regularites G1 entre :
|
||||
// - sphere et tuyau : une root est un vertex, l'autre un edge
|
||||
// et le vertex est inclus dans l'edge
|
||||
// - face et tuyau : une root est une face, l'autre un edge
|
||||
// et l'edge est inclus dans la face
|
||||
// - face et face : si les 2 faces root sont tangentes dans
|
||||
// le shape initial, elles le seront dans
|
||||
// le shape offset
|
||||
// - tuyau et tuyau : si les 2 edges generant les tuyaux sont
|
||||
// tangents, les 2 tuyaux le seront.
|
||||
// code regularities G1 between :
|
||||
// - sphere and tube : one root is a vertex, the other is an edge
|
||||
// and the vertex is included in the edge
|
||||
// - face and tube : one root is a face, the other an edge
|
||||
// and the edge is included in the face
|
||||
// - face and face : if two root faces are tangent in
|
||||
// the initial shape, they will be tangent in the offset shape
|
||||
// - tube and tube : if 2 edges generating tubes are
|
||||
// tangents, the 2 will be tangent either.
|
||||
if ( Type1 == TopAbs_EDGE && Type2 == TopAbs_VERTEX) {
|
||||
TopoDS_Vertex V1,V2;
|
||||
TopExp::Vertices(TopoDS::Edge(Root1), V1, V2);
|
||||
@@ -3345,8 +3343,8 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
|
||||
}
|
||||
}
|
||||
else if ( Type1 == TopAbs_FACE && Type2 == TopAbs_FACE) {
|
||||
// si les 2 faces root sont tangentes dans le shape initial,
|
||||
// elles le seront dans le shape offset
|
||||
// if two root faces are tangent in
|
||||
// the initial shape, they will be tangent in the offset shape
|
||||
TopTools_ListOfShape LE,LV;
|
||||
BRepOffset_Tool::HasCommonShapes(TopoDS::Face(Root1),
|
||||
TopoDS::Face(Root2),
|
||||
@@ -3408,7 +3406,7 @@ static void UpdateTolerance (TopoDS_Shape& S,
|
||||
TopTools_MapOfShape View;
|
||||
TopoDS_Vertex V[2];
|
||||
|
||||
// Les edges des bouchons ne sont pas modifiees.
|
||||
// The edges of caps are not modified.
|
||||
TopTools_MapIteratorOfMapOfShape it;
|
||||
for (it.Initialize(Faces); it.More(); it.Next()) {
|
||||
const TopoDS_Shape& F = it.Key();
|
||||
@@ -3435,7 +3433,7 @@ static void UpdateTolerance (TopoDS_Shape& S,
|
||||
TV->Tolerance(0.);
|
||||
Handle(BRepCheck_Vertex) VertexCorrector = new BRepCheck_Vertex(V[i]);
|
||||
B.UpdateVertex (V[i],VertexCorrector->Tolerance());
|
||||
// on profite de l occasion pour purger le vertex.
|
||||
// use the occasion to clean the vertices.
|
||||
(TV->ChangePoints()).Clear();
|
||||
}
|
||||
B.UpdateVertex(V[i],Tol);
|
||||
|
Reference in New Issue
Block a user