How to write a program for drawing a tiled image?

I want to write a program to draw a picture that covers a plane with tiled irregular quadrangles, exactly the same:

enter image description here

However, I do not know the corresponding algorithms, for example, in which order should I draw the edges?

Can someone point me in a direction?

+4
source share
1 answer

Apologies, in my previous answer, I misunderstood the question.

Here is one hit on the algorithm (not necessarily the most optimal way, but the way). All you need is the ability to render the polygon and the main rotation.

enter image description here

, , ( , , , ).

Edit

" ". , , .

, , :

enter image description here

, , . , . , - , - , , , . , 2- 4- ( - , ). , , 4- 360 .

+2

Source: https://habr.com/ru/post/1616024/


All Articles