01-03-2021 04:47 PM
Hello!
I am trying to find a way to take a polygon as an input from the front panel. There are two parts to the problem, first is to take the 'hand-drawn' image from the user through the front panel and second is to convert it in a polygon. How can i do the first? I can't find any option in the graph/2Dpicture properties.
Thanks!
01-04-2021 12:17 AM
Hi Robin,
@Robin_507 wrote:
I am trying to find a way to take a polygon as an input from the front panel. There are two parts to the problem, first is to take the 'hand-drawn' image from the user through the front panel and second is to convert it in a polygon. How can i do the first? I can't find any option in the graph/2Dpicture properties.
What have you tried so far? Where are you stuck?
When it is about graphs:
When it is about basic frontpanels: use the event structure to handle mouse movement/button events…
In the end you should know the coordinates of interest: what is the your problem to create a polygon from coordinates?
01-04-2021 11:44 AM
Here is an ancient example using an XY graph and cursors. You click in the graph to add a new point and can drag the existing points around.