# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CPolygon Class Reference

A polygon, with an unlimited size of vertices. More...

#include <polygon.h>

Collaboration diagram for NLMISC::CPolygon:

Collaboration graph
[legend]
List of all members.

Public Methods

 CPolygon ()
 Constructor. More...

 CPolygon (const CVector &a, const CVector &b, const CVector &c)
 Constructor. Init with a triangle. More...

sint getNumVertices () const
void clip (const CPlane *planes, uint nPlanes)
 Clip a polygon with a set of planes. Cohen-sutherland... clipPolygonBack() is used on planes. More...

void clip (const std::vector<CPlane> &planes)
 Clip a polygon with a set of planes. Cohen-sutherland clipping... clipPolygonBack() is used on planes. More...


Public Attributes

std::vector<CVectorVertices

Detailed Description

A polygon, with an unlimited size of vertices.

Author(s):
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 49 of file polygon.h.


Constructor & Destructor Documentation

NLMISC::CPolygon::CPolygon ( ) [inline]
 

Constructor.

Definition at line 58 of file polygon.h.

NLMISC::CPolygon::CPolygon ( const CVector & a,
const CVector & b,
const CVector & c )
 

Constructor. Init with a triangle.

Definition at line 37 of file polygon.cpp.


Member Function Documentation

void NLMISC::CPolygon::clip ( const std::vector< CPlane >& planes )
 

Clip a polygon with a set of planes. Cohen-sutherland clipping... clipPolygonBack() is used on planes.

Definition at line 79 of file polygon.cpp.

void NLMISC::CPolygon::clip ( const CPlane * planes,
uint nPlanes )
 

Clip a polygon with a set of planes. Cohen-sutherland... clipPolygonBack() is used on planes.

Definition at line 46 of file polygon.cpp.

sint NLMISC::CPolygon::getNumVertices ( ) const [inline]
 

Definition at line 62 of file polygon.h.


Member Data Documentation

std::vector< CVector > NLMISC::CPolygon::Vertices
 

Definition at line 52 of file polygon.h.


The documentation for this class was generated from the following files: