EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EBGeometry::PointCloud::FromArray< T > Struct Template Reference

A source of point positions for the builds that take one (PointCloudHashGrid::build()): an array of Vec3T, read as it is. More...

#include <EBGeometry_PointCloud.hpp>

Public Member Functions

Vec3T< T > operator() (const uint32_t a_index) const noexcept
 Position of a point.
 

Public Attributes

const Vec3T< T > * m_positions = nullptr
 The positions, indexed by cloud index.
 

Detailed Description

template<class T>
struct EBGeometry::PointCloud::FromArray< T >

A source of point positions for the builds that take one (PointCloudHashGrid::build()): an array of Vec3T, read as it is.

A source is any trivially copyable type with a const call operator that takes a cloud index and returns that point's position, callable where the build runs (on a device, for a build into device memory). Write one for data in another layout: separate x, y and z arrays, a struct per particle, another precision.

Template Parameters
TFloating-point precision.

Member Function Documentation

◆ operator()()

template<class T >
Vec3T< T > EBGeometry::PointCloud::FromArray< T >::operator() ( const uint32_t  a_index) const
inlinenoexcept

Position of a point.

Parameters
[in]a_indexCloud index.
Returns
The position.

The documentation for this struct was generated from the following file: