39 for(
unsigned i = 0; i <
tagSizes.size(); ++i )
108 bool root_set_okay )
const
123 fprintf(stderr,
"[Warning]: Invalid entity handle: 0x%lx\n", (
unsigned long)*
entities);
152 if(
MB_SUCCESS != rval )
return result = rval;
159 if(
MB_SUCCESS != rval )
return result = rval;
161 if(
MB_SUCCESS != rval )
return result = rval;
182 if( !handle )
return MB_FAILURE;
194 if( !seq_data )
delete vdata;
242 if( !handle )
return MB_FAILURE;
264 if( !seq_data )
delete vdata;
303 if( !handle )
return MB_FAILURE;
315 if( !seq_data )
delete vdata;
383 assert( handle >= block_start && handle <= block_end );
393 if( !data )
delete vdata;
403 assert( end_handle >= start_handle );
404 assert( (
int)max_size > 0 );
407 if( end_handle - start_handle >= max_size ) end_handle = start_handle + max_size - 1;
435 if( sequence_size < (
int)requested_size )
return requested_size;
444 EntityID available_size = last - start + 1;
445 if( sequence_size < available_size )
446 return sequence_size;
448 return available_size;
518 data = data ? 0 : sequence->
data();
529 const unsigned* flags,
549 data = data ? 0 : sequence->
data();
579 data = data ? 0 : sequence->
data();
603 assert( ( this_dim < 3 || kmax > kmin ) && ( this_dim < 2 || jmax > jmin ) && ( this_dim < 1 || imax > imin ) );
611 num_ent = ( imax - imin + ( is_periodic && is_periodic[0] ? 1 : 0 ) ) *
612 ( this_dim >= 2 ? ( jmax - jmin + ( is_periodic && is_periodic[1] ? 1 : 0 ) ) : 1 ) *
613 ( this_dim >= 3 ? ( kmax - kmin ) : 1 );
616 if(
MBVERTEX == type && ( is_periodic && ( is_periodic[0] || is_periodic[1] ) ) )
return MB_FAILURE;
629 data =
new ScdVertexData( handle, imin, jmin, kmin, imax, jmax, kmax );
644 data = sequence->
data();
662 coord_max.
k(), type, start_id_hint, first_handle_out, sequence_out, is_periodic );
679 assert( ( this_dim < 3 || kmax > kmin ) && ( this_dim < 2 || jmax > jmin ) && ( this_dim < 1 || imax > imin ) );
686 num_ent = ( imax - imin ) * ( this_dim >= 2 ? ( jmax - jmin ) : 1 ) * ( this_dim >= 3 ? ( kmax - kmin ) : 1 );
700 data =
new ScdVertexData( handle, imin, jmin, kmin, imax, jmax, kmax );
706 sequence =
new SweptElementSeq( handle, imin, jmin, kmin, imax, jmax, kmax, Cq );
715 data = sequence->
data();
733 coord_max.
k(), Cq, type, start_id_hint, first_handle_out, sequence_out );
750 if( !scd_vd )
return MB_FAILURE;
753 if( !scd_ed )
return MB_FAILURE;
755 if( bb_min && bb_max )
756 return scd_ed->
add_vsequence( scd_vd, p1, q1, p2, q2, p3, q3, bb_input, *bb_min, *bb_max );
769 unsigned long long& total_storage )
const
772 total_entity_storage = 0;
774 unsigned long long temp_entity, temp_total;
777 temp_entity = temp_total = 0;
779 total_entity_storage += temp_entity;
780 total_storage += temp_total;
785 unsigned long long& total_entity_storage,
786 unsigned long long& total_storage )
const
792 unsigned long long& total_entity_storage,
793 unsigned long long& total_amortized_storage )
const
795 total_entity_storage = 0;
796 total_amortized_storage = 0;
797 unsigned long long temp_entity, temp_total;
805 temp_entity = temp_total = 0;
807 total_entity_storage += temp_entity;
808 total_amortized_storage += temp_total;
814 temp_entity = temp_total = 0;
816 total_entity_storage += temp_entity;
817 total_amortized_storage += temp_total;
819 temp_entity = temp_total = 0;
821 total_entity_storage += temp_entity;
822 total_amortized_storage += temp_total;
855 fprintf(stderr,
"[Warning]: Invalid dense tag index: %d\n", index);
864 ( *i )->data()->release_tag_data( index,
tagSizes[index] );
882 if( seq->
data() != prev_data )
884 prev_data = seq->
data();
901 <<
"****************** " <<
CN::EntityTypeName( t ) <<
" ******************" << std::endl
910 std::cout << seqman << std::endl;
915 std::cout << seqman << std::endl;