[vtkusers] How to remove smallest unconnected objects from VTK file?

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Mon Apr 19 11:34:02 EDT 2004


try passing the data through a vtkCleanPolyData before
vtkConnectivityFilter - try playing with the tolerance and see if your large
object comes out ok.

JB

----- Original Message ----- 
From: "Jonathan Bailleul" <Jonathan.Bailleul at greyc.ismra.fr>
To: "R K Shyam Prakash" <ramakrishna.prakash at quest-global.com>
Cc: "'Jonathan Bailleul'" <Jonathan.Bailleul at greyc.ismra.fr>; "'VTK-User'"
<vtkusers at vtk.org>
Sent: Monday, April 19, 2004 2:55 PM
Subject: Re: [vtkusers] How to remove smallest unconnected objects from VTK
file?


Dear Shyam, and dear list users,


Thank you for your answer. I tested it ASAP but noticed that I just got
a "part" of the main object, ie a group of cell triangles, constituting
just a part of my (closed) object.
I saw that the filter extracted more than 500 regions, although I have
one "big" closed structures and 5 tiny ones.

So, how can I extract all the regions of my biggest object??


In advance, thank you for any help


R K Shyam Prakash wrote:
>
> Look at vtkConnectivityFilter and use SetExtractionModeToLargestRegion()
>
> --Shyam
>
> > -----Original Message-----
> > From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]
> > On Behalf Of Jonathan Bailleul
> > Sent: Monday, April 19, 2004 5:45 PM
> > To: VTK-User
> > Subject: [vtkusers] How to remove smallest unconnected
> > objects from VTK file?
> >
> >
> > (sorry for multiple sendings, I got a problem with my messenger)
> >
> > Dear All,
> >
> > I'm applying marching cubes on volumes to get meshes from
> > anatomical structures. The output gives a main object, and
> > several little objects besides with far less triangles (this
> > is normal regarding the input volumes).
> >
> > My question is: how to remove them as simply as possible?
> >
> > This might seem trivial, but not for me at the moment.
> > In advance, thank you for your help.
> >


-- 
-----------------------------------
Jonathan BAILLEUL, Doctorant
GREYC Image - Université de Caen
http://www.greyc.ismra.fr/~bailleul

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list