MeshKit  1.0
MeshScheme.cpp
Go to the documentation of this file.
00001 #include "meshkit/MeshScheme.hpp"
00002 #include "meshkit/ModelEnt.hpp"
00003 #include "meshkit/Types.hpp"
00004 
00005 namespace MeshKit 
00006 {
00007 
00008 void MeshScheme::constrain_even() 
00009 {
00010     // constrain all edges to be even
00011 
00012   for (MEntSelection::iterator sit = mentSelection.begin(); sit != mentSelection.end(); sit++)
00013   {
00014     if ( (*sit).first->get_meshed_state()>=COMPLETE_MESH)
00015       continue;
00016     MEntVector edges;
00017     (*sit).first->get_adjacencies(1, edges);
00018 
00019     for (MEntVector::iterator vit = edges.begin(); vit != edges.end(); vit++)
00020       (*vit)->constrain_even(true);
00021   }
00022 }
00023 
00024 } // namespace MeshKit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines