|
AGX Dynamics
2.37.2.0
|
Functions | |
| void | createGeometryBox (const TrackNode &node) |
| TrackNodeRange | createRangeExcludingNodeIndex (const Track &track, agx::UInt nodeIndex, agx::Int signedNumNodes) |
| Creates a node range where nodeIndex is excluded and number of nodes to include is signed. More... | |
| agx::UInt | nextIndex (agx::UInt index, agx::UInt size) |
| agx::UInt | prevIndex (agx::UInt index, agx::UInt size) |
| template<typename ContainerT > | |
| IndexRangeContainer | splitNonconsecutive (const ContainerT &container) |
| Given a sorted container this function will split the content into ranges where the elements are consecutive. More... | |
| template<typename ContainerT > | |
| IndexRangeContainer | splitNonconsecutive (const Track &track, const ContainerT &container) |
| Splits a sorted container into ranges where each split happens when container[ i ] - container[ i - 1 ] > 1. More... | |
|
inline |
Definition at line 27 of file TrackUtils.h.
References agx::RigidBody::add(), agxSDK::LinkedSegment::getHalfExtents(), agxSDK::LinkedSegment::getRigidBody(), agxData::transform(), agx::AffineMatrix4x4T< Real >::translate(), and agx::Vec3T< T >::z().
|
inline |
Creates a node range where nodeIndex is excluded and number of nodes to include is signed.
E.g., given [0 1 2 3 4 5]: nodeIndex = 3, numNodes = +3 -> [4 5 0] nodeIndex = 3, numNodes = -4 -> [5 0 1 2].
Definition at line 128 of file TrackUtils.h.
References agxVehicle::Track::getIterator(), agx::InvalidIndex, agxVehicle::Track::nodes(), and agxSDK::LinkedSegmentRange< T >::size().
Definition at line 116 of file TrackUtils.h.
References agxAssert, and agx::InvalidIndex.
Definition at line 107 of file TrackUtils.h.
References agxAssert, and agx::InvalidIndex.
| IndexRangeContainer agxVehicle::utils::splitNonconsecutive | ( | const ContainerT & | container | ) |
Given a sorted container this function will split the content into ranges where the elements are consecutive.
| container | - sorted container with values |
Definition at line 42 of file TrackUtils.h.
References agxAssert, and agx::IndexRangeT< T >::end().
Referenced by splitNonconsecutive().
| IndexRangeContainer agxVehicle::utils::splitNonconsecutive | ( | const Track & | track, |
| const ContainerT & | container | ||
| ) |
Splits a sorted container into ranges where each split happens when container[ i ] - container[ i - 1 ] > 1.
The ranges are transformed back to the track node indices and if the last node is included the first range will include the last nodes. E.g., three ranges with number of nodes = 60: [0 1 2][45 46][57 58 59] will at the end be two ranges: [57 58 59 0 1 2][45 46].
Definition at line 70 of file TrackUtils.h.
References agxAssert, agxVehicle::Track::nodes(), agx::Container::size(), agxSDK::LinkedSegmentRange< T >::size(), and splitNonconsecutive().