How can I present a 3D particle with cube mesh?

4 ビュー (過去 30 日間)
Masoud Shabani nezhad navrood
Masoud Shabani nezhad navrood 2019 年 4 月 21 日
回答済み: alejandro perez 2020 年 2 月 2 日
Hi,
I want to draw a spherical particle whick is made of small cubes in MALTAB. I can define the coordinate of each cube inside the particle, however, do not know how to show (or define) each mesh as a cube. Thank you in advance for your help.

回答 (2 件)

Walter Roberson
Walter Roberson 2019 年 4 月 21 日
Use patch() with 'Faces' and 'Vertices' . I gave an example for a cuboid at https://www.mathworks.com/matlabcentral/answers/444107-draw-structural-space-frame#comment_695043
  1 件のコメント
Masoud Shabani nezhad navrood
Masoud Shabani nezhad navrood 2019 年 4 月 21 日
Thanks, It helped a lot.

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


alejandro perez
alejandro perez 2020 年 2 月 2 日
In the description of this video is the code of a cube which rotates, moves and grows up.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by