1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "meshkit/MeshScheme.hpp"
#include "meshkit/ModelEnt.hpp"
#include "meshkit/Types.hpp"

namespace MeshKit 
{

void MeshScheme::constrain_even() 
{
    // constrain all edges to be even

  for (MEntSelection::iterator sit = mentSelection.begin(); sit != mentSelection.end(); sit++)<--- Prefer prefix ++/-- operators for non-primitive types.
  {
    if ( (*sit).first->get_meshed_state()>=COMPLETE_MESH)
      continue;
    MEntVector edges;
    (*sit).first->get_adjacencies(1, edges);

    for (MEntVector::iterator vit = edges.begin(); vit != edges.end(); vit++)<--- Prefer prefix ++/-- operators for non-primitive types.
      (*vit)->constrain_even(true);
  }
}

} // namespace MeshKit