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

Merge branch 'feature/empty-is-as-geometry' into 'master'

[isection] make empty intersection a geometry

See merge request tools/frackit!163
parents befb2e53 eb48fe6b
......@@ -27,17 +27,18 @@
#include <string>
#include <variant>
#include <algorithm>
#include <frackit/geometry/geometry.hh>
namespace Frackit {
/*!
* \ingroup Intersection
* \brief Class used to define empty intersection.
* \brief Class used to define empty intersections.
* \tparam wd The dimension of the coordinate space.
* \tparam CT The type used for coordinates
*/
template<int wd = 3, class CT = double>
struct EmptyIntersection
struct EmptyIntersection : public Geometry
{
//! Technically, this does not have a defined dimension
static constexpr int myDimension() { return 0; }
......@@ -46,7 +47,7 @@ struct EmptyIntersection
static constexpr int worldDimension() { return wd; }
//! Return the name of this geometry
static std::string name() { return "EmptyIntersection"; }
std::string name() const override { return "EmptyIntersection_" + std::to_string(wd); }
//! Export coordinate type for compatibility
using ctype = CT;
......
Supports Markdown
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