How to find and plot overlap volume of spheres in matlab?

5 ビュー (過去 30 日間)
Ankit Chauhan
Ankit Chauhan 2023 年 1 月 10 日
回答済み: Sarthak 2023 年 2 月 21 日
Hello Everyone, I have a Aniline atoms and epoxy atoms packed in a box. I know ID , type, X, Y, Z coordinates as attached Aniline and Epoxy_data. For each point of atoms (X, Y, Z coordinate), i want to create a sphere with radius of 1, 3, and 5 mm. Then interested to calculate the intersection volume of spheres within epoxy atoms (cyan), within aniline atoms (red) and intersection volume of spheres between aniline and epoxy atoms.
How can I do this in matlab?
Thanks

回答 (1 件)

Sarthak
Sarthak 2023 年 2 月 21 日
Hi Ankit,
A possible work-around is to use the volume_intersect_sphere_analytical function available on file exchange. It provides the intersection between any two spheres in the form of a matrix. However, you may have to check the indexes with the corresponding type of spheres.

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by