Filter löschen
Filter löschen

How can I do undraggable the polygon object (impoly) ? (vertex can be draggable, but the polygon cannot move)

1 Ansicht (letzte 30 Tage)
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 Kommentare
Philip Caplan
Philip Caplan am 17 Apr. 2015
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 am 22 Apr. 2015
Ok. But I want to fix the polygon. The vertex can be draggable and freely moving. The setPositionContraintFcn limits the moving of vertex.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Elementary Polygons finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by