//------------------------------------------------------------------------------
static Standard_Boolean TRI_SOLUTION (const BRepExtrema_SeqOfSolution& SeqSol, const gp_Pnt& Pt)
{
//------------------------------------------------------------------------------
static Standard_Boolean TRI_SOLUTION (const BRepExtrema_SeqOfSolution& SeqSol, const gp_Pnt& Pt)
{
- const Standard_Real dst = SeqSol.Value(i).Point().Distance(Pt);
- if (dst <= Precision::Confusion()) return Standard_False;
+ const Standard_Real dst = anIt->Point().Distance(Pt);
+ if (dst <= Precision::Confusion())
+ {
+ return Standard_False;
+ }
BRepExtrema_SeqOfSolution& seqSol1,
BRepExtrema_SeqOfSolution& seqSol2)
{
BRepExtrema_SeqOfSolution& seqSol1,
BRepExtrema_SeqOfSolution& seqSol2)
{
- const Standard_Integer nbSol = SeqSol1.Length();
- for (Standard_Integer i = 1; i <= nbSol; i++)
+ for (BRepExtrema_SeqOfSolution::iterator anIt1 = SeqSol1.begin(), anIt2 = SeqSol2.begin();
+ anIt1 != SeqSol1.end();
+ anIt1++, anIt2++)