On Tue, Dec 11, 2012 at 4:34 PM, Gergely Debreczeni <span dir="ltr"><<a href="mailto:Gergely.Debreczeni@cern.ch" target="_blank">Gergely.Debreczeni@cern.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have a grid as a result of simulation x,y,z.<br>
<br>
I want to visualize it in a way that for every y value a<br>
solid line as a function of of x,z is plotted.<br>
<br>
With other words I'd like to visualize the x,y,z surface<br>
but interpolating only in the x direction, so that graphs<br>
belonging to different y value can be distinguished from<br>
each other despite being close.<br>
<br>
What is the best VYK object and visualisation method<br>
to use for the purpose ? DensArray ? PointCloud ?<br>
<br>
thanks a lot for your help in advance,<br>
Gergely<br></blockquote><div><br></div>I would loop over the rows of your grid and create polylines with the points being your (x,z) values and the y coordinate being a counter (which of course you should scale so the spacing makes sense relative to the magnitude of your data). You can create the polylines like this: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/PolyLine">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/PolyLine</a>). You could even do something like alternate the color of every other polyline so they are easier to distinguish.<br clear="all">
<div><br></div><div>Hope that helps,</div><div><br>David </div></div>