[vtkusers] Visualizing 2D data in 3D

David Doria daviddoria+vtk at gmail.com
Thu Feb 4 07:54:43 EST 2010


On Wed, Feb 3, 2010 at 8:12 PM, Banks, Robert <banks at wai.com> wrote:

>  Exactly
>
>  Thanks
>

Someone please chime in if there is already a filter to do this in VTK.

What you could do is this:

1) Define your curve
2) make a copy of it rotated it N degrees around the axis of revolution. 360
should be divisible by N. The smaller N is, the smoother your surface will
be.
3) make a quad on every 2 points and their corresponding copied points.
4) run vtkCleanPolyDataFilter and vtkTriangleFilter

If no one lets your know about an easier method, this should work. Let us
know if you try and get stuck. Also, when you get it to work, please send
the code and I'll put it on the wiki.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100204/25153bcc/attachment.htm>


More information about the vtkusers mailing list