clan::OutlineTriangulator Class Reference - ClanLib SDK
Description: clan::OutlineTriangulator Class Reference

Public Member Functions | List of all members
clan::OutlineTriangulator Class Reference
clanCore Math

Polygon Tesselator. More...

`#include <outline_triangulator.h>`

## Public Member Functions
| OutlineTriangulator ()
| Creates a tessellation object.
virtual | ~OutlineTriangulator ()
void | add_vertex (float x, float y, void *data)
| This function specifies a vertex on a polygon.
void | generate ()
| Converts passed polygons into triangles.
void | next_contour ()
| Mark next contour in polygon path.
void | next_polygon ()
| Mark next polygon.

## Detailed Description

Polygon Tesselator.

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

## Constructor & Destructor Documentation

## ◆ OutlineTriangulator()

clan::OutlineTriangulator::OutlineTriangulator | ( |  | ) |

Creates a tessellation object.

## ◆ ~OutlineTriangulator()

virtual clan::OutlineTriangulator::~OutlineTriangulator | ( |  | ) |
| virtual

## Member Function Documentation

## ◆ add_vertex()

void clan::OutlineTriangulator::add_vertex | ( | float | x,
|  | float | y,
|  | void * | data )

This function specifies a vertex on a polygon.

## ◆ generate()

void clan::OutlineTriangulator::generate | ( |  | ) |

Converts passed polygons into triangles.

## ◆ next_contour()

void clan::OutlineTriangulator::next_contour | ( |  | ) |

Mark next contour in polygon path.

## ◆ next_polygon()

void clan::OutlineTriangulator::next_polygon | ( |  | ) |

Mark next polygon.

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

- outline_triangulator.h