Page 1 of 1

Measure surface area or volume of an object

Posted: 27 May 2020, 09:13
by allen0413
Hey guys,

Is there a function or any way to measure the surface area or volume (not size of the bounding box) of an object?
I searched the Object Parameter IDs list but not sure if there's anything can be the solution.
Maybe use a proximity sensor? In that case, how to measure it precisely?

Thanks,
Allen

Re: Measure surface area or volume of an object

Posted: 27 May 2020, 10:31
by fferri
Hi,

it doesn't seem CoppeliaSim currently does any of such calculations.

The CGAL library has several Geometric Measure Functions however.
You can start off the simExtSurfaceReconstruction plugin which already uses CGAL, and create methods for the measures you need. Hint: you can get mesh data with simGetShapeViz.

Re: Measure surface area or volume of an object

Posted: 29 May 2020, 06:30
by coppelia
Maybe using a vision sensor and evaluating the depth map when looked at the object from several sides, you could maybe achieve good results...?

Cheers