Lua DXF
I got the Lua DXF reader working and in the process learned a little more about how to interact with Lua on a deeper level. It’s a really nice language and the community that supports is seems to be very helpful.
The pocket algorithm has progressed quite a bit and the ability to input DXF files has allowed me to find several trivial to fix but nonetheless important bugs. The results are shown below:

The image shows several significant items:
- Islands can go outside of the pocket bounds with no problems
- Islands can overlap with no problems
- When concave pockets overlap new islands are automatically created. In the image above the F and the intersecting pocket are unique areas. When they are combined a new island, the small red triangle, is automatically created.
The downside here is that the speed is less than impressive on outlines with high vertex counts. The example above has about 825 points in the main outline and takes about a minute to run. I ran a profiler and found the offending code but it’s not something I can fix without changing the core algorithm. I’ll have to put some more thought into it and try again in a few days.

