void BRepCheck_Face::Blind()
{
if (!myBlind) {
- // rien de plus que dans le minimum
+ // nothing more than in the minimum
myBlind = Standard_True;
}
}
TopExp_Explorer exp1,exp2;
- // on mape les wires
+ // the wires are mapped
exp1.Init(myShape.Oriented(TopAbs_FORWARD),TopAbs_WIRE);
TopTools_ListOfShape theListOfShape;
while (exp1.More()) {
if (!myMapImb.IsBound(exp1.Current())) {
myMapImb.Bind(exp1.Current(), theListOfShape);
}
- else { // on a 2 fois le meme wire...
+ else { // the same wire is met twice...
myIntres = BRepCheck_RedundantWire;
if (Update) {
BRepCheck::Add(myMap(myShape),myIntres);
Standard_Boolean WireBienOriente = Standard_False;
if(FClass2d.PerformInfinitePoint() != TopAbs_OUT) {
WireBienOriente=Standard_True;
- //le wire donne definit un trou
+ // the given wire defines a hole
myMapImb.UnBind(wir1);
myMapImb.Bind(wir1.Reversed(), theListOfShape);
}
}
}
}
- // On doit avoir 1 wire qui contient tous les autres, et les autres
- // ne contenant rien (cas solide fini) ou
- // que des wires ne contenant rien : dans ce cas les wires doivent etre
- // des trous dans une face infinie.
+ // It is required to have 1 wire that contains all others, and the others should not
+ // contain anything (case solid ended) or
+ // the wires do not contain anything : in this case the wires should be
+ // holes in an infinite face.
TopoDS_Wire Wext;
for (TopTools_DataMapIteratorOfDataMapOfShapeListOfShape itm(myMapImb);
itm.More();
return myImbres;
}
}
- // sortie sans erreurs
+ // quit without errors
if (Update) {
BRepCheck::Add(myMap(myShape),myImbres);
}
const TopoDS_Wire& wir = TopoDS::Wire(exp.Current());
if (!Wext.IsNull() && wir.IsSame(Wext)) {
if (wir.Orientation() != Wext.Orientation()) {
- //le wire exterieur definit un trou
+ //the exterior wire defines a hole
if( CheckThin(wir,myShape.Oriented(TopAbs_FORWARD)) )
return myOrires;
myOrires = BRepCheck_BadOrientationOfSubshape;
break;
}
}
- // Pas de controle sur More()
+ // No control on More()
if (itm.Key().Orientation() == wir.Orientation()) {
- //le wire donne ne definit pas un trou
+ // the given wire does not define a hole
myOrires = BRepCheck_BadOrientationOfSubshape;
if (Update) {
BRepCheck::Add(myMap(myShape),myOrires);
}
}
}
- // sortie sans erreur
+ // quit withour error
if (Update) {
BRepCheck::Add(myMap(myShape),myOrires);
}