Hi Alessandro,<br><br>please, reply to the list so that anyone having the answer could... well, answers. <br>As you said, this is a warning, not an error. Do you get the expected output? I get this warning when I don't give good settings to the Delaunay filter.<br>
<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 Pam and Jerome,<br><br>thanks a lot, your emails have clarified to me many aspects. <br>I have tried what you have suggested Pam, but I get this error:<br><br>Generic Warning: In /build/buildd/vtk-5.0.4/Common/vtkMath.cxx, line 394<br>
Unable to factor linear system<br><br>Delaunay return me this warning.<br><br>Any suggestion?<br><br>Thanks a lot again,<br>Alessandro.<br><br><br><div class="gmail_quote">On Thu, Oct 29, 2009 at 4:49 PM, pam <span dir="ltr"><<a href="mailto:papereyra@gmail.com" target="_blank">papereyra@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, I don't know if you are programming on C++ if this is the case I used it in this way, using a vtkUnstructuredGrid<br>
<br>example <br><br>pts=vtkPoints::New();<br><br> //points x-y-z<br> pts->InsertPoint(0,1,1,1);<br>
pts->InsertPoint(1,16,10,1.25);<br> pts->InsertPoint(2,17,11,1);<br> pts->InsertPoint(3,20,12,1.2);<br> pts->InsertPoint(4,15,12,1);<br><br> vtkUnstructuredGrid* profile = vtkUnstructuredGrid::New(); ---> or could by vtkPolyData<br>
//Specify point array to define point coordinates.<br> profile->SetPoints(pts); <br><br>delny=vtkDelaunay3D::New();<br> delny->SetInput(profile);<br> delny->Update();<br><br>Hope this helps.<br><br><br>
Pam<br>
<br><br><br><div class="gmail_quote"><div class="im"><div>2009/10/29 Alessandro Artusi <span dir="ltr"><<a href="mailto:artusialessandro4@googlemail.com" target="_blank">artusialessandro4@googlemail.com</a>></span><br>
</div>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear All,<div><div></div><div class="h5"><div><div></div><div><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></div></div></div></div><div class="im"><div>_______________________________________________<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></div></div></blockquote></div><br>
</blockquote></div><br>
</blockquote></div><br>