src/document.cpp

changeset 226
60d6b797a12e
parent 225
551c136b459e
child 227
011600b3cf73
equal deleted inserted replaced
225:551c136b459e 226:60d6b797a12e
326 const auto iscut = [&result](const std::size_t i){ 326 const auto iscut = [&result](const std::size_t i){
327 return result.cutTriangles.find(i) != result.cutTriangles.end(); 327 return result.cutTriangles.find(i) != result.cutTriangles.end();
328 }; 328 };
329 while (repeat) { 329 while (repeat) {
330 repeat = false; 330 repeat = false;
331 // TODO: make this a function that returns quadrilateral indices
332 // Go through triangle boundaries 331 // Go through triangle boundaries
333 for (const auto& it1 : boundaries) { 332 for (const auto& it1 : boundaries) {
334 const indexpair& pair1 = it1.first; 333 const indexpair& pair1 = it1.first;
335 const boundaryinfo& boundary1 = it1.second; 334 const boundaryinfo& boundary1 = it1.second;
336 // .. the ones we haven't already merged anyway 335 // .. the ones we haven't already merged anyway

mercurial