Commit a69e8957 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[geomutils][applyongeom] implement 3d quadrilateral

parent 5e2c2088
......@@ -40,6 +40,7 @@
// If a new geometry is added, it has to be included here and the
// implementation in the applyOnGeometry() function has to be extended.
#include <frackit/geometry/disk.hh>
#include <frackit/geometry/quadrilateral.hh>
#include "assign.hh"
......@@ -62,6 +63,13 @@ auto applyOnGeometry(ApplyFunc&& applyFunc, Geometry* geoPtr)
throw std::runtime_error("applyOnGeometry(): could not assign disk");
return applyFunc(disk);
}
else if (geoPtr->name() == "Quadrilateral_3d")
{
Quadrilateral<ctype, 3> quad;
if (!assign(geoPtr, quad))
throw std::runtime_error("applyOnGeometry(): could not assign 3d quadrilateral");
return applyFunc(quad);
}
std::string msg = "applyOnGeometry() function not implemented ";
msg += "for geometry with name \"";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment