AlphaShapeFace_2

Definition

Refines

TriangulationFaceBase_2.

Types

AlphaShapeFace_2::Interval_3
A container type to get (and put) the three special values (α1, α2, α3) associated with an alpha shape edge.


AlphaShapeFace_2::FT
A type to hold a coordinate type class. The type must provide a copy constructor, assignment, comparison operators, negation, multiplication, division and allow the declaration and initialization with a small integer constant (cf. requirements for number types). An obvious choice would be coordinate type of the point class

Creation

AlphaShapeFace_2 f;
default constructor.

AlphaShapeFace_2 f ( Vertex_handle v0, Vertex_handle v1, Vertex_handle v2);
constructor setting the incident vertices.

AlphaShapeFace_2 f ( Vertex_handle v0, Vertex_handle v1, Vertex_handle v2, Face_handle n0, Face_handle n1, Face_handle n2);
constructor setting the incident vertices and the neighboring faces.

Access Functions

Interval_3 f.get_ranges ( int i) returns the interval associated with the edge indexed with i, which contains three alpha values α1 α2 α3, such as for α between α1 and α2, the edge indexed with i is attached but singular, for α between α2 and α3, the edge is regular, and for α greater than α3, the edge is interior.

FT f.get_alpha () return the alpha value, under which the alpha shape contains the face.

Modifiers

void f.set_ranges ( int i, Interval_3 V)
sets the interval associated with the edge indexed with i, which contains three alpha values α1 α2 α3, such as for α between α1 and α2, the edge indexed with i is attached but singular, for α between α2 and α3, the edge is regular, and for α greater than α3, the edge is interior.

void f.set_alpha ( FT A) sets the alpha value, under which the alpha shape contains the face.