Skip to content

Commit

Permalink
Bug-fix speeding up coplanar case (#8649)
Browse files Browse the repository at this point in the history
The new node propagation status only needs to be done the first time the
node is seen, the classification will always be the same and propagation
is already done.
  • Loading branch information
sloriot authored Dec 10, 2024
2 parents e6c6f22 + cac285d commit 7c3e2f5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ class Intersection_of_triangle_meshes
{
if(is_new_node)
visitor.new_node_added(node_id,ON_FACE,v_1,f_2,tm1,tm2,true,false);
else
return;

Edge_to_faces& tm1_edge_to_tm2_faces = &tm1 <= &tm2
? stm_edge_to_ltm_faces
Expand Down Expand Up @@ -666,6 +668,8 @@ class Intersection_of_triangle_meshes
{
if(is_new_node)
visitor.new_node_added(node_id,ON_VERTEX,h_2,v_1,tm2,tm1,false,false);
else
return;

Edge_to_faces& tm1_edge_to_tm2_faces = &tm1 <= &tm2
? stm_edge_to_ltm_faces
Expand Down Expand Up @@ -713,6 +717,8 @@ class Intersection_of_triangle_meshes
{
if(is_new_node)
visitor.new_node_added(node_id,ON_VERTEX,v_2,v_1,tm2,tm1,true,false);
else
return;

Edge_to_faces& tm1_edge_to_tm2_faces = &tm1 <= &tm2
? stm_edge_to_ltm_faces
Expand Down

0 comments on commit 7c3e2f5

Please sign in to comment.