[vtkusers] vtkCellPicker question

Stephen Langer stephen.langer at nist.gov
Fri Apr 12 15:51:04 EDT 2013


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.

Thanks,
    Steve

--
-- 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