MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "iGeom.h"
#include "iMesh.h"
#include "iRel.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "MBiMesh.hpp"
#include "moab/Core.hpp"
Go to the source code of this file.
Macros | |
#define | STRINGIFY_(X) #X |
#define | STRINGIFY(X) STRINGIFY_( X ) |
#define | CHECK_SIZE_C(type, array, allocated_size, size) |
Typedefs | |
typedef void * | iRel_EntityHandle |
Functions | |
int | print_geom_info (iGeom_Instance geom, iBase_EntityHandle gent) |
int | print_mesh_info (iMesh_Instance mesh, iBase_EntityHandle ment) |
int | load_geom_mesh (const char *geom_filename, const char *mesh_filename, iGeom_Instance geom, iMesh_Instance mesh) |
int | create_relation (iRel_Instance assoc, iGeom_Instance geom, iMesh_Instance mesh, iRel_PairHandle *pair) |
int | relate_geom_mesh (iRel_Instance assoc, iGeom_Instance geom, iMesh_Instance mesh, iRel_PairHandle pair) |
int | compute_normals (iRel_Instance assoc, iGeom_Instance geom, iMesh_Instance mesh, iRel_PairHandle pair) |
int | main (int argc, char *argv[]) |
#define CHECK_SIZE_C | ( | type, | |
array, | |||
allocated_size, | |||
size | |||
) |
Definition at line 31 of file normals.cpp.
#define STRINGIFY | ( | X | ) | STRINGIFY_( X ) |
Definition at line 20 of file normals.cpp.
#define STRINGIFY_ | ( | X | ) | #X |
Definition at line 19 of file normals.cpp.
typedef void* iRel_EntityHandle |
Definition at line 42 of file normals.cpp.
int compute_normals | ( | iRel_Instance | assoc, |
iGeom_Instance | geom, | ||
iMesh_Instance | mesh, | ||
iRel_PairHandle | pair | ||
) |
Definition at line 427 of file normals.cpp.
References ErrorCode, geom, moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_dimension(), iBase_FACE, iBase_SUCCESS, iMesh_isList, iRel_getEntArrSetArrRelation, mb, MB_SUCCESS, mesh, print_geom_info(), moab::Range::size(), moab::Core::tag_get_data(), and moab::Core::tag_get_handle().
Referenced by main().
int create_relation | ( | iRel_Instance | assoc, |
iGeom_Instance | geom, | ||
iMesh_Instance | mesh, | ||
iRel_PairHandle * | pair | ||
) |
Definition at line 195 of file normals.cpp.
References geom, iBase_SUCCESS, iRel_ACTIVE, iRel_createPair, iRel_ENTITY, iRel_findPairs, iRel_getPairInfo, iRel_IGEOM_IFACE, iRel_IMESH_IFACE, iRel_SET, and mesh.
Referenced by main().
int load_geom_mesh | ( | const char * | geom_filename, |
const char * | mesh_filename, | ||
iGeom_Instance | geom, | ||
iMesh_Instance | mesh | ||
) |
Definition at line 169 of file normals.cpp.
References geom, iBase_SUCCESS, iMesh_load, and mesh.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 535 of file normals.cpp.
References compute_normals(), create_relation(), geom, iMesh_dtor, iMesh_newMesh, iRel_create, iRel_destroy, load_geom_mesh(), mesh, and relate_geom_mesh().
int print_geom_info | ( | iGeom_Instance | geom, |
iBase_EntityHandle | gent | ||
) |
Definition at line 44 of file normals.cpp.
References geom, and iBase_SUCCESS.
Referenced by compute_normals().
int print_mesh_info | ( | iMesh_Instance | mesh, |
iBase_EntityHandle | ment | ||
) |
Definition at line 64 of file normals.cpp.
References iBase_ALL_TYPES, iBase_BYTES, iBase_DOUBLE, iBase_ENTITY_HANDLE, iBase_INTEGER, iBase_SUCCESS, iMesh_getAllTags, iMesh_getData, iMesh_getDblData, iMesh_getEHData, iMesh_getEntAdj, iMesh_getEntArrType, iMesh_getIntData, iMesh_getTagName, iMesh_getTagType, and mesh.
int relate_geom_mesh | ( | iRel_Instance | assoc, |
iGeom_Instance | geom, | ||
iMesh_Instance | mesh, | ||
iRel_PairHandle | pair | ||
) |
Definition at line 260 of file normals.cpp.
References dim, geom, iBase_ALL_TYPES, iBase_INTEGER, iBase_SUCCESS, iBase_TAG_ALREADY_EXISTS, iBase_VERTEX, iMesh_createTag, iMesh_getEntSetIntData, iMesh_getEntSets, iRel_getEntArrSetArrRelation, iRel_getSetArrEntArrRelation, iRel_inferAllRelations, iRel_inferEntArrRelations, iRel_inferSetArrRelations, iRel_rmvEntArrRelation, iRel_setEntArrSetArrRelation, and mesh.
Referenced by main().