简体   繁体   中英

3D Convex Hull's Volume

I have the points of a 3D convex hull, I want to find out the volume of the convex hull. Anyone knows any methods to do so? It would be really nice to inform me about any C++ library that can do that for me.

For the volume, simply see wikipedia , under "Orientable polyhedra". You want the formula with volume = 1/3 * sum...

If your input is just a set of points, you will need the faces of the convex hull to apply the formula bellow. This is implemented in CGAL or qhull. Once, the convex hull is computed, you just have to enumerate all facets (this is easy in CGAL) and add their volume.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM