xmsmesh
1.0
|
#include <xmsmesh/tutorial/TutMeshing.t.h>
#include <fstream>
#include <xmscore/testing/TestTools.h>
#include <xmsinterp/geometry/geoms.h>
#include <xmsinterp/interpolate/InterpIdw.h>
#include <xmsinterp/interpolate/InterpLinear.h>
#include <xmsinterp/triangulate/TrTin.h>
#include <xmsinterp/triangulate/TrTriangulatorPoints.h>
#include <xmsmesh/meshing/MeMeshUtils.h>
#include <xmsmesh/meshing/MeMultiPolyMesherIo.h>
#include <xmsmesh/meshing/MeMultiPolyTo2dm.h>
#include <xmsmesh/meshing/MePolyRedistributePts.h>
#include <xmsgrid/ugrid/XmUGrid.h>
#include <xmsgrid/ugrid/XmUGridUtils.h>
#include <xmsmesh/meshing/detail/MeQuadBlossom.h>
#include <xmsmesh/meshing/detail/MeBadQuadRemover.h>
Go to the source code of this file.
Functions | |
bool | xms::tutReadMeshIoFromFile (const std::string &a_fname, MeMultiPolyMesherIo &a_io) |
helper function to read MeMultiPolyMesherIo More... | |
bool | xms::tutReadPolygons (const std::string &a_fname, VecPt3d2d &a_outside, VecPt3d3d &a_inside) |
helper function to read polygons from a text file More... | |
void | xms::tutGenerateAndCompare2dm (MeMultiPolyMesherIo &a_io, const std::string &a_fileBase) |
helper function to generate 2dm file and compare to a baseline More... | |
Definition in file TutMeshing.cpp.
void xms::tutGenerateAndCompare2dm | ( | MeMultiPolyMesherIo & | a_io, |
const std::string & | a_fileBase | ||
) |
helper function to generate 2dm file and compare to a baseline
a_io | mesher input |
a_fileBase | base file name for output file and base line file |
Definition at line 240 of file TutMeshing.cpp.
References xms::MeMultiPolyTo2dm::New(), TS_ASSERT_TXT_FILES_EQUAL, ttGetTestFilePaths(), and xms::tutGenerateAndCompare2dm().
Referenced by xms::tutGenerateAndCompare2dm().
bool xms::tutReadMeshIoFromFile | ( | const std::string & | a_fname, |
MeMultiPolyMesherIo & | a_io | ||
) |
helper function to read MeMultiPolyMesherIo
a_fname | File name where the polygon is stored |
a_io | MeMultiPolyMesherIo class that is filled by this function |
Definition at line 64 of file TutMeshing.cpp.
References gmPolygonArea(), xms::MePolyInput::m_bias, xms::MeMultiPolyMesherIo::m_checkTopology, xms::MePolyInput::m_constSizeBias, xms::MePolyInput::m_constSizeFunction, xms::MeRefinePoint::m_createMeshPoint, xms::MePolyInput::m_elevFunction, xms::MePolyInput::m_insidePolys, xms::MePolyInput::m_outPoly, xms::MePolyInput::m_polyCorners, xms::MeMultiPolyMesherIo::m_polys, xms::MeRefinePoint::m_pt, xms::MeMultiPolyMesherIo::m_refPts, xms::MePolyInput::m_relaxationMethod, xms::MeMultiPolyMesherIo::m_returnCellPolygons, xms::MePolyInput::m_seedPoints, xms::MeRefinePoint::m_size, xms::MePolyInput::m_sizeFunction, xms::InterpLinear::New(), xms::InterpIdw::New(), xms::TrTriangulator::Triangulate(), xms::tutReadMeshIoFromFile(), xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.
Referenced by xms::tutReadMeshIoFromFile(), and xms::tutReadPolygons().
bool xms::tutReadPolygons | ( | const std::string & | a_fname, |
VecPt3d2d & | a_outside, | ||
VecPt3d3d & | a_inside | ||
) |
helper function to read polygons from a text file
a_fname | File name where the polygon is stored |
a_outside | Vector of locations for the definition of the outside of the polygon. |
a_inside | 2d vector of locations to define multiple inside polygons |
Definition at line 220 of file TutMeshing.cpp.
References xms::MeMultiPolyMesherIo::m_polys, xms::tutReadMeshIoFromFile(), and xms::tutReadPolygons().
Referenced by MeMultiPolyTo2dmIntermediateTests::testCasePatch6(), MeMultiPolyTo2dmIntermediateTests::testCasePaveConstSizeTransition(), and xms::tutReadPolygons().