Hi
I am going to create a solid cube in 3D in MATLAB that by rotating of one length of cube in the desired angle, other lengths rotate automaicly without deformation of the cube. I would appreciate your help in advance .
Thanks,

 Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Abr. de 2023
Editada: Walter Roberson el 12 de Abr. de 2023

0 votos

Create an hgtransform parented to the axes. Create a patch() object parented to the hgtransform . Set the Matrix property of the hgtransform to rotate it; it helps to use makehgtform
Or... work with the various camera operations. https://www.mathworks.com/help/matlab/views.html
Or... use rotate3d

Más respuestas (0)

Categorías

Más información sobre Object Containers en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

N/A
el 11 de Abr. de 2023

Editada:

el 12 de Abr. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by