Backface culling using X3D backend in Jupyter
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 316
- Avg merge
- 7h 44m
- Merged PRs (30d)
- 5
Description
In Jupyter I use
from __future__ import division, print_function
from mayavi import mlab
import numpy as np
mlab.init_notebook()
fig = mlab.figure(bgcolor=(1.0, 1.0, 1.0))
phi, theta = np.mgrid[0:np.pi:51j, 0:2*np.pi:51j]
x = np.sin(phi) * np.cos(theta)
y = np.sin(phi) * np.sin(theta)
z = np.cos(phi)
sphere = mlab.mesh(x, y, z, colormap="summer", opacity=0.6)
sphere.actor.property.backface_culling = True
fig
to obtain

In a regular Python script I use
from __future__ import division, print_function
from mayavi import mlab
import numpy as np
fig = mlab.figure(bgcolor=(1.0, 1.0, 1.0))
phi, theta = np.mgrid[0:np.pi:51j, 0:2*np.pi:51j]
x = np.sin(phi) * np.cos(theta)
y = np.sin(phi) * np.sin(theta)
z = np.cos(phi)
sphere = mlab.mesh(x, y, z, colormap="summer", opacity=0.6)
sphere.actor.property.backface_culling = True
mlab.show()
to obtain

Is there a way to make the backface-culling to work in the Jupyter Notebook (X3D)??
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.