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
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?
Laszlo Sass
Laszlo Sass 2015-4-22
Ok. But I want to fix the polygon. The vertex can be draggable and freely moving. The setPositionContraintFcn limits the moving of vertex.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Elementary Polygons 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by