Clear Filters
Clear Filters

3D Solid Cube

6 views (last 30 days)
shahin sharafi
shahin sharafi on 11 Apr 2023
Edited: Walter Roberson on 12 Apr 2023
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,

Accepted Answer

Walter Roberson
Walter Roberson on 11 Apr 2023
Edited: Walter Roberson on 12 Apr 2023
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

More Answers (0)

Categories

Find more on Object Containers in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!