[vtkusers] cleaning up a surface rendering
Amy Henderson
amy.henderson at kitware.com
Thu Mar 25 13:33:40 EST 2004
Hi John,
If you turn on ColorRegions in the vtkConnectivityFilter, then the filter
adds a point data scalar array containing the region ids.
- Amy
At 01:02 PM 3/25/2004, John Hunter wrote:
> >>>>> "Amy" == Amy Henderson <amy.henderson at kitware.com> writes:
>
> Amy> John, vtkConnectivityFilter should be helpful to you. See
> Amy> http://www.vtk.org/doc/nightly/html/classvtkConnectivityFilter.html.
>
>Hi Amy,
>
>Thanks for the speedy reply. That helped a lot. I'm very close to
>having the functionality I need, but am stuck on one point.
>
>I use the connectivity filter with SetExtractionModeToAllRegions and a
>vtkWorldPointPicker to get the x,y,z coords of a point I click on. I
>then call
>
> x,y,z = picker.GetPickPosition()
> connect.SetClosestPoint(x,y,z)
> # now I just need to get the id of the region closest point and
> # then call
> connect.DeleteSpecifiedRegion (id)
>
>Ie, I set the closest point but don't know how to get the id of the
>region that is at the closest point.
>
>Any suggestions here?
>
>Thanks,
>John Hunter
>_______________________________________________
>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