[vtkusers] how to implement selection of cells along a line (like autocad's fence)

David Gobbi david.gobbi at gmail.com
Fri Apr 5 14:54:36 EDT 2013


Hi Andreas,

Look at vtkOBBTree.  It has a method called InstersectWithLine that
can return the Ids of all of the cells that are intersected by a line.

 - David

On Fri, Apr 5, 2013 at 12:07 PM, Andreas Buykx <A.Buykx at tnodiana.com> wrote:
> Hi all,
>
>
>
> I’m looking for a way to extract cells from an unstructured grid by a
> polyline selection, similar to what vtkImplicitSelectionLoop does for a
> closed polygon. Is this something that can be implemented efficiently with
> algorithms from VTK or should I write a custom algorithm?
>
>
>
> Thanks,
>
> Andreas Buykx
>
> Senior Software Engineer
>
>
>
> TNO DIANA BV
>
> Software Developers and Analysis Consultants for Civil and Geotechnical
> Engineering
>
>
>
> Delftechpark 19a, 2628 XJ, Delft, The Netherlands
>
> Tel: +31 88 34262 15 (Direct) │ Tel: +31 88 34262 00 (Switchboard) │ +31 88
> 34262 99 (Fax)
>
> http://tnodiana.com
>
>
>
> …be green keep it on screen
>
>
>
> ____________________________________________________________
> TNO DIANA BV is a limited liability company registered in the trade register
> of the Chamber of Commerce as TNO DIANA BV with registered number 27252655.
> ____________________________________________________________
> This e-mail and its contents are subject to the DISCLAIMER at
> http://tnodiana.com/content/Disclaimer
> ____________________________________________________________



More information about the vtkusers mailing list