| 353 | } |
| 354 | |
| 355 | bool MeshTopology::isOrgInnerAndHasDegree( EdgeId a, int d ) const |
| 356 | { |
| 357 | int counter = 0; |
| 358 | for ( auto e : orgRing( *this, a ) ) |
| 359 | { |
| 360 | if ( !left( e ) ) |
| 361 | return false; |
| 362 | ++counter; |
| 363 | if ( counter > d ) |
| 364 | return false; |
| 365 | } |
| 366 | if ( counter < d ) |
| 367 | return false; |
| 368 | assert( counter == d ); |
| 369 | return true; |
| 370 | } |
| 371 | |
| 372 | int MeshTopology::getLeftDegree( EdgeId a ) const |
| 373 | { |