CL_OutlineTriangulator Class Reference
[clanCore Math]

Polygon Tesselator. More...

#include <outline_triangulator.h>

List of all members.

Public Member Functions

Construction

 CL_OutlineTriangulator ()
 Creates a tessellation object.
virtual ~CL_OutlineTriangulator ()
Operations

void add_vertex (float x, float y, void *data)
 This function specifies a vertex on a polygon.
void next_contour ()
 Mark next contour in polygon path.
void next_polygon ()
 Mark next polygon.
void generate ()
 Converts passed polygons into triangles.

Detailed Description

Polygon Tesselator.

This class uses constrained delauney triangulation to convert polygon outlines into triangles.


Constructor & Destructor Documentation

CL_OutlineTriangulator::CL_OutlineTriangulator (  ) 

Creates a tessellation object.

virtual CL_OutlineTriangulator::~CL_OutlineTriangulator (  )  [virtual]

Member Function Documentation

void CL_OutlineTriangulator::add_vertex ( float  x,
float  y,
void *  data 
)

This function specifies a vertex on a polygon.

void CL_OutlineTriangulator::generate (  ) 

Converts passed polygons into triangles.

void CL_OutlineTriangulator::next_contour (  ) 

Mark next contour in polygon path.

void CL_OutlineTriangulator::next_polygon (  ) 

Mark next polygon.


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