21 static const char example[] =
"gmsh2.msh";
22 static const char example2[] =
"airfoil_exterior.msh";
63 const double eps = 1e-100;
69 std::vector< EntityHandle > nodes;
75 std::vector< int > ids( nodes.size() );
78 std::vector< int > sorted_ids( ids );
79 std::sort( sorted_ids.begin(), sorted_ids.end() );
81 std::vector< double > coords( 3 * nodes.size() );
86 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
93 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
100 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
107 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
114 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
121 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
134 std::vector< EntityHandle > quads;
140 std::vector< int > ids( quads.size() );
153 const int conn1[] = { 1, 2, 3, 4 };
161 const int conn2[] = { 2, 5, 6, 3 };
189 std::vector< EntityHandle > quads, contents;
192 std::sort( quads.begin(), quads.end() );
193 std::sort( contents.begin(), contents.end() );
246 std::vector< EntityHandle > quads, contents;
249 std::sort( quads.begin(), quads.end() );
250 std::sort( contents.begin(), contents.end() );
276 Range ents_first_set;
277 rval =
moab.get_entities_by_handle( psets[0], ents_first_set );
CHECK_ERR( rval );