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?

tvtk.tools.visual only has some basic shapes.

is an example of using:

  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 ()   

image description here Enter

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -