# cee::geo::PartHitItems

class `PartHitItems`

  The part and the indices of the items within the part that was hit.

  Returned by GeometryModel::regionIntersectPartItems()

  See also

  cee::geo::GeometryModel

  Public Functions

  `PartHitItems`()

    Constructs an empty object.

  `PartHitItems`(const PartHitItems &other)

    Constructs a PartHitItems as a copy of other.

  PartHitItems &`operator=`(const PartHitItems &other)

    Assigns other to this and returns a reference.

  const Part *`part`() const

    Returns the part.

  Part *`part`()

    Returns the part.

  const std::vector<size_t> &`itemIndexArr`() const

    Returns the array of the indices of all the items in the part that was hit.

    This will be the triangle index, polyline index or point index (depending on Data type)

  const std::vector<size_t> &`vertexIndexArr`() const

    Returns the array of the vertices of all the items in the part that was hit.

    This array is only populated if acceptPartiallyContainedItems is true and will not be populated for points (only triangles and polylines).

  const std::vector<size_t> &`polylineSubIndexArr`() const

    Returns the array of the polyline sub-indices of all the items in the part that was hit.

    This array is only populated if acceptPartiallyContainedItems is true.

    If all segments in a polyline is (partially) intersected, only one item is added to the itemIndexArr (the index of the intersected polyline) and the corresponding polylineSubIndexArr will be UNDEFINED_SIZE_T

    Note: polylineSubIndexArr.size() == itemIndexArr.size()

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