std::list<GeomPointPtr>::iterator aPIt = thePoints.begin();
GeomPointPtr aPrevPnt = *aPIt;
for (; aPIt != thePoints.end(); ++aPIt) {
std::list<GeomPointPtr>::iterator aPIt = thePoints.begin();
GeomPointPtr aPrevPnt = *aPIt;
for (; aPIt != thePoints.end(); ++aPIt) {