mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0022312: Translation of french commentaries in OCCT files
This commit is contained in:
@@ -86,14 +86,14 @@
|
||||
BRepCheck_Analyzer ana(toCheck, Standard_True);
|
||||
if (!ana.IsValid()) {
|
||||
|
||||
// On verifie que le probleme ne soit pas juste BRepCheck_InvalidSameParameterFlag
|
||||
// Check if the problem is not just BRepCheck_InvalidSameParameterFlag
|
||||
BRepCheck_ListIteratorOfListOfStatus itl;
|
||||
BRepCheck_Status sta;
|
||||
for (tEx.Init(toCheck, TopAbs_FACE); tEx.More(); tEx.Next()) {
|
||||
if (!ana.Result(tEx.Current()).IsNull()) {
|
||||
for (itl.Initialize(ana.Result(tEx.Current())->Status()); itl.More(); itl.Next()) {
|
||||
sta=itl.Value();
|
||||
// Si une face est en erreur
|
||||
// If a face is incorrect
|
||||
if (sta != BRepCheck_NoError) {
|
||||
BRepCheck_ListIteratorOfListOfStatus ilt;
|
||||
TopExp_Explorer exp;
|
||||
@@ -103,7 +103,7 @@
|
||||
if (res->ContextualShape().IsSame(tEx.Current())) {
|
||||
for (ilt.Initialize(res->StatusOnShape()); ilt.More(); ilt.Next()) {
|
||||
sta=ilt.Value();
|
||||
// Si une edge est BRepCheck_InvalidSameParameterFlag ou BRepCheck_InvalidSameRangeFlag on force
|
||||
// If an edge is BRepCheck_InvalidSameParameterFlag or BRepCheck_InvalidSameRangeFlag, it is forced
|
||||
if (sta == BRepCheck_InvalidSameParameterFlag ||
|
||||
sta == BRepCheck_InvalidSameRangeFlag) {
|
||||
bB.SameRange(TopoDS::Edge(exp.Current()), Standard_False);
|
||||
@@ -121,7 +121,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// On refait un controle (il pourrait y avoir un probleme d'un autre type ou non rectifiable.
|
||||
// Remake control (there can be a problem of another type orb the one that cannot be corrected
|
||||
ana.Init(toCheck, Standard_True);
|
||||
if (!ana.IsValid()) return Standard_False;
|
||||
}
|
||||
@@ -151,10 +151,6 @@
|
||||
{
|
||||
//
|
||||
|
||||
// pour permettre a Moliner de travailler jusqu'au 18/10/96 le temps que
|
||||
// l'on trouve une solution reflechie au probleme de performance de BRepCheck
|
||||
//
|
||||
//POP ON n'utilise plus la varaible d'environnement
|
||||
// if (getenv("DONT_SWITCH_IS_VALID") != NULL) {
|
||||
// return Standard_True ;
|
||||
// }
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepClass3d_SolidClassifier.hxx>
|
||||
|
||||
// couture
|
||||
// sewing
|
||||
#include <BRepTools_Substitution.hxx>
|
||||
#include <BRepBuilderAPI_Sewing.hxx>
|
||||
#include <BRepCheck.hxx>
|
||||
@@ -127,8 +127,8 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
}
|
||||
DSFiller.Insert(myS1,myS2,HDS);
|
||||
|
||||
// 020499 : JYL : rejet si il existe une arete de la SD
|
||||
// codee non sameparameter et non degeneree
|
||||
// 020499 : JYL : reject if there is an edge of the SD
|
||||
// not coded sameparameter and not degenerated
|
||||
Standard_Boolean esp = HDS->EdgesSameParameter();
|
||||
Standard_Boolean tede = Standard_True;
|
||||
if (!esp) {
|
||||
@@ -204,10 +204,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
#if MODIF
|
||||
|
||||
//======================================================================
|
||||
//== Exploration des shapes en entree
|
||||
//== Creation de la liste des solides
|
||||
//== Creation de la liste des faces HORS solide
|
||||
//== Creation de la liste des edges HORS face
|
||||
//== Exploration of input shapes
|
||||
//== Creation of the list of solids
|
||||
//== Creation of the list of faces OUT OF solid
|
||||
//== Creation of the list of edges OUT OF face
|
||||
Standard_Integer nbs1,nbs2,nbf1,nbf2,nbe1,nbe2,nbv1,nbv2;
|
||||
|
||||
TopTools_ListOfShape Solids1,Solids2,Faces1,Faces2,Edges1,Edges2,Vertex1,Vertex2;
|
||||
@@ -218,21 +218,21 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
for(Ex.Init(myS2,TopAbs_SOLID),nbs2=0; Ex.More(); Ex.Next()) {
|
||||
Solids2.Append(Ex.Current()); nbs2++;
|
||||
}
|
||||
//== Les faces non ds un solide
|
||||
//== Faces not in a solid
|
||||
for(Ex.Init(myS1,TopAbs_FACE,TopAbs_SOLID),nbf1=0; Ex.More(); Ex.Next()) {
|
||||
Faces1.Append(Ex.Current()); nbf1++;
|
||||
}
|
||||
for(Ex.Init(myS2,TopAbs_FACE,TopAbs_SOLID),nbf2=0; Ex.More(); Ex.Next()) {
|
||||
Faces2.Append(Ex.Current()); nbf2++;
|
||||
}
|
||||
//== Les Edges non ds un solide
|
||||
//== Edges not in a solid
|
||||
for(Ex.Init(myS1,TopAbs_EDGE,TopAbs_FACE),nbe1=0; Ex.More(); Ex.Next()) {
|
||||
Edges1.Append(Ex.Current()); nbe1++;
|
||||
}
|
||||
for(Ex.Init(myS2,TopAbs_EDGE,TopAbs_FACE),nbe2=0; Ex.More(); Ex.Next()) {
|
||||
Edges2.Append(Ex.Current()); nbe2++;
|
||||
}
|
||||
//== Les Vertex non ds un edge
|
||||
//== Vertices not in an edge
|
||||
for(Ex.Init(myS1,TopAbs_VERTEX,TopAbs_EDGE),nbv1=0; Ex.More(); Ex.Next()) {
|
||||
Vertex1.Append(Ex.Current()); nbv1++;
|
||||
}
|
||||
@@ -245,10 +245,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
|
||||
//==
|
||||
|
||||
//== Rejet des orerations sans sens
|
||||
//== Reject operations without direction
|
||||
|
||||
|
||||
//-- Coupe Solide par Edge
|
||||
//-- Cut Solid by Edge
|
||||
// Standard_Boolean Correct = Standard_True;
|
||||
if( (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==TopAbs_IN)
|
||||
|| (nbs2 && nbs1==0 && St2==TopAbs_OUT && St1==TopAbs_IN)) {
|
||||
@@ -302,10 +302,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
BB.Add(myShape,LV);
|
||||
}
|
||||
else {
|
||||
//-- On classifie :
|
||||
//-- Classify :
|
||||
Sub_Classify(Ex,St1,Solids2,BB,LIter,myShape);
|
||||
}
|
||||
//-- Fin Classification
|
||||
//-- End Classification
|
||||
}
|
||||
}
|
||||
} // nbf1
|
||||
@@ -326,10 +326,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
BB.Add(myShape,LV);
|
||||
}
|
||||
else {
|
||||
//-- On classifie :
|
||||
//-- Classify :
|
||||
Sub_Classify(Ex,St2,Solids1,BB,LIter,myShape);
|
||||
}
|
||||
//-- Fin Classification
|
||||
//-- End Classification
|
||||
}
|
||||
}
|
||||
} // nbf2
|
||||
@@ -371,10 +371,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
BB.Add(myShape,LV);
|
||||
}
|
||||
else {
|
||||
//-- On classifie :
|
||||
//-- Classify :
|
||||
Sub_Classify(Ex,St1,Solids2,BB,LIter,myShape);
|
||||
}
|
||||
//-- Fin Classification
|
||||
//-- End Classification
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -411,10 +411,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
BB.Add(myShape,LV);
|
||||
}
|
||||
else {
|
||||
//-- On classifie :
|
||||
//-- Classify :
|
||||
Sub_Classify(Ex,St2,Solids1,BB,LIter,myShape);
|
||||
}
|
||||
//-- Fin Classification
|
||||
//-- End Classification
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -440,10 +440,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
BB.Add(myShape,LV);
|
||||
}
|
||||
else {
|
||||
//-- On classifie :
|
||||
//-- Classify :
|
||||
Sub_Classify(Ex,St1,Solids2,BB,LIter,myShape);
|
||||
}
|
||||
//-- Fin Classification
|
||||
//-- End Classification
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -465,16 +465,16 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
BB.Add(myShape,LV);
|
||||
}
|
||||
else {
|
||||
//-- On classifie :
|
||||
//-- Classify :
|
||||
Sub_Classify(Ex,St2,Solids1,BB,LIter,myShape);
|
||||
}
|
||||
//-- Fin Classification
|
||||
//-- End Classification
|
||||
}
|
||||
}
|
||||
}
|
||||
//----------------------------------------------------------------------
|
||||
//-- V1:Vertex1 state1 = OUT -> On garde V1 si V1 est Out Tous les S2
|
||||
//-- V1:Vertex1 state1 = IN -> On garde V1 si V1 est In un des S2
|
||||
//-- V1:Vertex1 state1 = OUT -> Preserve V1 if V1 is Out all S2
|
||||
//-- V1:Vertex1 state1 = IN -> Preserve V1 if V1 is In one of S2
|
||||
if(nbv1 && nbs2) {
|
||||
if(St1 == TopAbs_IN) {
|
||||
for(LIter.Initialize(Vertex1);LIter.More();LIter.Next()) {
|
||||
@@ -610,10 +610,10 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
TopExp_Explorer ex;
|
||||
ex.Init(myShape,TopAbs_FACE);
|
||||
for (; ex.More(); ex.Next()) myMap.Add(ex.Current());
|
||||
ex.Init(myShape,TopAbs_EDGE); // pour le FRIKO
|
||||
ex.Init(myShape,TopAbs_EDGE); // for FRIKO
|
||||
for (; ex.More(); ex.Next()) myMap.Add(ex.Current());
|
||||
|
||||
// Verification same parameter des nouvelles edges de section
|
||||
// Checking same parameter of new edges of section
|
||||
Standard_Real eTol,cTol;
|
||||
for (myHBuilder->InitSection(1);
|
||||
myHBuilder->MoreSection();
|
||||
@@ -628,8 +628,8 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
for (ex.Init(cur, TopAbs_VERTEX); ex.More(); ex.Next()) {
|
||||
eTol = BRep_Tool::Tolerance(TopoDS::Vertex(ex.Current()));
|
||||
if (eTol<cTol) {
|
||||
// Update ne peut que augmenter la tolerance, donc si le vertex a
|
||||
// une tolerance + grande que ses edges on y touche pas
|
||||
// Update can only increase tolerance, so if the vertex
|
||||
// has a greater tolerance thanits edges it is not touched
|
||||
BB.UpdateVertex(TopoDS::Vertex(ex.Current()), cTol);
|
||||
}
|
||||
}
|
||||
@@ -654,7 +654,7 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
|
||||
for (ex1.Init(myShape, TopAbs_SHELL); ex1.More(); ex1.Next()) {
|
||||
BRepCheck_Shell bcs(TopoDS::Shell(ex1.Current()));
|
||||
if (bcs.Closed()==BRepCheck_NotClosed) {
|
||||
// il faut les ajouter face par face pour avoir linfo IsModified sur les faces
|
||||
// it is required to add them face by face to avoid IsModified on faces
|
||||
BRepBuilderAPI_Sewing brts;
|
||||
for (ex3.Init(ex1.Current(), TopAbs_FACE); ex3.More(); ex3.Next()) {
|
||||
brts.Add(ex3.Current());
|
||||
@@ -815,7 +815,7 @@ void Sub_Classify(TopExp_Explorer& Ex,
|
||||
|
||||
//=======================================================================
|
||||
//function : InitParameters
|
||||
//purpose : Info sur la geometrie : PCurve, Approx, ...
|
||||
//purpose : Info on geometry : PCurve, Approx, ...
|
||||
//=======================================================================
|
||||
void BRepAlgo_BooleanOperation::InitParameters()
|
||||
{
|
||||
|
@@ -537,11 +537,11 @@ void BRepAlgo_DSAccess::ChangeEdgeSet
|
||||
iC = myHB->GetDSCurveFromSectEdge(Edge);
|
||||
if (!iC) {
|
||||
#if DEB
|
||||
cout << "Warning DSAccess:Modifs d'une Edge non implemente" << endl;
|
||||
cout << "Warning DSAccess: Modifications of Edge are not implemented" << endl;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
// Complement on the interferences Curve/Face
|
||||
// Complete the interferences Curve/Face
|
||||
Standard_Integer iF;
|
||||
Handle(TopOpeBRepDS_Interference) interf;
|
||||
|
||||
@@ -573,7 +573,7 @@ void BRepAlgo_DSAccess::ChangeEdgeSet
|
||||
}
|
||||
|
||||
|
||||
// Netoyage
|
||||
// Cleaning
|
||||
Suppress(C, New);
|
||||
|
||||
// Is it necessary to invert the Interferences "Edge on Fa"
|
||||
@@ -639,7 +639,7 @@ void BRepAlgo_DSAccess::Suppress(const TopoDS_Shape& C,
|
||||
// during the parsing the Edges which come from Edge are found
|
||||
// (= MapOfInteger : ESE)
|
||||
|
||||
// En premier, les interferences de support 1d.
|
||||
// First, the interferences of support 1d.
|
||||
TopExp_Explorer exp(C, TopAbs_EDGE);
|
||||
for(; exp.More(); exp.Next()) {
|
||||
const TopoDS_Shape& SectEdge = exp.Current();
|
||||
@@ -855,7 +855,7 @@ const TopoDS_Shape& BRepAlgo_DSAccess::Propagate
|
||||
|
||||
// myHB->MergeShapes(myS1,t1,myS2,t2);
|
||||
|
||||
//POP pour NT;
|
||||
//POP for NT;
|
||||
static TopoDS_Shape bid;
|
||||
return bid;
|
||||
}
|
||||
@@ -951,9 +951,9 @@ const TopTools_ListOfShape& BRepAlgo_DSAccess::Modified (const TopoDS_Shape& Sha
|
||||
BRepAlgo_CheckStatus BRepAlgo_DSAccess::Check()
|
||||
{
|
||||
// TopOpeBRepDS_Check Ck(HDS);
|
||||
// to be precised : in Ck, there is a possibility to know
|
||||
// exactly the n*n of shapes/points/curves/surfaces,
|
||||
// which are not correct in the DS.
|
||||
// to be precised : in Ck, there is a possibility to know
|
||||
// exactly the n*n of shapes/points/curves/surfaces,
|
||||
// which are not correct in the DS.
|
||||
// Standard_Boolean IsOK = Ck.ChkIntgSamDom() ;
|
||||
// IsOK = IsOK && Ck.OneVertexOnPnt();
|
||||
// IsOK = IsOK && Ck.ChkIntg();
|
||||
@@ -975,7 +975,7 @@ BRepAlgo_CheckStatus BRepAlgo_DSAccess::Check()
|
||||
//
|
||||
// if iE1 and iE2 are Faces :
|
||||
// for each of faces F1 and F2, explode into Edges
|
||||
// for each Edge :
|
||||
// for each Edge :
|
||||
// remove the interferences of a SectEdge vertex
|
||||
// on geometry. If there is no other interferences attached to
|
||||
// these Edges, and if these Edges are not SameDomain,
|
||||
@@ -1063,8 +1063,8 @@ void BRepAlgo_DSAccess::RemoveEdgeInterferences
|
||||
//=======================================================================
|
||||
//function : RemoveEdgeInterferences
|
||||
//purpose : case of SectEdge coming from Curve
|
||||
// for each of faces F1 and F2, explode into Edges
|
||||
// for each Edge :
|
||||
// for each of faces F1 and F2, explode into Edges
|
||||
// for each Edge :
|
||||
// remove the interferences that have a vertex of SectEdge
|
||||
// as a geometry. If no other interferences are attached to
|
||||
// these Edges, and if the Edges are not SameDomain,
|
||||
@@ -1097,8 +1097,8 @@ void BRepAlgo_DSAccess::RemoveEdgeInterferences
|
||||
// DSEdge (= E1 or E2) :
|
||||
// a) if DSEdge is not SameDomain -> the edge is Removed
|
||||
// b) if among other interferences of DSEdge of
|
||||
// GeomtryType == VERTEX, il n'en existe pas qui soient
|
||||
// avec une Edge de DSFace(= F1 ou F2)
|
||||
// GeomtryType == VERTEX, there is none
|
||||
// with Edge of DSFace(= F1 or F2)
|
||||
// if DSFace has no more interferences and is not SameDomain,
|
||||
// make unkeep DSFace.
|
||||
//=======================================================================
|
||||
|
@@ -127,14 +127,14 @@ void BRepAlgo_FaceRestrictor::Perform()
|
||||
TopTools_ListIteratorOfListOfShape it(wires);
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// recuperation la geometrie de la face de reference.
|
||||
// return geometry of the reference face.
|
||||
//--------------------------------------------------------------------
|
||||
TopLoc_Location L;
|
||||
const Handle(Geom_Surface)& S = BRep_Tool::Surface(myFace,L);
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// test si les edges sont sur S. sinon ajout de S sur la premiere pcurve.
|
||||
// ou projection de l edge sur F.
|
||||
// test if edges are on S. otherwise add S to the first pcurve.
|
||||
// or projection of the edge on F.
|
||||
//----------------------------------------------------------------------
|
||||
TopExp_Explorer Exp;
|
||||
// BRep_Builder BB;
|
||||
@@ -143,7 +143,7 @@ void BRepAlgo_FaceRestrictor::Perform()
|
||||
TopOpeBRepBuild_WireToFace WTF;
|
||||
|
||||
for ( ; it.More(); it.Next()) {
|
||||
// mise a jour de la surface sur les edges.
|
||||
// update the surface on edges.
|
||||
const TopoDS_Wire& W = TopoDS::Wire(it.Value());
|
||||
|
||||
for (Exp.Init(W,TopAbs_EDGE); Exp.More(); Exp.Next()) {
|
||||
@@ -152,13 +152,13 @@ void BRepAlgo_FaceRestrictor::Perform()
|
||||
Handle(Geom2d_Curve) C2 = BRep_Tool::CurveOnSurface(E,S,L,f,l);
|
||||
|
||||
if (C2.IsNull()) {
|
||||
// pas de pcurve sur la surface de reference.
|
||||
// no pcurve on the reference surface.
|
||||
if (modeProj) {
|
||||
// Projection de la courbe 3d sur la surface.
|
||||
// Projection of the 3D curve on surface.
|
||||
ProjCurve3d ( E, S, L);
|
||||
}
|
||||
else {
|
||||
// recuperation de la premiere pcurve qui est colle sur <S>
|
||||
// return the first pcurve glued on <S>
|
||||
Standard_Boolean YaPCurve = ChangePCurve (E, S, L);
|
||||
if (!YaPCurve) {
|
||||
ProjCurve3d (E, S, L);
|
||||
@@ -315,7 +315,7 @@ static void BuildFaceIn( TopoDS_Face& F,
|
||||
|
||||
if (!KeyContains.IsBound(W) || KeyContains(W).IsEmpty()) return;
|
||||
|
||||
// Suppression de W dans les KeyIsIn.
|
||||
// Removal of W in KeyIsIn.
|
||||
// for (TopTools_ListIteratorOfListOfShape it(KeyContains(W)); it.More(); it.Next()) {
|
||||
|
||||
TopTools_ListIteratorOfListOfShape it;
|
||||
@@ -377,7 +377,7 @@ void BRepAlgo_FaceRestrictor::PerformWithCorrection()
|
||||
myDone = Standard_False;
|
||||
TopTools_ListIteratorOfListOfShape it(wires);
|
||||
//---------------------------------------------------------
|
||||
// Reorientation de tous les wires fermes matiere a gauche.
|
||||
// Reorientation of all closed wires to the left.
|
||||
//---------------------------------------------------------
|
||||
for (; it.More(); it.Next()) {
|
||||
TopoDS_Wire& W = TopoDS::Wire(it.Value());
|
||||
@@ -395,7 +395,7 @@ void BRepAlgo_FaceRestrictor::PerformWithCorrection()
|
||||
}
|
||||
}
|
||||
//---------------------------------------------------------
|
||||
// Classification des wires les uns par rapport aux autres.
|
||||
// Classification of wires ones compared to the others.
|
||||
//---------------------------------------------------------
|
||||
Standard_Integer j,i = 1;
|
||||
|
||||
@@ -442,7 +442,7 @@ void BRepAlgo_FaceRestrictor::PerformWithCorrection()
|
||||
B.Add (NewFace,W);
|
||||
faces.Append(NewFace);
|
||||
//--------------------------------------------
|
||||
// Construction d une face par wire exterieur.
|
||||
// Construction of a face by exterior wire.
|
||||
//--------------------------------------------
|
||||
BuildFaceIn(NewFace,W, keyContains, keyIsIn, TopAbs_FORWARD, faces);
|
||||
}
|
||||
|
@@ -69,7 +69,7 @@ void BRepAlgo_Loop::Init(const TopoDS_Face& F)
|
||||
|
||||
//=======================================================================
|
||||
//function : Bubble
|
||||
//purpose : Ordonne la sequence de vertex en parametre croissant.
|
||||
//purpose : Orders the sequence of vertices by increasing parameter.
|
||||
//=======================================================================
|
||||
|
||||
static void Bubble(const TopoDS_Edge& E,
|
||||
@@ -140,9 +140,9 @@ void BRepAlgo_Loop::AddConstEdges(const TopTools_ListOfShape& LE)
|
||||
|
||||
//=======================================================================
|
||||
//function : UpdateClosedEdge
|
||||
//purpose : Si le premier ou dernier vertex d intersection
|
||||
// coincide avec le vertex de fermeture il est supprime de SV.
|
||||
// il sera ajoute au debut et a la fin de SV par l appelant.
|
||||
//purpose : If the first or the last vertex of intersection
|
||||
// coincides with the closing vertex, it is removed from SV.
|
||||
// it will be added at the beginning and the end of SV by the caller.
|
||||
//=======================================================================
|
||||
|
||||
static TopoDS_Vertex UpdateClosedEdge(const TopoDS_Edge& E,
|
||||
@@ -175,7 +175,7 @@ static TopoDS_Vertex UpdateClosedEdge(const TopoDS_Edge& E,
|
||||
if (!VB[0].IsSame(VB[1])) {
|
||||
#ifdef DEB
|
||||
if (AffichLoop)
|
||||
cout <<" Deux vertex different sur vertex de fermeture"<<endl;
|
||||
cout <<"Two different vertices on the closing vertex"<<endl;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
@@ -199,7 +199,7 @@ static TopoDS_Vertex UpdateClosedEdge(const TopoDS_Edge& E,
|
||||
static void RemovePendingEdges(TopTools_DataMapOfShapeListOfShape& MVE)
|
||||
{
|
||||
//--------------------------------
|
||||
// Suppression des edges pendants.
|
||||
// Remove hanging edges.
|
||||
//--------------------------------
|
||||
TopTools_DataMapIteratorOfDataMapOfShapeListOfShape Mapit;
|
||||
TopTools_ListOfShape ToRemove;
|
||||
@@ -276,10 +276,10 @@ static Standard_Boolean SamePnt2d(TopoDS_Vertex V,
|
||||
|
||||
//=======================================================================
|
||||
//function : SelectEdge
|
||||
//purpose : Trouve l edge <NE> connexe a <CE> par le vertex <CV> dans
|
||||
// la liste <LE>. <NE> est supprime de la liste. Si <CE> est
|
||||
// aussi dans la liste <LE> avec la meme orientation, il est
|
||||
// supprime de la liste.
|
||||
//purpose : Find edge <NE> connected to <CE> by vertex <CV> in the
|
||||
// list <LE>. <NE> is removed from the list. If <CE> is
|
||||
// also in the list <LE> with the same orientation, it is
|
||||
// removed from the list.
|
||||
//=======================================================================
|
||||
|
||||
static Standard_Boolean SelectEdge(const TopoDS_Face& F,
|
||||
@@ -293,7 +293,7 @@ static Standard_Boolean SelectEdge(const TopoDS_Face& F,
|
||||
#ifdef DEB
|
||||
if (AffichLoop) {
|
||||
if ( LE.Extent() > 2) {
|
||||
cout <<"vertex sur plus de 2 edges dans une face."<<endl;
|
||||
cout <<"vertex on more than 2 edges in a face."<<endl;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -305,12 +305,12 @@ static Standard_Boolean SelectEdge(const TopoDS_Face& F,
|
||||
}
|
||||
if (LE.Extent() > 1) {
|
||||
//--------------------------------------------------------------
|
||||
// Plusieurs edges possibles.
|
||||
// - Test les edges differentes de CE , Selection de l edge
|
||||
// pour lequel CV a les U,V les plus proches dans la face
|
||||
// que ceux correspondant a CE.
|
||||
// - Si plusieurs edge donne des representation < la tolerance.
|
||||
// discrimination sur les tangentes.
|
||||
// Several edges possible.
|
||||
// - Test edges different from CE , Selection of edge
|
||||
// for which CV has U,V closer to the face
|
||||
// than corresponding to CE.
|
||||
// - If several edges give representation less than the tolerance.
|
||||
// discrimination on tangents.
|
||||
//--------------------------------------------------------------
|
||||
TopLoc_Location L;
|
||||
Standard_Real f,l;
|
||||
@@ -518,7 +518,7 @@ void BRepAlgo_Loop::Perform()
|
||||
#endif
|
||||
|
||||
//------------------------------------------------
|
||||
// Decoupe des edges
|
||||
// Cut edges
|
||||
//------------------------------------------------
|
||||
for (Mapit.Initialize(myVerOnEdges); Mapit.More(); Mapit.Next()) {
|
||||
TopTools_ListOfShape LCE;
|
||||
@@ -532,7 +532,7 @@ void BRepAlgo_Loop::Perform()
|
||||
//-----------------------------------
|
||||
TopTools_DataMapOfShapeListOfShape MVE;
|
||||
|
||||
// ajout des edges decoupees.
|
||||
// add cut edges.
|
||||
for (Mapit.Initialize(myNewEdges); Mapit.More(); Mapit.Next()) {
|
||||
for (itl.Initialize(myNewEdges(Mapit.Key())); itl.More(); itl.Next()) {
|
||||
TopoDS_Edge& E = TopoDS::Edge(itl.Value());
|
||||
@@ -540,9 +540,9 @@ void BRepAlgo_Loop::Perform()
|
||||
}
|
||||
}
|
||||
|
||||
// ajout des edges const
|
||||
// Les edges de couture peuvent etre doubles ou non dans myConstEdges
|
||||
// => appel une seule fois StoreInMVE qui se charge de les doubler
|
||||
// add const edges
|
||||
// Sewn edges can be doubled or not in myConstEdges
|
||||
// => call only once StoreInMVE which should double them
|
||||
TopTools_MapOfShape DejaVu;
|
||||
for (itl.Initialize(myConstEdges); itl.More(); itl.Next()) {
|
||||
TopoDS_Edge& E = TopoDS::Edge(itl.Value());
|
||||
@@ -568,7 +568,7 @@ void BRepAlgo_Loop::Perform()
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------
|
||||
// Construction des wires et des nouvelles faces.
|
||||
// Construction of wires and new faces.
|
||||
//----------------------------------------------
|
||||
TopoDS_Vertex VF,VL,CV;
|
||||
TopoDS_Edge CE,NE,EF;
|
||||
@@ -581,19 +581,19 @@ void BRepAlgo_Loop::Perform()
|
||||
while (!MVE.IsEmpty()) {
|
||||
B.MakeWire(NW);
|
||||
//--------------------------------
|
||||
// Suppression des edges pendants.
|
||||
// Removal of hanging edges.
|
||||
//--------------------------------
|
||||
RemovePendingEdges(MVE);
|
||||
|
||||
if (MVE.IsEmpty()) break;
|
||||
//--------------------------------
|
||||
// Edge de depart.
|
||||
// Start edge.
|
||||
//--------------------------------
|
||||
Mapit.Initialize(MVE);
|
||||
EF = CE = TopoDS::Edge(Mapit.Value().First());
|
||||
TopExp::Vertices(CE,V1,V2);
|
||||
//--------------------------------
|
||||
// VF vertex debut du nouveau wire
|
||||
// VF vertex start of new wire
|
||||
//--------------------------------
|
||||
if (CE.Orientation() == TopAbs_FORWARD) { CV = VF = V1;}
|
||||
else { CV = VF = V2;}
|
||||
@@ -608,7 +608,7 @@ void BRepAlgo_Loop::Perform()
|
||||
|
||||
while (!End) {
|
||||
//-------------------------------
|
||||
// Construction d un wire.
|
||||
// Construction of a wire.
|
||||
//-------------------------------
|
||||
TopExp::Vertices(CE,V1,V2);
|
||||
if (!CV.IsSame(V1)) CV = V1; else CV = V2;
|
||||
@@ -628,7 +628,7 @@ void BRepAlgo_Loop::Perform()
|
||||
}
|
||||
}
|
||||
//--------------------------------------------------
|
||||
// Ajout du nouveau wire dans l ensemble des wires
|
||||
// Add new wire to the set of wires
|
||||
//------------------------------------------------
|
||||
Standard_Real Tol = 0.001; //5.e-05; //5.e-07;
|
||||
TopExp_Explorer explo( NW, TopAbs_VERTEX );
|
||||
@@ -690,15 +690,15 @@ void BRepAlgo_Loop::CutEdge (const TopoDS_Edge& E,
|
||||
SV.Append(it.Value());
|
||||
}
|
||||
//--------------------------------
|
||||
// Tri des vertex sur l edge.
|
||||
// Parse vertices on the edge.
|
||||
//--------------------------------
|
||||
Bubble (WE,SV);
|
||||
|
||||
Standard_Integer NbVer = SV.Length();
|
||||
//----------------------------------------------------------------
|
||||
// Construction des nouvelles edges.
|
||||
// Remarque : les vertex extremites de l edges ne sont pas
|
||||
// forcement dans la liste des vertex
|
||||
// Construction of new edges.
|
||||
// Note : vertices at the extremities of edges are not
|
||||
// onligatorily in the list of vertices
|
||||
//----------------------------------------------------------------
|
||||
if (SV.IsEmpty()) {
|
||||
NE.Append(E);
|
||||
@@ -721,9 +721,9 @@ void BRepAlgo_Loop::CutEdge (const TopoDS_Edge& E,
|
||||
}
|
||||
}
|
||||
//----------------------------------------------------
|
||||
// Traitement des edges fermes
|
||||
// Si un vertex d intersection est sur le vertex
|
||||
// commun il doit apparaitre eb debut et en fin de SV.
|
||||
// Processing of closed edges
|
||||
// If a vertex of intersection is on the common vertex
|
||||
// it should appear at the beginning and end of SV.
|
||||
//----------------------------------------------------
|
||||
TopoDS_Vertex VCEI;
|
||||
if (!VF.IsNull() && VF.IsSame(VL)) {
|
||||
@@ -741,7 +741,7 @@ void BRepAlgo_Loop::CutEdge (const TopoDS_Edge& E,
|
||||
}
|
||||
else {
|
||||
//-----------------------------------------
|
||||
// Ajout eventuel des extremites de l edge.
|
||||
// Eventually all extremities of the edge.
|
||||
//-----------------------------------------
|
||||
if (!VF.IsNull() && !VF.IsSame(SV.First())) SV.Prepend(VF);
|
||||
if (!VL.IsNull() && !VL.IsSame(SV.Last ())) SV.Append (VL);
|
||||
@@ -762,7 +762,7 @@ void BRepAlgo_Loop::CutEdge (const TopoDS_Edge& E,
|
||||
V2 = TopoDS::Vertex(SV.First());
|
||||
SV.Remove(1);
|
||||
//-------------------------------------------
|
||||
// Copie de l edge et restriction par V1 V2.
|
||||
// Copy the edge and restriction by V1 V2.
|
||||
//-------------------------------------------
|
||||
TopoDS_Shape NewEdge = WE.EmptyCopied();
|
||||
TopoDS_Shape aLocalEdge = V1.Oriented(TopAbs_FORWARD);
|
||||
|
@@ -375,17 +375,17 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
|
||||
prj = MKed.Edge();
|
||||
}
|
||||
else {
|
||||
// On teste si la solution n'est pas degeneree pour mettre le
|
||||
// flag a l'edge, on prend quelques points, on regarde si le nuage de
|
||||
// points a un diametre inferieur a la tolerance 3D
|
||||
// It is tested if the solution is not degenerated to set the
|
||||
// flag on edge, one takes several points, checks if the cloud of
|
||||
// points has less diameter than the tolerance 3D
|
||||
Degenerated = Standard_True;
|
||||
Standard_Real Dist;
|
||||
Handle(Geom_BSplineCurve) BS3d = Handle(Geom_BSplineCurve)::DownCast( appr.Curve3d());
|
||||
gp_Pnt P1(0.,0.,0.),PP; // skl : I change "P" to "PP"
|
||||
Standard_Integer NbPoint,ii ; // skl : I change "i" to "ii"
|
||||
Standard_Real Par,DPar;
|
||||
// on commence avec 3 points pour rejeter les aretes non degenerees
|
||||
// tres rapidement
|
||||
// start from 3 points to reject non degenerated edges
|
||||
// very fast
|
||||
NbPoint =3;
|
||||
DPar = (BS3d->LastParameter()-BS3d->FirstParameter())/(NbPoint-1);
|
||||
for (ii=0;ii<NbPoint;ii++)
|
||||
@@ -404,8 +404,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
|
||||
break;
|
||||
}
|
||||
}
|
||||
// si le test passe on fait un test plus precis
|
||||
// avec 10 points
|
||||
// if the test passes a more exact test with 10 points
|
||||
if (Degenerated) {
|
||||
P1.SetCoord(0.,0.,0.);
|
||||
NbPoint =10;
|
||||
@@ -460,8 +459,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
|
||||
|
||||
if(myFaceBounds) {
|
||||
// Trimming edges by face bounds
|
||||
// si la solution est degeneree, on evite d'utiliser le BoolTool
|
||||
// qui n'aime pas ca.
|
||||
// if the solution is degenerated, use of BoolTool is avoided
|
||||
#ifdef DEBUG
|
||||
InitChron(chr_booltool);
|
||||
#endif
|
||||
@@ -509,7 +507,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
|
||||
}
|
||||
else {
|
||||
#ifdef DEB
|
||||
cout << " BooleanOperations : pas de solution " << endl;
|
||||
cout << " BooleanOperations : no solution " << endl;
|
||||
#endif
|
||||
|
||||
BRepTopAdaptor_FClass2d classifier(TopoDS::Face(Faces->Value(j)),
|
||||
@@ -544,9 +542,9 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
|
||||
}
|
||||
myDescendants.Bind(Edges->Value(i), DescenList);
|
||||
}
|
||||
// JPI : la creation eventuelle d'un wire est reportee dans une methode specifique
|
||||
// BuilWire qui pourra etre appelee par l'utilisateur. Sinon, on perdait les
|
||||
// relations des map myAncestorMap, myCorresp.
|
||||
// JPI : eventual wire creation is reported in a specific method
|
||||
// BuilWire that can be called by the user. Otherwise, the
|
||||
// relations of map myAncestorMap, myCorresp will be lost.
|
||||
|
||||
if(YaVertexRes) BB.Add(myRes, VertexRes);
|
||||
|
||||
@@ -675,8 +673,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
|
||||
if (MW.IsDone())
|
||||
{
|
||||
const TopoDS_Shape& Wire = MW.Shape();
|
||||
// Si le wire resultat contient le meme d'arete qu'au depart OK
|
||||
// sinon le resultat est vraisemblablement constitue de plusieurs wires.
|
||||
// If the resulting wire contains the same edge as at the beginning OK
|
||||
// otherwise the result really consists of several wires.
|
||||
TopExp_Explorer exp2(Wire,TopAbs_EDGE);
|
||||
Standard_Integer NbEdges = 0;
|
||||
for (;exp2.More(); exp2.Next()) NbEdges++;
|
||||
|
@@ -35,8 +35,8 @@ TopoDS_Shape BRepAlgo_Tool::Deboucle3D(const TopoDS_Shape& S,
|
||||
break;
|
||||
case TopAbs_SHELL:
|
||||
{
|
||||
// si le shell contient des bords libres qui n'appartiennent pas aux
|
||||
// bord libres des bouchons ( Boundary) on l'enleve.
|
||||
// if the shell contains free borders that do not belong to the
|
||||
// free borders of caps ( Boundary) it is removed.
|
||||
TopTools_IndexedDataMapOfShapeListOfShape Map;
|
||||
TopExp::MapShapesAndAncestors(S,TopAbs_EDGE,TopAbs_FACE,Map);
|
||||
|
||||
@@ -55,7 +55,7 @@ TopoDS_Shape BRepAlgo_Tool::Deboucle3D(const TopoDS_Shape& S,
|
||||
case TopAbs_COMPOUND:
|
||||
case TopAbs_SOLID:
|
||||
{
|
||||
// on itere sur les sous-shape et on ajoute les non vides.
|
||||
// iterate on sub-shapes and add non-empty.
|
||||
TopoDS_Iterator it(S);
|
||||
TopoDS_Shape SubShape;
|
||||
Standard_Boolean NbSub = 0;
|
||||
|
Reference in New Issue
Block a user