Commit e3aa2d19 authored by untereiner's avatar untereiner

Merge cgogn:~kraemer/CGoGN

parents aa664a0b 1fc89677
......@@ -616,7 +616,7 @@ template <typename MAP, unsigned int ORBIT, unsigned int INCIDENT>
unsigned int GenericMap::degree(Dart d)
{
assert(ORBIT != INCIDENT || !"degree does not manage adjacency counting");
Traversor<MAP>* t = TraversorFactory<MAP>::createIncident(*this, d, dimension(), ORBIT, INCIDENT) ;
Traversor<MAP>* t = TraversorFactory<MAP>::createIncident(*(reinterpret_cast<MAP*>(this)), d, dimension(), ORBIT, INCIDENT) ;
FunctorCount fcount ;
t->applyFunctor(fcount) ;
return fcount.getNb() ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment