Loading...
Searching...
No Matches
SPHPointsToImplicit3.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_SPH_POINTS_TO_IMPLICIT3_HPP
12#define CUBBYFLOW_SPH_POINTS_TO_IMPLICIT3_HPP
13
15
16namespace CubbyFlow
17{
27{
28 public:
31 {
32 // Do nothing
33 }
34
37 double cutOffDensity = 0.5,
38 bool isOutputSDF = true);
39
42 ScalarGrid3* output) const override;
43
44 private:
45 double m_kernelRadius = 1.0;
46 double m_cutOffDensity = 0.5;
47 bool m_isOutputSDF = true;
48};
49
51using SPHPointsToImplicit3Ptr = std::shared_ptr<SPHPointsToImplicit3>;
52} // namespace CubbyFlow
53
54#endif
Definition Matrix.hpp:30
Abstract base class for 3-D points-to-implicit converters.
Definition PointsToImplicit3.hpp:21
3-D points-to-implicit converter based on standard SPH kernel.
Definition SPHPointsToImplicit3.hpp:27
SPHPointsToImplicit3(double kernelRadius, double cutOffDensity=0.5, bool isOutputSDF=true)
Constructs the converter with given kernel radius and cut-off density.
SPHPointsToImplicit3()
Constructs the converter with default parameters.
Definition SPHPointsToImplicit3.hpp:30
void Convert(const ConstArrayView1< Vector3D > &points, ScalarGrid3 *output) const override
Converts the given points to implicit surface scalar field.
Abstract base class for N-D scalar grid structure.
Definition ScalarGrid.hpp:25
Definition pybind11Utils.hpp:22
std::shared_ptr< SPHPointsToImplicit3 > SPHPointsToImplicit3Ptr
Shared pointer type for SPHPointsToImplicit3 class.
Definition SPHPointsToImplicit3.hpp:51