MOAB: Mesh Oriented datABase
(version 5.5.0)
|
test mbfacet, a unit test for the FBEngine class, which is providing iGeom like methods to a MOAB db More...
#include "moab/Core.hpp"
#include <iostream>
#include <fstream>
#include <set>
#include <algorithm>
#include <vector>
#include <iterator>
#include <iomanip>
#include <cassert>
#include <cstring>
#include <cmath>
#include "moab/FBEngine.hpp"
#include "moab/GeomTopoTool.hpp"
#include "TestUtil.hpp"
Go to the source code of this file.
Functions | |
ErrorCode | root_set_test (FBEngine *pFacet) |
ErrorCode | gentityset_test (FBEngine *pFacet) |
ErrorCode | geometry_evaluation_test (FBEngine *pFacet) |
ErrorCode | normals_test (FBEngine *pFacet) |
ErrorCode | ray_test (FBEngine *pFacet) |
ErrorCode | split_test (Interface *mb, FBEngine *pFacet) |
ErrorCode | check_split (Interface *mb) |
ErrorCode | split_quads_test () |
void | handle_error_code (ErrorCode rv, int &number_failed, int &number_successful) |
int | main (int argc, char *argv[]) |
Variables | |
std::string | filename |
std::string | filename_out |
std::string | polygon_file_name |
std::string | quads_file |
double | min_dot = 0.8 |
bool | keep_output |
int | number_tests_successful = 0 |
int | number_tests_failed = 0 |
test mbfacet, a unit test for the FBEngine class, which is providing iGeom like methods to a MOAB db
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Definition in file mbfacet_test.cpp.
Definition at line 527 of file mbfacet_test.cpp.
References moab::Core::delete_mesh(), ErrorCode, filename_out, gentityset_test(), geometry_evaluation_test(), handle_error_code(), moab::FBEngine::Init(), moab::Core::load_file(), mb, MB_CHK_SET_ERR, MB_SUCCESS, normals_test(), number_tests_failed, number_tests_successful, ray_test(), and root_set_test().
Referenced by main().
Definition at line 188 of file mbfacet_test.cpp.
References moab::FBEngine::addEntArrToSet(), moab::FBEngine::addEntSet(), moab::FBEngine::createEntSet(), ErrorCode, moab::FBEngine::getEntities(), moab::FBEngine::getNumEntSets(), moab::FBEngine::getNumOfType(), moab::FBEngine::getRootSet(), moab::FBEngine::gsubtract(), MB_CHK_SET_ERR, MB_SUCCESS, root_set, and moab::Range::size().
Referenced by check_split(), main(), and split_quads_test().
Definition at line 289 of file mbfacet_test.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::FBEngine::getEntBoundBox(), moab::FBEngine::getEntClosestPt(), moab::FBEngine::getEntities(), moab::FBEngine::getEntUtoXYZ(), moab::FBEngine::getRootSet(), MB_CHK_SET_ERR, MB_SUCCESS, root_set, and moab::Range::size().
Referenced by check_split(), main(), and split_quads_test().
void handle_error_code | ( | ErrorCode | rv, |
int & | number_failed, | ||
int & | number_successful | ||
) |
Definition at line 55 of file mbfacet_test.cpp.
References MB_SUCCESS.
Referenced by check_split(), main(), and split_quads_test().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 69 of file mbfacet_test.cpp.
References check_split(), ErrorCode, filename, filename_out, gentityset_test(), geometry_evaluation_test(), handle_error_code(), moab::FBEngine::Init(), keep_output, moab::Core::load_file(), mb, MB_CHK_SET_ERR, mbcore, min_dot, normals_test(), number_tests_failed, number_tests_successful, polygon_file_name, quads_file, ray_test(), root_set_test(), split_quads_test(), and split_test().
Definition at line 355 of file mbfacet_test.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::FBEngine::getEntBoundBox(), moab::FBEngine::getEntities(), moab::FBEngine::getEntNrmlXYZ(), moab::FBEngine::getRootSet(), MB_CHK_SET_ERR, MB_SUCCESS, root_set, and moab::Range::size().
Referenced by check_split(), main(), and split_quads_test().
Definition at line 399 of file mbfacet_test.cpp.
References ErrorCode, moab::FBEngine::getEntBoundBox(), moab::FBEngine::getEntities(), moab::FBEngine::getPntRayIntsct(), moab::FBEngine::getRootSet(), moab::Interface::id_from_handle(), MB_CHK_SET_ERR, MB_SUCCESS, moab::FBEngine::moab_instance(), root_set, and moab::Interface::type_from_handle().
Referenced by check_split(), main(), and split_quads_test().
Definition at line 180 of file mbfacet_test.cpp.
References ErrorCode, moab::FBEngine::getRootSet(), MB_CHK_SET_ERR, MB_SUCCESS, and root_set.
Referenced by check_split(), and main().
ErrorCode split_quads_test | ( | ) |
Definition at line 575 of file mbfacet_test.cpp.
References moab::FBEngine::delete_smooth_tags(), ErrorCode, gentityset_test(), geometry_evaluation_test(), moab::FBEngine::getEntities(), moab::FBEngine::getRootSet(), handle_error_code(), moab::FBEngine::Init(), keep_output, moab::Core::load_file(), mb, MB_CHK_SET_ERR, MB_SUCCESS, mbcore, normals_test(), number_tests_failed, number_tests_successful, quads_file, ray_test(), root_set, moab::Range::size(), and moab::Core::write_file().
Referenced by main().
Definition at line 449 of file mbfacet_test.cpp.
References moab::FBEngine::delete_smooth_tags(), moab::GeomTopoTool::duplicate_model(), ErrorCode, filename_out, moab::FBEngine::get_gtt(), moab::GeomTopoTool::get_root_model_set(), moab::FBEngine::getEntities(), moab::FBEngine::getRootSet(), mb, MB_CHK_SET_ERR, min_dot, nr, polygon_file_name, root_set, moab::FBEngine::split_surface_with_direction(), and moab::Core::write_file().
Referenced by main().
std::string filename |
Definition at line 31 of file mbfacet_test.cpp.
Referenced by main().
std::string filename_out |
Definition at line 32 of file mbfacet_test.cpp.
Referenced by check_split(), main(), and split_test().
bool keep_output |
Definition at line 39 of file mbfacet_test.cpp.
Referenced by main(), and split_quads_test().
double min_dot = 0.8 |
Definition at line 37 of file mbfacet_test.cpp.
Referenced by main(), and split_test().
int number_tests_failed = 0 |
Definition at line 41 of file mbfacet_test.cpp.
Referenced by check_split(), main(), and split_quads_test().
int number_tests_successful = 0 |
Definition at line 40 of file mbfacet_test.cpp.
Referenced by check_split(), main(), and split_quads_test().
std::string polygon_file_name |
Definition at line 33 of file mbfacet_test.cpp.
Referenced by main(), and split_test().
std::string quads_file |
Definition at line 35 of file mbfacet_test.cpp.
Referenced by main(), and split_quads_test().