TESTVHACD(1)
π Welcome to the TestVHACD Page π
Okay bestie, this is the page for TestVHACD, which lives in the User Commands section π Let's get into it β¨
β¨ NAME β¨
TestVHACD is the test and utility command-line tool for the V-HACD library π
π SYNOPSIS π
TestVHACD <wavefront.obj> (options)
So you feed it a wavefront .obj file, then toss in whatever options you want π«Ά
π¦ DESCRIPTION π¦
Okay so the V-HACD library takes a 3D surface and chops it up into a bunch of βnearβ convex parts. Main character energy, fr π
πΈ OPTIONS πΈ
-h <n>β the max number of output convex hulls you're allowed to get. Defaults to32π-r <voxelresolution>β the total number of voxels it's allowed to use. Default is100,000π§-e <volumeErrorPercent>β how much volume error you're cool with, as a percentage. Default is1%, and the valid range is0.001to10π₯-d <maxRecursionDepth>β how deep it's allowed to recurse. Default is10π-s <true/false>β whether or not to shrinkwrap the output to the source mesh. Default istrueπ-f <fillMode>β the fill mode. Default isβfloodβ, butβsurfaceβandβraycastβare valid too β-v <maxHullVertCount>β the max number of vertices in each output convex hull. Default is64π-a <true/false>β whether or not to run asynchronously. Default isβtrueβπ-l <minEdgeLength>β the minimum size of a voxel edge. Default is2voxels β¨-p <true/false>β iffalse, it splits hulls right in the middle. Iftrue, it tries to find the optimal split plane location. It'sfalseby default π¦-o <obj/stl/usda>β exports the convex hulls as a series of wavefront OBJ files, STL files, or one single USDA π«Ά-g <true/false>β if set tofalse, no logging gets displayed π
π TUNING PARAMETERS π
The defaults are chill and designed to give a fast, basic approximation of a shape π
If you want the most accurate results possible and don't care if it takes way longer, go hard. Use a small error threshold -e 0.01, a high voxel resolution of ten million -r 10000000, and a relatively high number of convex hulls, say 128 -h 128 π₯
You can also set the maximum decomposition depth way higher than the default of 10. Setting it to say 15 -d 15 lets the algorithm recurse much more deeply into the shape π§
Example:
TestVHACD beshon.obj -e 0.01 -d 15 -r 10000000 -r 128
Usually this is overkill for your use case, ngl. But if you've got, like, machined parts with sharp angles, these settings have a better chance of giving you a good result π
Heads up: setting the maximum decomposition depth to 15 will make the tool run a very long time (possibly multiple minutes), but it will likely give the most precise results. Be patient, bestie π
The default decomposition depth is currently ten, and it goes in powers of two. So the default considers a maximum of 1,024 hulls, but with a depth of 15 it'll consider 32,768 convex hull fragments π
That's the whole page, bestie! π¦ This one's dated February 2023 and it's the TESTVHACD(1) page, so you're all set π«Άπ
π¦ where this page comes from
- epel 10: v-hacd-tools 4.1.0-15.el10_3 Β· BSD-3-Clause AND MIT
- epel 9: v-hacd-tools 4.1.0-1.el9 Β· BSD-3-Clause AND MIT
- fedora 43: v-hacd-tools 4.1.0-14.fc43 Β· BSD-3-Clause AND MIT
- fedora 44: v-hacd-tools 4.1.0-15.fc44 Β· BSD-3-Clause AND MIT
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms