MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Public Member Functions | |
void | setUp () |
void | tearDown () |
MsqFreeVertexIndexIteratorTest () | |
void | test_hard_fixed_flags () |
void | test_soft_fixed_flags () |
Private Member Functions | |
CPPUNIT_TEST_SUITE (MsqFreeVertexIndexIteratorTest) | |
CPPUNIT_TEST (test_hard_fixed_flags) | |
CPPUNIT_TEST (test_soft_fixed_flags) | |
CPPUNIT_TEST_SUITE_END () | |
Private Attributes | |
PatchData | pd |
Definition at line 63 of file MsqFreeVertexIndexIteratorTest.cpp.
Definition at line 97 of file MsqFreeVertexIndexIteratorTest.cpp.
{}
MsqFreeVertexIndexIteratorTest::CPPUNIT_TEST_SUITE_END | ( | ) | [private] |
void MsqFreeVertexIndexIteratorTest::setUp | ( | ) | [inline] |
Definition at line 76 of file MsqFreeVertexIndexIteratorTest.cpp.
References MBMesquite::create_six_quads_patch_with_domain().
{ MsqPrintError err( cout ); /* 7____6____5___11 | | | | | 2 | 3 | 5 | 8-_ | _-4---10 vertex 1 is at (0,0) | -_0_- | | vertex 11 is at (3,2) | 0 | 1 | 4 | 1----2----3----9 */ create_six_quads_patch_with_domain( pd, err ); }
void MsqFreeVertexIndexIteratorTest::tearDown | ( | ) | [inline] |
Definition at line 91 of file MsqFreeVertexIndexIteratorTest.cpp.
References MBMesquite::destroy_patch_with_domain().
{ destroy_patch_with_domain( pd ); }
void MsqFreeVertexIndexIteratorTest::test_hard_fixed_flags | ( | ) | [inline] |
Definition at line 99 of file MsqFreeVertexIndexIteratorTest.cpp.
References CPPUNIT_ASSERT, MBMesquite::MsqFreeVertexIndexIterator::next(), MBMesquite::MsqFreeVertexIndexIterator::reset(), and MBMesquite::MsqFreeVertexIndexIterator::value().
{ MsqPrintError err( cout ); int indices[10]; int i = 0; MsqFreeVertexIndexIterator ind( pd, err ); ind.reset(); while( ind.next() ) { indices[i] = ind.value(); // cout << i << "th free vertex value: " << ind.value() << endl; ++i; } CPPUNIT_ASSERT( i == 2 ); // number of free vertices. CPPUNIT_ASSERT( pd.vertex_by_index( indices[0] ).is_free_vertex() ); CPPUNIT_ASSERT( pd.vertex_by_index( indices[1] ).is_free_vertex() ); }
void MsqFreeVertexIndexIteratorTest::test_soft_fixed_flags | ( | ) | [inline] |
Definition at line 118 of file MsqFreeVertexIndexIteratorTest.cpp.
References CPPUNIT_ASSERT, MBMesquite::MsqFreeVertexIndexIterator::next(), MBMesquite::MsqFreeVertexIndexIterator::reset(), and MBMesquite::MsqFreeVertexIndexIterator::value().
{ MsqPrintError err( cout ); pd.set_vertex_culled( 0 ); int indices[10]; int i = 0; MsqFreeVertexIndexIterator ind( pd, err ); ind.reset(); while( ind.next() ) { indices[i] = ind.value(); ++i; } CPPUNIT_ASSERT( i == 1 ); // number of free vertices. CPPUNIT_ASSERT( pd.vertex_by_index( indices[0] ).is_free_vertex() ); }
PatchData MsqFreeVertexIndexIteratorTest::pd [private] |
Definition at line 73 of file MsqFreeVertexIndexIteratorTest.cpp.