Standard_Real dsmin = ds*0.3;
Standard_Real smax = AC(High);
- for(i=2,s=ds; (s<smax) ; i++,s+=ds) {
+ for(i=2,s=ds; (s < smax && Indice <= High-1); i++,s+=ds) {
//----------------------------------------------------------
//-- Recherche des indices des points --
//-- Point : 2 i NbPnts-1 --
if(!HasBeenInserted) ResultPntOn2SLine->Add(myLine->Point(Indice));
HasBeenInserted = Standard_False;
Indice++;
+ if (Indice == High)
+ break;
}
+
+ if (Indice == High)
+ break;
+
if(!HasBeenInserted && AC(Indice) <= s) {
ResultPntOn2SLine->Add(myLine->Point(Indice));
HasBeenInserted = Standard_True;
//-- cout<<" Insertion du point :"<<Indice<<endl;
HasBeenInserted = Standard_False;
Indice++;
+ if (Indice == High)
+ break;
}
+
+ if (Indice == High)
+ break;
+
if(!HasBeenInserted && AC(Indice) <= s) {
ResultPntOn2SLine->Add(myLine->Point(Indice));
HasBeenInserted = Standard_True;
//
anAdr=myProjPSMap.FindFromKey1(aF);
if (!anAdr) {
- Standard_Real Umin, Usup, Vmin, Vsup, anEpsT=1.e-12 ;
+ Standard_Real Umin, Usup, Vmin, Vsup;
+ Standard_Real anEpsT = Precision::PConfusion(); //1.e-12;
BRepAdaptor_Surface aBAS;
//
const Handle(Geom_Surface)& aS=BRep_Tool::Surface(aF);