MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Go to the source code of this file.
Functions | |
void | test_construct_from_hex () |
void | test_cut_with_plane () |
void | test_volume () |
int | main () |
static void | get_corners (CartVect corners[8]) |
const BSPTreePoly::Face * | find_face (const BSPTreePoly &poly, const CartVect *coords, int num_corners, const int *face_indices=0) |
Variables | |
const int | hex_faces [6][4] |
const BSPTreePoly::Face* find_face | ( | const BSPTreePoly & | poly, |
const CartVect * | coords, | ||
int | num_corners, | ||
const int * | face_indices = 0 |
||
) |
Definition at line 35 of file bsp_tree_poly_test.cpp.
References moab::BSPTreePoly::get_faces(), and moab::BSPTreePoly::get_vertices().
Referenced by test_construct_from_hex(), and test_cut_with_plane().
|
static |
Definition at line 23 of file bsp_tree_poly_test.cpp.
Referenced by test_construct_from_hex(), test_cut_with_plane(), and test_volume().
int main | ( | ) |
Definition at line 11 of file bsp_tree_poly_test.cpp.
References error_count, RUN_TEST, test_construct_from_hex(), test_cut_with_plane(), and test_volume().
void test_construct_from_hex | ( | ) |
Definition at line 70 of file bsp_tree_poly_test.cpp.
References CHECK, CHECK_EQUAL, find_face(), get_corners(), moab::BSPTreePoly::get_faces(), hex_faces, moab::BSPTreePoly::is_valid(), and moab::BSPTreePoly::reset_debug_ids().
Referenced by main().
void test_cut_with_plane | ( | ) |
Definition at line 91 of file bsp_tree_poly_test.cpp.
References CHECK, CHECK_EQUAL, moab::BSPTreePoly::cut_polyhedron(), find_face(), get_corners(), moab::BSPTreePoly::get_faces(), hex_faces, moab::BSPTreePoly::is_valid(), moab::BSPTreePoly::reset_debug_ids(), and moab::BSPTreePoly::set().
Referenced by main().
void test_volume | ( | ) |
Definition at line 163 of file bsp_tree_poly_test.cpp.
References CHECK, CHECK_REAL_EQUAL, get_corners(), moab::BSPTreePoly::is_valid(), and moab::BSPTreePoly::volume().
Referenced by main().
const int hex_faces[6][4] |
Definition at line 20 of file bsp_tree_poly_test.cpp.
Referenced by test_construct_from_hex(), and test_cut_with_plane().