Changes in src/Tesselation/tesselation.cpp [8592c9:052c10]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tesselation/tesselation.cpp
r8592c9 r052c10 115 115 LinkedCell_deprecated *LinkedList = new LinkedCell_deprecated(cloud, 2.*SPHERERADIUS); 116 116 117 // check for at least three points118 {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 triangle131 117 FindStartingTriangle(SPHERERADIUS, LinkedList); 132 118 … … 161 147 } 162 148 } 149 150 delete LinkedList; 163 151 } 164 152 … … 1012 1000 LOG(3, "DEBUG: " << *(*Runner) << " with distance " << (*Runner)->distance(CandidateLine.OtherOptCenter) << "."); 1013 1001 } 1014 delete (ListofPoints);1002 delete ListofPoints; 1015 1003 1016 1004 return flag;
Note:
See TracChangeset
for help on using the changeset viewer.