Hi Tom,
I hope your machine parts will look nice after painting !
Today i did my first autonest experiment.
After a long time thinking how to start this. I had an idea.
What you see on the picture are in fact tiny dot's or points, to visualise the output for this moment.
Behind the scene i started with an 2 dimensional array.
for x, the array is 3000 places / mm points.
for y, the array is 1500 places / mm points.
like : int mm_points[3000][1500];
The idea is, every mm xy position (like pixel position) has a point with a identity. for example : empty space id, object id number, etc.
During auto nesting we can scan each x- and y row of the table for free space.. and where to start the next object.
Scanning example :
Also we can calculate how much space is left in x and y direction though the scanning of free mm point's that are beside each other.
Wich can result in a reqtangular or circular space that can be used for placing a dxf object later on in the process.
This is my first example.. Not bad.. It has not really a good logic at this moment. Just started up. But i think this way of programming can result in nice output's in the future.
First autonest attempt :