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
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 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()
-
PartHitItems()