Skip to main content
Version: 21 Aug 2024

MLMeshingBlockMesh

Module: Meshing2

More...

#include <ml_meshing2.h>

Public Attributes

TypeName
MLMeshingResultresult
MLCoordinateFrameUIDid
MLMeshingLODlevel
uint32_tflags
uint16_tindex_count
uint32_tvertex_count
MLVec3f *vertex
uint16_t *index
Pointer to index buffer. In the index buffer each value is the index of a vertex in the vertex buffer. Three indices define one triangle. For example, the first triangle will have the vertices: vertex[index[0]], vertex[index[1]], vertex[index[2]]. Index order is defined by the MLMeshingFlags_IndexOrderCW flag.
MLVec3f *normal
float *confidence

Detailed Description

struct MLMeshingBlockMesh;

Final structure for a block mesh.


Public Attributes Documentation

result

MLMeshingResult result;

The result of the meshing.


id

MLCoordinateFrameUID id;

The coordinate FrameID of the block. Note: Not for use with perception snapshot system, purely a unique identifier.


level

MLMeshingLOD level;

The LOD level of the meshing request.


flags

uint32_t flags;

The settings with which meshing took place.


index_count

uint16_t index_count;

The number of indices in index buffer.


vertex_count

uint32_t vertex_count;

The number of vertices in vertex/normal/confidence buffer.


vertex

MLVec3f * vertex;

Pointer to the vertex buffer.


index

uint16_t * index;

Pointer to index buffer. In the index buffer each value is the index of a vertex in the vertex buffer. Three indices define one triangle. For example, the first triangle will have the vertices: vertex[index[0]], vertex[index[1]], vertex[index[2]]. Index order is defined by the MLMeshingFlags_IndexOrderCW flag.


normal

MLVec3f * normal;

Pointer to normals buffer.


confidence

float * confidence;

Pointer to confidence buffer.