Struct Mesh

Struct Documentation

struct Mesh

Holds the vertex, normals, color and triangle index information of a mesh.

Public Types

typedef std::shared_ptr<Mesh> Ptr
typedef std::shared_ptr<const Mesh> ConstPtr

Public Functions

Mesh()
Mesh(FloatingPoint _block_size, const Point &_origin)
virtual ~Mesh()
bool hasVertices() const
bool hasNormals() const
bool hasColors() const
bool hasTriangles() const
size_t size() const
void clear()
void clearTriangles()
void clearNormals()
void clearColors()
void resize(const size_t size, const bool has_normals = true, const bool has_colors = true, const bool has_indices = true)
void reserve(const size_t size, const bool has_normals = true, const bool has_colors = true, const bool has_triangles = true)
void colorizeMesh(const Color &new_color)
void concatenateMesh(const Mesh &other_mesh)

Public Members

Pointcloud vertices
VertexIndexList indices
Pointcloud normals
Colors colors
FloatingPoint block_size
Point origin
bool updated

Public Static Attributes

constexpr FloatingPoint kInvalidBlockSize = -1.0