Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Classes | Typedefs
Triangulate.h File Reference
#include <vector>
#include "Geometry/mathlib.h"
Include dependency graph for Triangulate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Triangulate
 Triangulate a contour/polygon. More...
 

Typedefs

typedef std::vector< vec2 > Vector2dVector
 

Typedef Documentation

◆ Vector2dVector

typedef std::vector<vec2> Vector2dVector

Static class to triangulate any contour/polygon efficiently You should replace Vector2d with whatever your own Vector
class might be. Does not support polygons with holes.
Uses STL vectors to represent a dynamic array of vertices.
This code snippet was submitted to FlipCode.com by
John W. Ratcliff (jratc.nosp@m.liff.nosp@m.@vera.nosp@m.nt.c.nosp@m.om) on July 22, 2000
I did not write the original code/algorithm for this
this triangulator, in fact, I can't even remember where I
found it in the first place. However, I did rework it into the following black-box static class so you can make easy
use of it in your own code. Simply replace Vector2d with
whatever your own Vector implementation might be.

Definition at line 40 of file Triangulate.h.