fast::Mesh class

Geometry data such as vertices, lines and triangles.

The mesh data object contains vertices and optionally a set of lines and/or triangles. Each vertex is represented as a MeshVertex and the lines and triangles as MeshLine and MeshTriangle respectively.

Base classes

class SpatialDataObject
Abstract base class for all spatial data objects.

Constructors, destructors, conversion operators

~Mesh()

Public functions

auto create(std::vector<MeshVertex> vertices, std::vector<MeshLine> lines, std::vector<MeshTriangle> triangles) FAST_CONSTRUCTOR(Mesh -> std::shared_ptr<Mesh>
Create a mesh.
auto getVertexBufferObjectAccess(accessType access) -> VertexBufferObjectAccess::pointer
auto getMeshAccess(accessType access) -> MeshAccess::pointer
auto getOpenCLAccess(accessType access, OpenCLDevice::pointer device) -> MeshOpenCLAccess::pointer
auto getNrOfTriangles() -> int
auto getNrOfLines() -> int
auto getNrOfVertices() -> int
void setBoundingBox(DataBoundingBox box)

Public variables

uint
nrOfVertices
nrOfLInes
nrOfTriangles
bool
useColors
useNormals
useEBO

Private functions

void freeAll() virtual
void free(ExecutionDevice::pointer device) virtual

Function documentation

std::shared_ptr<Mesh> fast::Mesh::create(std::vector<MeshVertex> vertices, std::vector<MeshLine> lines, std::vector<MeshTriangle> triangles) FAST_CONSTRUCTOR(Mesh

Create a mesh.

Parameters
vertices
lines
triangles