- Ifc: no need to generate contour skiplist twice.
parent
bbd10cd748
commit
9647c87c7c
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue