Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Tesselation/tesselation.cpp

    r052c10 r8592c9  
    115115        LinkedCell_deprecated *LinkedList = new LinkedCell_deprecated(cloud, 2.*SPHERERADIUS);
    116116
     117        // check for at least three points
     118        {
     119          bool ThreePointsFound = true;
     120          cloud.GoToFirst();
     121    for (size_t i=0;i<3;++i, cloud.GoToNext())
     122      ThreePointsFound &= (!cloud.IsEnd());
     123    cloud.GoToFirst();
     124    if (ThreePointsFound == false) {
     125      ELOG(2, "Less than 3 points in cloud, not enough for tesselation.");
     126      return;
     127    }
     128        }
     129
     130        // find a starting triangle
    117131  FindStartingTriangle(SPHERERADIUS, LinkedList);
    118132
     
    147161    }
    148162  }
    149 
    150   delete LinkedList;
    151163}
    152164
     
    10001012      LOG(3, "DEBUG:   " << *(*Runner) << " with distance " << (*Runner)->distance(CandidateLine.OtherOptCenter) << ".");
    10011013  }
    1002   delete ListofPoints;
     1014  delete (ListofPoints);
    10031015
    10041016  return flag;
Note: See TracChangeset for help on using the changeset viewer.