<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> </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> </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'> temp_pts->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'> temp_pts->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'> temp_pts->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'> temp_pts->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'> temp_pts->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'> temp_pts->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'> temp_pts->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'> temp_pts->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'> temp_pts->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> </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'> //
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'> 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'> int
numPoints = temp_pts->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'> lines->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'> for
(int j = 0; j < 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'> lines->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> </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'> 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'> profileData->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->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> </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'> //profileData->GetPointData()->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'> profileData->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> </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> </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> </o:p></span></font></p>
</div>
</body>
</html>