Skip to main content

Rocky Solver SDK 2025 R2

rocky_point_cloud_api

Last update: 16.07.2025
1// (C) 2024 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
2#pragma once
3
4// Includes =======================================================================================
5#include "rocky_point_cloud.h"
6
7// ================================================================================================
8// IRockyCloudPoint
9// ================================================================================================
10
16{
20 inline ROCKY_FUNCTIONS double3 get_position() const;
21
26 template <class _data_type = double>
27 inline ROCKY_FUNCTIONS _data_type get_property(int property_index) const;
28
32 inline ROCKY_FUNCTIONS bool is_enabled() const;
33
39 inline ROCKY_FUNCTIONS bool is_valid() const;
40
43 ROCKY_FUNCTIONS IRockyCloudPoint(device::PointCloud* _point_cloud, int _point_index)
44 {
45 this->_impl.point_cloud = _point_cloud;
46 this->point_index = _point_index;
47 }
48
49 RockyPointCloud _impl;
50 int point_index;
51
53};
54
55inline ROCKY_FUNCTIONS double3 IRockyCloudPoint::get_position() const
56{
57 return this->_impl.get_point_position(this->point_index);
58}
59
60template <class _data_type>
61inline ROCKY_FUNCTIONS _data_type IRockyCloudPoint::get_property(int property_index) const
62{
63 return this->_impl.get_point_property<_data_type>(this->point_index, property_index);
64}
65
66inline ROCKY_FUNCTIONS bool IRockyCloudPoint::is_enabled() const
67{
68 return this->_impl.point_cloud->is_enabled();
69}
70
71inline bool IRockyCloudPoint::is_valid() const
72{
73 return this->point_index != INVALID_POINT_CLOUD_POINT;
74}
Definition rocky_point_cloud_api.hpp:16
ROCKY_FUNCTIONS double3 get_position() const
Definition rocky_point_cloud_api.hpp:55
ROCKY_FUNCTIONS _data_type get_property(int property_index) const
Definition rocky_point_cloud_api.hpp:61
ROCKY_FUNCTIONS bool is_valid() const
Definition rocky_point_cloud_api.hpp:71
ROCKY_FUNCTIONS bool is_enabled() const
Definition rocky_point_cloud_api.hpp:66

Connect with Ansys