How to rotate an object with mouse

4 ビュー (過去 30 日間)
Qingkai Wei
Qingkai Wei 2011 年 8 月 3 日
I want to realize the function that rotate an object in a figure with mouse.(not rotate the viewpoint rotate3d does) I can find some guys use sliders realize it, how to program with mouse?

採用された回答

Jan
Jan 2011 年 8 月 3 日
Look in the source code of rotate3D. You can modify it easily to access any wanted proptery. See also:
I suggest to follow the standard advice to search at Google and in the FEX, if some others have posted solutions already.
  2 件のコメント
Qingkai Wei
Qingkai Wei 2011 年 8 月 4 日
Thanks very much for your advice. But only mrotate seems to realize the rotating objects function but not smoothly. I havenot found proper Files, maybe no one did this?
Thank you all the same!
Jan
Jan 2011 年 8 月 4 日
Although these tools do not exactly, what you want, it should be just a small amount of work to modify them.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractions, Camera Views, and Lighting についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by