clan::EarClipResult Class Reference

Ear clipping triangulation result structure. More...

#include <ear_clip_result.h>

Public Member Functions

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

Detailed Description

Ear clipping triangulation result structure.

Constructor & Destructor Documentation

clan::EarClipResult::EarClipResult ( int  num_triangles)

Constructs an ear clipping result structure.

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

Member Function Documentation

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.

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: