Reserve hashtable size in SNC_simplify

This commit is contained in:
Giles Bathgate 2022-03-10 18:24:07 +00:00
parent 263c168d9d
commit 1009acb9cd
2 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,7 @@ class SNC_decorator : public SNC_const_decorator<Map> {
SFace_map linked;
Shell_volume_setter(const SNCD_& Di)
: D(Di), linked(false) {}
void reserve(Size_type n) { linked.reserve(n); }
void visit(SFace_handle h) {
CGAL_NEF_TRACEN(h->center_vertex()->point());
D.set_volume(h, c);

View File

@ -651,6 +651,7 @@ class SNC_simplify_base : public SNC_decorator<SNC_structure> {
SNC_decorator D(*this->sncp());
Volume_setter setter(D);
setter.reserve(this->sncp()->number_of_sfaces());
SFace_iterator sf;
Volume_handle c;