9#ifndef AVARA3D_MESH_CONVEXDECOMPOSER_H
10#define AVARA3D_MESH_CONVEXDECOMPOSER_H
23 class ConvexDecomposer {
28 enum class FILL_MODE {
35 uint32_t maxConvexHulls {64};
36 uint32_t resolution {400000};
37 double minVolumePercentErr {1};
38 uint32_t maxRecursionDepth {10};
39 bool shrinkWrap {
true};
40 FILL_MODE fillMode {FILL_MODE::FLOOD_FILL};
41 uint32_t maxNumVerticesPerHull {64};
43 uint32_t minEdgeLength {2};
44 bool findBestPlane {
false};
49 ConvexDecomposer(MeshElement& element, Options& options);
53 std::vector<std::unique_ptr<MeshElement>> decompose();
59 MeshElement* _sourceElement;