Search code examples
c++3dpoint-clouds

2019 - point cloud volume estimation with c++


i have a point cloud (an array of vertexes- x,y,z), we can show the point cloud using - with three.js / webgl.

we would use this device:
https://www.sparkfun.com/products/14032
https://www.youtube.com/watch?v=gCpCGkwwy8I

so what we need to do we can do except the point cloud volume estimation.

do you have any pointers how to do this, hopefully, with examples? (i would start from a point cloud and go to the volume estimation)

i am not good in maths, so please, i can use API-s, but not raw/complex maths calculating.


Solution

  • In order to compute the volume of a point cloud, you need a 3D mesh representation of the point cloud.

    Since you added c++ to the question's tag, have you considered using PCL?

    PCL offers algorithms for surface reconstruction like here.

    After you have the 3D mesh of the point cloud, you can compute the volume of the mesh like this: How to calculate the volume of a 3D mesh object the surface of which is made up triangles

    Hope this helps you a bit!