PEXOCCSetModelClipVolume2D - Set Model Clip Volume 2D (5.0)


Synopsis

 
   void PEXOCCSetModelClipVolume2D(
        PEXOCC context,
        int op,
        unsigned int count,
        PEXHalfSpace2D *half_spaces
   )
 

 
   void PEXSetModelClipVolume2D(
        Display *display,
        XID resource_id,
        PEXOCRequestType req_type,
        int op,
        unsigned int count,
        PEXHalfSpace2D *half_spaces
   )
 

Arguments

context
An OC context returned by a successful PEXCreateOCC call.

display (OCC)
A pointer to a display structure returned by a successful XOpenDisplay call.

resource_id (OCC)
The resource identifier of the renderer or structure.

req_type (OCC)
The request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).

op
The model clipping volume operator (PEXModelClipReplace or PEXModelClipIntersection).

count
The number of half-spaces.

half_spaces An array of points and normal vectors defining the model clipping volume.

Returns

None.

Description

Invoke PEXOCCSetModelClipVolume2D to create an attribute output command which sets the model clip volume attribute in the renderer's pipeline state.

This output command is similar to the PEXOCCSetModelClipVolume function except that you specify the half-spaces in 2D coordinates (the z-component of each point and normal vector is always assumed to be zero).

Errors

BadPEXRenderer
The specified renderer resource identifier is invalid.

BadPEXStructure
The specified structure resource identifier is invalid.

See Also

For an overview and for a list of output attribute functions, see Output Attribute Functions.