[vtkusers] Wrong/Strange result from vtkImplicitPolyDataDistance + vtkSampleFunction

Jorge Perez josp.jorge at gmail.com
Fri Sep 19 06:40:57 EDT 2014


http://vtk.org/Bug/view.php?id=15003

Attached is a test code (Bug_ImplicitPolyDataDistance_01.tcl) to reproduce
a bug with a combination of vtkImplicitPolyDataDistance + vtkSampleFunction.

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.

Attached is also the snapshot of the result.

The input mesh fix_mesh.vtk used in the test can be downloaded from
https://www.dropbox.com/s/x3iwjvyl56sxvs3/fix_mesh.vtk?dl=0

The test has been executed on release 6.1.

Any suggestion about how to fix that? Could it be due to wrong in the test
code?

best regards,

Jorge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140919/ddab61aa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bug_ImplicitPolyDataDistance_01.tcl
Type: application/x-tcl
Size: 1076 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140919/ddab61aa/attachment.tcl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_mesh.png
Type: image/png
Size: 61349 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140919/ddab61aa/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_mesh_contour.png
Type: image/png
Size: 57224 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140919/ddab61aa/attachment-0001.png>


More information about the vtkusers mailing list