<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Courier New";
mso-fareast-language:DE;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage20
{mso-style-type:personal;
font-family:"Arial",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;}
span.E-MailFormatvorlage21
{mso-style-type:personal-reply;
font-family:"Arial",sans-serif;
color:#1F497D;
font-weight:normal;
font-style:normal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">I guess, it’s not possible to send documents with the e-mail? So I skip the document and hope, you can help me nevertheless. Thank you very much in advance!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Bea<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><strong><em>Beatrix Schober</em></strong><br>
Image Acquisition Development <br>
<br>
<strong>STEMMER IMAGING</strong> | Telefon: +49 89 80902-750<br>
<a style="COLOR: #0072bc" href="mailto:b.schober@stemmer-imaging.de">b.schober@stemmer-imaging.de</a> |
<a style="COLOR: #0072bc" href="http://www.stemmer-imaging.de">www.stemmer-imaging.de</a></p>
<table style="MAX-WIDTH: 660px">
<tbody>
<tr>
<td style="FONT-SIZE: 8pt; HEIGHT: 25px; FONT-FAMILY: Arial; WIDTH: 117px" valign="top">
<p style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><a href="http://www.stemmer-imaging.de/"><img style="HEIGHT: 27px; WIDTH: 109px" border="0" src="cid:stemmer-imaging-logo_a2683554-0e33-44e9-800c-5f58a623f38a.gif"></a></p>
</td>
<td style="FONT-SIZE: 8pt; HEIGHT: 25px; FONT-FAMILY: Arial; WIDTH: 543px" valign="top">
<font color="#726e6a">STEMMER IMAGING GmbH | Gutenbergstr. 9-13 | 82178 Puchheim, Deutschland
<br>
Registergericht München HR B 82026 | Geschäftsführer: Wilhelm Stemmer, Christof Zollitsch</font>
</td>
</tr>
</tbody>
</table>
<br>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:DE">Von:</span></b><span style="mso-fareast-language:DE"> Schober Beatrix [STEMMER IMAGING GmbH]
<br>
<b>Gesendet:</b> Dienstag, 7. März 2017 17:53<br>
<b>An:</b> vtkusers@vtk.org<br>
<b>Betreff:</b> vtkDelaunay2D from point cloud<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I am reading attached image (gray values as z) as point cloud which works fine only displaying the point cloud with 687.371 points (no Delaunay2D filter). As soon as I use the
Delaunay2D filter, I get a stack overflow (from vtkFiltersCore.dll – vtkDelaunay2D::FindTriangle(…)).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">On the other hand, when setting tolerance to 0.001, I get a mesh within 90 seconds. Actually I want to consider all points, or is it useful to set the tolerance? <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Rendering an xyz file with 359.040 points takes 40 seconds (with tolerance = 0.001) with Delaunay2D filter, also too long in a user application.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Rendering an xyz file with 359.040 points takes 12 seconds (without setting tolerance) with Delaunay2D filter. (I do not understand this behaviour.)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Mainly I guess, I am doing something wrong in reading the point cloud and creating the vtkPolyData?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:#569CD6;mso-fareast-language:DE">void</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">addPoint</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#569CD6;mso-fareast-language:DE">double</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#7F7F7F;mso-fareast-language:DE">x</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">,</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#569CD6;mso-fareast-language:DE">double</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#7F7F7F;mso-fareast-language:DE">y</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">,</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#569CD6;mso-fareast-language:DE">double</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#7F7F7F;mso-fareast-language:DE">z</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">)</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">{</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0;mso-fareast-language:DE">vtkIdType</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">id</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">=</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#DADADA;mso-fareast-language:DE">m_vtkPoints</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">-></span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">InsertNextPoint</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F7F7F;mso-fareast-language:DE">x</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">,</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#7F7F7F;mso-fareast-language:DE">y</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">,</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#7F7F7F;mso-fareast-language:DE">z</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">);</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#DADADA;mso-fareast-language:DE">m_vtkDepths</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">-></span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">InsertNextValue</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F7F7F;mso-fareast-language:DE">z</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">);</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#DADADA;mso-fareast-language:DE">m_vtkCells</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">-></span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">InsertNextCell</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#B5CEA8;mso-fareast-language:DE">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">);</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#DADADA;mso-fareast-language:DE">m_vtkCells</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">-></span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">InsertCellPoint</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">id</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">);</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#DADADA;mso-fareast-language:DE">m_vtkCells</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">-></span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">Modified</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">();</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#DADADA;mso-fareast-language:DE">m_vtkPoints</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">-></span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">Modified</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">();</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#DADADA;mso-fareast-language:DE">m_vtkDepths</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">-></span><span style="font-size:10.0pt;font-family:Consolas;color:#C8C8C8;mso-fareast-language:DE">Modified</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">();</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#1E1E1E"><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4;mso-fareast-language:DE">}</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:#569CD6">void</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">createPolyData</span><span style="font-family:Consolas;color:#B4B4B4">()</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:#B4B4B4">{</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#DADADA">m_vtkDepths</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetName</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#D69D85">"DepthArray"</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#DADADA">m_vtkPolyData</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetPoints</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#DADADA">m_vtkPoints</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#DADADA">m_vtkPolyData</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetVerts</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#DADADA">m_vtkCells</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#DADADA">m_vtkPolyData</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">GetPointData</span><span style="font-family:Consolas;color:#B4B4B4">()-></span><span style="font-family:Consolas;color:#C8C8C8">SetScalars</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#DADADA">m_vtkDepths</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#DADADA">m_vtkPolyData</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">GetPointData</span><span style="font-family:Consolas;color:#B4B4B4">()-></span><span style="font-family:Consolas;color:#C8C8C8">SetActiveScalars</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#D69D85">"DepthArray"</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> <o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#569CD6">if</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#DADADA">m_vtkPolyData</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">GetNumberOfPoints</span><span style="font-family:Consolas;color:#B4B4B4">()</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">></span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">0</span><span style="font-family:Consolas;color:#B4B4B4">)</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">{</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#57A64A">// Set vertex (cell) normals</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#4EC9B0">vtkSmartPointer</span><span style="font-family:Consolas;color:#B4B4B4"><</span><span style="font-family:Consolas;color:#4EC9B0">vtkDoubleArray</span><span style="font-family:Consolas;color:#B4B4B4">></span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">normalsArray</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">=</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#4EC9B0">vtkSmartPointer</span><span style="font-family:Consolas;color:#B4B4B4"><</span><span style="font-family:Consolas;color:#4EC9B0">vtkDoubleArray</span><span style="font-family:Consolas;color:#B4B4B4">>::</span><span style="font-family:Consolas;color:#C8C8C8">New</span><span style="font-family:Consolas;color:#B4B4B4">();</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">normalsArray</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetNumberOfComponents</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#B5CEA8">3</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#57A64A">//3d normals (ie x,y,z)</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">normalsArray</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetNumberOfTuples</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#DADADA">m_vtkPolyData</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">GetNumberOfPoints</span><span style="font-family:Consolas;color:#B4B4B4">());</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> <o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#57A64A">//construct the normal vectors</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#569CD6">double</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">cN1</span><span style="font-family:Consolas;color:#B4B4B4">[</span><span style="font-family:Consolas;color:#B5CEA8">3</span><span style="font-family:Consolas;color:#B4B4B4">]</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">=</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">{</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">1.0</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">0.0</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">0.0</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">};</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#569CD6">double</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">cN2</span><span style="font-family:Consolas;color:#B4B4B4">[</span><span style="font-family:Consolas;color:#B5CEA8">3</span><span style="font-family:Consolas;color:#B4B4B4">]</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">=</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">{</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">0.0</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">1.0</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">0.0</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">};</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#569CD6">double</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">cN3</span><span style="font-family:Consolas;color:#B4B4B4">[</span><span style="font-family:Consolas;color:#B5CEA8">3</span><span style="font-family:Consolas;color:#B4B4B4">]</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">=</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">{</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">0.0</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">0.0</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B5CEA8">1.0</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">};</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> <o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#57A64A">//add the data to the normals array</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">normalsArray</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetTuple</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#B5CEA8">0</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">cN1</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">normalsArray</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetTuple</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#B5CEA8">1</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">cN2</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">normalsArray</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">SetTuple</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#B5CEA8">2</span><span style="font-family:Consolas;color:#B4B4B4">,</span><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#C8C8C8">cN3</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> <o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#57A64A">//add the normals to the cells in the polydata</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#DADADA">m_vtkPolyData</span><span style="font-family:Consolas;color:#B4B4B4">-></span><span style="font-family:Consolas;color:#C8C8C8">GetCellData</span><span style="font-family:Consolas;color:#B4B4B4">()-></span><span style="font-family:Consolas;color:#C8C8C8">SetNormals</span><span style="font-family:Consolas;color:#B4B4B4">(</span><span style="font-family:Consolas;color:#C8C8C8">normalsArray</span><span style="font-family:Consolas;color:#B4B4B4">);</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:gainsboro"> </span><span style="font-family:Consolas;color:#B4B4B4">}</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<pre style="background:#1E1E1E"><span style="font-family:Consolas;color:#B4B4B4">}</span><span style="font-family:Consolas;color:gainsboro"><o:p></o:p></span></pre>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I am really stuck as I was searching for descriptions, examples etc. since some days now. I hope you can give me as a newbie the right hint.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Thank you very much in advance!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Bea<o:p></o:p></span></p>
</div>
</body>
</html>