fix: adding the curves from the original vertex when merging two intervals

This commit is contained in:
Ophir Setter 2009-05-04 13:53:32 +00:00
parent a1a4359667
commit c169af430c
1 changed files with 8 additions and 3 deletions

View File

@ -771,9 +771,14 @@ _merge_two_intervals (Edge_const_handle e1, bool is_leftmost1,
} }
else else
{ {
// Note that the new vertex is incident to all curves in e1 and in e2. // We add the curves from the original vertex and from the edge of the
new_v->add_curves (e1->curves_begin(), e1->curves_end()); // other diagram.
new_v->add_curves (e2->curves_begin(), e2->curves_end()); Vertex_const_handle v = (origin_of_v == SMALLER) ? e1->right() :
e2->right();
Edge_const_handle e = (origin_of_v == SMALLER) ? e2 : e1;
new_v->add_curves (v->curves_begin(), v->curves_end());
new_v->add_curves (e->curves_begin(), e->curves_end());
} }
return; return;