Interactive GUI Patch/Tessellation

조회 수: 1 (최근 30일)
Luca Amerio
Luca Amerio 2018년 1월 4일
편집: Luca Amerio 2018년 1월 4일
Hi everybody
I'm trying to design a GUI where the user is able to draw a series of connected patches (a tessellation) over a background image and then assign a value to each of them.
I'm trying to figure out which is the best way to achieve this.
I found the impoly function that is very close to what I need for the first patch. However, when I draw the second polygon I would like to be able to "attach" it to the previous one without having to repeat the shared edges. Moreover I would like to be able to "snap" to the existing vertices in order to avoid nasty holes in the tessellation.
I was thinking to a couple of solutions:
  • modify the impoly function to introduce this behavior, but this isn't very easy.
  • define some objects that exploit the impoly function when edited and then "freeze" in a patch object.
Do you have suggestions/ideas?
Thank you very much regards Luca

답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by