<div dir="ltr">Hi Stéphane,<div><br></div><div>The class that generates a z=f(x,y) surface is the vtkWarpScalar class.</div><div>Basic usage is as follows:</div><div>1) create a 2D image where the pixel value is the elevation (i.e. the z value)</div><div>2) turn this into a polydata with vtkImageDataGeometryFilter</div><div>3) use vtkWarpScalar to set the "z" value of each point to the pixel value</div><div><br></div><div> - David</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 3, 2016 at 9:54 AM, Stéphane ALBERT <span dir="ltr"><<a href="mailto:otb.salbert@gmail.com" target="_blank">otb.salbert@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><br>I'm new to VTK and on the rush to develop mock-up rendering a z = f( x, y ) 3D surface using the VTK in a Qt main-window.<br><br>The goal of the mock-up is to test the load for large data such as, for example, 32000x32000 discretization of the x and y axes.<br><br>I made a QMainWidow using a QVTKWidget and displaying a sphere (taken from the Examples section).<br><br>I
understood the general pipeline layout (similar to ITK) but I don't
know which VTK classes I should use/derive to modelize my z = f( x, y )
function and render it.<br><br>Should I :<br><ul><li>derive from vtkPolyDataAlgorithm and implement a point generation algorithm ;<br></li><li>fill in some vtkImageData ;</li><li>implement some filter taking grid data ;<br></li><li>other?</li></ul><p>Basically, the user input the size (e.g. 32000), the software generates and render the data.</p><p>As an option, I would like to add some controls to dynamically increase/decrease the size parameter.</p><p>In
a second step, we would like to test some adaptative rendering
algorithms the fast render the large number of vertices. Does VTK
provide such algorithms? How could I implement and insert one into the
VTK pipeline ?</p>Best regards,<div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre cols="72"><a href="http://orfeo-toolbox.org" target="_blank">http://orfeo-toolbox.org</a>
Stéphane ALBERT
Ingénieur d'études et développement
Business Unit E-SPACE & Geo Information, Département APPLICATIONS
CS Systèmes d'Information
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - France<br></pre></div></div></div></div></div></div></blockquote></div><br></div></div></div>