44 namespace NekMeshUtils
50 "Generates a surface mesh");
66 cout << endl <<
"Surface meshing" << endl;
69 cout << endl <<
"\tCurve meshing:" << endl << endl;
74 for (
int i = 1; i <=
m_mesh->m_cad->GetNumCurve(); i++)
79 i,
m_mesh->m_cad->GetNumCurve(),
"Curve progress");
88 cout << endl <<
"\tFace meshing:" << endl << endl;
90 bool validError =
false;
91 for (
int i = 1; i <=
m_mesh->m_cad->GetNumSurf(); i++)
96 i,
m_mesh->m_cad->GetNumSurf(),
"Validating curve meshes");
102 validError = validError ?
true :
m_facemeshes[i]->ValidateCurves();
105 ASSERTL0(!validError,
"valdity error in curve meshes");
115 i,
m_mesh->m_cad->GetNumSurf(),
"Face progress");
130 for(it =
m_mesh->m_edgeSet.begin(); it !=
m_mesh->m_edgeSet.end(); it++)
132 if((*it)->m_elLink.size() != 2)
134 ASSERTL0(
false,
"surface mesh connectivity error");
145 int ns =
m_mesh->m_vertexSet.size();
146 int es =
m_mesh->m_edgeSet.size();
147 int ts =
m_mesh->m_element[2].size();
148 int ep = ns - es + ts;
149 cout << endl <<
"\tSurface mesh statistics" << endl;
150 cout <<
"\t\tNodes: " << ns << endl;
151 cout <<
"\t\tEdges: " << es << endl;
152 cout <<
"\t\tTriangles " << ts << endl;
153 cout <<
"\t\tEuler-Poincaré characteristic: " << ep << endl;
#define ASSERTL0(condition, msg)
int PrintProgressbar(const int position, const int goal, const string message, int lastprogress=-1)
Prints a progressbar.
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
pair< ModuleType, string > ModuleKey
MeshSharedPtr m_mesh
Mesh object.
virtual NEKMESHUTILS_EXPORT void ProcessFaces(bool ReprocessFaces=true)
Extract element faces.
std::map< int, CurveMeshSharedPtr > m_curvemeshes
map of individual curve meshes of the curves in the domain
virtual NEKMESHUTILS_EXPORT void ProcessElements()
Generate element IDs.
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
boost::shared_ptr< Mesh > MeshSharedPtr
Shared pointer to a mesh.
Abstract base class for processing modules.
virtual NEKMESHUTILS_EXPORT void ProcessVertices()
Extract element vertices.
virtual NEKMESHUTILS_EXPORT void ProcessEdges(bool ReprocessEdges=true)
Extract element edges.
std::map< int, FaceMeshSharedPtr > m_facemeshes
map of individual surface meshes from parametric surfaces
virtual NEKMESHUTILS_EXPORT void ProcessComposites()
Generate composites.
ModuleFactory & GetModuleFactory()
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.