Filter löschen
Filter löschen

interactive drawpolygon for triangle, similar to drawrectangle and drawcircle

8 Ansichten (letzte 30 Tage)
i want to code an interactive triangle,
i have saw a code for rectangles and circles, drawrectangle and drawcircle respectively
can i do the same for triangles?
if not, how do i make sure that the shape of the triangle is constant but allow enlargement and translation of the triangle?

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 18 Nov. 2020
  2 Kommentare
Adrian Lee
Adrian Lee am 18 Nov. 2020
i have used it
however it does not allow for the triangle to have constant shape while allow for expansion
i used a listener function to maintain shape
i was wondering if there is a way to do it without the listener function
just as drawrectangle has a method to do it
roi = drawrectangle('FixedAspecRatio', 'True');
By default drawrectangle fixed aspect ratio is true
Ameer Hamza
Ameer Hamza am 18 Nov. 2020
Creating a listener seems to be the only solution for polygons.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Triangulation Representation finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by