CL_EarClipResult Class Reference
[clanCore Math]

Ear clipping triangulation result structure. More...

#include <ear_clip_result.h>

List of all members.

Public Member Functions

Construction

 CL_EarClipResult (int num_triangles)
 Constructs an ear clipping result structure.
virtual ~CL_EarClipResult ()
Attributes

std::vector
< CL_EarClipTriangulator_Triangle > & 
get_triangles ()
 Returns the triangles for this result.
CL_EarClipTriangulator_Triangleget_triangle (int index)
 return a reference to a triangle in the triangulation.

Detailed Description

Ear clipping triangulation result structure.


Constructor & Destructor Documentation

CL_EarClipResult::CL_EarClipResult ( int  num_triangles  ) 

Constructs an ear clipping result structure.

virtual CL_EarClipResult::~CL_EarClipResult (  )  [virtual]

Member Function Documentation

CL_EarClipTriangulator_Triangle& CL_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.

std::vector<CL_EarClipTriangulator_Triangle>& CL_EarClipResult::get_triangles (  ) 

Returns the triangles for this result.


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