Hi Alessandro,<br><br>The documentation of vtkDelaunay3D says also "These points may be represented by any dataset of type <a class="el" href="http://www.vtk.org/doc/nightly/html/classvtkPointSet.html" title="abstract class for specifying dataset behavior">vtkPointSet</a> and subclasses". Passing a vtkPoints object as input is not understandable for a vtkAlgorithm.<br>
<br>Regarding the number of parameters, there is a SetInput( int, vtkDataObject* ). This one takes 2 parameters. As the documentation says this is old-style pipeline connections, your version of SetInput is maybe not wrapped to python. This is a guess.<br>
<br>HTH,<br>Jerome<br><br><div class="gmail_quote">2009/10/29 Alessandro Artusi <span dir="ltr"><<a href="mailto:artusialessandro4@googlemail.com">artusialessandro4@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear All,<br><br>I am trying to use the vtkDelaunay3D but I am getting an error:<br><br>delny = vtk.vtkDelaunay3D()<br>delny.SetInput(p)<br>delny.SetTolerance(0.01)<br><br>where p is a vtkPoints defined as:<br><br>p = vtk.vtkPoints()<br>
p.SetNumberOfPoints(elem)<br><br>and I am inserting some points in p like this:<br><br> p.InsertPoint(index, x, y, z)<br><br>I am getting the following error at the line delny.SetInput(p):<br><br>TypeError: function takes exactly 2 arguments (1 given)<br>
<br>But I had a look to the documentation of the class vtkDelaunay3D and SetInput takes only one argument!!!!<br><br>Someone can tell me where I am mistaken?<br><br>Thanks a lot.<br><font color="#888888">Alessandro.<br><br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>