<div dir="ltr">Hello,<br>you could create a vtkImageData from your scalar data and then use<br>vtkWarpScalar and vtkBandedContourFilter (for 3D Contours) or something similar.<br>You will not see a plane, only the elevated data.<br>
See the examples for vtkWarpScalar or BandedContourFilter.<br><br>Best regards,<br>Oliver<br><br><div class="gmail_quote">2008/8/4 pcalhoun <span dir="ltr"><<a href="mailto:psc28@cornell.edu">psc28@cornell.edu</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello all,<br>
<br>
I have been writing a C++ program that converts dat files that I have been<br>
working with into vtk format (vtu in particular.) These dat files contain a<br>
certain resolution of points on a bounded 2-D plane. This plane also has<br>
scalar data associated with each point. My ultimate goal for this program is<br>
to show this data as a 3-D surface (where the 3rd dimension is derived from<br>
the scalar component and is perpendicular to the original plane.)<br>
<br>
When writing my vtu files, I have mainly been using Vtk_Pixel (8) as well as<br>
Vtk_Quad (9) to create the cells that make up the entire surface. However,<br>
even though the program creates the surface that I desire, it also creates a<br>
plane under the new elevated surface. Therefore, I can't get a good look at<br>
the under side of the new surface. (if the images are too hard to mentally<br>
visualize I can post a couple images if that helps.) Im not sure if this<br>
added plane (which just so happens to be the plane that would be plotted if<br>
the scalar data wasn't "elevated") is an artifact of vtu files or Vtk_Pixels<br>
or something else I over looked.<br>
<br>
One possible solution that I arrived at is that I could simply make a vtk<br>
file that outputs the plane and contains the scalar data at each point<br>
(thereafter I can "elevate" the scalar data with a function built into the<br>
visualization program I'm using.) I attempted this by trying to add<br>
<PointData> ... </PointData> into my vtu files but I could not get the<br>
syntax to work out. If someone has an example vtu file that has the right<br>
syntax to accomplish this, it would be very helpful if I could take a look<br>
at it.<br>
<br>
If you need more information about my problem or have an suggestions let me<br>
know. Thanks<br>
<br>
Cheers, :drunk:<br>
<br>
Patrick<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Scalar-data-on-2-D-plane-and-how-to-%22elevate%22-this-scalar-data-tp18812329p18812329.html" target="_blank">http://www.nabble.com/Scalar-data-on-2-D-plane-and-how-to-%22elevate%22-this-scalar-data-tp18812329p18812329.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>