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

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

Ear clipping triangulation result structure. More...

`#include <ear_clip_result.h>`

## Public Member Functions
| EarClipResult (int num_triangles)
| Constructs an ear clipping result structure.
virtual | ~EarClipResult ()
EarClipTriangulator_Triangle & | get_triangle (int index)
| return a reference to a triangle in the triangulation.
std::vector< EarClipTriangulator_Triangle > & | get_triangles ()
| Returns the triangles for this result.

## Detailed Description

Ear clipping triangulation result structure.

## Constructor & Destructor Documentation

## ◆ EarClipResult()

clan::EarClipResult::EarClipResult | ( | int | num_triangles | ) |

Constructs an ear clipping result structure.

## ◆ ~EarClipResult()

virtual clan::EarClipResult::~EarClipResult | ( |  | ) |
| virtual

## Member Function Documentation

## ◆ get_triangle()

EarClipTriangulator_Triangle & clan::EarClipResult::get_triangle | ( | int | index | ) |

return a reference to a triangle in the triangulation.

Memory is preallocated for all triangles at creation. Use the returned reference to modify the triangles.

## ◆ get_triangles()

std::vector< EarClipTriangulator_Triangle > & clan::EarClipResult::get_triangles | ( |  | ) |

Returns the triangles for this result.

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

- ear_clip_result.h