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

[A/U/SimpleMeshCreation] Add prism type to structured mesh generator tool.

parent 065fd2f6
No related branches found
No related tags found
No related merge requests found
......@@ -77,10 +77,13 @@ int main (int argc, char* argv[])
allowed_ele_types.emplace_back("tri");
allowed_ele_types.emplace_back("quad");
allowed_ele_types.emplace_back("hex");
allowed_ele_types.emplace_back("prism");
allowed_ele_types.emplace_back("tet");
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 | tet", true, "line", &allowedVals);
TCLAP::ValueArg<std::string> eleTypeArg(
"e", "element-type",
"element type to be created: line | tri | quad | hex | prism | tet",
true, "line", &allowedVals);
cmd.add(eleTypeArg);
TCLAP::ValueArg<std::string> mesh_out("o", "mesh-output-file",
"the name of the file the mesh will be written to", true,
......@@ -221,6 +224,11 @@ int main (int argc, char* argv[])
case MeshLib::MeshElemType::HEXAHEDRON:
mesh.reset(MeshLib::MeshGenerator::generateRegularHexMesh(*vec_div[0], *vec_div[1], *vec_div[2]));
break;
case MeshLib::MeshElemType::PRISM:
mesh.reset(MeshLib::MeshGenerator::generateRegularPrismMesh(
length[0], length[1], length[2], n_subdivision[0], n_subdivision[1],
n_subdivision[2]));
break;
case MeshLib::MeshElemType::TETRAHEDRON:
mesh.reset(MeshLib::MeshGenerator::generateRegularTetMesh(*vec_div[0], *vec_div[1], *vec_div[2]));
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