xmsmesh
1.0
|
Class for testing meshing functionality. More...
#include <TutMeshing.t.h>
Public Member Functions | |
void | test_Example_SimplePolygon () |
Defines the test group. More... | |
void | test_Example_ComplexPolygon () |
[snip_test_Example_SimplePolygon] More... | |
void | test_Example_SimplePolygonWithHole () |
[snip_test_Example_ComplexPolygon] More... | |
void | test_Example_Breakline () |
[snip_test_Example_SimplePolygonWithHole] More... | |
void | test_Example_RefinePoints () |
[snip_test_Example_Breakline] More... | |
void | test_Example_MultiplePolygons () |
[snip_test_Example_RefinePoints] More... | |
void | test_Example_ScalarPaving () |
[snip_test_Example_MultiPolygon] More... | |
void | test_Example_Patch () |
[snip_test_Example_ScalarPaving] More... | |
void | test_Example_ConstantSmooth () |
[snip_test_Example_Patch] More... | |
void | test_Example_SizeFuncFromDepth () |
[snip_test_Example_ConstantSmooth] More... | |
void | test_Example_SmoothSizeFunc () |
[snip_test_Example_SizeFuncFromDepth] More... | |
void | test_Example_SpringRelax () |
[snip_test_Example_SmoothSizeFunc] More... | |
void | test_Example_QuadBlossom_BadQuadRemover () |
[test_Example_Redistribute_Polygon_Curvature] More... | |
Class for testing meshing functionality.
Tests for meshing tutorial.
Definition at line 31 of file TutMeshing.t.h.
void TutMeshingIntermediateTests::test_Example_Breakline | ( | ) |
[snip_test_Example_SimplePolygonWithHole]
Example for a simple polygon with a breakline [snip_test_Example_Breakline]
Definition at line 384 of file TutMeshing.cpp.
References xms::MePolyInput::m_insidePolys, xms::MePolyInput::m_outPoly, and xms::MeMultiPolyMesherIo::m_polys.
void TutMeshingIntermediateTests::test_Example_ComplexPolygon | ( | ) |
[snip_test_Example_SimplePolygon]
Example for meshing a complex polygon [snip_test_Example_ComplexPolygon]
Definition at line 303 of file TutMeshing.cpp.
References xms::MePolyInput::m_outPoly, and xms::MeMultiPolyMesherIo::m_polys.
void TutMeshingIntermediateTests::test_Example_ConstantSmooth | ( | ) |
[snip_test_Example_Patch]
Example for smooth transition with a constant size function [snip_test_Example_ConstantSmooth]
Definition at line 589 of file TutMeshing.cpp.
References xms::MePolyInput::m_constSizeBias, xms::MePolyInput::m_constSizeFunction, xms::MePolyInput::m_outPoly, and xms::MeMultiPolyMesherIo::m_polys.
void TutMeshingIntermediateTests::test_Example_MultiplePolygons | ( | ) |
[snip_test_Example_RefinePoints]
Example for multiple polygons with variable spacing, holes, breaklines, and refine points. [snip_test_Example_MultiPolygon]
Definition at line 474 of file TutMeshing.cpp.
References xms::MeMultiPolyMesherIo::m_polys, and xms::MeMultiPolyMesherIo::m_refPts.
void TutMeshingIntermediateTests::test_Example_Patch | ( | ) |
[snip_test_Example_ScalarPaving]
Example for generating a UGrid with the patch algorithm. [snip_test_Example_Patch]
Definition at line 554 of file TutMeshing.cpp.
References xms::MePolyInput::m_outPoly, xms::MePolyInput::m_polyCorners, and xms::MeMultiPolyMesherIo::m_polys.
void TutMeshingIntermediateTests::test_Example_QuadBlossom_BadQuadRemover | ( | ) |
[test_Example_Redistribute_Polygon_Curvature]
Example for using the MeQuadBlossom class to convert a triangle mesh into a mesh of quads and then to use MeBadQuadRemover to remove narrow, ill-formed quads while still preserving the basic sizes of cells. [snip_test_Example_QuadBlossom_BadQuadRemover]
Definition at line 981 of file TutMeshing.cpp.
References xms::MeQuadBlossom::EstimatedRunTimeInMinutes(), xms::MeBadQuadRemover::New(), xms::MeQuadBlossom::New(), and TS_ASSERT_TXT_FILES_EQUAL.
void TutMeshingIntermediateTests::test_Example_RefinePoints | ( | ) |
[snip_test_Example_Breakline]
Example for a simple polygon with refine points [snip_test_Example_RefinePoints]
Definition at line 421 of file TutMeshing.cpp.
References xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, and xms::MeMultiPolyMesherIo::m_refPts.
void TutMeshingIntermediateTests::test_Example_ScalarPaving | ( | ) |
[snip_test_Example_MultiPolygon]
Example for scalar paving. [snip_test_Example_ScalarPaving]
Definition at line 504 of file TutMeshing.cpp.
References xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, and xms::InterpLinear::New().
void TutMeshingIntermediateTests::test_Example_SimplePolygon | ( | ) |
Defines the test group.
Definition at line 271 of file TutMeshing.cpp.
References xms::MePolyInput::m_outPoly, and xms::MeMultiPolyMesherIo::m_polys.
void TutMeshingIntermediateTests::test_Example_SimplePolygonWithHole | ( | ) |
[snip_test_Example_ComplexPolygon]
Example for meshing a simple polygon with a hole [snip_test_Example_SimplePolygonWithHole]
Definition at line 346 of file TutMeshing.cpp.
References xms::MePolyInput::m_insidePolys, xms::MePolyInput::m_outPoly, and xms::MeMultiPolyMesherIo::m_polys.
void TutMeshingIntermediateTests::test_Example_SizeFuncFromDepth | ( | ) |
[snip_test_Example_ConstantSmooth]
Example for creating a size function from a set of points with depth scalars [snip_test_Example_SizeFuncFromDepth]
Definition at line 632 of file TutMeshing.cpp.
References xms::MePolyInput::m_sizeFunction, xms::InterpIdw::New(), and TS_ASSERT_DELTA_VEC.
void TutMeshingIntermediateTests::test_Example_SmoothSizeFunc | ( | ) |
[snip_test_Example_SizeFuncFromDepth]
Example for smoothing a size function
/// * - point location /// [] - array index of point /// 1 / 100 - size function value /// /// Input /// /// 100 100 100 100 /// 20- * [8] * [9] * [10] * [11] /// | /// | /// | 1 100 100 100 /// 10- * [4] * [5] * [6] * [7] /// | /// | /// | 100 100 100 100 /// 0- * [0] * [1] * [2] * [3] /// 0-------10-------20-------30 /// /// Output /// /// 4.4 7.9 11.3 14.8 /// 20- * [8] * [9] * [10] * [11] /// | /// | /// | 1 4.4 7.9 11.3 /// 10- * [4] * [5] * [6] * [7] /// | /// | /// | 4.4 5.9 9.3 12.8 /// 0- * [0] * [1] * [2] * [3] /// 0-------10-------20-------30 ///
[snip_test_Example_SmoothSizeFunc]
Definition at line 706 of file TutMeshing.cpp.
References xms::TrTin::New(), xms::TrTriangulator::Triangulate(), and TS_ASSERT_DELTA_VEC.
void TutMeshingIntermediateTests::test_Example_SpringRelax | ( | ) |
[snip_test_Example_SmoothSizeFunc]
Example for meshing a simple polygon with a hole and using the spring relaxation method [snip_test_Example_SpringRelax]
Definition at line 741 of file TutMeshing.cpp.
References xms::MePolyInput::m_insidePolys, xms::MePolyInput::m_outPoly, xms::MeMultiPolyMesherIo::m_polys, and xms::MePolyInput::m_relaxationMethod.