{
gp_Pnt proj;
Standard_Real param;
-
+
if ( prevSolution )
{
_dist = _projector.NextProject( prevSolution[0], _curve, P, _tol, proj, param );
else
{
_dist = _projector.Project( _curve, P, _tol, proj, param, false );
- proj = _curve.Value( param );
}
+ proj = _curve.Value( param );
newSolution[0] = param;
// IDs in XAO correspond to indices of allProjectors
std::set<int>::iterator id = groups[i]->begin(), end = groups[i]->end();
for ( ; id != end; ++id, ++nbFound )
- if ( *id < allProjectors.size() )
+ if ( *id < (int) allProjectors.size() )
groupProjectors.push_back ( & allProjectors[ *id ]);
}