After this, how do incorporate "if the edge length of 2 polygons = a, then join them at that edge. If suppose if each polygon drawn has one of their edge lengths = a, it doesn't matter which polygon joins with which. The choice can be random."...
Also, it is to be noted that that this code doesn't define the polygons with respect to their edge length.
I am working on a research project, and being an infant in the world of processing usage, I have some starting trouble.
For my project, I need to fill a rectangular space with a cluster of standard sized geometric shapes, be it another rectangle, a square, trapezium or any other polygon. I understand that there are many ways of accomplishing this, but I want to do this using Genetic Algorithm. I have understood the concept of GA, but I am unable to relate it to this particular problem.
Could someone please guide me with how I should start going about this code?