[vtkusers] Visualizing 2D data in 3D

Banks, Robert banks at wai.com
Thu Feb 4 09:54:42 EST 2010


Sorry, I wasn't quite right when I said that was what I was after. The data set I have is a 2d array, not 2d line
Info.

So basically a 2d matrix of data points , x columns by y rows.

Sorry for the confusion

R

On Feb 4, 2010, at 4:56 AM, "David Doria" <daviddoria+vtk at gmail.com<mailto:daviddoria+vtk at gmail.com>> wrote:

On Wed, Feb 3, 2010 at 8:12 PM, Banks, Robert <<mailto:banks at wai.com>banks at wai.com<mailto: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
_______________________________________________
Powered by <http://www.kitware.com> www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at <http://www.kitware.com/opensource/opensource.html> 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> http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100204/70e3914a/attachment.htm>


More information about the vtkusers mailing list