Delaunator
2D Delaunay Triangulation in C++ with Python wrapper.
 All Classes Namespaces Functions
Public Member Functions | List of all members
Face Class Reference

#include <face.h>

Public Member Functions

 Face (Edge *, bool=true)
 ~Face ()
void computeInternalValues ()
bool collideAt (Coordinates)
bool circumcircleContainCoords (Coordinates) const
bool isVisible () const
EdgegetEdge () const
EdgegetEdge1 () const
EdgegetEdge2 () const
EdgegetEdge3 () const
VertexgetP1 () const
VertexgetP2 () const
VertexgetP3 () const
unsigned int getID () const
Coordinates circumcenter () const
float circumcircleRadius () const
void setEdge (Edge *)
void setVisibility (bool v)

Detailed Description

Face object defined a geometric triangle, with 3 Vertex, 3 Edges, and a geometric centroid. Each Face have a unique ID.

Constructor & Destructor Documentation

Face::Face ( Edge e,
bool  visible = true 
)

Creat a new Face.

Parameters
ean Edge that is a side of Face. Its internal Face reference will be modified
visiblenecessary for quad-edge representation, and be only set to true if user know exactly what he do
Returns
a new and well initialized Face
Face::~Face ( )

Frees.

Member Function Documentation

bool Face::circumcircleContainCoords ( Coordinates  p0) const
Parameters
p0Coordinates of tested point
Returns
true if given Coordinates are in circumcircle of this Face
bool Face::collideAt ( Coordinates  c)
Parameters
ctested Coordinates
Returns
true if this coollide at given coordinates
void Face::computeInternalValues ( )

Compute values that changed if Vertex are modified

Edge * Face::getEdge1 ( ) const
Returns
an Edge that is linked to this Face, and have for next left Edge the Edge returned by Face::getEdge2() method
Edge * Face::getEdge2 ( ) const
Returns
an Edge that is linked to this Face, and have for next left Edge the Edge returned by Face::getEdge3() method
Edge * Face::getEdge3 ( ) const
Returns
an Edge that is linked to this Face, and have for next left Edge the Edge returned by Face::getEdge1() method
Vertex * Face::getP1 ( ) const
Returns
a Vertex that compose this Face.
Vertex * Face::getP2 ( ) const
Returns
a Vertex that compose this Face.
Vertex * Face::getP3 ( ) const
Returns
a Vertex that compose this Face.
void Face::setEdge ( Edge e)

Set received Edge has linked Edge for this Face.

Parameters
ereceived Edge

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