diff options
author | sanine <sanine.not@pm.me> | 2023-02-12 23:53:22 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-02-12 23:53:22 -0600 |
commit | f1fe73d1909a2448a004a88362a1a532d0d4f7c3 (patch) | |
tree | ab37ae3837e2f858de2932bcee9f26e69fab3db1 /libs/assimp/code/AssetLib/Assjson/mesh_splitter.h | |
parent | f567ea1e2798fd3156a416e61f083ea3e6b95719 (diff) |
switch to tinyobj and nanovg from assimp and cairo
Diffstat (limited to 'libs/assimp/code/AssetLib/Assjson/mesh_splitter.h')
-rw-r--r-- | libs/assimp/code/AssetLib/Assjson/mesh_splitter.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/libs/assimp/code/AssetLib/Assjson/mesh_splitter.h b/libs/assimp/code/AssetLib/Assjson/mesh_splitter.h deleted file mode 100644 index f7f9a93..0000000 --- a/libs/assimp/code/AssetLib/Assjson/mesh_splitter.h +++ /dev/null @@ -1,52 +0,0 @@ -/* -Assimp2Json -Copyright (c) 2011, Alexander C. Gessler - -Licensed under a 3-clause BSD license. See the LICENSE file for more information. - -*/ - -#ifndef INCLUDED_MESH_SPLITTER -#define INCLUDED_MESH_SPLITTER - -// ---------------------------------------------------------------------------- -// Note: this is largely based on assimp's SplitLargeMeshes_Vertex process. -// it is refactored and the coding style is slightly improved, though. -// ---------------------------------------------------------------------------- - -#include <vector> - -struct aiScene; -struct aiMesh; -struct aiNode; - -// --------------------------------------------------------------------------- -/** Splits meshes of unique vertices into meshes with no more vertices than - * a given, configurable threshold value. - */ -class MeshSplitter { -public: - unsigned int LIMIT; - - void SetLimit(unsigned int l) { - LIMIT = l; - } - - unsigned int GetLimit() const { - return LIMIT; - } - - // ------------------------------------------------------------------- - /** Executes the post processing step on the given imported data. - * At the moment a process is not supposed to fail. - * @param pScene The imported data to work at. - */ - void Execute(aiScene *pScene); - -private: - void UpdateNode(aiNode *pcNode, const std::vector<std::pair<aiMesh *, unsigned int>> &source_mesh_map); - void SplitMesh(unsigned int index, aiMesh *mesh, std::vector<std::pair<aiMesh *, unsigned int>> &source_mesh_map); - -}; - -#endif // INCLUDED_MESH_SPLITTER |