Class PolygonBuffer

Inheritance Relationships

Base Type

Class Documentation

class PolygonBuffer : public lvr2::BaseBuffer

A class to handle point information with an arbitrarily large number of attribute channels. The added channels should always have the same length as the point array to keep the mapping between geometry (channel ‘points’) and the associated layers like RGB colors or point normals consistent.

Public Functions

PolygonBuffer()
PolygonBuffer(floatArr points, size_t n)
PolygonBuffer(std::vector<std::vector<float>> &points)
void setPointArray(floatArr points, size_t n)
void load(std::string file)

Todo: remove once normal HDF IO implemented.

floatArr getPointArray()

Returns the internal point array.

size_t numPoints() const

Returns the number of points in the buffer.

PolygonBuffer clone() const

Makes a clone.