# V-HACD

**V-HACD**（Voxelized Hierarchical Approximate Convex Decomposition，体素化层次近似凸分解）是一个开源算法与库，用于将任意三维三角网格转换为一组近似凸的部件，从而使物理引擎和碰撞检测系统——这些系统能高效处理凸形——可以使用原始几何体。其工作方式是：先对输入网格进行体素化，然后沿平面递归分割体素体积，直到每一块都足够接近凸形，再为每一块输出一个凸包。<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup><sup> • </sup><sup>[2](https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-vhacd/-/wikis/Study-of-the-V-HACD-algorithm/Algorithm-description/diff?version_id=91418f1a4053c3145548fafe8196ea1f9fd3f8ca&view=inline&w=0)</sup>

| 关键事实 | 详情 |
|---|---|
| 全称 | Voxelized Hierarchical Approximate Convex Decomposition（体素化层次近似凸分解）<sup>[3](https://github.com/kmammou/v-hacd/blob/master/README.md)</sup> |
| 当前版本 | 4.1，以单个头文件 VHACD.h 形式提供，通过 `ENABLE_VHACD_IMPLEMENTATION` 编译实现<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup><sup> • </sup><sup>[4](https://github.com/kmammou/v-hacd/releases)</sup> |
| 默认参数 | 最多 64 个凸包、400,000 体素分辨率、递归深度 10、每个凸包 64 个顶点、内部泛洪填充、收缩包裹开启、异步执行<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup> |
| 凹度度量 | 体素子集与其凸包之间的体积差<sup>[2](https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-vhacd/-/wikis/Study-of-the-V-HACD-algorithm/Algorithm-description/diff?version_id=91418f1a4053c3145548fafe8196ea1f9fd3f8ca&view=inline&w=0)</sup> |
| 典型用途 | 物理仿真的碰撞几何体；在 Isaac Sim 中作为“凸分解”近似方式暴露，并内置于 Blender、Unreal Engine 4、Unity、Gazebo 和 MATLAB 工具箱中<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup><sup> • </sup><sup>[5](https://docs.isaacsim.omniverse.nvidia.com/5.1.0/py/source/extensions/isaacsim.core.api/docs/index.html)</sup><sup> • </sup><sup>[6](https://www.mathworks.com/help/pdf_doc/robotics/rn.pdf)</sup> |
| 已知局限 | 倾向于将凹形几何体过度分割成许多小凸包，并可能封闭细小的孔洞和隧道<sup>[7](https://rigyd.com/compare/v-hacd-vs-coacd-vs-manual-hulls/)</sup><sup> • </sup><sup>[8](https://jimmylands.com/projects/NavigationDrivenApproximateConvexDecomposition.pdf)</sup> |

## 历史

该库自身的源码记录了三个世代。最初的版本名为 ACD，由 John W. Ratcliff 编写；它不对源网格执行构造实体几何（CSG）操作，因此深度递归可能产生中空的结果。随后 Khaled Mamou 编写了 HACD，加入了 CSG 操作以获得更稳健的输出，但他所使用的 CSG 库存在许可问题。再下一个版本被命名为 V-HACD，因为 Mamou 观察到，在体素空间中实现平面分割，比直接在网格上实现要容易得多。<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup>

2020 年 8 月发布的第 4 版是一次完全重写。所有 OpenCL、Bullet 和 SIMD 代码被移除，代码被重构为单个头文件，凸包生成被替换为 Julio Jerez——Newton 物理引擎的作者——的新实现，据称更快且数值更稳定。新版本还能检测输入网格是否已经是凸形并提前退出。2020 年 10 月随后发布了 4.1 版，对默认值、命令行解析器和导出选项做了小幅修复，包括彩色 OBJ 输出和 USDA 导出，以便在 Omniverse 等工具中查看凸包。<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup><sup> • </sup><sup>[4](https://github.com/kmammou/v-hacd/releases)</sup>

## 算法工作原理

**体素化与分割。** 输入三角网格首先被体素化（或四面体化）；`resolution` 参数设定网格中的体素数。算法随后用平面递归分割体素子集。对每个候选子集，它计算凹度分数，即子集体积与子集凸包体积之差；当某块的凹度低于阈值时，即被接受为凸形，其凸包成为一个输出部件。<sup>[2](https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-vhacd/-/wikis/Study-of-the-V-HACD-algorithm/Algorithm-description/diff?version_id=91418f1a4053c3145548fafe8196ea1f9fd3f8ca&view=inline&w=0)</sup>

**参数。** 第 4 版头文件暴露的主要控制项及默认值如下：`m_maxConvexHulls` 为 64，`m_resolution` 为 400,000 体素，`m_maxRecursionDepth` 为 10，`m_maxNumVerticesPerCH` 为 64，`m_minimumVolumePercentErrorAllowed` 为 1%，`m_shrinkWrap` 为 true（将凸包顶点投影到源网格上），`m_fillMode` 为泛洪填充（体素化网格内部的填充方式），`m_asyncACD` 为 true 以启用多线程执行。<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup> 一项在测试模型上的参数研究发现，改变 `convexHullDownsampling`、`planeDownsampling`、`alpha`、`beta` 和 `maxConvexHulls` 对部件数量的影响很小，而 `concavity` 参数则有明显效果：在一个分辨率为 10<sup>6</sup> 的模型上，凹度 0 产生 51 个部件，0.003 产生 36 个，0.005 产生 27 个。将分辨率从 10<sup>5</sup> 提高到 10<sup>7</sup> 会增加每个模型的部件数，例如一个圆环从 4 个增加到 11 个。<sup>[9](https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-vhacd/-/wikis/Study-of-the-V-HACD-algorithm/Single-Parameter-Tests/diff?version_id=489a4b3d3c2cba16a14ba3a2c3982478de768c45)</sup> 研究用户为了分解质量已将分辨率推至该库的最大值 10,000,000 体素，并在不同细节层级搭配从 0.2 到 0.01 的凸度阈值。<sup>[10](https://frankxue.com/pdf/wu25morphcut_supp.pdf)</sup>

## 应用场景

根据该库自身的说明，V-HACD 已被集成到 [Unreal Engine 4](https://www.edgepedia.org/zh/unreal-engine-4)、Blender 以及其他多个项目中。<sup>[1](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)</sup> 在 NVIDIA Isaac Sim 中，它作为 `convexDecomposition` 碰撞近似方式出现，添加碰撞体后可在属性面板中选择，`omni.convexdecomposition` 扩展默认启用；文档指出，凸分解和有符号距离场网格比单个凸包能更好地捕捉细节，但会带来仿真性能开销。<sup>[5](https://docs.isaacsim.omniverse.nvidia.com/5.1.0/py/source/extensions/isaacsim.core.api/docs/index.html)</sup> Isaac Gym 通过 `vhacd_enabled` 资产选项暴露该功能，可配置分辨率 200,000 等参数。<sup>[11](https://simulately.wiki/docs/snippets/isaac-gym/convex-decomposition/)</sup> Isaac Lab 的 PhysX 凸分解模式默认使用 500,000 体素、最多 32 个凸包、每个凸包 64 个顶点上限，以及最小凸包厚度 0.001。<sup>[12](https://isaac-sim.github.io/IsaacLab/develop/source/api/lab_physx/isaaclab_physx.sim.schemas.html)</sup> Gazebo 接受 `<mesh optimization="convex_decomposition">`，MuJoCo 的 obj2mjcf 命令行工具使用 V-HACD 库将网格分解为凸包以进行碰撞检查。<sup>[13](https://roscon.ros.org/2024/talks/Optimizing_Gazebo_simulation-_Challenges_in_building_complex_simulation_environments..pdf)</sup><sup> • </sup><sup>[14](https://www.hartu-project.eu/wp-content/uploads/2024/11/HARTU_D2.3_Simulation-infrastructure-for-handling-component-training.pdf)</sup> MATLAB 的 Robotics System Toolbox 加入了使用 V-HACD 的碰撞网格分解，Rust 物理生态则通过 parry2d 和 parry3d 中的 `VHACDParameters` 暴露该功能。<sup>[6](https://www.mathworks.com/help/pdf_doc/robotics/rn.pdf)</sup><sup> • </sup><sup>[15](https://docs.rs/parry2d/latest/parry2d/transformation/vhacd/struct.VHACDParameters.html)</sup>

## 质量与局限

V-HACD 速度快，通常每个资产只需数秒，且在参数固定时具有确定性，这正是它成为许多物理相关工具中默认分解方法的原因。其主要弱点是不具备碰撞感知能力：在默认设置下，它倾向于将凹形几何体过度分割成许多小凸包，而每增加一个凸包，就会增加物理求解器必须计算的接触对。<sup>[7](https://rigyd.com/compare/v-hacd-vs-coacd-vs-manual-hulls/)</sup><sup> • </sup><sup>[21](https://github.com/Unity-Technologies/VHACD)</sup> 在 V-HACD 基准数据集上，碰撞感知的 CoACD 方法（SIGGRAPH 2022）在凹度 0.084 时平均产生 29.6 个组件，而 V-HACD 在凹度 0.067 时产生 60.2 个组件，这意味着 CoACD 在测得凹度略高的情况下使用了更少的部件。<sup>[16](https://www.alphaxiv.org/de/abs/2205.02961)</sup>

细小通道是第二种失效模式。在一项导航驱动的分解研究中，一个带有狭窄隧道的弹珠机模型使用 V-HACD 以 10,000,000 体素和 2000 凸包上限进行分解，输出结果仍然堵塞了隧道；作者得出结论，V-HACD 无法保留该级别的几何细节，而 CoACD 保持了隧道畅通但使其变厚。<sup>[8](https://jimmylands.com/projects/NavigationDrivenApproximateConvexDecomposition.pdf)</sup> 后续工作中有一个相关观察指出，即使手柄上的孔洞很小，V-HACD 也会将其填充。<sup>[17](https://par.nsf.gov/servlets/purl/10347843)</sup>

这些局限促生了一系列以 V-HACD 为基线的后继方法：具有碰撞感知凹度和树搜索的 CoACD、GPU 加速系统如 VisACD 和 CuACD、基于学习的分解，以及在测试集上报告比 V-HACD 更低的 Hausdorff 距离和 Chamfer 距离、且碰撞体数据不到其三分之一的基元拟合方法。<sup>[16](https://www.alphaxiv.org/de/abs/2205.02961)</sup><sup> • </sup><sup>[18](https://arxiv.org/abs/2609.28731)</sup><sup> • </sup><sup>[19](https://arxiv.org/abs/2602.07369)</sup> 包含 61 个模型的 V-HACD 基准数据集仍然是这些比较的标准评估集。<sup>[20](https://github.com/zhaoyang97/Paper-Notes-en/blob/main/docs/CVPR2026/3d_vision/learning_convex_decomposition_via_feature_fields.md)</sup>

## References

1. [VHACD.h, kmammou/v-hacd, GitHub](https://github.com/kmammou/v-hacd/blob/master/include/VHACD.h)
2. [Algorithm description, Study of the V-HACD algorithm, nomad-3d-vhacd wiki, ILL GitLab](https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-vhacd/-/wikis/Study-of-the-V-HACD-algorithm/Algorithm-description/diff?version_id=91418f1a4053c3145548fafe8196ea1f9fd3f8ca&view=inline&w=0)
3. [V-HACD README, kmammou/v-hacd, GitHub](https://github.com/kmammou/v-hacd/blob/master/README.md)
4. [Releases, kmammou/v-hacd, GitHub](https://github.com/kmammou/v-hacd/releases)
5. [Isaac Sim Core API, set_collision_approximation, NVIDIA](https://docs.isaacsim.omniverse.nvidia.com/5.1.0/py/source/extensions/isaacsim.core.api/docs/index.html)
6. [Robotics System Toolbox Release Notes, MathWorks](https://www.mathworks.com/help/pdf_doc/robotics/rn.pdf)
7. [CoACD vs V-HACD vs Manual Hulls, Rigyd](https://rigyd.com/compare/v-hacd-vs-coacd-vs-manual-hulls/)
8. [Navigation-Driven Approximate Convex Decomposition](https://jimmylands.com/projects/NavigationDrivenApproximateConvexDecomposition.pdf)
9. [Single Parameter Tests, Study of the V-HACD algorithm, nomad-3d-vhacd wiki, ILL GitLab](https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-vhacd/-/wikis/Study-of-the-V-HACD-algorithm/Single-Parameter-Tests/diff?version_id=489a4b3d3c2cba16a14ba3a2c3982478de768c45)
10. [MorphCut supplementary appendix (VHACD configuration)](https://frankxue.com/pdf/wu25morphcut_supp.pdf)
11. [Convex Decomposition Mesh in IsaacGym, Simulately](https://simulately.wiki/docs/snippets/isaac-gym/convex-decomposition/)
12. [isaaclab_physx.sim.schemas, Isaac Lab Documentation](https://isaac-sim.github.io/IsaacLab/develop/source/api/lab_physx/isaaclab_physx.sim.schemas.html)
13. [Optimizing Gazebo simulation, ROSCon 2024 talk](https://roscon.ros.org/2024/talks/Optimizing_Gazebo_simulation-_Challenges_in_building_complex_simulation_environments..pdf)
14. [HARTU D2.3: Simulation infrastructure for handling component training](https://www.hartu-project.eu/wp-content/uploads/2024/11/HARTU_D2.3_Simulation-infrastructure-for-handling-component-training.pdf)
15. [VHACDParameters, parry2d documentation](https://docs.rs/parry2d/latest/parry2d/transformation/vhacd/struct.VHACDParameters.html)
16. [Approximate Convex Decomposition for 3D Meshes with Collision-Aware Concavity and Tree Search (CoACD), arXiv:2205.02961](https://www.alphaxiv.org/de/abs/2205.02961)
17. [CoACD paper full text, NSF Public Access Repository](https://par.nsf.gov/servlets/purl/10347843)
18. [CuACD: A Fully GPU-Resident Approximate Convex Decomposition, arXiv:2609.28731](https://arxiv.org/abs/2609.28731)
19. [Convex Primitive Decomposition for Collision Detection, arXiv:2602.07369](https://arxiv.org/abs/2602.07369)
20. [Learning Convex Decomposition via Feature Fields, paper notes](https://github.com/zhaoyang97/Paper-Notes-en/blob/main/docs/CVPR2026/3d_vision/learning_convex_decomposition_via_feature_fields.md)
21. [GitHub - Unity-Technologies/VHACD: The V-HACD library decomposes a 3D surface into a set of "near" convex parts.](https://github.com/Unity-Technologies/VHACD)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Robot software, AI, and methods › Motion planning and collision detection

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/v-hacd

English original: https://www.edgepedia.org/v-hacd
