Skip to content

Commit

Permalink
BUG: ModelToModelDistance: Skip cleaning if corresponding_point_to_po…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr and lassoan committed Dec 16, 2022
1 parent c8a61d3 commit ff114eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ModelToModelDistance/ModelToModelDistance.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,12 @@ int main( int argc , char* argv[] )
{
return 1 ;
}
if( TriangulateAndClean( inPolyData1 ) )
bool clean = distanceType != "corresponding_point_to_point";
if( clean && TriangulateAndClean( inPolyData1 ) )
{
return EXIT_FAILURE ;
}
if( TriangulateAndClean( inPolyData2 ) )
if( clean && TriangulateAndClean( inPolyData2 ) )
{
return EXIT_FAILURE ;
}
Expand Down

0 comments on commit ff114eb

Please sign in to comment.