How to create bounding geometry of gltf model?

I want to create a bounding geometry like a collision for my gltf model. Example this sink, I want to border all mesh like this
image
it must be filled all holes, the current geometry does not fill it

image

Please help me to resolve this. Thank you

Maybe it calls “ConvexHull”: https://sbcode.net/threejs/convexgeometry/
three.js docs

1 Like

thank you, but it seems not to border the model

this is my model after apply convex, not same as my expectation
image

Convex hulls are often used for accelerated physics or raycasting, as they can be more efficient than using the original mesh. Convex means that, like shrinkwrap, they stretch over concave areas of the source mesh.

If you’re trying to create a tighter outline around the mesh, a common method is to create a copy of the mesh, invert it (material.side = THREE.BackSide), and scale it up very slightly: