[vtkusers] Line intersection with an actor
Doug Hoppes
dhoppes at mbfbioscience.com
Thu Mar 19 14:00:43 EDT 2015
Thanks, David! I couldn't get the vtkCellLocator to work but the vtkOBBTree worked beautifully.
From: David Gobbi [mailto:david.gobbi at gmail.com]
Sent: Thursday, March 19, 2015 11:22 AM
To: Doug Hoppes
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Line intersection with an actor
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<mailto: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/1a3ba05e/attachment.html>
More information about the vtkusers
mailing list