41 namespace NekMeshUtils
46 ProcessLoadOctree::create,
47 "Loads octree into m_mesh");
77 cout << endl <<
"Loading Octree with parameters:" << endl;
78 cout <<
"\tmin delta: " << minDelta << endl
79 <<
"\tmax delta: " << maxDelta << endl
80 <<
"\tesp: " << eps << endl << endl;
83 ASSERTL0(minDelta > 0 && maxDelta > 0 && eps > 0,
"invalid parameters");
87 m_mesh->m_octree->SetParameters(minDelta, maxDelta, eps);
94 m_mesh->m_octree->Process();
98 m_mesh->m_octree->WriteOctree(
m_config[
"writeoctree"].as<string>());
#define ASSERTL0(condition, msg)
MeshSharedPtr m_mesh
Mesh object.
std::shared_ptr< Mesh > MeshSharedPtr
Shared pointer to a mesh.
std::pair< ModuleType, std::string > ModuleKey
virtual ~ProcessLoadOctree()
Represents a command-line configuration option.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::map< std::string, ConfigOption > m_config
List of configuration values.
Abstract base class for processing modules.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
ModuleFactory & GetModuleFactory()