How to calculate volume of Triangulation

17 visualizzazioni (ultimi 30 giorni)
Thomas Carron
Thomas Carron il 27 Nov 2023
Risposto: Nivedita il 8 Dic 2023
Hello everyone, I would like to calculate the volume contained in a triangulation that I formed myself, (important for precision, I cannot use alphashape, boundary or convhull) which works with like triangulation function of MATLAB. So I have a matrix of points and a matrix with the list of points which forms triangles.

Risposte (1)

Nivedita
Nivedita il 8 Dic 2023
Hello Thomas,
I understand that you want to calculate the volume contained in a triangulation.
You could try using the function "triangulationVolume" present in the File Exchange: https://in.mathworks.com/matlabcentral/fileexchange/15221-triangulationvolume?requestedDomain=
The function computes the VOLUME and AREA of a closed surface defined by the triangulation in indices "TRI" and coordinates "X", "Y" and "Z", using the divergence theorem of Gauss (volume/surface integral). The unit of the volume equals to UNIT^3 and the unit of the area equals to UNIT^2, with UNIT the unit of the coordinates X,Y,Z. The surface needs to be closed, this is not checked.
I hope it helps!
Regards,
Nivedita.

Prodotti


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by