struct mola::SparseVoxelPointCloud::VoxelData

Overview

#include <SparseVoxelPointCloud.h>

struct VoxelData
{
    // structs

    struct PointSpan;

    // methods

    auto points(const InnerGrid& parent) const;

    void insertPoint(
        const mrpt::math::TPoint3Df& p,
        InnerGrid& parent
        );

    const mrpt::math::TPoint3Df& mean() const;
    size_t size() const;
    void resize(size_t n);

    void setIndex(
        size_t i,
        uint32_t idx
        );

    uint32_t getIndex(size_t i) const;
};

Methods

const mrpt::math::TPoint3Df& mean() const

Gets the mean of all points in the voxel. Throws if empty.