[vtkusers] Line intersection with an actor

David Gobbi david.gobbi at gmail.com
Thu Mar 19 11:21:49 EDT 2015


The vtkCellLocator does this, but it operates on a vtkDataSet
rather than on an actor: actor->GetMapper()->GetInput()
The cell locator works in data coords rather than world coords
(use the actor's matrix to do the coord conversion, if needed).

On Thu, Mar 19, 2015 at 9:03 AM, Doug Hoppes <dhoppes at mbfbioscience.com>
wrote:

>  Hi all,
>
>
>
>                 I was wondering what the best way to do this.  I have a
> vtkactor in my scene.  In this case, I have a point(Point 1) inside of the
> vtkactor  and a point (Point 2) outside of the actor.  Is there a class
> that will get me the intersection position on the surface of the actor if I
> draw a line from point 1 to point 2?
>
>
>
> Doug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150319/25e96a05/attachment.html>


More information about the vtkusers mailing list