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

# Structure IRockyCloudPoint

![][C++]
![][public]

**#include \<rocky\_point\_cloud\_api.hpp>**

`IRockyCloudPoint` is an interface to the data of the nearest point to a given particle or SPH element at a given time.

## Members

* [add\_property](#structIRockyCloudPoint_1a9136329c0b219a389b02ae624761b741)
* [add\_property](#structIRockyCloudPoint_1a2cb5ab14f36601af7337fd8ac71363fa)
* [get\_position](#structIRockyCloudPoint_1a1d06a1eb80ad0811ab2794f2a494fe17)
* [get\_property](#structIRockyCloudPoint_1a51d29e82619836ed172e8f3135bf0f51)
* [is\_enabled](#structIRockyCloudPoint_1ae9e37938664d6977e49593d1ec8f3dbd)
* [is\_valid](#structIRockyCloudPoint_1a79dfeecd7f7360ed1e25135ed54ed312)
* [set\_property](#structIRockyCloudPoint_1a0668da5d5605bad7835355c5f6e3d269)
* [set\_property](#structIRockyCloudPoint_1a92918f0daa29121981d3549569518573)

## Public functions

### Function get\_position

![][public]
![][const]

```cpp theme={null}
ROCKY_FUNCTIONS double3 IRockyCloudPoint::get_position() const
```

**Returns**:

The Cartesian coordinates of the referred point in the cloud point.

**Return type**: ROCKY\_FUNCTIONS double3

### Function get\_property

![][public]
![][const]

```cpp theme={null}
ROCKY_FUNCTIONS _data_type IRockyCloudPoint::get_property(int property_index) const
```

**Returns**:

The value of a property in the cloud point dataset, corresponding to the referred point in the point cloud.

**Parameters**:

* int **property\_index**

**Return type**: ROCKY\_FUNCTIONS \_data\_type

### Function add\_property

![][public]
![][const]

```cpp theme={null}
ROCKY_FUNCTIONS void IRockyCloudPoint::add_property(int property_index, _data_type value) const
```

Adds value to the current property value identified by property\_index. This method is intended to be used only for user-defined point cloud properties of `CollectiveOperationType=cotIntegrated`, because these properties are automatically accumulated at post-forces hook. Using it on properties with a different `CollectiveOperationType` can lead to unexpected results.
**Parameters**:

* **property\_index**: The index that identifies the point cloud property
* **value**: Value to add on property

**Parameters**:

* int **property\_index**
* \_data\_type **value**

**Return type**: ROCKY\_FUNCTIONS void

### Function set\_property

![][public]
![][const]

```cpp theme={null}
ROCKY_FUNCTIONS void IRockyCloudPoint::set_property(int property_index, _data_type value) const
```

Set the value of property identified by property\_index to the passed value. This method is intended to be used only for user-defined point cloud properties.
**Parameters**:

* **property\_index**: The index that identifies the point cloud property
* **value**: Value to add on property

**Parameters**:

* int **property\_index**
* \_data\_type **value**

**Return type**: ROCKY\_FUNCTIONS void

### Function is\_enabled

![][public]
![][const]

```cpp theme={null}
ROCKY_FUNCTIONS bool IRockyCloudPoint::is_enabled() const
```

**Returns**:

True if the current point cloud is enabled, false otherwise.

**Return type**: ROCKY\_FUNCTIONS bool

### Function is\_valid

![][public]
![][const]

```cpp theme={null}
bool IRockyCloudPoint::is_valid() const
```

**Returns**:

True if the nearest point is a valid one for the particle passed to get\_particle\_cloud\_point or get\_element\_cloud\_point. Invalid nearest points are only marked when search\_cut\_off\_distance is enabled for the point cloud.

**Return type**: ROCKY\_FUNCTIONS bool

### Function add\_property

![][public]
![][const]

```cpp theme={null}
void IRockyCloudPoint::add_property(int property_index, const _data_type value) const
```

**Parameters**:

* int **property\_index**
* const \_data\_type **value**

**Return type**: void

### Function set\_property

![][public]
![][const]

```cpp theme={null}
void IRockyCloudPoint::set_property(int property_index, _data_type value) const
```

**Parameters**:

* int **property\_index**
* \_data\_type **value**

**Return type**: void

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"
