|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
This class provides triangulating simple polygons without holes. More...
#include <cgal_tools.h>

Classes | |
| struct | FaceInfo |
| struct | VertexInfo |
Public Types | |
| typedef CGAL::Triangulation_vertex_base_with_info_2< VertexInfo, CGAL_Gt > | Vbb |
| typedef CGAL::Triangulation_face_base_with_info_2< FaceInfo, CGAL_Gt > | Fbb |
| typedef CGAL::Constrained_triangulation_face_base_2< CGAL_Gt, Fbb > | Fb |
| typedef CGAL::Triangulation_data_structure_2< Vbb, Fb > | TDS |
| typedef CGAL::Exact_predicates_tag | Itag |
| typedef CGAL::Constrained_Delaunay_triangulation_2< CGAL_Gt, TDS, Itag > | CDT |
| typedef CDT::Vertex_handle | Vertex_handle |
| typedef CDT::Face_handle | Face_handle |
| typedef CDT::Triangle | Triangle |
| typedef std::deque< CDT::Vertex_handle > | Vertex_handles_container |
| typedef boost::array< unsigned, 3 > | Tri_indices |
Public Member Functions | |
| PolygonTriangulator (const CGAL_Polygon &poly_) | |
| Constructor from a CGAL_Polygon. More... | |
| virtual | ~PolygonTriangulator () |
| Destructor. More... | |
| const CDT & | triangulation () const |
| Return CDT object. More... | |
| const Vertex_handle & | vertex_handle (unsigned i) const |
| Return the ith vertex handle. More... | |
| const Vertex_handles_container & | vertex_handles () const |
| Return the polygon vertex handles. More... | |
| void | exportTriangles (std::deque< CDT::Triangle > &triangles) const |
| Exports the triangles inside the polygon. More... | |
| void | exportTrianglesIndices (std::deque< Tri_indices > &triangles) const |
| Exports the triangles inside the polygon. More... | |
Protected Attributes | |
| Vertex_handles_container | poly_vh |
| Polygon vertex handles. More... | |
| const CGAL_Polygon & | poly |
| Reference to the CGAL_Polygon to triangulate. More... | |
| CDT | cdt |
This class provides triangulating simple polygons without holes.
Definition at line 118 of file cgal_tools.h.
| typedef CGAL::Constrained_Delaunay_triangulation_2<CGAL_Gt, TDS, Itag> tympan::PolygonTriangulator::CDT |
Definition at line 141 of file cgal_tools.h.
| typedef CDT::Face_handle tympan::PolygonTriangulator::Face_handle |
Definition at line 144 of file cgal_tools.h.
| typedef CGAL::Constrained_triangulation_face_base_2<CGAL_Gt, Fbb> tympan::PolygonTriangulator::Fb |
Definition at line 138 of file cgal_tools.h.
| typedef CGAL::Triangulation_face_base_with_info_2<FaceInfo, CGAL_Gt> tympan::PolygonTriangulator::Fbb |
Definition at line 137 of file cgal_tools.h.
| typedef CGAL::Exact_predicates_tag tympan::PolygonTriangulator::Itag |
Definition at line 140 of file cgal_tools.h.
| typedef CGAL::Triangulation_data_structure_2<Vbb, Fb> tympan::PolygonTriangulator::TDS |
Definition at line 139 of file cgal_tools.h.
| typedef boost::array<unsigned, 3> tympan::PolygonTriangulator::Tri_indices |
Definition at line 149 of file cgal_tools.h.
| typedef CDT::Triangle tympan::PolygonTriangulator::Triangle |
Definition at line 145 of file cgal_tools.h.
| typedef CGAL::Triangulation_vertex_base_with_info_2<VertexInfo, CGAL_Gt> tympan::PolygonTriangulator::Vbb |
Definition at line 136 of file cgal_tools.h.
| typedef CDT::Vertex_handle tympan::PolygonTriangulator::Vertex_handle |
Definition at line 143 of file cgal_tools.h.
| typedef std::deque<CDT::Vertex_handle> tympan::PolygonTriangulator::Vertex_handles_container |
Definition at line 146 of file cgal_tools.h.
| tympan::PolygonTriangulator::PolygonTriangulator | ( | const CGAL_Polygon & | poly_ | ) |
Constructor from a CGAL_Polygon.
Definition at line 119 of file cgal_tools.cpp.
|
virtual |
Destructor.
Definition at line 139 of file cgal_tools.cpp.
| void tympan::PolygonTriangulator::exportTriangles | ( | std::deque< CDT::Triangle > & | triangles | ) | const |
Exports the triangles inside the polygon.
The vertices are identified by their coordinates NB : This function expect empty deque and will clear the deque passed.
Definition at line 148 of file cgal_tools.cpp.
| void tympan::PolygonTriangulator::exportTrianglesIndices | ( | std::deque< Tri_indices > & | triangles | ) | const |
Exports the triangles inside the polygon.
The vertices are identified by their vertice handles and thus triangles are simply triples NB : This function expect empty deque and will clear the deque passed.
Definition at line 168 of file cgal_tools.cpp.

|
inline |
Return CDT object.
Definition at line 155 of file cgal_tools.h.
| const PolygonTriangulator::Vertex_handle & tympan::PolygonTriangulator::vertex_handle | ( | unsigned | i | ) | const |
Return the ith vertex handle.
Definition at line 141 of file cgal_tools.cpp.
|
inline |
Return the polygon vertex handles.
Definition at line 162 of file cgal_tools.h.
|
protected |
CDT (Constrained Delaunay Triangulation) is the type of the main CGAL object to build the triangulation.
Definition at line 189 of file cgal_tools.h.
|
protected |
Reference to the CGAL_Polygon to triangulate.
Definition at line 188 of file cgal_tools.h.
|
protected |
Polygon vertex handles.
Definition at line 187 of file cgal_tools.h.