Hi Alessandro, please, reply to the list so that anyone having the answer could... well, answers. 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.
Jerome 2009/10/29 Alessandro Artusi <artusialessand...@googlemail.com> > Dear Pam and Jerome, > > thanks a lot, your emails have clarified to me many aspects. > I have tried what you have suggested Pam, but I get this error: > > Generic Warning: In /build/buildd/vtk-5.0.4/Common/vtkMath.cxx, line 394 > Unable to factor linear system > > Delaunay return me this warning. > > Any suggestion? > > Thanks a lot again, > Alessandro. > > > On Thu, Oct 29, 2009 at 4:49 PM, pam <papere...@gmail.com> wrote: > >> 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 >> >> example >> >> pts=vtkPoints::New(); >> >> //points x-y-z >> pts->InsertPoint(0,1,1,1); >> pts->InsertPoint(1,16,10,1.25); >> pts->InsertPoint(2,17,11,1); >> pts->InsertPoint(3,20,12,1.2); >> pts->InsertPoint(4,15,12,1); >> >> vtkUnstructuredGrid* profile = vtkUnstructuredGrid::New(); ---> or >> could by vtkPolyData >> //Specify point array to define point coordinates. >> profile->SetPoints(pts); >> >> delny=vtkDelaunay3D::New(); >> delny->SetInput(profile); >> delny->Update(); >> >> Hope this helps. >> >> >> Pam >> >> >> >> 2009/10/29 Alessandro Artusi <artusialessand...@googlemail.com> >> >>> Dear All, >>> >>> >>> I am trying to use the vtkDelaunay3D but I am getting an error: >>> >>> delny = vtk.vtkDelaunay3D() >>> delny.SetInput(p) >>> delny.SetTolerance(0.01) >>> >>> where p is a vtkPoints defined as: >>> >>> p = vtk.vtkPoints() >>> p.SetNumberOfPoints(elem) >>> >>> and I am inserting some points in p like this: >>> >>> p.InsertPoint(index, x, y, z) >>> >>> I am getting the following error at the line delny.SetInput(p): >>> >>> TypeError: function takes exactly 2 arguments (1 given) >>> >>> But I had a look to the documentation of the class vtkDelaunay3D and >>> SetInput takes only one argument!!!! >>> >>> Someone can tell me where I am mistaken? >>> >>> Thanks a lot. >>> Alessandro. >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >>> >>> >> >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview