else {
bIsDone=GEOMAlgo_Tools::ProjectPointOnShape(aP1, aE2, aP2, aCtx);
if (!bIsDone) {
- return 1;
+ //return 1;
+ continue; // jfa BUG 20361
}
aD2=aP1.SquareDistance(aP2);
if(aD2<aTol2) {
{
case TopAbs_EDGE:
{
- cout << "$$$ case TopAbs_EDGE" << endl;
const TopoDS_Edge& aE2 = TopoDS::Edge(aS);
//
if (BRep_Tool::Degenerated(aE2)) { // jfa
- cout << "$$$ Degenerated" << endl;
return Standard_True;
}
else {
Standard_Real f, l;
Handle(Geom_Curve) aC3D = BRep_Tool::Curve (aE2, f, l);
if (aC3D.IsNull()) {
- cout << "$$$ aC3D.IsNull()" << endl;
return Standard_True;
}
bIsDone = aCtx.ProjectPointOnEdge(aP1, aE2, aT2);
}
if (!bIsDone) {
- cout << "$$$ !bIsDone" << endl;
return bIsDone;
}
//