Skip to main content

Rocky Solver SDK 2024 R2

rocky_point_cloud_api

Last update: 17.07.2025
1#pragma once
2
3// Includes =======================================================================================
4#include "rocky_point_cloud.h"
5
6// ================================================================================================
7// IRockyCloudPoint
8// ================================================================================================
9
15{
19 inline ROCKY_FUNCTIONS double3 get_position() const;
20
25 inline ROCKY_FUNCTIONS double get_property(int property_index) const;
26
30 inline ROCKY_FUNCTIONS bool is_enabled() const;
31
34 ROCKY_FUNCTIONS IRockyCloudPoint(device::PointCloud* _point_cloud, int _point_index)
35 {
36 this->_impl.point_cloud = _point_cloud;
37 this->point_index = _point_index;
38 }
39
40 RockyPointCloud _impl;
41 int point_index;
42
44};
45
46inline ROCKY_FUNCTIONS double3 IRockyCloudPoint::get_position() const
47{
48 return this->_impl.get_point_position(this->point_index);
49}
50
51inline ROCKY_FUNCTIONS double IRockyCloudPoint::get_property(int property_index) const
52{
53 return this->_impl.get_point_property(this->point_index, property_index);
54}
55
56inline ROCKY_FUNCTIONS bool IRockyCloudPoint::is_enabled() const
57{
58 return this->_impl.point_cloud->is_enabled();
59}
Definition rocky_point_cloud_api.hpp:15
ROCKY_FUNCTIONS double get_property(int property_index) const
Definition rocky_point_cloud_api.hpp:51
ROCKY_FUNCTIONS double3 get_position() const
Definition rocky_point_cloud_api.hpp:46
ROCKY_FUNCTIONS bool is_enabled() const
Definition rocky_point_cloud_api.hpp:56

Connect with Ansys