Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
eb48fe6b
Commit
eb48fe6b
authored
Nov 06, 2020
by
Dennis Gläser
Browse files
[isection] make empty intersection a geometry
parent
957b2506
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/intersection/emptyintersection.hh
View file @
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 intersection
s
.
* \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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment