Arr_accessor<Arrangement> provides an access to some of the private Arrangement functions. Users may use these functions to achieve more efficient programs when they have the exact topological information required by the specialized functions.
It is however highly recommended to be very careful when using the accessor functions that modify the arrangement. As we have just mentioned, these functions have very specific requirement on their input on one hand, and perform no preconditions on the other hand, so providing incorrect topological input may invalidate the arrangement.
#include <CGAL/Arr_accessor.h>
| |
the type of the associated arrangement.
|
| ||
| the point type. | |
| ||
| the -monotone curve type. | |
| ||
|
||
| ||
|
||
| ||
|
||
| ||
| ||
represents the boundary of a connected component (CCB). |
| |
constructs an accessor attached to the given arrangement
arr.
|
advanced |
|
| |||
locates a place for the curve c around the vertex v and returns a halfedge whose target is v, where c should be inserted between this halfedge and the next halfedge around v in a clockwise order. | ||||
|
| |||
counts the number of edges along the path from e1 to e2. In case the two halfedges do not belong to the same connected component, the function returns (-1). | ||||
|
| |||
determines whether a new halfedge we are about to create, which is to be associated
with the curve c and directed from pred1->target() to
pred2->target(), lies on the inner CCB of the new face that will be created,
introducing this new edge. Precondition: pred1->target() and pred2->target() are associated with c's endpoints. Precondition: pred1 and pred2 belong to the same connected component, such that a new face is created by connecting pred1->target() and pred2->target(). | ||||
|
| |||
determines whether a given point lies within the region bounded by a boundary of the connected component that he belongs to. Note that if the function returns true, then p is contained within he->face() (but not on its boundary), or inside one of the holes inside this face, or it may coincide with an isolated vertex in this face. | ||||
|
| |||
determines whether he lies on the outer boundary of its incident face. | ||||
|
| |||
determines whether he lies on the inner boundary of its incident face (that is, whether it lies on the boundary of one of the holes in this face). |
|
| |||
creates a new vertex an associates it with the point p. It is the user's responsibility that there is no existing vertex already associated with p. | ||||
|
| |||
inserts the curve c as a new hole (inner component) of the face
f, connecting the two isolated vertices v1 and v2.
res is the comparison result between these two end-vertices.
The function returns a handle for one of the new halfedges
corresponding to the inserted curve, directed from v1 to v2. Precondition: It is the user's responsibility that v1 and v2 are associated with c's endpoints, that they lie of f's interior and that and that they have no incident edges. | ||||
|
| |||
inserts the curve c into the arrangement, such that one of its
endpoints corresponds to an arrangement, which is the
target vertex of the halfedge pred, such that c is inserted
to the circular list of halfedges around pred->target() right
between pred and its successor. The other end-vertex is given by
an isolated vertex v,
where res is the comparison result between pred->target() and v.
The function returns a handle for one of the new halfedges directed from
pred->target() to v. Precondition: It is the user's responsibility that pred->target() and v are associated with c's endpoints and that and that v has no incident edges. | ||||
|
| |||
inserts the curve c into the arrangement, such that both c's
endpoints correspond to existing arrangement vertices, given by
pred1->target() and pred2->target(). res is the comparison
result between these two end-vertices. The function creates a
new halfedge pair that connects the two vertices (with pred1 and
pred2 indicate the exact place for these halfedges around the two
target vertices) and returns a handle for the halfedge directed from
pred1->target() to pred2->target().
The output flag new_face indicates whether a new face has been created
following the insertion of the new curve. Precondition: It is the user's responsibility that pred1->target() and pred2->target() are associated with c's endpoints and that if a new face is created, then is_inside_new_face (pred1, pred2, c) is true. | ||||
|
| |||
inserts v as an isolated vertex inside f. Precondition: It is the user's responsibility that v->point() is contained in the interior of the given face. | ||||
|
| |||
moves the given hole from the interior of the face f1 inside the
face f2. Precondition: It is the user's responsibility that hole is currenly contained in f1 and should be moved to f2. | ||||
|
| |||
moves the given isolated vertex from the interior of the face f1
inside the face f2. Precondition: It is the user's responsibility that v is indeed an isolated vertex currently contained in f1 and should be moved to f2. | ||||
|
| |||
relocates all holes and isolated vertices to their proper position immediately after a face has split due to the insertion of a new halfedge, namely after insert_at_vertices_ex() was invoked and indicated that a new face has been created. he is the halfegde returned by insert_at_vertices_ex(), such that he->twin()->face is the face that has just been split and he->face() is the newly created face. | ||||
|
| |||
relocates all holes in a new face, as detailed above. | ||||
|
| |||
relocates all isolated vertices in a new face, as detailed above. | ||||
|
| |||
modifies the point associated with the vertex v (the point may be
geometrically different than the one currently associated with v).
The function returns a handle to the modified vertex (same as v). Precondition: It is the user's responsibility that no other arrangement vertex is already associated with p. | ||||
|
| |||
modifies the -monotone curve associated with the edge e (the
curve c may be geometrically different than the one currently
associated with e).
The function returns a handle to the modified edge (same as e). Precondition: It is the user's responsibility that the interior of c is disjoint from all existing arrangement vertices and edges. | ||||
|
| |||
splits a given edge into two at the split point p, and associate the
x-monotone curves c1 and c2 with the resulting edges, such that
c1 connects he->source() with p and c2 connects
p with he->target(). The function return a handle to the split
halfedge directed from he->source() to the split point p. Precondition: It is the user's responsibility that the endpoints of c1 and c2 correspond to p and to he's end-vertices, as indicated above. | ||||
|
| |||
splits a given edge into two at by the vertex v, and associate the
x-monotone curves c1 and c2 with the resulting edges, such that
c1 connects he->source() with v and c2 connects
v with he->target(). The function return a handle to the split
halfedge directed from he->source() to v. Precondition: It is the user's responsibility that the endpoints of c1 and c2 correspond to v and to he's end-vertices, as indicated above. It is also assumed that v has no incident edges. | ||||
|
| |||
removes the edge he from the arrangement, such that if the edge removal causes the creation of a new hole, he->target() lies on the boundary of this hole. The flags remove_source and remove_target indicate whether the end-vertices of he should be removed as well, in case they have no other incident edges. If the operation causes two faces to merge, the merged face is returned. Otherwise, the face to which the edge was incident is returned. |
advanced |