71 FILE* filePtr = fopen(
fileName,
"r" );
78 long num_verts = 0, num_elems = 0, num_sets = 0;
101 result =
read_elements( num_elems, start_vertex, start_elem, read_ents );
110 result =
create_sets( num_sets, start_vertex, num_verts, start_elem, num_elems, read_ents );
118 if( file_set && *file_set )
138 std::vector< double* > coord_arrays;
142 double *x = coord_arrays[0], *y = coord_arrays[1], *z = coord_arrays[2];
143 for(
long i = 0; i < num_verts; ++i )
151 if( num_verts ) read_ents.
insert( start_vertex, start_vertex + num_verts - 1 );
163 EntityType ent_type =
MBHEX;
166 int verts_per_elem = 8;
175 for(
long i = 0; i < num_elems; i++ )
185 int* ind_array =
reinterpret_cast< int*
>( conn_array );
189 for(
long i = num_elems * verts_per_elem - 1; i >= 0; i-- )
191 conn_array[i] = ind_array[i] + start_vertex + OFFSET;
194 assert( conn_array[i] >= start_vertex && conn_array[i] <= *read_ents.
rbegin() );
202 if( num_elems ) read_ents.
insert( start_elem, start_elem + num_elems - 1 );
218 for(
int i = 0; i < num_sets; i++ )
230 read_ents.
insert( this_set );