cee::geo::HitItem
-
class
HitItem
Small class containing the result of an intersection between a ray and a part in a GeometryModel.
See also
Public Functions
-
HitItem
() Constructs an empty object.
-
void
setIntersectionPoint
(const Vec3d &intersectionPoint) Sets the intersection point of the hit item.
-
size_t
itemIndex
() const Returns the index of the item hit (part local index)
For DataIndexedTriangles, this is the zero based triangle index
For DataIndexedPolylines, this is the ‘part global’ zero based line segment index. Example: Part has two polylines: <0, 1, 2> and <1,3,5> Index 0: 0->1 (first line) Index 1: 1->2 (first line) Index 2: 1->3 (second line) Index 3: 3->5 (second line)
For DataPoints, this is the zero based point index.
-
void
setItemIndex
(size_t index) Sets index of the item hit (part local index)
-