PDA

View Full Version : cut an object



deduu10
04-30-2012, 09:13 AM
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

carsten neumann
04-30-2012, 11:29 AM
Take a look at glClipPlane (http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml).

deduu10
04-30-2012, 11:33 PM
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..

ZbuffeR
05-01-2012, 12:11 AM
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.

deduu10
05-01-2012, 01:02 AM
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