mirror of https://github.com/CGAL/cgal
Reserve hashtable size in SNC_simplify
This commit is contained in:
parent
263c168d9d
commit
1009acb9cd
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue