How can I do undraggable the polygon object (impoly) ? (vertex can be draggable, but the polygon cannot move)
1 回表示 (過去 30 日間)
古いコメントを表示
setVerticesDraggable — Control whether vertices may be dragged
Vertices can be draggable, but the whole polygon doesn't move. Unfortunately the setPositionConstraintFcn function contraints the draggable vertices as well.
2 件のコメント
Philip Caplan
2015 年 4 月 17 日
As you mentioned, clicking and dragging a vertex simply moves that vertex but you can drag the entire polygon by hovering the mouse over the enclosed polygon, clicking and then dragging. Is this what you mean?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!