MOAB: Mesh Oriented datABase  (version 5.4.1)
MsqFreeVertexIndexIteratorTest Class Reference
+ Inheritance diagram for MsqFreeVertexIndexIteratorTest:
+ Collaboration diagram for MsqFreeVertexIndexIteratorTest:

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

Detailed Description

Definition at line 63 of file MsqFreeVertexIndexIteratorTest.cpp.


Constructor & Destructor Documentation


Member Function Documentation

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 );
    }

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() );
    }

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() );
    }

Member Data Documentation

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines