This shows the first pocketing-path I was able to produce:
http://www.youtube.com/watch?feature=player_embedded&v=X2IO1i0EQ3M
similar to V-carving, there are issues with edges between parallel or
nearly parallel line-segments that have to be solved before this will
work on a pocket of arbitrary shape.
The code is in my "ma-pocket" branch and is quite messy at the moment.
The c++ class that does this is only around 400 lines and fairly
straightforward, but then there's a lot of hackish stuff in the
700-line python script I use to produce the actual toolpath...
This strategy should work for closed or "internal" pockets where we
want to clear an area (possibly with islands) that is bounded by
un-machined stock on all sides.
A slightly different approach can be used if we have say a square
piece of stock and want to clear everything but an island in the
middle. I'll try to do a demo of that next week maybe.
Anders