mirror of https://github.com/CGAL/cgal
Use new_index in several other places
This commit is contained in:
parent
a143b60040
commit
d23fca2a47
|
|
@ -2129,16 +2129,14 @@ class SNC_constructor<SNC_indexed_items, SNC_structure_>
|
||||||
|
|
||||||
Halfedge_iterator e;
|
Halfedge_iterator e;
|
||||||
CGAL_forall_edges(e, *this->sncp()) {
|
CGAL_forall_edges(e, *this->sncp()) {
|
||||||
e->set_index();
|
e->twin()->set_index(e->new_index());
|
||||||
e->twin()->set_index(e->get_index());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Halffacet_iterator f;
|
Halffacet_iterator f;
|
||||||
CGAL_forall_halffacets(f, *this->sncp()) {
|
CGAL_forall_halffacets(f, *this->sncp()) {
|
||||||
Halffacet_cycle_iterator fci(f->facet_cycles_begin());
|
Halffacet_cycle_iterator fci(f->facet_cycles_begin());
|
||||||
SHalfedge_handle se(fci);
|
SHalfedge_handle se(fci);
|
||||||
se->set_index();
|
int index(se->new_index());
|
||||||
int index(se->get_index());
|
|
||||||
for(; fci != f->facet_cycles_end(); ++fci) {
|
for(; fci != f->facet_cycles_end(); ++fci) {
|
||||||
if(fci.is_shalfedge()) {
|
if(fci.is_shalfedge()) {
|
||||||
SHalfedge_around_facet_circulator c1(fci), c2(c1);
|
SHalfedge_around_facet_circulator c1(fci), c2(c1);
|
||||||
|
|
|
||||||
|
|
@ -490,8 +490,7 @@ protected:
|
||||||
SFace_handle sf(v->new_sface());
|
SFace_handle sf(v->new_sface());
|
||||||
SM.link_as_isolated_vertex(sv,sf);
|
SM.link_as_isolated_vertex(sv,sf);
|
||||||
if(first) {
|
if(first) {
|
||||||
sv->set_index();
|
index = sv->new_index();
|
||||||
index = sv->get_index();
|
|
||||||
first = false;
|
first = false;
|
||||||
} else
|
} else
|
||||||
sv->set_index(index);
|
sv->set_index(index);
|
||||||
|
|
@ -512,8 +511,7 @@ protected:
|
||||||
SM.link_as_isolated_vertex(sv1,sf);
|
SM.link_as_isolated_vertex(sv1,sf);
|
||||||
SM.link_as_isolated_vertex(sv2,sf);
|
SM.link_as_isolated_vertex(sv2,sf);
|
||||||
sv1->set_index(index);
|
sv1->set_index(index);
|
||||||
sv2->set_index();
|
index = sv2->new_index();
|
||||||
index = sv2->get_index();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue