Fix #2456

When two clusters share a subsegment, the subsegment is split at its
middle, instead of using the length imposed by the clusters. If the
clusters were partially refined before that subsegment is split, one
must reset the clusters, because the minimal length may have changed.
This commit is contained in:
Laurent Rineau 2017-09-26 14:46:45 +02:00
parent bc562394b4
commit a2dd20af02
1 changed files with 10 additions and 0 deletions

View File

@ -325,6 +325,16 @@ update_cluster(Cluster& c, iterator it, Vertex_handle va,
c.vertices.erase(vb);
c.vertices[vm] = reduction;
if(false == reduction) {
for(typename Cluster::Vertices_map::iterator
it = c.vertices.begin(),
end = c.vertices.end();
it != end; ++it)
{
it->second = false;
}
}
if(vb==c.smallest_angle.first)
c.smallest_angle.first = vm;
if(vb==c.smallest_angle.second)