mirror of https://github.com/CGAL/cgal
Bugfix in degree and codegree
This commit is contained in:
parent
3f005bbbc4
commit
241a9f3353
|
|
@ -265,8 +265,8 @@ namespace CGAL
|
||||||
* @return the degree of the cell.
|
* @return the degree of the cell.
|
||||||
*/
|
*/
|
||||||
template < class Map, unsigned int i >
|
template < class Map, unsigned int i >
|
||||||
typename Map::size_type degree( const Map & amap,
|
typename Map::size_type degree(const Map & amap,
|
||||||
typename Map::Dart_const_handle adart )
|
typename Map::Dart_const_handle adart)
|
||||||
{
|
{
|
||||||
CGAL_assertion(adart != NULL);
|
CGAL_assertion(adart != NULL);
|
||||||
|
|
||||||
|
|
@ -280,20 +280,20 @@ namespace CGAL
|
||||||
Dart_of_cell_basic_range<i>::const_iterator it(amap, adart, mark);
|
Dart_of_cell_basic_range<i>::const_iterator it(amap, adart, mark);
|
||||||
for ( ;it.cont(); ++it )
|
for ( ;it.cont(); ++it )
|
||||||
{
|
{
|
||||||
if (!amap.is_marked(*it, treated))
|
if (!amap.is_marked(it, treated))
|
||||||
{
|
{
|
||||||
++nbIncident;
|
++nbIncident;
|
||||||
CGAL::mark_cell<Map,i+1>(amap, *it, treated);
|
CGAL::mark_cell<Map,i+1>(amap, it, treated);
|
||||||
}
|
}
|
||||||
amap.mark(*it,mark);
|
amap.mark(it,mark);
|
||||||
}
|
}
|
||||||
|
|
||||||
amap.negate_mark(mark);
|
amap.negate_mark(mark);
|
||||||
for (it.rewind(); it.cont(); ++it)
|
for (it.rewind(); it.cont(); ++it)
|
||||||
{
|
{
|
||||||
if (amap.is_marked(*it, treated))
|
if (amap.is_marked(it, treated))
|
||||||
CGAL::unmark_cell<Map,i+1>(amap, *it, treated);
|
{ CGAL::unmark_cell<Map,i+1>(amap, it, treated); }
|
||||||
amap.mark(*it,mark);
|
amap.mark(it,mark);
|
||||||
}
|
}
|
||||||
|
|
||||||
amap.negate_mark(mark);
|
amap.negate_mark(mark);
|
||||||
|
|
@ -329,20 +329,20 @@ namespace CGAL
|
||||||
Dart_of_cell_basic_range<i>::const_iterator it(amap, adart, mark);
|
Dart_of_cell_basic_range<i>::const_iterator it(amap, adart, mark);
|
||||||
for ( ; it.cont(); ++it)
|
for ( ; it.cont(); ++it)
|
||||||
{
|
{
|
||||||
if (!amap.is_marked(*it, treated))
|
if (!amap.is_marked(it, treated))
|
||||||
{
|
{
|
||||||
++nbIncident;
|
++nbIncident;
|
||||||
CGAL::mark_cell<Map,i-1>(amap, *it, treated);
|
CGAL::mark_cell<Map,i-1>(amap, it, treated);
|
||||||
}
|
}
|
||||||
amap.mark(*it,mark);
|
amap.mark(it,mark);
|
||||||
}
|
}
|
||||||
|
|
||||||
amap.negate_mark(mark);
|
amap.negate_mark(mark);
|
||||||
for (it.rewind(); it.cont(); ++it)
|
for (it.rewind(); it.cont(); ++it)
|
||||||
{
|
{
|
||||||
if (amap.is_marked(*it, treated))
|
if (amap.is_marked(it, treated))
|
||||||
CGAL::unmark_cell<Map,i-1>(amap, *it, treated);
|
{ CGAL::unmark_cell<Map,i-1>(amap, it, treated); }
|
||||||
amap.mark(*it,mark);
|
amap.mark(it,mark);
|
||||||
}
|
}
|
||||||
|
|
||||||
amap.negate_mark(mark);
|
amap.negate_mark(mark);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue