Skip to main content
#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

Public functions

Function get_position

Returns: The Cartesian coordinates of the referred point in the cloud point. Return type: ROCKY_FUNCTIONS double3

Function get_property

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

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

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

Returns: True if the current point cloud is enabled, false otherwise. Return type: ROCKY_FUNCTIONS bool

Function is_valid

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

Parameters:
  • int property_index
  • const _data_type value
Return type: void

Function set_property

Parameters:
  • int property_index
  • _data_type value
Return type: void