xmsmesh
1.0
|
Tests for MeMultiPolyMesher. More...
Public Member Functions | |
void | testCreateClass () |
tests creating the class | |
void | testCheckForIntersections1 () |
Tests checking for bad input: self-intersecting outer poly. More... | |
void | testCheckForIntersections2 () |
Tests checking for bad input: self-intersecting inner poly. More... | |
void | testCheckForIntersections3 () |
Tests checking for bad input: inner poly intersects outer poly. More... | |
void | testCheckForIntersections4 () |
Tests checking for bad input: 2 outer polys overlap. More... | |
void | testCheckForIntersections5 () |
Tests checking for bad input: 2 inner polys overlap. More... | |
Tests for MeMultiPolyMesher.
Definition at line 23 of file MeMultiPolyMesher.t.h.
void MeMultiPolyMesherUnitTests::testCheckForIntersections1 | ( | ) |
Tests checking for bad input: self-intersecting outer poly.
/// 10 * /// / | /// 0 *----/----* /// | / /// -10 * /// 0--------100 ///
Definition at line 868 of file MeMultiPolyMesher.cpp.
References xms::XmLog::GetAndClearStackStr(), Singleton< XmLog >::Instance(), xms::MeMultiPolyMesherIo::m_checkTopology, xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, xms::MeMultiPolyMesher::New(), and xmAsserting().
void MeMultiPolyMesherUnitTests::testCheckForIntersections2 | ( | ) |
Tests checking for bad input: self-intersecting inner poly.
/// 100 *-------------* /// | * | /// | / | | /// | *----/----* | /// | | / | /// | * | /// 0 *-------------* /// 0------------100 ///
Definition at line 906 of file MeMultiPolyMesher.cpp.
References xms::XmLog::GetAndClearStackStr(), Singleton< XmLog >::Instance(), xms::MeMultiPolyMesherIo::m_checkTopology, xms::MePolyInput::m_insidePolys, xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, xms::MeMultiPolyMesher::New(), and xmAsserting().
void MeMultiPolyMesherUnitTests::testCheckForIntersections3 | ( | ) |
Tests checking for bad input: inner poly intersects outer poly.
/// 100 *-------------* /// | | /// | *--|--* /// | | | | /// | *--|--* /// 0 *-------------* /// 0------------100 ///
Definition at line 945 of file MeMultiPolyMesher.cpp.
References xms::XmLog::GetAndClearStackStr(), Singleton< XmLog >::Instance(), xms::MeMultiPolyMesherIo::m_checkTopology, xms::MePolyInput::m_insidePolys, xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, xms::MeMultiPolyMesher::New(), and xmAsserting().
void MeMultiPolyMesherUnitTests::testCheckForIntersections4 | ( | ) |
Tests checking for bad input: 2 outer polys overlap.
/// *-------------* /// 100 *-|-----------* | /// | | | | /// | | | | /// | | | | /// | | | | /// | *-------------* /// 0 *-------------* /// 0------------100 ///
Definition at line 989 of file MeMultiPolyMesher.cpp.
References xms::XmLog::GetAndClearStackStr(), Singleton< XmLog >::Instance(), xms::MeMultiPolyMesherIo::m_checkTopology, xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, xms::MeMultiPolyMesher::New(), and xmAsserting().
void MeMultiPolyMesherUnitTests::testCheckForIntersections5 | ( | ) |
Tests checking for bad input: 2 inner polys overlap.
/// 100- *--------------* /// | *-----* | /// | *-|---* | | /// | | | | | | /// | | *-----* | /// | *-----* | /// 0- *--------------* /// /// 0------------100 ///
Definition at line 1032 of file MeMultiPolyMesher.cpp.
References xms::XmLog::GetAndClearStackStr(), Singleton< XmLog >::Instance(), xms::MeMultiPolyMesherIo::m_checkTopology, xms::MePolyInput::m_insidePolys, xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, xms::MeMultiPolyMesher::New(), and xmAsserting().