Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Tesselation/tesselation.cpp

    r8592c9 r052c10  
    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
    131117  FindStartingTriangle(SPHERERADIUS, LinkedList);
    132118
     
    161147    }
    162148  }
     149
     150  delete LinkedList;
    163151}
    164152
     
    10121000      LOG(3, "DEBUG:   " << *(*Runner) << " with distance " << (*Runner)->distance(CandidateLine.OtherOptCenter) << ".");
    10131001  }
    1014   delete (ListofPoints);
     1002  delete ListofPoints;
    10151003
    10161004  return flag;
Note: See TracChangeset for help on using the changeset viewer.