- Ifc: no need to generate contour skiplist twice.

pull/19/head
Alexander Gessler 2013-01-25 04:19:12 +01:00
parent bbd10cd748
commit 9647c87c7c
1 changed files with 24 additions and 22 deletions

View File

@ -1660,6 +1660,10 @@ void CloseWindows(ContourVector& contours,
}
}
const Contour::const_iterator cbegin = (*it).contour.begin(), cend = (*it).contour.end();
if (has_other_side) {
ContourRefVector adjacent_contours;
// prepare a skiplist for this contour. The skiplist is used to
@ -1682,9 +1686,7 @@ void CloseWindows(ContourVector& contours,
ai_assert((*it).skiplist.size() == (*it).contour.size());
SkipList::const_iterator skipbegin = (*it).skiplist.begin(), skipend = (*it).skiplist.end();
const Contour::const_iterator cbegin = (*it).contour.begin(), cend = (*it).contour.end();
if (has_other_side) {
curmesh.verts.reserve(curmesh.verts.size() + (*it).contour.size() * 4);
curmesh.vertcnt.reserve(curmesh.vertcnt.size() + (*it).contour.size());