<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=FR link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I have n points:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>-----------------------------------------------------------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:35.4pt'><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial'>vtkPoints* temp_pts =
vtkPoints::New(); // XYZ coords <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(0,
20,20,20);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(1,
20,512,20);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(2,
512,512,20);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(3,
512,20,20);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(4,
20,20,20);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(0,
20,20,300);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(1,
20,512,300);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(2,
512,512,300);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp_pts-&gt;InsertPoint(3,
512,20,300);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>-----------------------------------------------------------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>With the following
code I create a polyline:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>-----------------------------------------------------------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //
Create the polyline. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkCellArray
*lines = vtkCellArray::New(); <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int
numPoints = temp_pts-&gt;GetNumberOfPoints(); <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lines-&gt;InsertNextCell(numPoints);
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for
(int j = 0; j &lt; numPoints; j++) <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lines-&gt;InsertCellPoint(j);
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkPolyData
*profileData = vtkPolyData::New(); <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; profileData-&gt;SetPoints((vtkPoints
*)(temp_pts)); <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:35.4pt'><font size=3 color=black
face=Calibri><span lang=EN-GB style='font-size:12.0pt;font-family:Calibri;
color:black'>profileData-&gt;SetLines(lines);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //profileData-&gt;GetPointData()-&gt;SetScalars(scalars);
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; profileData-&gt;BuildLinks();<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>-----------------------------------------------------------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>I want to create a curvilinear
curve with my n points.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>It is possible?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Calibri><span lang=EN-GB
style='font-size:12.0pt;font-family:Calibri;color:black'>Thx.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>