PDA

View Full Version : Hole in the cube



05-06-2001, 09:38 PM
I need to draw the circle hole in (any) cube. The hole can pass thru the cube or the depth of the hole can be smaller than the height of the cube. Ho can i do that as much as easy (I need to draw more holes in any cube)? Thanx.

Boresight
05-07-2001, 10:21 AM
You can use very complex geometric boolean operation or more simple buffer boolean operation with a Stencil Buffer.
http://www.sgi.com/software/opengl/advanced97/programs/programs.html

See: Demonstration of performing arbitrary CSG operations.