xmsmesh  1.0
TutMeshing.cpp File Reference

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...
 

Detailed Description

Definition in file TutMeshing.cpp.

Function Documentation

◆ tutGenerateAndCompare2dm()

void xms::tutGenerateAndCompare2dm ( MeMultiPolyMesherIo a_io,
const std::string &  a_fileBase 
)

helper function to generate 2dm file and compare to a baseline

Parameters
a_iomesher input
a_fileBasebase 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().

◆ tutReadMeshIoFromFile()

◆ tutReadPolygons()

bool xms::tutReadPolygons ( const std::string &  a_fname,
VecPt3d2d a_outside,
VecPt3d3d a_inside 
)

helper function to read polygons from a text file

Parameters
a_fnameFile name where the polygon is stored
a_outsideVector of locations for the definition of the outside of the polygon.
a_inside2d vector of locations to define multiple inside polygons
Returns
true if the file was read without any errors

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().