Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPlaneClip Class Reference

A special version of csPlane3 which can clip polygons. More...

#include <planeclp.h>

Inheritance diagram for csPlaneClip:

csPlane3 List of all members.

Public Methods

 csPlaneClip (const csVector3 &plane_norm, float d=0)
 Initialize the plane.

 csPlaneClip (const csPlane3 &plane)
 Initialize the plane.

 csPlaneClip (float d=0)
 Initialize the plane.

 csPlaneClip (float a, float b, float c, float d=0)
 Initialize the plane.

bool ClipPolygon (csVector3 *&pverts, int &num_verts)
 Clip the polygon in pverts (having num_verts vertices) to this plane. More...


Protected Methods

 CS_DECLARE_GROWING_ARRAY (verts, csVector3)
 CS_DECLARE_GROWING_ARRAY (vis, bool)
void init (int len)

Detailed Description

A special version of csPlane3 which can clip polygons.


Member Function Documentation

bool csPlaneClip::ClipPolygon ( csVector3 *& pverts,
int & num_verts ) [inline]
 

Clip the polygon in pverts (having num_verts vertices) to this plane.

The vertices are expected in camera space. Method returns true if there is something visible, false otherwise.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000