hi i have posted in the past this  piece of code that should work...<br><pre><tt><tt><br>     vtkPoints *cloudPoints=new vtkPoints;<br>     vtkCellArray *cloudCells=new vtkCellArray;<br>     vtkPolyData *cloudPData=new vtkPolyData;<br><br><br>     cloudPoints-&gt;SetDataTypeToDouble();<br>     cloudPoints-&gt;SetNumberOfPoints(numberOfVTKPoints);<br><br><br>     for(int i=0; i&lt;(numberOfVTKCells*3); i++)<br>     {         <br>cloudPoints-&gt;SetPoint(i,vtkStoredPointsBuffer[i].getX(),vtkStoredPointsBuffer[i].getY(),vtkStoredPointsBuffer[i].getZ());<br><br>     }<br><br>     cloudCells-&gt;InsertNextCell(numberOfVTKPoints);<br><br><br>     for (int i=0; i&lt;numberOfVTKPoints; i++)<br>     {<br>         cloudCells-&gt;InsertCellPoint(i);<br>     }<br><br><br>     cloudPData-&gt;SetPoints(cloudPoints);<br>     cloudPData-&gt;SetLines(cloudCells);<br><br><br>the only weird thing you may see is these getX(), getY(), getZ() <br>methods.The reason why i use these methods is
 that i store my points in <br>std::vector&lt;Point3D&gt;where Point3D is a custom class for 3D points (in your case you use <br>vtkPoints).</tt></tt></pre>In general it works. Try if it works for your application too <br><br>good luck <br><br><br><b><i>samo &lt;sandra.moritz@gmx.de&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br><br>Hello together<br><br>I try to match a point cloud with a surface with the help of<br>vtkIterativeClosestPointAlgorithm. What I would like to know is, whether and<br>how I can use a point cloud in vtk. At the moment, I am using the vtkPoints<br>array to store all the points in. But when I want to use the icp, I need a<br>vtkDataSet. But, as I understood, the vtkDataSet always needs the cell<br>information. Is that right? I tried to use vtkUnstructuredGrid with only<br>setting points and no cells. But the icp calculated no transformation. Is<br>there a
 possiblility to use the icp without the cell information? As, in my<br>point cloud, I don't know how the points are organized. I just would like to<br>calculate a transformation from the point cloud to the surface. The icp<br>which I know from maths, is able to do that. <br><br>Has anybody an idea?<br>-- <br>View this message in context: http://www.nabble.com/ICP-with-Point-Cloud-tf3816487.html#a10804257<br>Sent from the VTK - Users mailing list archive at Nabble.com.<br><br>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers<br></blockquote><br><p>&#32;
      <hr size=1><a href="http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50">Pinpoint customers </a>who are looking for what you sell.