Hello, sorry the topic does not summarise the question as it is not easy to explain in a simple sentence.
Suppose I have a 3D array holding x y values and a state variable which is either 1 or 0.
Some function updates this array and another function draws it to the screen. A for loop iterates through x,y pairs and draws a point if state variable is 1 and draws a black(bg color) point if it is 0. So an array like this:
Code:
00000000000000100000000
00000000000011100000000
00000000000001111110000
00000000001111111100000
00000001111111001111110
01111111111110000110000
00011111111111111111100
00000011111000011100000
00000001110000001000000
00000000100000000000000
00000000000000000000000
You'd be seeing the 1's on the screen and 0's would be black.
What I want to do with this data is:
I want to see the outlines of the closed shapes in a curved manner. As you can see, the shape I've shown has a weird form with a hole in it. I want to take this data and visualise its outlines smoothly(a parameter like "how smooth?" would be nice).
I just can't think of a way to do it. Any help yielding to the direction of a solution would be greatly appreciated.
Thanks