The requirements for the geometric traits class of the basic triangulation class Triangulation_2<Gt, Tds> are kept rather light. Essentially, a geometric traits class Geom_traits has to provide some type for points, segments and triangles, and a few geometric predicates: coordinate comparison and orientation tests.
| |
The type must provide
a copy constructor and assignment operator.
| |
| |
The type must provide a constructor that takes
two points as argument.
| |
| |
The type must provide a constructor that takes
three points as argument.
|
Only a default constructor and an assignement operator are required. Note that further constructors can be provided.
| |
A default constructor.
|
|
| Assignment operator. |
|
| |||
Compares the x-coordinates. | ||||
|
| |||
Compares the y-coordinates. | ||||
|
| |||
True if compare_x(p0,p1) and compare_y(p0,p1) return EQUAL. | ||||
|
| |||
Orientation test. | ||||
|
| |||
Returns the oriented side of the query point s with respect to the oriented circle going through p,q,r in that order. This predicates is required only if the function oriented_side(const Face_handle& f, const Point &p) is explicitely called by the user. |
|
| |
Returns the center of the circle through (p,q,r) This method is required only if the function circumcenter(Face_handle f) is called by the user. |