Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
A_Polygon Class Reference

Public Member Functions

 A_Polygon (MeshRemapper::Coords *face)
 
 A_Polygon ()
 
A_Polygon Clip (const double clip_line[3])
 
void AddVertex (Vertex v)
 
std::vector
< MeshRemapper::ArrayCoords
ConvertToQuads ()
 

Private Member Functions

bool Inside (const unsigned int vertex, const double clip_line[3]) const
 
Vertex Intersect (const unsigned int v1, const unsigned int v2, const double clip_line[3]) const
 

Private Attributes

std::vector< Vertexverts
 

Detailed Description

Definition at line 115 of file MeshRemapper.cpp.

Constructor & Destructor Documentation

A_Polygon::A_Polygon ( MeshRemapper::Coords face)
explicit
A_Polygon::A_Polygon ( )
inline

Definition at line 120 of file MeshRemapper.cpp.

Member Function Documentation

void A_Polygon::AddVertex ( Vertex  v)
inline

Definition at line 157 of file MeshRemapper.cpp.

References verts.

Referenced by Clip().

A_Polygon A_Polygon::Clip ( const double  clip_line[3])

Definition at line 208 of file MeshRemapper.cpp.

References AddVertex(), Inside(), Intersect(), and verts.

Referenced by MeshRemapper::ClipFace().

std::vector< MeshRemapper::ArrayCoords > A_Polygon::ConvertToQuads ( )
bool A_Polygon::Inside ( const unsigned int  vertex,
const double  clip_line[3] 
) const
inlineprivate

Definition at line 162 of file MeshRemapper.cpp.

References verts.

Referenced by Clip().

Vertex A_Polygon::Intersect ( const unsigned int  v1,
const unsigned int  v2,
const double  clip_line[3] 
) const
private

Definition at line 167 of file MeshRemapper.cpp.

References Vertex::tex_c, Vertex::vertex_c, and verts.

Referenced by Clip().

Member Data Documentation

std::vector<Vertex> A_Polygon::verts
private

Definition at line 131 of file MeshRemapper.cpp.

Referenced by A_Polygon(), AddVertex(), Clip(), ConvertToQuads(), Inside(), and Intersect().


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