miso
miso

Reputation: 135

Measuring volume of a 3D model in a DirectX 11.2 app with C++11

I have the next problem. I have loaded a bunch of vertices and indices from an .OBJ file (from Blender) and i need to find a way to calculate the volume of the loaded 3D model. The problem is, i can't find information about measurements anywhere on the internet. So, if anyone could point me in the right direction, i would be very greatful. If there is a tutorial or something similar, please share it with me. I am working with C++11 in a DirectX 11.2 environment, with a 2013 november edition compiler. Any help would be much appreciated.

Upvotes: 1

Views: 292

Answers (1)

galinette
galinette

Reputation: 9292

There are no built-in functions for this in DirectX.

You have to implement it using the vertex/triangle coordinates. This was answered here: How to calculate the volume of a 3D mesh object the surface of which is made up triangles

Upvotes: 2

Related Questions