Adding linear_cell_complex_3_attributes_management.cpp example

This commit is contained in:
Sylvain Brandel 2014-12-12 15:41:23 +01:00
parent b0591661fd
commit 08af113c95
2 changed files with 22 additions and 9 deletions

View File

@ -1689,11 +1689,15 @@ namespace CGAL {
*/
template<unsigned int i>
void link_beta(Dart_handle adart1, Dart_handle adart2)
{
if ( are_attributes_automatically_managed() )
{
if ( i==0 ) link_beta_0(adart1, adart2);
else if ( i==1 ) link_beta_1(adart1, adart2);
else link_beta_for_involution<i>(adart1, adart2);
}
else basic_link_beta<i>(adart1, adart2);
}
/** Double link a dart with betai to a second dart.
* \em adart1 is i-linked to \em adart2 and \em adart2 is i^-1-linked
@ -2091,11 +2095,15 @@ namespace CGAL {
*/
template<unsigned int i>
void sew(Dart_handle adart1, Dart_handle adart2)
{
if ( are_attributes_automatically_managed() )
{
if ( i==0 ) sew_0(adart1, adart2);
else if ( i==1 ) sew_1(adart1, adart2);
else sew_for_involution<i>(adart1, adart2);
}
else topo_sew<i>(adart1, adart2);
}
/** Sew by betai the two given darts plus all the required darts
* to satisfy the combinatorial map validity. Enabled attributes
@ -2336,11 +2344,15 @@ namespace CGAL {
*/
template<unsigned int i>
void unsew(Dart_handle adart)
{
if ( are_attributes_automatically_managed() )
{
if ( i==0 ) unsew_0(adart);
else if ( i==1 ) unsew_1(adart);
else unsew_for_involution<i>(adart);
}
// else topo_unsew<i>(adart);
}
/** Unsew by betai the given dart plus all the required darts
* to satisfy the combinatorial map validity. Enabled attributes

View File

@ -41,6 +41,7 @@ if ( CGAL_FOUND )
"linear_cell_complex_3_with_mypoint.cpp" )
create_single_source_cgal_program("plane_graph_to_lcc_2.cpp")
create_single_source_cgal_program("linear_cell_complex_3_attributes_management.cpp")
add_executable(linear_cell_complex_3_triangulation
linear_cell_complex_3_triangulation.cpp)