#include <CGAL/Linear_cell_complex.h>
The class Linear_cell_complex<d,d2,LCCTraits,Items,Alloc> represents a linear cell complex in dimension d, in an ambient space of dimension d2. This is a model of the concept of CombinatorialMap adding a requirement to ensure that each vertex of the map is associated with a model of CellAttributeWithPoint.
There are four default template arguments: d2 is equal to d, LCCTraits is equal to CGAL::Linear_cell_complex_traits<d2>, Items is equal to CGAL::Linear_cell_complex_min_items<d> and Alloc is CGAL_ALLOCATOR(int).
Linear_cell_complex<d,d2,LCCTraits,Items,Alloc> lcc; |
static unsigned int | ambient_dimension = d2; | must be >1. |
typedef Linear_cell_complex<d,d2,LCCTraits,Items,Alloc> | ||
Self; | ||
typedef Items::Dart_wrapper<Self>::Dart | ||
Dart; | The type of dart, must satisfy Dart::dimension==d. | |
typedef LCCTraits | Traits; | |
typedef Items | Items; | |
typedef Alloc | Alloc; | |
typedef Traits::FT | FT; | |
typedef Traits::Point | Point; | |
typedef Traits::Vector | Vector; |
Linear_cell_complex<d,d2,LCCTraits,Items,Alloc>::Vertex_attribute | |
Type of 0-attributes, a model of CellAttributeWithPoint concept
(a shortcut for Attribute_type_d<0>::type).
| |
Linear_cell_complex<d,d2,LCCTraits,Items,Alloc>::Vertex_attribute_handle | |
Handle through 0-attributes
(a shortcut for Attribute_handle_type_d<0>::type).
| |
Linear_cell_complex<d,d2,LCCTraits,Items,Alloc>::Vertex_attribute_const_handle | |
Const handle through 0-attributes
(a shortcut for Attribute_const_handle_type_d<0>::type).
| |
Linear_cell_complex<d,d2,LCCTraits,Items,Alloc>::Vertex_attribute_range | |
Range of all the 0-attributes, a model of the Range concept
(a shortcut for Attribute_range_d<0>::type).
Iterator inner type is bidirectional iterator and value type is Vertex_attribute.
| |
Linear_cell_complex<d,d2,LCCTraits,Items,Alloc>::Vertex_attribute_const_range | |
Const range of all the 0-attributes, a model of the ConstRange concept
a shortcut for Attribute_const_range_d<0>::type).
Iterator inner type is bidirectional iterator and value type is Vertex_attribute.
|
bool | lcc.is_valid () const | Returns true iff lcc is valid. |
size_type | lcc.number_of_vertex_attributes () const | |
Returns the number of 0-attributes in lcc (a shortcut for number_of_attributes<0>()). |
template<unsigned int i> | ||||
Point | lcc.barycenter ( Dart_const_handle dh) const | |||
Returns the barycenter of the i-cell containing dh.
| ||||
template <unsigned int i> | ||||
Dart_handle | lcc.insert_point_in_cell ( Dart_handle dh, Point p) | |||
Inserts a point, copy of p, in the i-cell containing dh.
Returns a handle on one dart of this cell.
| ||||
template <unsigned int i> | ||||
Dart_handle | lcc.insert_barycenter_in_cell ( Dart_handle dh) | |||
Inserts a point in the barycenter of the i-cell containing dh.
Returns a handle on one dart of this cell.
| ||||
Dart_handle | lcc.insert_dangling_cell_1_in_cell_2 ( Dart_handle dh, Point p) | |||
Inserts a 1-cell in the 2-cell containing dh, the 1-cell
being attached only by one of its vertex to the 0-cell containing dh.
The second vertex is associated with a new 0-attribute containing a copy of
p as point. Returns a handle on one dart belonging to the new 0-cell.
|
Dart_handle | lcc.make_segment ( Point p0, Point p1) | |||
Creates an isolated segment in lcc (two darts linked by β2)
having p0, p1 as points.
Returns a handle on the dart associated with p0.
|
Dart_handle | lcc.make_triangle ( Point p0, Point p1, Point p2) | |||
Creates an isolated triangle in lcc having p0, p1, p2 as points.
Returns a handle on the dart associated with p0.
|
Dart_handle | lcc.make_quadrangle ( Point p0, Point p1, Point p2, Point p3) | |||
Creates an isolated quadrangle in lcc having p0, p1,
p2, p3 as points.
Returns a handle on the dart associated with p0.
|
Dart_handle | lcc.make_tetrahedron ( Point p0, Point p1, Point p2, Point p3) | |||
Creates an isolated tetrahedron in lcc having p0,
p1,p2,p3 as points. Returns a handle on the dart
associated with p0 and belonging to the 2-cell having
p0, p1, p2 as points.
|
Dart_handle | make_hexahedron ( Point p0, Point p1, Point p2, Point p3, Point p4, Point p5, Point p6, Point p7) | |||
Creates an isolated hexahedron in lcc having p0, p1,
p2, p3, p4, p5, p6, p7 as points.
Returns a handle on the dart associated with p0 and
belonging to the 2-cell having p0, p5, p6, p1
as points.
|