Hi Sudha,

There is no black box way of doing this in Mayavi. I can suggest two ways
to approach the problem. 

The first would be to create 2 fields of data, one define the scalar that
you are interested in, and the other one define iso surfaces to cut
along. Then you can follow the Atomic Orbital example:
http://github.enthought.com/mayavi/mayavi/auto/example_atomic_orbital.html
This option is easy to implement, but will consume twice the amount of
memory that should be necessary.

The other option is to define a first scalar field, and define the
cutting surface using a totally different approach (for instance defining
directly a polydata, using a cylinder source, or using mlab.mesh). You
can then use a vtk 'ProbeData' filter to interpolate the first data
source on this surface. This will porbably be more efficient, but
requires more knowledge of the Mayavi and VTK objects.

Hope this helps,

Gaƫl

On Wed, Apr 13, 2011 at 03:17:36AM +0600, suddha sourav wrote:
>    I'm trying to help my students visualize how evaluating the z-transform of
>    a discrete-time signal on the unit circle gives us the Fourier transform
>    of the signal.
>    For this purpose, I need to cut a surface with a "Circular" cut plane.
>    I have read some posts and searched for related info, and the closest I
>    have come to doing this is the DataSet Clipper. However, descriptions seem
>    scarce and the tool looks quite convoluted for regular use. My question
>    is, how can I use Dataset clipper for cutting a circular projection from a
>    surface? (Think of getting the intersection of a surface and an upright
>    cylinder).
>    Second, is there a probability that we can have a circular cut plane with
>    adjustable radius? If not, where do I need to look to implement one?
>    Thank you all.
>    Suddha Sourav


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to