[vtkusers] vtkPolydataConnectivityFilter...

Marcelo amati at cenpra.gov.br
Thu May 15 05:18:08 EDT 2003


	Hi Shyamprakash,

	Thank you for your answer. Unfortunately it isn't what I'm looking
for... I'm looking for the contrary of this. I want to display
everything except the selected region. I want to delete it... 

	Thanks!

	Marcelo


R K Shyamprakash wrote:
> 
> You can remove a region based on your mouse click in the following manner.
> 
> vtkPolyDataConnectivityFilter fil = new vtkPolyDataConnectivityFilter();
> fil.SetInput(input);
> fil.SetExtractionModeToClosestPoint();
> fil.SetClosestPoint(x,y,z); //x,y,z is the world coordinates based on mouse
> position
> 
> vtkPolyDataMapper .... blah,blah,blah.......
> .....
> .
> Now you have the region which is closest to the point specified extracted.
> Is this what you are looking for?
> 
> --Shyam
> 
> -----Original Message-----
	

> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Marcelo
> Sent: Tuesday, May 13, 2003 9:54 PM
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] vtkPolydataConnectivityFilter...
> 
>         Hi,
> 
>         I need do remove a connected region from a polydata dataset. I'm
> trying to use a method called "DeleteSpecifiedRegion" (from
> vtkPolydataConnectivityFilter class), but I think it works with a region
> Id and not with a cell or point Id (I'm not sure). How can I specify the
> exact region Id to remove it?
> 
>         Thank you!
> 
>         Pierre
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers
> 
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers



More information about the vtkusers mailing list