フィルターのクリア

How can I interactively move the line in 3d

4 ビュー (過去 30 日間)
Tomislav
Tomislav 2012 年 10 月 20 日
回答済み: Prashanth Prakash 2024 年 1 月 18 日
So I would like to plot a line with 2 taken points in 3d space. Then it would be cool if I could take one end point of the line and drag it elswhere in 3d space, so the line gets the new direction, orientation, and(or) size.
Thank you for your time.
  1 件のコメント
Matt J
Matt J 2012 年 11 月 7 日
In retrospect, I don't really see how this would be possible. You can only move your mouse 2 dimensionally, so how would you be able to translate this into 3 degrees of freedom spatial positions?

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

回答 (2 件)

Matt J
Matt J 2012 年 10 月 20 日
  1 件のコメント
Tomislav
Tomislav 2012 年 10 月 24 日
Thank you for your effort. Function is amazing but for 2d manipulation of objects. If I could only find the way to modify it for 3d...
Thanks anyway. :)

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


Prashanth Prakash
Prashanth Prakash 2024 年 1 月 18 日
I realize this is a really old thread but I spent an embarassing amount of time trying to figure out how to do this, thought I would share it in case someone else stumbles on this problem -
I was able to modify draggable to work for 3d objects as well. I have only tested it out with no constraints, i.e. draggalbe_3d(obj,'n'), it seems to work as expected. Code attached.

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by