esp::assets::GenericSemanticMeshData::PerPartitionIdMeshBuilder class

This class is intended to provide a concise interface to build the appropriate mesh data.

Constructors, destructors, conversion operators

PerPartitionIdMeshBuilder(GenericSemanticMeshData& data, uint16_t partitionId)
Build the per-partition GenericSemanticMeshData structure.

Public functions

void addVertex(uint32_t vertexId, const Mn::Vector3& vertex, const Mn::Color3ub& color, int objectId)
Add a vertex to the GenericSemanticMeshData.

Function documentation

void esp::assets::GenericSemanticMeshData::PerPartitionIdMeshBuilder::addVertex(uint32_t vertexId, const Mn::Vector3& vertex, const Mn::Color3ub& color, int objectId)

Add a vertex to the GenericSemanticMeshData.

Parameters
vertexId The Id of the vertex
vertex The location of the vertex
color The vertex color
objectId The object/semantic Id of the vertex