<div dir="ltr">Hello,<br>What do you mean by &quot;vti file&quot; ?<br><br>Best regards,<br>Oliver<br><br><div class="gmail_quote">2008/8/5  <span dir="ltr">&lt;<a href="mailto:psc28@cornell.edu">psc28@cornell.edu</a>&gt;</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>
&gt;<br>
&gt; Hello,<br>
&gt; you could create a vtkImageData from your scalar data and then use<br>
&gt; vtkWarpScalar and vtkBandedContourFilter (for 3D Contours) or something<br>
&gt; similar.<br>
&gt; You will not see a plane, only the elevated data.<br>
&gt; See the examples for vtkWarpScalar or BandedContourFilter.<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Oliver<br>
&gt;<br>
&gt; 2008/8/4 pcalhoun &lt;<a href="mailto:psc28@cornell.edu">psc28@cornell.edu</a>&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hello all,<br>
&gt;&gt;<br>
&gt;&gt; I have been writing a C++ program that converts dat files that I have<br>
&gt;&gt; been<br>
&gt;&gt; working with into vtk format (vtu in particular.) These dat files contain<br>
&gt;&gt; a<br>
&gt;&gt; certain resolution of points on a bounded 2-D plane. This plane also has<br>
&gt;&gt; scalar data associated with each point. My ultimate goal for this program<br>
&gt;&gt; is<br>
&gt;&gt; to show this data as a 3-D surface (where the 3rd dimension is derived<br>
&gt;&gt; from<br>
&gt;&gt; the scalar component and is perpendicular to the original plane.)<br>
&gt;&gt;<br>
&gt;&gt; When writing my vtu files, I have mainly been using Vtk_Pixel (8) as well<br>
&gt;&gt; as<br>
&gt;&gt; Vtk_Quad (9) to create the cells that make up the entire surface.<br>
&gt;&gt; However,<br>
&gt;&gt; even though the program creates the surface that I desire, it also<br>
&gt;&gt; creates<br>
&gt;&gt; a<br>
&gt;&gt; plane under the new elevated surface. Therefore, I can&#39;t get a good look<br>
&gt;&gt; at<br>
&gt;&gt; the under side of the new surface. (if the images are too hard to<br>
&gt;&gt; mentally<br>
&gt;&gt; visualize I can post a couple images if that helps.) Im not sure if this<br>
&gt;&gt; added plane (which just so happens to be the plane that would be plotted<br>
&gt;&gt; if<br>
&gt;&gt; the scalar data wasn&#39;t &quot;elevated&quot;) is an artifact of vtu files or<br>
&gt;&gt; Vtk_Pixels<br>
&gt;&gt; or something else I over looked.<br>
&gt;&gt;<br>
&gt;&gt; One possible solution that I arrived at is that I could simply make a vtk<br>
&gt;&gt; file that outputs the plane and contains the scalar data at each point<br>
&gt;&gt; (thereafter I can &quot;elevate&quot; the scalar data with a function built into<br>
&gt;&gt; the<br>
&gt;&gt; visualization program I&#39;m using.) I attempted this by trying to add<br>
&gt;&gt; &lt;PointData&gt; ... &lt;/PointData&gt; into my vtu files but I could not get the<br>
&gt;&gt; syntax to work out. If someone has an example vtu file that has the right<br>
&gt;&gt; syntax to accomplish this, it would be very helpful if I could take a<br>
&gt;&gt; look<br>
&gt;&gt; at it.<br>
&gt;&gt;<br>
&gt;&gt; If you need more information about my problem or have an suggestions let<br>
&gt;&gt; me<br>
&gt;&gt; know. Thanks<br>
&gt;&gt;<br>
&gt;&gt; Cheers, &nbsp; :drunk:<br>
&gt;&gt;<br>
&gt;&gt; Patrick<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <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>

&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; This is the private VTK discussion list.<br>
&gt;&gt; Please keep messages on-topic. Check the FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<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>