> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IRockyGeometriesMotionData Struct Reference

`#include <rocky_boundary_api.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| unsigned int | [get\_number\_of\_geometries](#a089856efc3afdea2fdf9c90652e411e8) () const |
| [IRockyGeometryMotionData](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyGeometryMotionData.md) | [get\_geometry](#a36a8aa9aa2bd497f7381980b78c83cb9) (unsigned int id) const |
| [IRockyGeometryMotionData](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyGeometryMotionData.md) | [get\_geometry](#a97350213657a5dfca98e787a4200ccc7) (const std::string \&name) const |
| bool | [has\_linked\_motion\_frame](#a0a9f25ad715ac525854a83d7b591100f) (unsigned int id) const |

## Detailed Description

[`IRockyGeometriesMotionData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyGeometriesMotionData) 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

### get\_geometry() \[1/2]

```cpp theme={null}
IRockyGeometryMotionData IRockyGeometriesMotionData::get_geometry(const std::string & 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**

| Name | Description |
| - | - |
| name | The name assigned in Rocky to an existing geometry. |

**Returns**

A geometry's motion.

### get\_geometry() \[2/2]

```cpp theme={null}
IRockyGeometryMotionData 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**

| Name | Description |
| - | - |
| id | The index assigned in Rocky to an existing geometry. |

**Returns**

A geometry's motion.

### get\_number\_of\_geometries()

```cpp theme={null}
unsigned int IRockyGeometriesMotionData::get_number_of_geometries() const
```

**Returns**

The number of geometries in the Rocky project.

### has\_linked\_motion\_frame()

```cpp theme={null}
bool IRockyGeometriesMotionData::has_linked_motion_frame(unsigned int id) const
```

**Parameters**

| Name | Description |
| - | - |
| id | The index assigned in Rocky to an existing geometry. |

**Returns**

True if the geometry with the passed id has motion from the Rocky's internal motion kernel implementation. False otherwise.
