Pocketing Update

I’m just finishing up another week in Hong Kong and China so MeshCAM development has been a bit slow.  The pocketing code is still underway but I needed to come up with a better way to input the outlines to test.  DXF files are an obvious choice since I can generate them with any CAD program.  I had written a 2D DXF reader in Python some time ago but since MeshCAM now includes Lua for scripting I thought it would be good to port it to Lua and continue testing with that.  This has several benefits: Learn more...

read more

Fixed Islands

  The fix for the bad islands below turned out to be pretty straightforward after staring at the code for a few hours.  I have two large outstanding items to do now.  First, take an unordered set of outline and island curves and order them into something that can be calculated.  An example is below:   If you take each of the concentric rings and extract the edge curves then you’ll get a set of alternating outline and island curves.  One of the few citical things for the boolean approach that I’ve...

read more

More Pocketing

I got the island code working pretty well.  It took a while since I went back to clean up some of the hacked-together test code that I wrote earlier.  Islands only took a couple dozen lines of code but they aren’t totally worked out yet. The shot above shows one of the outstanding problems where a pocket, in purple, and an island, in red, nearly coincide.  This case causes some problems currently but I don’t expect much trouble resolving...

read more