handle case of a non closed intersection polyline

This commit is contained in:
Sébastien Loriot 2018-11-06 10:27:30 +01:00
parent 6b8a36ba0c
commit 8a27676102
1 changed files with 10 additions and 4 deletions

View File

@ -902,8 +902,11 @@ public:
if ( is_dangling_edge(ids.first, ids.second, h1, tm1, is_node_of_degree_one) ||
is_dangling_edge(ids.first, ids.second, h2, tm2, is_node_of_degree_one) )
{
impossible_operation.set();
return;
if (!used_to_clip_a_surface)
{
impossible_operation.set();
return;
}
}
is_patch_inside_tm2.set(patch_id_p2);
}
@ -920,8 +923,11 @@ public:
if ( is_dangling_edge(ids.first, ids.second, h1, tm1, is_node_of_degree_one) ||
is_dangling_edge(ids.first, ids.second, h2, tm2, is_node_of_degree_one) )
{
impossible_operation.set();
return;
if (!used_to_clip_a_surface)
{
impossible_operation.set();
return;
}
}
is_patch_inside_tm1.set(patch_id_q2);
is_patch_inside_tm2.set(patch_id_p1);