View Full Version : Slicing the 3D shape to a number of slices

06-07-2009, 02:11 PM
Hello guys

Let's say that I have 3D model of a car drawn in OpenGL. I want to slice this car into 10 slices. I don't want a full access to the attribute of the slice. What I want is just to make a slice a specific visible and the other slices are invisible.

I am just looking for the best approach to do this.

please let me know if you have further questions

06-07-2009, 03:52 PM
I would use glClipPlane to specify each side of the slice, so that only the parts of the car between the two planes, the contents of the slice, are visible.