Slicing the 3D shape to a number of slices

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

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.