MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <iostream>
#include "moab/Interface.hpp"
#include "TestUtil.hpp"
#include "Internals.hpp"
#include "moab/Core.hpp"
#include "MBTagConventions.hpp"
#include "moab/GeomTopoTool.hpp"
#include "InitCGMA.hpp"
#include "GeometryQueryTool.hpp"
#include "CGMConfig.h"
Go to the source code of this file.
Macros | |
#define | IS_BUILDING_MB |
#define | SENSE_FORWARD 1 |
#define | SENSE_REVERSE ( -1 ) |
#define | SENSE_UNKNOWN 0 |
#define | CHKERR(A) |
Functions | |
void | read_file (Interface *moab, const char *input_file) |
ErrorCode | load_sat_curve_sense_data (Interface *moab, EntityHandle curve, std::vector< int > &surf_ids_out, std::vector< int > &senses_out) |
ErrorCode | load_stp_curve_sense_data (Interface *moab, EntityHandle curve, std::vector< int > &surf_ids_out, std::vector< int > &senses_out) |
ErrorCode | load_precgm14_stp_curve_sense_data (Interface *moab, EntityHandle curve, std::vector< int > &surf_ids_out, std::vector< int > &senses_out) |
ErrorCode | load_sat_surf_sense_data (Interface *moab, EntityHandle surf, std::vector< int > &vol_ids_out, std::vector< int > &senses_out) |
ErrorCode | load_stp_surf_sense_data (Interface *moab, EntityHandle surf, std::vector< int > &vol_ids_out, std::vector< int > &senses_out) |
ErrorCode | load_precgm14_stp_surf_sense_data (Interface *moab, EntityHandle surf, std::vector< int > &vol_ids_out, std::vector< int > &senses_out) |
void | check_sense_data (Interface *moab, std::vector< EntityHandle > wrt_ents, std::vector< int > senses, std::vector< int > known_wrt_ids, std::vector< int > known_senses) |
int | geom_id_by_handle (Interface *moab, const EntityHandle set) |
void | read_cylcube_curve_senses_test () |
void | read_cylcube_surf_senses_test () |
void | delete_mesh_test () |
int | main (int, char **) |
Variables | |
std::string | input_cylcube = TestDir + "unittest/io/cylcube.sat" |
#define CHKERR | ( | A | ) |
Definition at line 20 of file read_cgm_senses_test.cpp.
#define IS_BUILDING_MB |
Definition at line 4 of file read_cgm_senses_test.cpp.
#define SENSE_FORWARD 1 |
Definition at line 15 of file read_cgm_senses_test.cpp.
#define SENSE_REVERSE ( -1 ) |
Definition at line 16 of file read_cgm_senses_test.cpp.
#define SENSE_UNKNOWN 0 |
Definition at line 17 of file read_cgm_senses_test.cpp.
void check_sense_data | ( | Interface * | moab, |
std::vector< EntityHandle > | wrt_ents, | ||
std::vector< int > | senses, | ||
std::vector< int > | known_wrt_ids, | ||
std::vector< int > | known_senses | ||
) |
Definition at line 186 of file read_cgm_senses_test.cpp.
References CHECK_EQUAL, and geom_id_by_handle().
Referenced by read_cylcube_curve_senses_test(), and read_cylcube_surf_senses_test().
void delete_mesh_test | ( | ) |
int geom_id_by_handle | ( | Interface * | moab, |
const EntityHandle | set | ||
) |
Definition at line 174 of file read_cgm_senses_test.cpp.
References CHECK_ERR, ErrorCode, and id_tag.
Referenced by check_sense_data(), load_precgm14_stp_curve_sense_data(), load_precgm14_stp_surf_sense_data(), load_sat_curve_sense_data(), load_sat_surf_sense_data(), load_stp_curve_sense_data(), and load_stp_surf_sense_data().
ErrorCode load_precgm14_stp_curve_sense_data | ( | Interface * | moab, |
EntityHandle | curve, | ||
std::vector< int > & | surf_ids_out, | ||
std::vector< int > & | senses_out | ||
) |
Definition at line 474 of file read_cgm_senses_test.cpp.
References geom_id_by_handle(), MB_SUCCESS, SENSE_FORWARD, and SENSE_REVERSE.
Referenced by read_cylcube_curve_senses_test().
ErrorCode load_precgm14_stp_surf_sense_data | ( | Interface * | moab, |
EntityHandle | surf, | ||
std::vector< int > & | vol_ids_out, | ||
std::vector< int > & | senses_out | ||
) |
Definition at line 810 of file read_cgm_senses_test.cpp.
References geom_id_by_handle(), MB_SUCCESS, and SENSE_FORWARD.
Referenced by read_cylcube_surf_senses_test().
ErrorCode load_sat_curve_sense_data | ( | Interface * | moab, |
EntityHandle | curve, | ||
std::vector< int > & | surf_ids_out, | ||
std::vector< int > & | senses_out | ||
) |
Definition at line 225 of file read_cgm_senses_test.cpp.
References geom_id_by_handle(), MB_SUCCESS, SENSE_FORWARD, and SENSE_REVERSE.
Referenced by read_cylcube_curve_senses_test().
ErrorCode load_sat_surf_sense_data | ( | Interface * | moab, |
EntityHandle | surf, | ||
std::vector< int > & | vol_ids_out, | ||
std::vector< int > & | senses_out | ||
) |
Definition at line 684 of file read_cgm_senses_test.cpp.
References geom_id_by_handle(), MB_SUCCESS, and SENSE_FORWARD.
Referenced by read_cylcube_surf_senses_test().
ErrorCode load_stp_curve_sense_data | ( | Interface * | moab, |
EntityHandle | curve, | ||
std::vector< int > & | surf_ids_out, | ||
std::vector< int > & | senses_out | ||
) |
Definition at line 338 of file read_cgm_senses_test.cpp.
References geom_id_by_handle(), MB_SUCCESS, SENSE_FORWARD, and SENSE_REVERSE.
Referenced by read_cylcube_curve_senses_test().
ErrorCode load_stp_surf_sense_data | ( | Interface * | moab, |
EntityHandle | surf, | ||
std::vector< int > & | vol_ids_out, | ||
std::vector< int > & | senses_out | ||
) |
Definition at line 744 of file read_cgm_senses_test.cpp.
References geom_id_by_handle(), MB_SUCCESS, SENSE_FORWARD, and SENSE_REVERSE.
Referenced by read_cylcube_surf_senses_test().
int main | ( | int | , |
char ** | |||
) |
Definition at line 81 of file read_cgm_senses_test.cpp.
References read_cylcube_curve_senses_test(), read_cylcube_surf_senses_test(), and RUN_TEST.
void read_cylcube_curve_senses_test | ( | ) |
Definition at line 103 of file read_cgm_senses_test.cpp.
References CHECK_EQUAL, CHECK_ERR, check_sense_data(), dim, ErrorCode, GEOM_DIMENSION_TAG_NAME, geom_tag, moab::Core::get_entities_by_type_and_tag(), moab::Core::get_number_entities_by_type_and_tag(), moab::GeomTopoTool::get_senses(), input_cylcube, load_precgm14_stp_curve_sense_data(), load_sat_curve_sense_data(), load_stp_curve_sense_data(), mb, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_INTEGER, MBENTITYSET, read_file(), moab::Range::size(), and moab::Core::tag_get_handle().
Referenced by main().
void read_cylcube_surf_senses_test | ( | ) |
Definition at line 615 of file read_cgm_senses_test.cpp.
References CHECK_EQUAL, CHECK_ERR, check_sense_data(), dim, ErrorCode, GEOM_DIMENSION_TAG_NAME, geom_tag, moab::Core::get_entities_by_type_and_tag(), moab::Core::get_number_entities_by_type_and_tag(), moab::GeomTopoTool::get_senses(), input_cylcube, load_precgm14_stp_surf_sense_data(), load_sat_surf_sense_data(), load_stp_surf_sense_data(), mb, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_INTEGER, MBENTITYSET, read_file(), moab::Range::size(), and moab::Core::tag_get_handle().
Referenced by main().
void read_file | ( | Interface * | moab, |
const char * | input_file | ||
) |
Definition at line 91 of file read_cgm_senses_test.cpp.
References CHECK_ERR, ErrorCode, and input_file.
Referenced by read_cylcube_curve_senses_test(), and read_cylcube_surf_senses_test().
std::string input_cylcube = TestDir + "unittest/io/cylcube.sat" |
Definition at line 33 of file read_cgm_senses_test.cpp.
Referenced by read_cylcube_curve_senses_test(), and read_cylcube_surf_senses_test().