フィルターのクリア

Writing text on 3D moving object

1 回表示 (過去 30 日間)
Yuval Froman
Yuval Froman 2019 年 8 月 8 日
コメント済み: Yuval Froman 2019 年 8 月 9 日
Hi,
I create a 3D cube that can move (it connect to a microcontroller and simulate his movement).
How can i write a text on the face of the cube? i want of course that the text will "move" with the box.
I also add a picture so you can see what i mean.
Thanks
This is the code of creation of the box:
x=6; y=4; z=2;
xlim([-10,10]); ylim([-10,10]); zlim([-10,10]);
f(1)=patch([-x/2,x/2,x/2,-x/2],[-y/2,-y/2,y/2,y/2],[-z/2,-z/2,-z/2,-z/2],'blue');
f(2)=patch([-x/2,x/2,x/2,-x/2],[-y/2,-y/2,y/2,y/2],[z/2,z/2,z/2,z/2],'red');
f(3)=patch([-x/2,-x/2,x/2,x/2],[-y/2,-y/2,-y/2,-y/2],[-z/2,z/2,z/2,-z/2],'green');
f(4)=patch([x/2,x/2,x/2,x/2],[-y/2,-y/2,y/2,y/2],[-z/2,z/2,z/2,-z/2],'yellow');
f(5)=patch(-[x/2,x/2,x/2,x/2],[y/2,y/2,-y/2,-y/2],[-z/2,z/2,z/2,-z/2],'white');
f(6)=patch([-x/2,-x/2,x/2,x/2],[y/2,y/2,y/2,y/2],[-z/2,z/2,z/2,-z/2],'black');
rotate3d on;
  2 件のコメント
darova
darova 2019 年 8 月 8 日
Maybe it will help
Yuval Froman
Yuval Froman 2019 年 8 月 9 日
Almost, this answer is about adding images.
I want to add just text, i'm sure there is a way add only text without image no?
Thanks!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by