Takes an Nx3 matrix of vertices representing the extreme points of a surface, calls convexhulln to get a convex hull of these points, and uses the resulting facet list to compute the area of that convex hull. Vectorized for speed.
Malcolm A. MacIver (2021). Area and volume of a 3D convex hull (https://www.mathworks.com/matlabcentral/fileexchange/3321-area-and-volume-of-a-3d-convex-hull), MATLAB Central File Exchange. Retrieved .
just what i was looking for! cheers mate!
Wow... Fantastic... You really do me a favor, Thanks :)
Try these coordinates:
2 equal area squares at right angles to each other:
1 1 1
1 1 4
1 4 1
1 4 4
4 1 1
4 1 4
the single face area should be 18 sq units, or 32 sq units for both sides of the face.
The algorhythm computes the area to be 39.7279 sq units.
I'm trying to verify the result of your algorithm, I think it gives double the area! Can you please look into this. I tried it on the coordinates of simple planar square.
That is working very fine. Thanks. But what about the ploting the convex hull atleast in lower dimension. Can anybody help?
works very well...thanks a lot
Exactly what I needed and it DOES find the volume...it just doesn't output it to the screen.
the convex hull volume is not computed and that was what I needed!
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!