cut an object

hai guys,

I wanna ask whether openGL has a routine function to cut an object? if doesn’t, do you have any idea to cut an object?

thank you

Take a look at glClipPlane.

thanks casten… I looked at glClipPlane before. But what I really want to know whether we can cut an object with another object? such as what is done in CAD system.

thank you…

OpenGL is for drawing. For complex modeling it is best to use CAD system.

There is also this :
http://www.opencsg.org/
But it only gives results for drawing.

thanks zbuffer.indeed I’m not planning to create a complex modeling with openGL. but the project I did, lead me just to cut partially or fully an object I created before. =D