1 #ifndef ELEM_EVALUATOR_HPP
2 #define ELEM_EVALUATOR_HPP
36 typedef ErrorCode ( *
InitFcn )(
const double* verts,
const int nverts,
double*& work );
38 typedef int ( *
InsideFcn )(
const double* verts,
const int ndims,
const double tol );
47 const double iter_tol,
48 const double inside_tol,
54 *
NormalFcn )(
const int ientDim,
const int facet,
const int nverts,
const double* verts,
double normal[3] );
137 const double iter_tol,
138 const double inside_tol,
143 static int inside_function(
const double* params,
const int ndims,
const double tol );
150 EntityType tp =
mb->type_from_handle( eh );
152 std::vector< EntityHandle > dum_vec;
153 ErrorCode rval =
mb->get_connectivity( eh, connect, nv,
false, &dum_vec );
196 ErrorCode eval(
const double* params,
double* result,
int num_tuples = -1 )
const;
210 int* is_inside = NULL )
const;
235 int inside(
const double* params,
const double tol )
const;
253 const double iter_tol,
254 const double inside_tol,
257 unsigned int* num_evals = NULL );
277 const double iter_tol,
278 const double inside_tol,
281 unsigned int* num_evals = NULL );
423 : mbImpl( impl ), entHandle( 0 ), entType(
MBMAXTYPE ), entDim( -1 ), numVerts( 0 ), vertHandles( NULL ),
424 tagHandle( 0 ), tagCoords( false ), numTuples( 0 ), taggedEntDim( 0 ), workSpace( NULL )
447 std::vector< EntityHandle > dum_vec;
468 if( !tag && !tagged_ent_dim )
488 taggedEntDim = ( -1 == tagged_ent_dim ? 0 : tagged_ent_dim );
510 if( !tag_name || strlen( tag_name ) == 0 )
return MB_FAILURE;
512 if( !strcmp( tag_name,
"COORDS" ) )
578 const double iter_tol,
579 const double inside_tol,
622 const double iter_tol,
623 const double inside_tol,
626 unsigned int* num_evals )