    

 ## On this page

  

 

 # IRockyGeometriesMotionData Struct Reference

 Last update: 16.07.2025 

`#include <<a class="el" href="rocky__boundary__api_8hpp_source.xhtml">rocky_boundary_api.hpp</a>>`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

unsigned int [get\_number\_of\_geometries](#a089856efc3afdea2fdf9c90652e411e8) () const [IRockyGeometryMotionData](structIRockyGeometryMotionData.xhtml) [get\_geometry](#a36a8aa9aa2bd497f7381980b78c83cb9) (unsigned int id) const [IRockyGeometryMotionData](structIRockyGeometryMotionData.xhtml) [get\_geometry](#a97350213657a5dfca98e787a4200ccc7) (const std::string &amp;name) const bool [has\_linked\_motion\_frame](#a0a9f25ad715ac525854a83d7b591100f) (unsigned int id) const <a id="details" name="details"></a>## Detailed Description

`<a class="el" href="structIRockyGeometriesMotionData.xhtml">IRockyGeometriesMotionData</a>` is an interface for a list of geometries motions in Rocky. The list of geometries motions represented by this interface contains all geometries in Rocky, and they may or may not have a motion applied in Rocky's last simulation timestep. The geometries motions can be generated based upon the IDs of the geometries, which are numbered sequentially starting from zero, or from the names assigned to the geometries in the Rocky UI.



## Member Function Documentation

<a id="a97350213657a5dfca98e787a4200ccc7" name="a97350213657a5dfca98e787a4200ccc7"></a>## [◆ ](#a97350213657a5dfca98e787a4200ccc7)get\_geometry() \[1/2\]

 [IRockyGeometryMotionData](structIRockyGeometryMotionData.xhtml) IRockyGeometriesMotionData::get\_geometry  ( const std::string &amp; *name*)  const

Gets a geometry's motion given the geometry's name.If the provided name does not correspond to an existing geometry in Rocky, this method will raise an exception.Parameters nameThe name assigned in Rocky to an existing geometry.ReturnsA geometry's motion. 



<a id="a36a8aa9aa2bd497f7381980b78c83cb9" name="a36a8aa9aa2bd497f7381980b78c83cb9"></a>## [◆ ](#a36a8aa9aa2bd497f7381980b78c83cb9)get\_geometry() \[2/2\]

 [IRockyGeometryMotionData](structIRockyGeometryMotionData.xhtml) IRockyGeometriesMotionData::get\_geometry  ( unsigned int *id*)  const

Gets a geometry's motion given the geometry's Rocky ID.If the provided ID does not correspond to an existing geometry in Rocky, this method will raise an exception.Parameters idThe index assigned in Rocky to an existing geometry.ReturnsA geometry's motion. 



<a id="a089856efc3afdea2fdf9c90652e411e8" name="a089856efc3afdea2fdf9c90652e411e8"></a>## [◆ ](#a089856efc3afdea2fdf9c90652e411e8)get\_number\_of\_geometries()

 unsigned int IRockyGeometriesMotionData::get\_number\_of\_geometries  ( )  const

ReturnsThe number of geometries in the Rocky project. 



<a id="a0a9f25ad715ac525854a83d7b591100f" name="a0a9f25ad715ac525854a83d7b591100f"></a>## [◆ ](#a0a9f25ad715ac525854a83d7b591100f)has\_linked\_motion\_frame()

 bool IRockyGeometriesMotionData::has\_linked\_motion\_frame  ( unsigned int *id*)  const

Parameters idThe index assigned in Rocky to an existing geometry. ReturnsTrue if the geometry with the passed id has motion from the Rocky's internal motion kernel implementation. False otherwise.