MeshGraph
The MeshGraph namespace enables the creation of a hierarchical structure of geometries designed to perform smooth Level of Detail (LOD) transitions while preserving key details. It allows for reducing the complexity of a mesh by controlling the number of vertices and indices in each geometry, based on predefined limits. This hierarchy supports seamless transitions between different levels of detail, ensuring that higher detail is maintained where necessary, and lower detail is used in distant or less critical areas.
#include <geometry/TellusimMeshGraph.h>
Functions
Mesh graph reduction.
bool create(Mesh &dest, Mesh &src, uint32_t max_attributes, uint32_t max_primitives, const ProgressCallback *func = nullptr, Async *async = nullptr)
bool create(Array<MeshGeometry> dest, MeshGeometry &src, uint32_t max_attributes, uint32_t max_primitives, const ProgressCallback *func = nullptr, Async *async = nullptr)
Type | Name | Description |
---|---|---|
uint32_t | max_attributes | Maximum number of attributes per geometry |
uint32_t | max_primitives | Maximum number of primitives per geometry |
Types
using ProgressCallback = Function<bool(uint32_t progress)>