python - Mayavi Mlab : Drawing octahedrons -
I can not find any way to attract the axes, is there anybody who can paint me at least the triangular (transclucent) surfaces Can I tell in a class?
is an example of using: tvtk.tools.visual only has some basic shapes.
forms of import In the form of np import elusive ML verve as MLA = [(1, -1,0), (1,1,0), (-1,1,0), (-1, -1,0), (0 , 0,1), (0,0, -1)] x, y, z = zip (* werch) # There is a 3-tuple index of each triangle index. Index of `whites' are Radius = [(i, ( I + 1)% 4, j) For range (4) in J (4,5)] colorval = z ML.triangular_mesh (x, y, z, triangle, scalars = colorval, opacity = 0.75) ml .show ()
Comments
Post a Comment