PDA

View Full Version : How to create a cross-section of a model?



Yarmy
08-22-2008, 03:25 PM
Hi folks,

Does this involve a clipping plane?
If so, is there an example somewhere?

Thanks.

www_iptry_cn
08-22-2008, 10:50 PM
glClipPlane
The glClipPlane function specifies a plane against which all geometry is clipped.

void glClipPlane(
GLenum plane,
const GLdouble *equation
);
Parameters
plane
The clipping plane that is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES 1, are accepted.
equation
The address of an array of four double-precision floating-point values. These values are interpreted as a plane equation.