The class Regular_triangulation_2<Traits,Tds> is designed to maintain the regular triangulation of a set of weighted points.
Let $$ PW = {(p_{i}, w_{i}), i = 1, ..., n } be a set of weighted points where each $$p_{i} is a point and each $$w_{i} is a scalar called the weight of point $$p_{i}. Alternatively, each weighted point $$(p_{i}, w_{i}) can be regarded as a two dimensional sphere with center $$p_{i} and radius $$r_{i}=sqrt(w_{i}).
The power diagram of the set $$ PW is a planar partition such that each cell corresponds to sphere $$(p_{i}, w_{i}) of $$ PW and is the locus of points $$p whose power with respect to $$(p_{i}, w_{i}) is less than its power with respect to any other sphere $$(p_{j}, w_{j}) in $$ PW. The dual of this diagram is a triangulation whose domain covers the convex hull of the set $$ P= { p_{i}, i = 1, ..., n } of center points and whose vertices are a subset of $$ P. Such a triangulation is called a regular triangulation. The three points $$p_{i}, p_{j} and $$p_{k} of $$ P form a triangle in the regular triangulation of $$ PW iff there is a point $$p of the plane whose powers with respect to $$(p_{i}, w_{i}), $$(p_{j}, w_{j}) and $$(p_{k}, w_{k}) are equal and less than the power of $$p with respect to any other sphere in $$ PW.
Let us defined the power product of two weighted points $$(p_{i}, w_{i}) and $$(p_{j}, w_{j}) as:
$$(p_{i}, w_{i},p_{j}, w_{j}) = p_{i}p_{j} ^{2}  w_{i}  w_{j} .
$$(p_{i}, w_{i},p_{j}, 0) is simply the power of point $$p_{j} with respect to the sphere $$(p_{i}, w_{i}), and two weighted points are said to be orthogonal if their power product is null. The power circle of three weighted points $$(p_{i}, w_{i}), $$(p_{j}, w_{j}) and $$(p_{k}, w_{k}) is defined as the unique circle $$(, ) orthogonal to $$(p_{i}, w_{i}), $$(p_{j}, w_{j}) and $$(p_{k}, w_{k}).
The regular triangulation of the sets $$ PW satisfies the following regular property (which just reduces to the Delaunay property when all the weights are null): a triangle $$p_{i}p_{j}p_{k} of the regular triangulation of $$ PW is such that the power product of any weighted point $$(p_{l}, w_{l}) of $$ PW with the power circle of $$(p_{i}, w_{i}), $$(p_{j}, w_{j}) is $$(p_{k}, w_{k}) is positive or null. We call power test of the weighted point $$(p_{l}, w_{l}) with respect to the face $$p_{i}p_{j}p_{k}, the predicates testing the sign of the power product of $$(p_{l}, w_{l}) with respect to the power circle of $$(p_{i}, w_{i}), $$(p_{j}, w_{j}) is $$(p_{k}, w_{k}). This power product is given by the following determinant
$$
1  x_{i}  y_{i}  x_{i} ^{2} + y_{i} ^{2}  w_{i} 
1  x_{j}  y_{j}  x_{j} ^{2} + y_{j} ^{2}  w_{j} 
1  x_{k}  y_{k}  x_{k} ^{2} + y_{k} ^{2}  w_{k} 
1  x_{l}  y_{l}  x_{l} ^{2} + y_{l} ^{2}  w_{l} 
A pair of neighboring faces $$p_{i}p_{j}p_{k} and $$p_{i}p_{j}p_{l} is said to be locally regular (with respect to the weights in $$ PW) if the power test of $$(p_{l},w_{l}) with respect to $$p_{i}p_{j}p_{k} is positive. A classical result of computational geometry establishes that a triangulation of the convex hull of $$ P such that any pair of neighboring faces is regular with respect to $$ PW, is a regular triangulation of $$ PW.
Alternatively, the regular triangulation of the weighted points set $$ PW can be obtained as the projection on the two dimensional plane of the convex hull of the set of three dimensional points $$ P'= { (p_{i},p_{i} ^{2}  w_{i} ), i = 1, ..., n }.
The vertices of the regular triangulation of a set of weighted points $$ PW form only a subset of the set of center points of $$ PW. Therefore the insertion of a weighted point in a regular triangulation does not necessarily imply the creation of a new vertex. If the new inserted point does not appear as a vertex in the regular triangulation, it is said to be hidden.
Hidden points are stored in special vertices called hidden vertices. A hidden point is considered as hidden by the facet of the triangulation where its point component is located : in fact, the hidden point can appear as vertex of the triangulation only if this facet is removed. Each face of a regular triangulation stores the list of hidden vertices whose points are located in the facet. When a facet is removed, points hidden by this facet are reinserted in the triangulation.
#include <CGAL/Regular_triangulation_2.h>
The Tds parameter has to be instantiated by a model of TriangulationDataStructure_2. The face base of a regular triangulation has to be a model of the concept RegularTriangulationFaceBase_2. while the vertex base class has to be a model of RegularTriangulationVertexBase_2. CGAL provides a default instantiation for the Tds parameter by the class CGAL::Triangulation_data_structure_2 < CGAL::Reugular_triangulation_vertex_base_2<Traits>, CGAL::Regular_Triangulation_face_base_2<Traits> >.














 
Introduces an empty regular triangulation rt.
 
 
Copy constructor.


 
inserts weighted point p in the regular triangulation. If the point p does not appear as a vertex of the triangulation, the returned vertex is a hidden vertex. If given the parameter f is used as an hint for the place to start the location process of point p.  

 
insert a weighted point p whose barepoint is assumed to be located in lt,loc,li.  

 Equivalent to insert(p).  
 

 
inserts the weighted points in the range
$$[.first, last$$.).
Returns the number of created vertices.
 

 removes the vertex from the triangulation. 
 
 
 
OutputItFaces is an output iterator with Face_handle as value type. OutputItBoundaryEdges stands for an output iterator with Edge as value type. OutputItHiddenVertices is an output iterator with Vertex_handle as value type. This member function outputs in the container pointed to by fit the faces which are in conflict with point p i. e. the faces whose power circles have negative power wrt. p. It outputs in the container pointed to by eit the boundary of the zone in conflict with p. It inserts the vertices that would be hidden by p into the container pointed to by vit. The boundary edges of the conflict zone are output in counterclockwise order and each edge is described through its incident face which is not in conflict with p. The function returns in a CGAL::Triple the resulting output iterators.  
 
 
 
same as above except that only the faces in conflict with p and the boundary edges of the conflict zone are output via the corresponding output iterators. The function returns in a std::pair the resulting output iterators.  
 
 
 
same as above except that only the faces in conflict with p and the vertices that would be hidden by p are output via the corresponding output iterators. The function returns in a std::pair the resulting output iterators.  
 
 
 
same as above except that only the vertices that would be hidden by p and the boundary of the zone in conflict with p are output via the corresponding output iterators. The boundary edges of the conflict zone are output in counterclockwise order and each edge is described through the incident face which is not in conflict with p. The function returns in a std::pair the resulting output iterators.  
 

 
same as above except that only the faces in conflict with p are output. The function returns the resulting output iterator.  
 

 
same as above except that only the boundary edges of the conflict zone are output in counterclockwise order where each edge is described through the incident face which is not in conflict with p. The function returns the resulting output iterator.  
 

 
same as above except that only the vertices that would be hidden by p are output. The function returns the resulting output iterator.  

 
Returns the vertex of the triangulation which is nearest to p with respect to the power distance. This means that the power of the query point p with respect to the weighted point in the nearest vertex is smaller than the power of p with respect to the weighted point in any other vertex. Ties are broken arbitrarily. The default constructed handle is returned if the triangulation is empty. 

 returns the number of finite vertices that are not hidden. 

 returns the number of hidden vertices. 

 starts at an arbitrary hidden vertex. 

 past the end iterator for the sequence of hidden vertices. 

 starts at an arbitrary unhidden finite vertex 

 Pasttheend iterator 

 starts at an arbitrary unhidden vertex. 

 past the end iterator. 

 
returns the center of the circle orthogonal to the three weighted
points corresponding to the vertices of face f.
 

 same as weighted_circumcenter  

 If both incident faces are finite, returns a segment whose endpoints are the duals of each incident face. If only one incident face is finite, returns a ray whose endpoint is the dual of the finite incident face and supported by the line which is the bisector of the edge's endpoints. If both incident faces are infinite, returns the line which is the bisector of the edge's endpoints otherwise.  

 Idem  

 Idem  
 

 output the dual power diagram to stream ps. 

 
Returns the power test of p with respect to the power circle associated with f 
advanced 

 
Tests the validity of the triangulation as a Triangulation_2 and additionally test the regularity of the triangulation. This method is useful to debug regular triangulation algorithms implemented by the user. 
advanced 