<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>This isn’t a Qt example, but it does show how to make a z = f(x, y) plot:</div>
<div><a href="http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Modelling/Python/expCos.py">http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Modelling/Python/expCos.py</a></div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>vtkusers <<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>> on behalf of Stéphane ALBERT <<a href="mailto:otb.salbert@gmail.com">otb.salbert@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, August 3, 2016 at 8:48 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] Re: [vtkusers] Rendering a z=f( x, y) 3D surface.<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Sorry, I mistyped something and the email has been sent.<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>
</div>
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>
</div>
I made a QMainWidow using a QVTKWidget and displaying a sphere (taken from the Examples section).<br>
<br>
</div>
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>
<p>Best regards,<br>
</p>
</div>
<div class="gmail_extra">
<div>
<div class="gmail_signature" 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><br></pre>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">2016-08-03 17:37 GMT+02:00 Stéphane ALBERT <span dir="ltr">
<<a href="mailto:otb.salbert@gmail.com" target="_blank">otb.salbert@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hello,<br>
<br>
</div>
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. I
<br clear="all">
<div>
<div>
<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><br></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</span>
</body>
</html>