Jigsaw puzzle, image cutting

I am trying to make an application that cuts an image into puzzles. My problem is that I do not know how to do this (any algorithm). I want to have male and female puzzle ends, but not in the same place all the time (for example, in the middle of the puzzle frame), so: https://stackoverflow.com/questions/2755389/how-to-create-jigsaw The -image-puzzle-using-c solution doesn't suit me.

Is there any kind of smart algorithm for this to happen. I was thinking about using Bezier curves, but I don't know how to do it right.

+3
source share
3 answers

. (, ), ( "" ( ) .

: , , .


+3
+2

Randomization is your savior! Will there be a randomization of the curve position?

0
source

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


All Articles