How to execute intersection between two models

Dear everybody,

I’m doing the NC machining simulator, and I successfully 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 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 :((

This is an OpenGL forum. Despite having similar names, OpenGL has nothing to do with OpenCSG. You should try an OpenCSG forum/mailing list.