Loading...
Searching...
No Matches
SphericalPointsToImplicit2.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_SPHERICAL_POINTS_TO_IMPLICIT2_HPP
12#define CUBBYFLOW_SPHERICAL_POINTS_TO_IMPLICIT2_HPP
13
15
16namespace CubbyFlow
17{
22{
23 public:
26 {
27 // Do nothing
28 }
29
31 explicit SphericalPointsToImplicit2(double radius, bool isOutputSdf = true);
32
35 ScalarGrid2* output) const override;
36
37 private:
38 double m_radius = 1.0;
39 bool m_isOutputSDF = true;
40};
41
44 std::shared_ptr<SphericalPointsToImplicit2>;
45} // namespace CubbyFlow
46
47#endif
Definition Matrix.hpp:30
Abstract base class for 2-D points-to-implicit converters.
Definition PointsToImplicit2.hpp:21
Abstract base class for N-D scalar grid structure.
Definition ScalarGrid.hpp:25
2-D points-to-implicit converter based on simple sphere model.
Definition SphericalPointsToImplicit2.hpp:22
SphericalPointsToImplicit2()
Constructs the converter with default parameters.
Definition SphericalPointsToImplicit2.hpp:25
void Convert(const ConstArrayView1< Vector2D > &points, ScalarGrid2 *output) const override
Converts the given points to implicit surface scalar field.
SphericalPointsToImplicit2(double radius, bool isOutputSdf=true)
Constructs the converter with given sphere radius.
Definition pybind11Utils.hpp:22
std::shared_ptr< SphericalPointsToImplicit2 > SphericalPointsToImplicit2Ptr
Shared pointer type for SphericalPointsToImplicit2.
Definition SphericalPointsToImplicit2.hpp:44