Class for provide functions of process Meshpack. More...
#include <MeshProcessor.h>
Static Public Member Functions | |
| static void | GenerateMeshLodClusterHierarchy (MeshPack *meshPack) |
| Generate Mesh Lod Resources. | |
Static Private Member Functions | |
| static void | AppendMeshlets (MeshPack *meshPack, uint32_t lod, const SpicesShader::Sphere &clusterBoundSphere, const std::vector< glm::uvec3 > &primVertices) |
| Create and Append Meshlets to MeshPack use given indices. | |
| static std::vector< MeshletGroup > | GroupMeshlets (MeshPack *meshPack, std::vector< Meshlet > &meshlets) |
| Split Meshlets to Groups. | |
| static bool | MergeByDistance (MeshPack *meshPack, std::vector< glm::uvec3 > &primVertices, scl::kd_tree< 6 > &kdTree, float maxDistance, float maxUVDistance) |
| Merge Vertex by Distance. | |
| static bool | PackVertexToPoints (MeshPack *meshPack, const std::vector< glm::uvec3 > &primVertices, std::vector< glm::vec3 > &points) |
| Pack Vertices to Points. | |
| static SpicesShader::Sphere | CalculateBoundSphere (const std::vector< glm::vec3 > &points) |
| Calculate BoundSphere from Points. | |
| static bool | BuildKDTree (MeshPack *meshPack, const std::vector< glm::uvec3 > &primVertices, scl::kd_tree< 6 > &kdTree) |
| Build KDTree use specific meshlets. | |
| static bool | FindBoundaryPoints (MeshPack *meshPack, const std::vector< glm::uvec3 > &primVertices, std::unordered_map< uint32_t, bool > &boundaryPoints, std::unordered_map< uint32_t, bool > &stableBoundaryPoints, std::unordered_map< uint32_t, EdgePoint > &boundaryEdgePoints, std::unordered_map< uint32_t, std::unordered_map< uint32_t, bool > > &pointConnect) |
| Find Points located in Boundaries. | |
| static bool | PackPrimVerticesFromSparseInputs (MeshPack *meshPack, const std::vector< glm::uvec3 > primVertices, std::vector< glm::vec3 > &packPoints, std::vector< glm::uvec3 > &packPrimPoints, std::unordered_map< uint32_t, uint32_t > &primVerticesMapReverse) |
| Pack PrimVertices from Sparse PrimVertices Inputs. | |
| static bool | UnPackPrimVerticesToSparseInputs (std::vector< glm::uvec3 > &primVertices, std::unordered_map< uint32_t, uint32_t > &primVerticesMapReverse, const std::vector< glm::uvec3 > &packPrimPoints) |
| Unpack PrimVertices to Sparse PrimVertices Inputs. | |
Class for provide functions of process Meshpack.
Definition at line 30 of file MeshProcessor.h.