if (((aType1 != GeomAbs_Line) && (aType1 != GeomAbs_Circle)) ||
((aType2 != GeomAbs_Line) && (aType2 != GeomAbs_Circle)))
{
- //mySqDist.Append(theSqDist);
+ mySqDist.Append(theSqDist);
myDone = Standard_True;
myIsParallel = Standard_True;
return;
!isReversed ? theUt21 : theUt11,
!isReversed ? theUt22 : theUt12);
- if (!ExtPLin.IsDone())
+ if (ExtPLin.IsDone())
+ {
+ mySqDist.Append(theSqDist);
+ }
+ else
{
myIsParallel = Standard_False;
}
(U2 >= Ut21 - RealEpsilon()) &&
(U2 <= Ut22 + RealEpsilon())) {
Val = AlgExt.SquareDistance(i);
+ if (mypoints.IsEmpty())
+ mySqDist.Clear();
mySqDist.Append(Val);
if (!theIsInverse)
{
(U2 >= Ut21 - RealEpsilon()) &&
(U2 <= Ut22 + RealEpsilon()))
{
+ if(mypoints.IsEmpty())
+ mySqDist.Clear();
Val = AlgExt.SquareDistance(i);
mySqDist.Append(Val);
P1.SetValues(U, P1.Value());