<div dir="ltr"><div><div><a href="http://vtk.org/Bug/view.php?id=15003" target="_blank">http://vtk.org/Bug/view.php?id=15003</a><br><br>Attached is a test code (Bug_ImplicitPolyDataDistance_01.tcl) to reproduce a bug with a combination of vtkImplicitPolyDataDistance + vtkSampleFunction.<br>
<br>
In this test a triangle mesh of only one connected component is set as
input to vtkImplicitPolyDataDistance then an implicit function is
sampled with vtkSampleFunction. The result is contoured with
vtkImageMarchingCubes and the vtkPolyData resulting from this last step
shows more than one connected component. The original component is reconstructed well but other wrong components appear.<br>
<br>
Attached is also the snapshot of the result.<br><br></div><div>The input mesh fix_mesh.vtk used in the test can be downloaded from <a href="https://www.dropbox.com/s/x3iwjvyl56sxvs3/fix_mesh.vtk?dl=0">https://www.dropbox.com/s/x3iwjvyl56sxvs3/fix_mesh.vtk?dl=0</a></div><div>
<br>
The test has been executed on release 6.1.<br><br></div>Any suggestion about how to fix that? Could it be due to wrong in the test code?<br><br></div>best regards,<br><br>Jorge<br></div>