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