#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