<div dir="ltr">Hello,<br>What do you mean by "vti file" ?<br><br>Best regards,<br>Oliver<br><br><div class="gmail_quote">2008/8/5 <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;">Hey Oliver,<br>
<br>
Could you send me an example vti file to model my program after?<br>
<br>
Thanks<br>
<br>
Patrick<br>
<br>
<br>
Oliver Kania-4 wrote:<br>
><br>
> Hello,<br>
> you could create a vtkImageData from your scalar data and then use<br>
> vtkWarpScalar and vtkBandedContourFilter (for 3D Contours) or something<br>
> 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>
> 2008/8/4 pcalhoun <<a href="mailto:psc28@cornell.edu">psc28@cornell.edu</a>><br>
><br>
>><br>
>> Hello all,<br>
>><br>
>> I have been writing a C++ program that converts dat files that I have<br>
>> been<br>
>> working with into vtk format (vtu in particular.) These dat files contain<br>
>> 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<br>
>> is<br>
>> to show this data as a 3-D surface (where the 3rd dimension is derived<br>
>> 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<br>
>> as<br>
>> Vtk_Quad (9) to create the cells that make up the entire surface.<br>
>> However,<br>
>> even though the program creates the surface that I desire, it also<br>
>> creates<br>
>> a<br>
>> plane under the new elevated surface. Therefore, I can't get a good look<br>
>> at<br>
>> the under side of the new surface. (if the images are too hard to<br>
>> 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<br>
>> if<br>
>> the scalar data wasn't "elevated") is an artifact of vtu files or<br>
>> 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<br>
>> 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<br>
>> look<br>
>> at it.<br>
>><br>
>> If you need more information about my problem or have an suggestions let<br>
>> me<br>
>> know. Thanks<br>
>><br>
>> Cheers, :drunk:<br>
>><br>
>> Patrick<br>
>> --<br>
>> View this message in context:<br>
>> <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:<br>
>> <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>
>><br>
><br>
> _______________________________________________<br>
> This is the private VTK discussion list.<br>
> Please keep messages on-topic. Check the FAQ at:<br>
> <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>
><br>
><br>
Quoted from:<br>
<a href="http://www.nabble.com/Scalar-data-on-2-D-plane-and-how-to-%22elevate%22-this-scalar-data-tp18812329p18825283.html" target="_blank">http://www.nabble.com/Scalar-data-on-2-D-plane-and-how-to-%22elevate%22-this-scalar-data-tp18812329p18825283.html</a><br>
<br>
</blockquote></div><br></div>