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
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.
snow John
snow John 2019-10-31
Not exactly,sir!
I have know how to start.Thanks !

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2019-10-31
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 个)

类别

Help CenterFile Exchange 中查找有关 Object Containers 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by