#include <del_interface.hpp>
Public Types | |
| typedef reviver::dpoint< double, 2 > | Point |
| Point Typedef. | |
Public Member Functions | |
| Delaunay (std::vector< Point > &v) | |
| The main constructor. | |
| void | Triangulate () |
| Delaunay Triangulate the input points. | |
| void | writeoff (std::string &fname) |
| Output a geomview .off file containing the delaunay triangulation. | |
| int | nedges () |
| Number of edges in the triangulation. | |
| int | ntriangles () |
| Number of triangles in the triangulation. | |
| int | nvertices () |
| Number of vertices in the triangulation. | |
| int | hull_size () |
| Number of vertices on the convex hull. | |
| ~Delaunay () | |
| The main destructor. | |
| vIterator | vbegin () |
| Vertex iterator begin function. | |
| vIterator | vend () |
| Vertex iterator end function. | |
| int | vertexId (vIterator const &) |
| Given an iterator, find its index in the input vector of points. | |
| const Point & | point_at_vertex_id (int i) |
| Given an index, return the actual double Point. | |
| fIterator | fbegin () |
| Face iterator begin function. | |
| fIterator | fend () |
| Face iterator end function. | |
| int | faceId (fIterator const &) |
| int | Org (fIterator const &fit) |
| Access the origin (Org) vertex of a face. | |
| int | Dest (fIterator const &fit) |
| Access the destination (Dest) vertex of a face. | |
| int | Apex (fIterator const &fit) |
| Access the apex (Apex) vertex of a face. | |
| int | Sym (fIterator const &fit, char i) |
| Access the triangle adjoining edge i. | |
| fIterator | Sym (fIterator const &fit) |
| Access the triangle opposite to current edge of the face. | |
| bool | empty (fIterator const &fit) |
| Is the iterator empty? | |
| bool | isdummy (fIterator const &fit) |
| Is the iterator pointing to the dummy triangle? | |
| fIterator | Lnext (fIterator const &fit) |
| Find the next edge (counterclockwise) of a triangle. | |
| fIterator | Lprev (fIterator const &fit) |
| Find the previous edge (clockwise) of a triangle. | |
| fIterator | Onext (fIterator const &fit) |
| Find the next edge (counterclockwise) of a triangle with the same origin. | |
| fIterator | Oprev (fIterator const &fit) |
| Find the next edge clockwise with the same origin. | |
| void | trianglesAroundVertex (int vertexid, std::vector< int > &ivv) |
| Calculate incident triangles around a vertex. | |
| double | area (fIterator const &fit) |
| Calculate the area of a face. | |
| fIterator | locate (int vertexid) |
| Point locate a vertex v. | |
Friends | |
| class | vIterator |
| class | fIterator |
Classes | |
| class | fIterator |
| The face iterator for the Delaunay class. More... | |
| class | vIterator |
| The vertex iterator for the Delaunay class. More... | |
This is a C++ wrapper of the triangle package by JRS. It currently uses the dpoint class written by me (the point class is a d-dimensional point class but for this application it only uses the d=2 case).
Definition at line 126 of file del_interface.hpp.
|
|
Point Typedef. Warning: If you want to use your own point class, you might have to work hard... Definition at line 132 of file del_interface.hpp. |
|
|
The main constructor. Takes a vector of 2 dimensional points where each of the coordinates is expressed as double. Definition at line 151 of file del_interface.hpp. |
|
|
The main destructor. Does memory cleanup mostly. Definition at line 73 of file del_impl.cpp. |
|
|
Access the apex (Apex) vertex of a face.
Definition at line 332 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, tpp::Delaunay::fIterator::MyDelaunay, and pmesh. Referenced by area(), and trianglesAroundVertex(). |
|
|
Calculate the area of a face.
Definition at line 410 of file del_impl.cpp. References Apex(), Dest(), Org(), and point_at_vertex_id(). |
|
|
Access the destination (Dest) vertex of a face.
Definition at line 313 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, tpp::Delaunay::fIterator::MyDelaunay, and pmesh. Referenced by area(), and trianglesAroundVertex(). |
|
|
Is the iterator empty?
Definition at line 375 of file del_interface.hpp. References tpp::Delaunay::fIterator::floop. |
|
|
|
|
|
Face iterator begin function.
Definition at line 285 of file del_interface.hpp. References fIterator. |
|
|
Face iterator end function.
Definition at line 256 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop. |
|
|
Number of vertices on the convex hull.
Definition at line 128 of file del_impl.cpp. Referenced by main(). |
|
|
Is the iterator pointing to the dummy triangle?
Definition at line 526 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop. Referenced by trianglesAroundVertex(). |
|
|
Find the next edge (counterclockwise) of a triangle.
Definition at line 460 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, and tpp::Delaunay::fIterator::MyDelaunay. |
|
|
Point locate a vertex v.
Definition at line 424 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, and tpp::Delaunay::fIterator::MyDelaunay. Referenced by trianglesAroundVertex(). |
|
|
Find the previous edge (clockwise) of a triangle.
Definition at line 471 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, and tpp::Delaunay::fIterator::MyDelaunay. |
|
|
Number of edges in the triangulation.
Definition at line 104 of file del_impl.cpp. Referenced by main(). |
|
|
Number of triangles in the triangulation.
Definition at line 109 of file del_impl.cpp. Referenced by main(). |
|
|
Number of vertices in the triangulation.
Definition at line 114 of file del_impl.cpp. Referenced by main(). |
|
|
Find the next edge (counterclockwise) of a triangle with the same origin.
Definition at line 486 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, and tpp::Delaunay::fIterator::MyDelaunay. Referenced by trianglesAroundVertex(). |
|
|
Find the next edge clockwise with the same origin.
Definition at line 508 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, and tpp::Delaunay::fIterator::MyDelaunay. Referenced by trianglesAroundVertex(). |
|
|
Access the origin (Org) vertex of a face.
Definition at line 293 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, tpp::Delaunay::fIterator::MyDelaunay, and pmesh. Referenced by area(), and trianglesAroundVertex(). |
|
|
Given an index, return the actual double Point.
Definition at line 245 of file del_interface.hpp. Referenced by area(). |
|
|
Access the triangle opposite to current edge of the face.
Definition at line 380 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, tpp::Delaunay::fIterator::MyDelaunay, and pmesh. |
|
||||||||||||
|
Access the triangle adjoining edge i.
Definition at line 351 of file del_impl.cpp. References tpp::Delaunay::fIterator::floop, tpp::Delaunay::fIterator::MyDelaunay, and pmesh. |
|
||||||||||||
|
Calculate incident triangles around a vertex.
Definition at line 533 of file del_impl.cpp. References Apex(), Dest(), isdummy(), locate(), Onext(), Oprev(), and Org(). |
|
|
Delaunay Triangulate the input points. This function calls triangle to delaunay triangulate points given as input to the constructor of this class. Definition at line 161 of file del_interface.hpp. |
|
|
Vertex iterator begin function.
Definition at line 237 of file del_interface.hpp. References vIterator. Referenced by main(). |
|
|
Vertex iterator end function.
Definition at line 173 of file del_impl.cpp. References tpp::Delaunay::vIterator::vloop. Referenced by main(). |
|
|
Given an iterator, find its index in the input vector of points.
Definition at line 133 of file del_impl.cpp. References tpp::Delaunay::vIterator::MyDelaunay, pmesh, and tpp::Delaunay::vIterator::vloop. Referenced by main(). |
|
|
Output a geomview .off file containing the delaunay triangulation.
Definition at line 89 of file del_impl.cpp. Referenced by main(). |
|
|
Definition at line 483 of file del_interface.hpp. Referenced by fbegin(). |
|
|
Definition at line 245 of file del_interface.hpp. Referenced by vbegin(). |
1.4.6