cee::geo::PartHitItems Class Reference

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...
 
PartHitItemsoperator= (const PartHitItems &other)
 Assigns other to this and returns a reference. More...
 
const Partpart () const
 Returns the part. More...
 
Partpart ()
 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...
 

Detailed Description

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

Returned by GeometryModel::regionIntersectPartItems()

See also
cee::geo::GeometryModel

Constructor & Destructor Documentation

cee::geo::PartHitItems::PartHitItems ( )

Constructs an empty object.

cee::geo::PartHitItems::PartHitItems ( const PartHitItems other)

Constructs a PartHitItems as a copy of other.

Member Function Documentation

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