#include <delaunay_triangulation.h>
Public メソッド | |
Edge (const int id, const Vertex *v0, const Vertex *v1) | |
create edge with two vertices. vertices must not be NULL. | |
~Edge () | |
nothing to do | |
void | removeTriangle (TrianglePtr tri) |
remove pointer to the triangle that this edge belongs to. This edge is NOT removed. | |
void | setTriangle (TrianglePtr tri) |
set the triangle that this edge belongs to. | |
int | id () const |
get Id number of this edge | |
const Vertex * | vertex (const std::size_t i) const |
get the raw pointer to the vertex that this edge has | |
Triangle * | triangle (const std::size_t i) const |
get the raw pointer to the triangle that this edge belongs to | |
bool | hasVertex (const Vertex *v) const |
check if this edge has the specified vertex or not. |
rcsc::DelaunayTriangulation::Edge::Edge | ( | const int | id, | |
const Vertex * | v0, | |||
const Vertex * | v1 | |||
) | [inline] |
create edge with two vertices. vertices must not be NULL.
id | Id number of this edge. | |
v0 | raw pointer to the first vertex | |
v1 | raw pointer to the second vertex |
void rcsc::DelaunayTriangulation::Edge::removeTriangle | ( | TrianglePtr | tri | ) | [inline] |
remove pointer to the triangle that this edge belongs to. This edge is NOT removed.
tri | pointer to the target triangle |
void rcsc::DelaunayTriangulation::Edge::setTriangle | ( | TrianglePtr | tri | ) | [inline] |
set the triangle that this edge belongs to.
tri | raw pointer to the triangle. |
int rcsc::DelaunayTriangulation::Edge::id | ( | ) | const [inline] |
get Id number of this edge
const Vertex* rcsc::DelaunayTriangulation::Edge::vertex | ( | const std::size_t | i | ) | const [inline] |
get the raw pointer to the vertex that this edge has
i | specifies array index |
Triangle* rcsc::DelaunayTriangulation::Edge::triangle | ( | const std::size_t | i | ) | const [inline] |
get the raw pointer to the triangle that this edge belongs to
i | specifies array index |
bool rcsc::DelaunayTriangulation::Edge::hasVertex | ( | const Vertex * | v | ) | const [inline] |
check if this edge has the specified vertex or not.
v | raw pointer to the vertex |