[vtkusers] Unable to change the color of a contoursurface made from sampling an implicit sphere function
Mike Taverne
Mike.Taverne at bristol.ac.uk
Fri Jul 25 12:59:59 EDT 2014
Hi,
I have some strange VTK rendering problems.
The attached code should create one blue sphere via:
vtkSphereSource -> vtkPolyDataMapper
And one green sphere via:
vtkSphere -> vtkSampleFunction -> vtkContourFilter -> vtkPolyDataMapper
But for some reason, the second sphere, created via a contour filter,
always renders completely in black on the outside and red on the inside.
How can I get the second sphere to be colored?
I originally noticed that problem while trying out the iceCream.py
example and have the same issue with C++ versions of the code.
Version info:
-Python 2.7.6
-vtk version 6.1.0
OS:
-Ubuntu 14.04.1 LTS
Also attaching glxinfo output.
Regards,
Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: color_bug3.png
Type: image/png
Size: 24632 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140725/16811968/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: color_bug.py
Type: text/x-python
Size: 2190 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140725/16811968/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glxinfo.log
Type: text/x-log
Size: 39290 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140725/16811968/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140725/16811968/attachment.sig>
More information about the vtkusers
mailing list