MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "TestUtil.hpp"
#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include <cmath>
#include <algorithm>
Go to the source code of this file.
Functions | |
void | test_read_ascii () |
void | test_write_ascii () |
void | test_type_option () |
void | test_detect_type () |
void | test_endian_option () |
void | test_big_endian () |
void | test_little_endian () |
void | test_detect_byte_order () |
void | read_file (Interface &moab, const char *input_file, const char *options="") |
void | convert_file (const char *source_file, const char *dest_file, const char *options="") |
void | check_mesh_is_tet (Interface &moab) |
int | main () |
ErrorCode | read_file_ (Interface &moab, const char *input_file, const char *options="") |
Variables | |
static const char | sample [] = "sample.stl" |
static const char * | tmp_file = "test.stl" |
void check_mesh_is_tet | ( | Interface & | moab | ) |
Definition at line 166 of file stl_test.cpp.
References moab::Range::all_of_type(), moab::Range::begin(), CHECK, CHECK_EQUAL, CHECK_ERR, moab::Range::end(), ErrorCode, MBENTITYSET, MBTRI, MBVERTEX, moab::Range::size(), and moab::subtract().
Referenced by test_big_endian(), test_little_endian(), test_read_ascii(), and test_write_ascii().
void convert_file | ( | const char * | source_file, |
const char * | dest_file, | ||
const char * | options = "" |
||
) |
Definition at line 66 of file stl_test.cpp.
References CHECK_ERR, ErrorCode, and input_file.
Referenced by test_big_endian(), test_detect_byte_order(), test_detect_type(), test_endian_option(), test_little_endian(), test_type_option(), and test_write_ascii().
int main | ( | ) |
Definition at line 38 of file stl_test.cpp.
References RUN_TEST, test_big_endian(), test_detect_byte_order(), test_detect_type(), test_endian_option(), test_little_endian(), test_read_ascii(), test_type_option(), test_write_ascii(), and tmp_file.
void read_file | ( | Interface & | moab, |
const char * | input_file, | ||
const char * | options = "" |
||
) |
Definition at line 61 of file stl_test.cpp.
References CHECK_ERR, ErrorCode, input_file, and read_file_().
Referenced by test_big_endian(), test_detect_byte_order(), test_detect_type(), test_little_endian(), test_read_ascii(), and test_write_ascii().
Definition at line 55 of file stl_test.cpp.
References ErrorCode, and input_file.
Referenced by read_file(), test_detect_type(), test_endian_option(), and test_type_option().
void test_big_endian | ( | ) |
Definition at line 135 of file stl_test.cpp.
References check_mesh_is_tet(), convert_file(), read_file(), sample, and tmp_file.
Referenced by main().
void test_detect_byte_order | ( | ) |
Definition at line 153 of file stl_test.cpp.
References convert_file(), read_file(), sample, and tmp_file.
Referenced by main().
void test_detect_type | ( | ) |
Definition at line 107 of file stl_test.cpp.
References convert_file(), read_file(), read_file_(), sample, and tmp_file.
Referenced by main().
void test_endian_option | ( | ) |
Definition at line 119 of file stl_test.cpp.
References CHECK, convert_file(), ErrorCode, MB_SUCCESS, read_file_(), sample, and tmp_file.
Referenced by main().
void test_little_endian | ( | ) |
Definition at line 144 of file stl_test.cpp.
References check_mesh_is_tet(), convert_file(), read_file(), sample, and tmp_file.
Referenced by main().
void test_read_ascii | ( | ) |
Definition at line 76 of file stl_test.cpp.
References check_mesh_is_tet(), read_file(), and sample.
Referenced by main().
void test_type_option | ( | ) |
Definition at line 92 of file stl_test.cpp.
References CHECK, convert_file(), ErrorCode, MB_SUCCESS, read_file_(), sample, and tmp_file.
Referenced by main().
void test_write_ascii | ( | ) |
Definition at line 83 of file stl_test.cpp.
References check_mesh_is_tet(), convert_file(), read_file(), sample, and tmp_file.
Referenced by main().
|
static |
Definition at line 17 of file stl_test.cpp.
Referenced by test_big_endian(), test_detect_byte_order(), test_detect_type(), test_endian_option(), test_little_endian(), test_read_ascii(), test_type_option(), and test_write_ascii().
|
static |
Definition at line 21 of file stl_test.cpp.
Referenced by main(), mb_skin_verts_common(), test_big_endian(), test_detect_byte_order(), test_detect_type(), test_endian_option(), test_little_endian(), test_type_option(), test_write_ascii(), and write_and_read().