[vtkusers] possible bug implicit + sampleFunction + contourFilter

Justin Weber onlyjus at gmail.com
Tue Nov 29 14:02:18 EST 2016


I am creating an implicit surface with vtkSphere, sampling with
vtkSampleFunction, and finally contouring with vtkContourFilter. This all
works fine.

*The Problem*: If I go back and update the sample dimensions, I don't get
what I would expect. If I double the sample dimensions, the extents seem to
be cut in half. Am I not updating/clearing data correctly? See the sample
images below:

a) sampleDimensions(10, 10, 10)
b) sampleDimensions(20, 20, 20)
a)    b)
​
Attached is a complete example.

environment:
python 2.7
vtk 6.3.0 (installed via anaconda)
Ubuntu

Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161129/5d9184f2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20.png
Type: image/png
Size: 13023 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161129/5d9184f2/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10.png
Type: image/png
Size: 29010 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161129/5d9184f2/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit_sphere_sample_bug.py
Type: application/octet-stream
Size: 1978 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161129/5d9184f2/attachment.obj>


More information about the vtkusers mailing list