How can I present a 3D particle with cube mesh?
조회 수: 5 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (2개)
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
alejandro perez
2020년 2월 2일
In the description of this video is the code of a cube which rotates, moves and grows up.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!