[vtkusers] vtkDelaunay3D
Alessandro Artusi
artusialessandro4 at googlemail.com
Thu Oct 29 13:20:52 EDT 2009
Jerom,
sorry, I was suppose to send it also to vtkuser mailing list, something went
wrong.
By the way this is teh email that i sent to you previuosly:
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.
Concerning your question if I get the result that i expect is not, I do not
get anything out of it.
Thanks,
Alessandro.
On Thu, Oct 29, 2009 at 5:49 PM, Jérôme <jerome.velut at gmail.com> wrote:
> 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 <artusialessandro4 at 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 <papereyra at 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 <artusialessandro4 at 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
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091029/6ea0f122/attachment.htm>
More information about the vtkusers
mailing list