Loading...
Searching...
No Matches
LevelSetUtils.hpp
Go to the documentation of this file.
1// This code is based on Jet framework.
2// Copyright (c) 2018 Doyub Kim
3// CubbyFlow is voxel-based fluid simulation engine for computer games.
4// Copyright (c) 2020 CubbyFlow Team
5// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6// AI Part: Dongheon Cho, Minseo Kim
7// We are making my contributions/submissions to this project solely in our
8// personal capacity and are not conveying any rights to any intellectual
9// property of any third parties.
10
11#ifndef CUBBYFLOW_LEVEL_SET_UTILS_HPP
12#define CUBBYFLOW_LEVEL_SET_UTILS_HPP
13
14namespace CubbyFlow
15{
25template <typename T>
26bool IsInsideSDF(T phi);
27
43template <typename T>
45
60template <typename T>
62
82template <typename T>
84
102template <typename T>
104 T phiTopRight);
105} // namespace CubbyFlow
106
108
109#endif
Definition pybind11Utils.hpp:21
bool IsInsideSDF(T phi)
Returns true if phi is inside the implicit surface (< 0).
Definition LevelSetUtils-Impl.hpp:29
T SmearedDeltaSDF(T phi)
Returns smeared delta function.
Definition LevelSetUtils-Impl.hpp:52
T SmearedHeavisideSDF(T phi)
Returns smeared Heaviside function.
Definition LevelSetUtils-Impl.hpp:35
T FractionInsideSDF(T phi0, T phi1)
Returns the fraction occupied by the implicit surface.
Definition LevelSetUtils-Impl.hpp:63
T FractionInside(T phiBottomLeft, T phiBottomRight, T phiTopLeft, T phiTopRight)
Returns the fraction occupied by the implicit surface.
Definition LevelSetUtils-Impl.hpp:97
Matrix< T, Rows, 1 > Vector
Definition Matrix.hpp:738