How can I do undraggable the polygon object (impoly) ? (vertex can be draggable, but the polygon cannot move)
조회 수: 4 (최근 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!