[vtkusers] Problems using vtkGenericClip
Luca Penasa
luca.penasa at email.it
Thu Apr 8 11:03:59 EDT 2010
Hi everybody... I need some help...
I have an unstructured grid called 'grid' and i want to extract some
points using the vtkGenericClip function. As clip fuction i used a
vtkSphere object... this is the code i wrote:
sphere = vtkSphere()
sphere.SetCenter(x_coord, y_coord, z_coord)
sphere.SetRadius(radius)
cutter = vtkGenericClip()
cutter.SetClipFunction(sphere)
cutter.SetInsideOut(0)
cutter.SetInput(grid)
cutter.Update()
smallgrid = cutter.GetOutput()
smallgrid.Update()
after that 'cutter.GetNumberOfPoints()' always gives me 0 as result!!
i cannot understend why...
coordinates and radius of sphere are correctly set...
'smallgrid' object is an unstructured grid object as expected...
thank you!!
--
---------------------------
Luca Penasa
Student at Geosciences Dpt.
University of Padua (IT)
luca.penasa at email.it
---------------------------
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Apri Conto Arancio entro il 28 febbraio 2010 e ricevi 50 Euro da spendere presso Media World. Aprilo adesso
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=10034&d=8-4
More information about the vtkusers
mailing list