The part and the indices of the items within the part that was hit. More...
Public Member Functions | |
PartHitItems () | |
Constructs an empty object. More... | |
PartHitItems (const PartHitItems &other) | |
Constructs a PartHitItems as a copy of other. More... | |
PartHitItems & | operator= (const PartHitItems &other) |
Assigns other to this and returns a reference. More... | |
const Part * | part () const |
Returns the part. More... | |
Part * | part () |
Returns the part. More... | |
const std::vector< size_t > & | itemIndexArr () const |
Returns the array of the indices of all the items in the part that was hit. More... | |
const std::vector< size_t > & | vertexIndexArr () const |
Returns the array of the vertices of all the items in the part that was hit. More... | |
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. More... | |
The part and the indices of the items within the part that was hit.
Returned by GeometryModel::regionIntersectPartItems()
cee::geo::PartHitItems::PartHitItems | ( | ) |
Constructs an empty object.
cee::geo::PartHitItems::PartHitItems | ( | const PartHitItems & | other | ) |
Constructs a PartHitItems as a copy of other.
const std::vector< size_t > & cee::geo::PartHitItems::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)
PartHitItems & cee::geo::PartHitItems::operator= | ( | const PartHitItems & | other | ) |
Assigns other to this and returns a reference.
const Part * cee::geo::PartHitItems::part | ( | ) | const |
Returns the part.
Part * cee::geo::PartHitItems::part | ( | ) |
Returns the part.
const std::vector< size_t > & cee::geo::PartHitItems::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()
const std::vector< size_t > & cee::geo::PartHitItems::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).