[vtkusers] MATLAB's surf equivalent in VTK

Isaiah Norton isaiah.norton at gmail.com
Tue Jun 21 23:14:01 EDT 2011


MayaVi provied a nice matlab-like 3d plotting kit for Python called "mlab".
It uses Python-wrapped VTK and works directly with NumPy arrays.

http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#surf
http://www.scipy.org/Cookbook/MayaVi/Surf

Some neat related examples here:
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/examples.html

-Isaiah


On Tue, Jun 21, 2011 at 7:32 AM, Jothy <jothybasu at gmail.com> wrote:

> Thanks David, will have alook at this.
>
> Jothy
>
>
> On Tue, Jun 21, 2011 at 12:30 PM, David Doria <daviddoria at gmail.com>wrote:
>
>> On Tue, Jun 21, 2011 at 7:23 AM, Jothy <jothybasu at gmail.com> wrote:
>> > Hi all,
>> >
>> > I would like to create a surface plot of 3 variable (x,y,z). There are
>> > functions to do this in MATLAB, but I wonder is there any classes in VTK
>> to
>> > do that?
>> >
>> > Thanks
>> >
>> > Jothy
>>
>> If you have f(x,y) = z, (which I think is what surf handles) you can
>> use this technique:
>> http://vtk.org/Wiki/VTK/Examples/Cxx/Meshes/ElevationFilter
>>
>> David
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110621/69b03918/attachment.htm>


More information about the vtkusers mailing list