PointCloudChunk Class Reference

Class representing a sub-point cloud containing local vertices and colors. More...

Functions

 PointCloudChunk ()
 Default constructor. More...
 
 ~PointCloudChunk ()
 Default destructor. More...
 
void clear ()
 Clears all data. More...
 

Attributes

std::vector< float4 > vertices
 Vector of vertices. More...
 
std::vector< float3 > normals
 Vector of normals. More...
 
unsigned long long timestamp
 Timestamp of the latest update. More...
 
float3 barycenter
 3D centroid of the chunk. More...
 
bool has_been_updated
 Whether the chunk has been updated by an inner process. More...
 

Detailed Description

Class representing a sub-point cloud containing local vertices and colors.

Note
vertices and normals have the same size.

Constructor and Destructor

◆ PointCloudChunk()

Default constructor.

Creates an empty sl::PointCloudChunk.

◆ ~PointCloudChunk()

Default destructor.

Functions

◆ clear()

void clear ( )

Clears all data.

Variables

◆ vertices

std::vector<float4> vertices

Vector of vertices.

Vertices are defined by a colored 3D point {x, y, z, rgba}.

◆ normals

std::vector<float3> normals

Vector of normals.

Normals are defined by three components {nx, ny, nz}.

◆ timestamp

unsigned long long timestamp

Timestamp of the latest update.

◆ barycenter

float3 barycenter

3D centroid of the chunk.

◆ has_been_updated

bool has_been_updated

Whether the chunk has been updated by an inner process.