19 int main(
int argc,
char* argv[] )
58 conn[0] =
VERTS[i][j][k];
59 conn[1] =
VERTS[i + 1][j][k];
60 conn[2] =
VERTS[i + 1][j + 1][k];
61 conn[3] =
VERTS[i][j + 1][k];
62 conn[4] =
VERTS[i][j][k + 1];
63 conn[5] =
VERTS[i + 1][j][k + 1];
64 conn[6] =
VERTS[i + 1][j + 1][k + 1];
65 conn[7] =
VERTS[i][j + 1][k + 1];
101 if( instance )
return instance;
128 for(
int f = 0; f < 6; ++f )
137 return ( instance = tmp );
152 int adj_alloc =
sizeof( adj ) /
sizeof( adj[0] );
153 int off_alloc =
sizeof( off ) /
sizeof( off[0] );
154 int adj_size = -1, off_size = -1;
158 &off_alloc, &off_size, &err );
182 int adj_alloc =
sizeof( adj ) /
sizeof( adj[0] );
183 int off_alloc =
sizeof( off ) /
sizeof( off[0] );
184 int adj_size = -1, off_size = -1;
188 &off_alloc, &off_size, &err );
214 int adj_alloc = 0, off_alloc = 0;
215 int adj_size = -1, off_size = -1;
224 CHECK( adj_alloc >= adj_size );
225 CHECK( off_alloc >= off_size );
252 int adj_alloc = 0, off_alloc = 0;
253 int adj_size = -1, off_size = -1;
261 CHECK( adj_alloc >= adj_size );
262 CHECK( off_alloc >= off_size );
282 int adj_alloc = 0, off_alloc = 0;
283 int adj_size = -1, off_size = -1;
291 CHECK( adj_alloc >= adj_size );
292 CHECK( off_alloc >= off_size );
298 std::copy( adj + off[0], adj + off[1], act );
299 std::sort( exp, exp + 3 );
300 std::sort( act, act + 3 );
307 std::sort( exp2, exp2 + 3 );
308 std::sort( act, act + 3 );
339 const int SPECIAL1 = 0xDeadBeef;
340 const int SPECIAL2 = 0xCafe5;
341 const int SPECIAL3 = 0xbabb1e;
344 volatile int marker1 = SPECIAL1;
346 volatile int marker2 = SPECIAL2;
348 int adj1_alloc =
sizeof( adj1 ) /
sizeof( adj1[0] );
349 int off1_alloc =
sizeof( off1 ) /
sizeof( off1[0] );
350 int adj_size, off_size;
354 &off1_alloc, &off_size, &err );
364 volatile int marker3 = SPECIAL3;
366 volatile int marker4 = SPECIAL1;
367 int off2_alloc =
sizeof( off2 ) /
sizeof( off2[0] );
372 &off2_alloc, &off_size, &err );
389 int adj_alloc = 0, off_alloc = 0;
390 int adj_size = -1, off_size = -1;
391 iMesh_getEntArrAdj(
mesh, NULL, 0,
iBase_REGION, &adj, &adj_alloc, &adj_size, &off, &off_alloc, &off_size, &err );
396 CHECK( off_alloc >= 1 );
444 int contained_set_handles_allocated = 0;
445 int contained_set_handles_size;
448 &contained_set_handles_size, &err );
451 for(
int i = 0; i < contained_set_handles_size; i++ )
454 int tag_handles_allocated = 0;
455 int tag_handles_size;
460 for(
int j = 0; j < tag_handles_size; j++ )
468 free( contained_set_handles );