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