I answer to my question, best.
from numpy import pi, sin, cos, mgrid from mayavi import mlab dphi, dtheta = pi/250.0, pi/250.0 [phi,theta] = mgrid[0:pi+dphi*1.5:dphi,0:2*pi+dtheta*1.5:dtheta] m0 = 4; m1 = 3; m2 = 2; m3 = 3; m4 = 6; m5 = 2; m6 = 6; m7 = 4; r = sin(m0*phi)**m1 + cos(m2*phi)**m3 + sin(m4*theta)**m5 + cos(m6*theta)**m7 x = r*sin(phi)*cos(theta) y = r*cos(phi) z = r*sin(phi)*sin(theta) # Create object, do not view it. obj = mlab.mesh(x,y,z) obj.visible = False clip = mlab.pipeline.data_set_clipper(obj) clip.widget.widget_mode = 'ImplicitPlane' clip.widget.widget.enabled = True clip.widget.widget.normal = (1.,0.,0.) iso = mlab.pipeline.surface(clip) mlab.show() ------------------------------------------------------------------------------ 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