Volume of irregular shape

12 ビュー (過去 30 日間)
Meh
Meh 2015 年 8 月 6 日
編集済み: Walter Roberson 2025 年 1 月 22 日
I have for example X,Y,Z coordinates of 8 points which form an irregular shape. How can I calculate the volume with in this shape? Eg. coordinates area:
0 0 384,67
0 26,6 385,25
-47,85 26,6 385,9
-47,85 0 385,3
0 0 387,32
0 26,6 387,32
-47,85 26,6 387,32
-47,85 0 387,32

採用された回答

Torsten
Torsten 2015 年 8 月 6 日
編集済み: Torsten 2015 年 8 月 6 日
  4 件のコメント
Meh
Meh 2015 年 8 月 6 日
Thanx
Gregory Vernon
Gregory Vernon 2015 年 8 月 6 日
編集済み: Walter Roberson 2025 年 1 月 22 日
This answer assumes that your volume is convex. If your volume is concave, this method will return a larger volume. If you know the connectivity, and your volume is orientable, you can use the method outlined here:

サインインしてコメントする。

その他の回答 (2 件)

Steven Lord
Steven Lord 2015 年 8 月 6 日
Construct an alphaShape from your data then call VOLUME (since this is 3-D data) on the alphaShape.

Gara
Gara 2025 年 1 月 22 日
This is a very common question. If you are not very well used to MATLAB, just try simple method. Your object or shape seems convex. So use the below method.
Enter all (8) coordinates in a matrix array
Ex: A=[x,y,z;x1,y1,z1;............];
[k,av]=convhull(A)
You will get answer as av=?
This should give you the volume of your 3-D object.

カテゴリ

Help Center および File ExchangeBounding Regions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by