46 const double eps = 1e-100;
52 std::vector< EntityHandle > nodes;
58 std::vector< int > ids( nodes.size() );
61 std::vector< int > sorted_ids( ids );
62 std::sort( sorted_ids.begin(), sorted_ids.end() );
64 std::vector< double > coords( 3 * nodes.size() );
70 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
77 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
84 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
91 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
98 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
105 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
112 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
119 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
126 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
133 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
140 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
147 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
154 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
161 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
168 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
175 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
182 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
189 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
196 idx = std::find( ids.begin(), ids.end(), pos + 1 ) - ids.begin();
209 std::vector< EntityHandle > tets;
215 std::vector< int > ids( tets.size() );
228 const int conn1[] = { 8, 9, 10, 11 };
236 const int conn2[] = { 4, 3, 2, 1 };
252 std::vector< EntityHandle > prisms;
258 std::vector< int > ids( prisms.size() );
271 const int conn1[] = { 2, 3, 4, 5, 6, 7 };
281 const int conn2[] = { 5, 6, 7, 8, 9, 10 };
297 std::vector< EntityHandle > hexes;
303 std::vector< int > ids( hexes.size() );
310 const int conn1[] = { 12, 13, 14, 15, 16, 17, 18, 19 };
333 const void*
const one_val[] = { &one };
337 std::vector< EntityHandle > tets, contents;
340 std::sort( tets.begin(), tets.end() );
341 std::sort( contents.begin(), contents.end() );
358 const void*
const two_val[] = { &two };
362 std::vector< EntityHandle > prisms, contents;
365 std::sort( prisms.begin(), prisms.end() );
366 std::sort( contents.begin(), contents.end() );