[vtkusers] get selected area's point coordinates

David Doria daviddoria at gmail.com
Tue Sep 13 07:41:09 EDT 2011


On Tue, Sep 13, 2011 at 7:24 AM, oka <oka at bpe.es.osaka-u.ac.jp> wrote:
> Dear Users,
>
> How can I get point coordinates of rubbberband or click
> selected area ? I know node or element label numbers can
> be obtained, but how about point coordinates ?
> My trial is to get the closest original points to clipping surface
> points when clipping was done. Clipping generates new points
> which has different coordinates and labels from original ones.
> Therefore, I want to estimate the closest original points from
> clipped selected surface's point coordinates.
>
> Best regards,
>
> Oka

If you use a vtkIdFilter before the selection you can then get the
original point ids of the selection, as demonstrated here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Picking/HighlightSelectedPoints

David



More information about the vtkusers mailing list