const Handle(Adaptor3d_HSurface) &theS1,
const Handle(Adaptor3d_HSurface) &theS2,
const Handle(Adaptor3d_TopolTool) &theDom1,
- const Handle(Adaptor3d_TopolTool) &theDom2)
+ const Handle(Adaptor3d_TopolTool) &theDom2,
+ const Standard_Boolean theRestrictLine)
{
Standard_Integer i, k, v, nb, nbvtx;
Handle(IntPatch_WLine) aResult;
return aLocalWLine;
}
- // II: Delete out of borders points.
- Handle(IntPatch_WLine) aLocalWLineOuter =
- DeleteOuterPoints(aLocalWLine, theS1, theS2, theDom1, theDom2);
+ if (theRestrictLine)
+ {
+ // II: Delete out of borders points.
+ aLocalWLine = DeleteOuterPoints(aLocalWLine, theS1, theS2, theDom1, theDom2);
+ }
// III: Delete points by tube criteria.
Handle(IntPatch_WLine) aLocalWLineTube =
- DeleteByTube(aLocalWLineOuter, theS1, theS2);
+ DeleteByTube(aLocalWLine, theS1, theS2);
if(aLocalWLineTube->NbPnts() > 1)
{