Jet
v1.3.3
jet
level_set_utils.h
Go to the documentation of this file.
1
// Copyright (c) 2018 Doyub Kim
2
//
3
// I am making my contributions/submissions to this project solely in my
4
// personal capacity and am not conveying any rights to any intellectual
5
// property of any third parties.
6
7
#ifndef INCLUDE_JET_LEVEL_SET_UTILS_H_
8
#define INCLUDE_JET_LEVEL_SET_UTILS_H_
9
10
#include <
jet/macros.h
>
11
12
namespace
jet
{
13
23
template
<
typename
T>
24
bool
isInsideSdf
(T phi);
25
41
template
<
typename
T>
42
T
smearedHeavisideSdf
(T phi);
43
58
template
<
typename
T>
59
T
smearedDeltaSdf
(T phi);
60
80
template
<
typename
T>
81
T
fractionInsideSdf
(T phi0, T phi1);
82
100
template
<
typename
T>
101
T
fractionInside
(T phiBottomLeft, T phiBottomRight, T phiTopLeft,
102
T phiTopRight);
103
104
}
// namespace jet
105
106
#include "detail/level_set_utils-inl.h"
107
108
#endif // INCLUDE_JET_LEVEL_SET_UTILS_H_
jet::isInsideSdf
bool isInsideSdf(T phi)
Returns true if phi is inside the implicit surface (< 0).
macros.h
jet::fractionInsideSdf
T fractionInsideSdf(T phi0, T phi1)
Returns the fraction occupied by the implicit surface.
jet
Definition:
advection_solver2.h:18
jet::fractionInside
T fractionInside(T phiBottomLeft, T phiBottomRight, T phiTopLeft, T phiTopRight)
Returns the fraction occupied by the implicit surface.
jet::smearedDeltaSdf
T smearedDeltaSdf(T phi)
Returns smeared delta function.
jet::smearedHeavisideSdf
T smearedHeavisideSdf(T phi)
Returns smeared Heaviside function.
Generated by
1.8.18