Hi,
What happens if the transparent is not set to True? This renders OK for me on
my computer although transparency in general with VTK may not be the best
behaved. It is also possible that your graphics hardware has some issues but I
cannot be sure of that either.
On the UI, try adjusting the degree of opacity and see if that helps at all.
cheers,
Prabhu
On 7/17/18 3:10 PM, Letícia H. Valentini wrote:
> Hello Prabhu,
>
> I'm using Mayavi and have run into an issue, and wonder if you could
> help me. It seems that the hidden parts of the model are not being
> detected correctly. For instance, when I run this example from the
> website:
>
> import numpy
> from mayavi.mlab import *
>
> def test_contour3d():
> x, y, z = numpy.ogrid[-5:5:64j, -5:5:64j, -5:5:64j]
>
> scalars = x * x * 0.5 + y * y + z * z * 2.0
>
> obj = contour3d(scalars, contours=4, transparent=True)
> return obj
>
> I get snapshot1.png, not the image example of contour3d in the
> gallery: http://docs.enthought.com/mayavi/mayavi/auto/examples.html
>
> I'm using Python 3.6 and VTK 8.1.
>
> Any ideas of what it might be?
>
> Best regards,
>
> Letícia Valentini
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users