Dear everybody,

I'm doing the NC machining simulator (VC++ and OpenGL), and I successfully import model format .STL and .OBJ, and offset a solid object by a specified distance equal to the radius of cutter.

The problem I got that how to execute the intersection between cutter and stock. I downloaded OpengCSG in http://opencsg.org but I don't know how to use it.

I heard a Z map method for intersection. The cutting stock is represented as a Z-vector map (vectors point upward). Cutting of the stock takes place by intersecting the cutter swept surface with the stock.

But I don't know how to convert the stock to Z map and what kind of stock I have to render correctly for this

Is there anyone here has experienced thi NC machining simulator? Please help me, this is my thesis