# cee::geo::HitItem

class `HitItem`

  Small class containing the result of an intersection between a ray and a part in a GeometryModel.

  See also

  cee::geo::GeometryModel

  Public Functions

  `HitItem`()

    Constructs an empty object.

  const Part *`part`() const

    Returns the part.

  Part *`part`()

    Returns the part.

  void `setPart`(Part *part)

    Sets the part.

  const Vec3d &`intersectionPoint`() const

    Returns the intersection point of the hit item.

  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)

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...