Volume Enclosed by a Triangulated Surface
August 11, 2009 by Luigi Giaccari 
Filed under: CAD, Computational Geometry, Geometry
Leave a Comment
Filed under: CAD, Computational Geometry, Geometry
Leave a Comment
Gets the Volume enclosed by the surface defined by p,t,tnorm. The surface must be closed and manifold, there is no check for this.
The algorithm compute the volume of 3 tetraedrons for each triangle. The normals orientation define the sign of volume, it is just a numerical integration.
Input:
- p: nx3 array containing 3D set of points
- t: triangles ids referring to p array. First point flagged as one.
- tnorm: outwards triangles normals orientation
Output:
- V: the Volume enclosed by the surface
For bugs,infos: giaccariluigi@msn.com
Download Now
Popularity: 32% [?]
Related Posts
Comments
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
Include MATLAB code in your comment by doing the following:
<pre lang="MATLAB">
%insert code here
</pre>


















































