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

18 visualizaciones (últimos 30 días)
Masoud Shabani nezhad navrood
Masoud Shabani nezhad navrood el 21 de Abr. de 2019
Respondida: alejandro perez el 2 de Feb. de 2020
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.

Respuestas (2)

Walter Roberson
Walter Roberson el 21 de Abr. de 2019
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
alejandro perez el 2 de Feb. de 2020
In the description of this video is the code of a cube which rotates, moves and grows up.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by