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.
Ertai source
share