summaryrefslogtreecommitdiff
path: root/src/python/example/plot_alpha_complex.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/example/plot_alpha_complex.py')
-rwxr-xr-xsrc/python/example/plot_alpha_complex.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/example/plot_alpha_complex.py b/src/python/example/plot_alpha_complex.py
index 98931975..99c18a7c 100755
--- a/src/python/example/plot_alpha_complex.py
+++ b/src/python/example/plot_alpha_complex.py
@@ -31,4 +31,7 @@ ax = fig.gca(projection='3d')
ax.plot_trisurf(points[:,0], points[:,1], points[:,2], triangles=triangles)
plt.show()
-# Third possibility: mayavi.mlab.triangular_mesh
+# Third possibility: mayavi
+from mayavi import mlab
+mlab.triangular_mesh(points[:,0], points[:,1], points[:,2], triangles);
+mlab.show()