How to draw a cube with poses?
2 ビュー (過去 30 日間)
古いコメントを表示
Does anyone know how to use MATLAB function to draw a cube with poses?
4 件のコメント
Steven Lord
2019 年 10 月 31 日
So you want to do something like reproducing the first picture, four different colored six-sided dice, on this Wikipedia page? Each die is in a different location and oriented slightly differently on the (presumably flat) surface on which they were rolled or arranged.
採用された回答
Walter Roberson
2019 年 10 月 31 日
https://www.mathworks.com/help/fusion/examples/rotations-orientation-and-quaternions.html can help draw 2D and 3D rotation vectors.
Other than that, you can either just calculate new positions based upon rotation matrices.
Alternately, you can use a hgtransform group, and draw a cube and set its parent to the hgtransform group. Then adjust its Matrix property of the hgtransform in order to rotate or translate or scale the cube; makehgtform can help with that.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Object Containers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!