Skip to content
Snippets Groups Projects
Commit e912ea8c authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/U/SimpleMeshCreation] Create mesh with pyramids.

parent 237d7ea2
No related branches found
No related tags found
No related merge requests found
......@@ -80,10 +80,12 @@ int main (int argc, char* argv[])
allowed_ele_types.emplace_back("hex");
allowed_ele_types.emplace_back("prism");
allowed_ele_types.emplace_back("tet");
allowed_ele_types.emplace_back("pyramid");
TCLAP::ValuesConstraint<std::string> allowedVals(allowed_ele_types);
TCLAP::ValueArg<std::string> eleTypeArg(
"e", "element-type",
"element type to be created: line | tri | quad | hex | prism | tet",
"element type to be created: line | tri | quad | hex | prism | tet | "
"pyramid",
true, "line", &allowedVals);
cmd.add(eleTypeArg);
TCLAP::ValueArg<std::string> mesh_out("o", "mesh-output-file",
......@@ -233,6 +235,10 @@ int main (int argc, char* argv[])
case MeshLib::MeshElemType::TETRAHEDRON:
mesh.reset(MeshLib::MeshGenerator::generateRegularTetMesh(*vec_div[0], *vec_div[1], *vec_div[2]));
break;
case MeshLib::MeshElemType::PYRAMID:
mesh.reset(MeshLib::MeshGenerator::generateRegularPyramidMesh(
*vec_div[0], *vec_div[1], *vec_div[2]));
break;
default:
ERR("Given element type is not supported.");
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment