Merge pull request #3964 from sloriot/PMP-coref_invalid_index

Fix invalid index
This commit is contained in:
Laurent Rineau 2019-06-17 13:48:10 +02:00
commit 73e37f7bd2
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ class Intersection_of_triangle_meshes
if ( cpp11::get<3>(inter_res) ) // is edge target in triangle plane
nodes.add_new_node(get(vpm1, target(h_1,tm1)));
else{
if (cpp11::get<3>(inter_res)) // is edge source in triangle plane
if (cpp11::get<2>(inter_res)) // is edge source in triangle plane
nodes.add_new_node(get(vpm1, source(h_1,tm1)));
else
nodes.add_new_node(h_1,f_2,tm1,tm2,vpm1,vpm2);