[vtkusers] how to implement selection of cells along a line (like autocad's fence)
Bill Lorensen
bill.lorensen at gmail.com
Fri Apr 5 16:39:41 EDT 2013
David,
In theory the vtkOBBTree::IntersectWithLine should do the job, but since
that method has 0 test coverage and my preliminary testing indicates it
only returns the first intersection.
More investigation is required.
Bill
On Fri, Apr 5, 2013 at 2:54 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> 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
> > ____________________________________________________________
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130405/bbf07c29/attachment.htm>
More information about the vtkusers
mailing list