xmsmesh  1.0
xms::MeMultiPolyTo2dmImpl Class Reference

Creates a VTK Unstructured Grid from polygons. More...

Inheritance diagram for xms::MeMultiPolyTo2dmImpl:
xms::MeMultiPolyTo2dm

Public Member Functions

bool Generate2dm (MeMultiPolyMesherIo &a_input, const std::string &a_outFileName, int a_precision=15) override
 Creates a 2dm file from polygons. More...
 
bool Generate2dm (MeMultiPolyMesherIo &a_input, std::ostream &a_os, int a_precision=15) override
 Creates a 2dm file from polygons by meshing. More...
 
void Write2dm (MeMultiPolyMesherIo &a_input, std::ostream &a_os, int a_precision)
 Writes 2dm data from a point and cell stream from the MeMultiPolyMesherIo class. More...
 

Public Attributes

bool m_sortCellsForTesting = true
 

Additional Inherited Members

- Static Public Member Functions inherited from xms::MeMultiPolyTo2dm
static boost::shared_ptr< MeMultiPolyTo2dmNew ()
 Creates a class. More...
 

Detailed Description

Creates a VTK Unstructured Grid from polygons.

Definition at line 49 of file MeMultiPolyTo2dm.cpp.

Member Function Documentation

◆ Generate2dm() [1/2]

bool xms::MeMultiPolyTo2dmImpl::Generate2dm ( MeMultiPolyMesherIo a_io,
const std::string &  a_outFileName,
int  a_precision = 15 
)
override

Creates a 2dm file from polygons.

Parameters
[in]a_ioInput/output of polygons and options for generating a mesh.
[in]a_outFileNameoutput filename
[in]a_precisionpinted digits of precision of points in file
Returns
true if the mesh was generated.

Definition at line 145 of file MeMultiPolyTo2dm.cpp.

Referenced by MeMultiPolyTo2dmUnitTests::testCase4(), and MeMultiPolyTo2dmIntermediateTests::testCasePatch6().

◆ Generate2dm() [2/2]

bool xms::MeMultiPolyTo2dmImpl::Generate2dm ( MeMultiPolyMesherIo a_io,
std::ostream &  a_os,
int  a_precision = 15 
)
override

Creates a 2dm file from polygons by meshing.

Parameters
[in]a_ioInput/output of polygons and options for generating a mesh.
[in]a_osoutput stream to store the mesh
[in]a_precisionpinted digits of precision of points in file
Returns
true if a mesh was created

Definition at line 161 of file MeMultiPolyTo2dm.cpp.

References xmlog::error, xms::MeMultiPolyMesher::New(), Write2dm(), and XM_LOG.

◆ Write2dm()

void xms::MeMultiPolyTo2dmImpl::Write2dm ( MeMultiPolyMesherIo a_io,
std::ostream &  a_os,
int  a_precision 
)

Writes 2dm data from a point and cell stream from the MeMultiPolyMesherIo class.

Parameters
[in]a_ioInput/output of polygons and options for generating a mesh.
[in]a_osoutput stream to store the mesh
[in]a_precisionpinted digits of precision of points in file

Definition at line 190 of file MeMultiPolyTo2dm.cpp.

References xms::iSortCellsForTesting(), xms::MeMultiPolyMesherIo::m_cells, xms::MeMultiPolyMesherIo::m_points, m_sortCellsForTesting, STR_FULLWIDTH, STRstd(), xms::Pt3< T >::x, XM_ENSURE_TRUE_NO_ASSERT, xms::Pt3< T >::y, and xms::Pt3< T >::z.

Referenced by Generate2dm().

Member Data Documentation

◆ m_sortCellsForTesting

bool xms::MeMultiPolyTo2dmImpl::m_sortCellsForTesting = true

to avoid different order of cells/elements on different OS'es we will sort the cells for consistent results

Definition at line 63 of file MeMultiPolyTo2dm.cpp.

Referenced by Write2dm().


The documentation for this class was generated from the following file: