gazebosim / gz-common

An audio-visual library supports processing audio and video files, a graphics library can load a variety 3D mesh file formats into a generic in-memory representation, and the core library of Gazebo Common contains functionality that spans Base64 encoding/decoding to thread pools.
https://gazebosim.org
Apache License 2.0
15 stars 39 forks source link

Adds new function in MeshManager for performing convex decomposition #585

Closed iche033 closed 8 months ago

iche033 commented 8 months ago

🎉 New feature

replaces #583

Summary

Adds function for doing convex decomposition using the header only library V-HACD.

The new function take a submesh and returns a vector of decomposed submeshes. Currently a couple of parameters are exposed:

These default values for these parameters are lower than the default values provided in V-HACD for a faster convex decomposition process as the process with original values could take quite some time for complex meshes.

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 84.48276% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 80.47%. Comparing base (e390fff) to head (d92687c).

Files Patch % Lines
graphics/src/MeshManager.cc 84.48% 9 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #585 +/- ## ========================================== - Coverage 83.66% 80.47% -3.19% ========================================== Files 79 80 +1 Lines 10264 13542 +3278 ========================================== + Hits 8587 10898 +2311 - Misses 1677 2644 +967 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.