Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
convex_decomposition_vhacd.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_COLLISION_CONVEX_DECOMPOSITION_VHACD_H
27#define TESSERACT_COLLISION_CONVEX_DECOMPOSITION_VHACD_H
28
30
31namespace tesseract_collision
32{
34{
35 double concavity{ 0.001 };
36 double alpha{ 0.05 };
37 double beta{ 0.05 };
38 double min_volume_per_ch{ 0.0001 };
39 uint32_t resolution{ 1000 };
40 uint32_t max_num_vertices_per_ch{ 256 };
41 uint32_t plane_downsampling{ 4 };
43 uint32_t pca{ 0 };
44 uint32_t mode{ 0 }; // 0: voxel-based (recommended), 1: tetrahedron-based
46 uint32_t ocl_acceleration{ 1U };
47 uint32_t max_convehulls{ 1024 };
53
54 void print() const;
55};
56
58{
59public:
60 using Ptr = std::shared_ptr<ConvexDecompositionVHACD>;
61 using ConstPtr = std::shared_ptr<const ConvexDecompositionVHACD>;
62
65
66 std::vector<tesseract_geometry::ConvexMesh::Ptr> compute(const tesseract_common::VectorVector3d& vertices,
67 const Eigen::VectorXi& faces) const override;
68
69private:
71};
72
73} // namespace tesseract_collision
74#endif // TESSERACT_COLLISION_CONVEX_DECOMPOSITION_VHACD_H
Definition: convex_decomposition_vhacd.h:58
std::shared_ptr< const ConvexDecompositionVHACD > ConstPtr
Definition: convex_decomposition_vhacd.h:61
std::vector< tesseract_geometry::ConvexMesh::Ptr > compute(const tesseract_common::VectorVector3d &vertices, const Eigen::VectorXi &faces) const override
Run convex decomposition algorithm.
Definition: convex_decomposition_vhacd.cpp:40
VHACDParameters params_
Definition: convex_decomposition_vhacd.h:70
std::shared_ptr< ConvexDecompositionVHACD > Ptr
Definition: convex_decomposition_vhacd.h:60
Definition: convex_decomposition.h:37
Convex decomposition interface.
Definition: bullet_cast_bvh_manager.h:49
std::vector< Eigen::Vector3d > VectorVector3d
Definition: types.h:64
Definition: convex_decomposition_vhacd.h:34
uint32_t max_convehulls
Definition: convex_decomposition_vhacd.h:47
double beta
Definition: convex_decomposition_vhacd.h:37
uint32_t ocl_acceleration
Definition: convex_decomposition_vhacd.h:46
void print() const
Definition: convex_decomposition_vhacd.cpp:127
uint32_t convexhull_downsampling
Definition: convex_decomposition_vhacd.h:42
uint32_t mode
Definition: convex_decomposition_vhacd.h:44
uint32_t convexhull_approximation
Definition: convex_decomposition_vhacd.h:45
double alpha
Definition: convex_decomposition_vhacd.h:36
uint32_t resolution
Definition: convex_decomposition_vhacd.h:39
uint32_t pca
Definition: convex_decomposition_vhacd.h:43
double min_volume_per_ch
Definition: convex_decomposition_vhacd.h:38
double concavity
Definition: convex_decomposition_vhacd.h:35
uint32_t plane_downsampling
Definition: convex_decomposition_vhacd.h:41
bool project_hull_vertices
This will project the output convex hull vertices onto the original source mesh to increase the float...
Definition: convex_decomposition_vhacd.h:52
uint32_t max_num_vertices_per_ch
Definition: convex_decomposition_vhacd.h:40
std::shared_ptr< const Eigen::VectorXi > faces
Definition: tesseract_geometry_unit.cpp:16