I'm newbie with Unreal Engine 4. I need to create a function which calculates the volume of a mesh, based on the following example:
Now I want to iterate through each of the polygons composing the cone actor, one by one, and use the above function to calculate the total volume of the cone.
However I'm unable to find a way to create a loop which iterate through the Triangles array and extract the 3 vertices of each triangles composing the mesh.
I would be grateful if someone explained to me how to implement a such loop.
Or, if so, how to access correctly to the actor mesh vertex buffer object, and to iterate through each of the polygons composing it.