Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Static Public Member Functions | Static Private Member Functions | List of all members
Triangulate Class Reference

Triangulate a contour/polygon. More...

#include <Triangulate.h>

Static Public Member Functions

static bool Process (const Vector2dVector &contour, Vector2dVector &result)
 Triangulate a contour/polygon, places results in STL vector as series of triangles. More...
 
static float Area (const Vector2dVector &contour)
 Compute and return area of a contour/polygon. More...
 
static bool InsideTriangle (float Ax, float Ay, float Bx, float By, float Cx, float Cy, float Px, float Py)
 Decide if the point (Px,Py) is inside a triangle defined by three points (Ax,Ay) (Bx,By) (Cx,Cy) More...
 

Static Private Member Functions

static bool Snip (const Vector2dVector &contour, int u, int v, int w, int n, int *V)
 

Detailed Description

Triangulate a contour/polygon.

Definition at line 45 of file Triangulate.h.

Member Function Documentation

◆ Area()

float Triangulate::Area ( const Vector2dVector contour)
static

Compute and return area of a contour/polygon.

Definition at line 24 of file Triangulate.cpp.

Here is the caller graph for this function:

◆ InsideTriangle()

bool Triangulate::InsideTriangle ( float  Ax,
float  Ay,
float  Bx,
float  By,
float  Cx,
float  Cy,
float  Px,
float  Py 
)
static

Decide if the point (Px,Py) is inside a triangle defined by three points (Ax,Ay) (Bx,By) (Cx,Cy)

Definition at line 42 of file Triangulate.cpp.

Here is the caller graph for this function:

◆ Process()

bool Triangulate::Process ( const Vector2dVector contour,
Vector2dVector result 
)
static

Triangulate a contour/polygon, places results in STL vector as series of triangles.

Parameters
contourCountour or polygon
resultResult as series of triangles
Returns

Definition at line 106 of file Triangulate.cpp.

Here is the call graph for this function:

◆ Snip()

bool Triangulate::Snip ( const Vector2dVector contour,
int  u,
int  v,
int  w,
int  n,
int *  V 
)
staticprivate

Definition at line 70 of file Triangulate.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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