TESTVHACD(1)

πŸ“¦ version 4.1.0, in epel 10, epel 9, fedora 43, fedora 44

πŸ’– 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 to 32 πŸ’–
  • -r <voxelresolution> β€” the total number of voxels it's allowed to use. Default is 100,000 🧚
  • -e <volumeErrorPercent> β€” how much volume error you're cool with, as a percentage. Default is 1%, and the valid range is 0.001 to 10 πŸ”₯
  • -d <maxRecursionDepth> β€” how deep it's allowed to recurse. Default is 10 πŸ‘‘
  • -s <true/false> β€” whether or not to shrinkwrap the output to the source mesh. Default is true 🌈
  • -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 is 64 πŸ“
  • -a <true/false> β€” whether or not to run asynchronously. Default is β€˜true’ πŸ’œ
  • -l <minEdgeLength> β€” the minimum size of a voxel edge. Default is 2 voxels ✨
  • -p <true/false> β€” if false, it splits hulls right in the middle. If true, it tries to find the optimal split plane location. It's false by 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 to false, 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