9 #include "imstkGeometryAlgorithm.h" 10 #include "imstkCollisionData.h" 20 int ids[4] = { -1, -1, -1, -1 };
54 const std::vector<PickData>&
pick(std::shared_ptr<Geometry> geomToPick)
56 setInput(geomToPick, 0);
62 const std::vector<PickData>& getPickData()
const {
return m_results; }
65 std::vector<PickData> m_results;
Abstract functor for picking/selecting of geometry. Differs from collision in that the picking criter...
const std::vector< PickData > & pick(std::shared_ptr< Geometry > geomToPick)
Perform picking on provided geometry.
int idCount
Indicates number of vertices (if 1 a cell or individual vertex)
int cellId
Supplemental cell id (when vertices are provided above and cell id is available)
Vec3d pickPoint
Some pickings may produce specific points on an element.
PickData provides ids to indicate what was picked These may be optionally used to indicate the select...
Abstract base class for geometry algorithms. GeometryAlgorithms take N input geometries and produce N...
CellTypeId cellType
Indicates picked cell type.
int ids[4]
Ids of the cell or vertices.