[vtkusers] vtkCellPicker question
Stephen Langer
stephen.langer at nist.gov
Wed Apr 17 13:28:13 EDT 2013
Responding to my own question: This is due to a bug in vtkCellLocator, reported at http://www.vtk.org/Bug/view.php?id=10349.
-- Steve
On Apr 12, 2013, at 3:51 PM, Stephen Langer wrote:
> Hi --
>
> I'm using a vtkCellPicker to select cells in a tetrahedral mesh. Sometimes the point returned by vtkCellPicker::GetPickedPositions is on the near side of the picked tetrahedron, and sometimes it's on the far side. Changing the position passed into vtkCellPicker::Pick by only a pixel or two will cause the returned point to switch sides. Is it possible to force the picker to return the point on the near side, or at least to return both points? I'm really interested in identifying the nearer triangular face of the tetrahedron, but my vtkUnstructuredGrid contains only tetrahedral cells.
--
-- stephen.langer at nist.gov Tel: (301) 975-5423 --
-- http://math.nist.gov/~SLanger/ Fax: (301) 975-3553 --
-- NIST, 100 Bureau Drive, Stop 8910, Gaithersburg, Md 20899-8910 --
"I've just had the best idea. I'm going to make hats out of Nutella."
-- Nadia Langer, 10 Mar 2012
(Not intended as a product endorsement or statement of suitability.)
More information about the vtkusers
mailing list