Loading...
Searching...
No Matches
ZhuBridsonPointsToImplicit3.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_ZHU_BRIDSON_POINTS_TO_IMPLICIT3_HPP
12#define CUBBYFLOW_ZHU_BRIDSON_POINTS_TO_IMPLICIT3_HPP
13
15
16namespace CubbyFlow
17{
25{
26 public:
29 {
30 // Do nothing
31 }
32
35 double cutOffThreshold = 0.25,
36 bool isOutputSDF = true);
37
40 ScalarGrid3* output) const override;
41
42 private:
43 double m_kernelRadius = 1.0;
44 double m_cutOffThreshold = 0.25;
45 bool m_isOutputSDF = true;
46};
47
50 std::shared_ptr<ZhuBridsonPointsToImplicit3>;
51} // namespace CubbyFlow
52
53#endif
Definition Matrix.hpp:30
Abstract base class for 3-D points-to-implicit converters.
Definition PointsToImplicit3.hpp:21
Abstract base class for N-D scalar grid structure.
Definition ScalarGrid.hpp:25
3-D points-to-implicit converter based on Zhu and Bridson's method.
Definition ZhuBridsonPointsToImplicit3.hpp:25
ZhuBridsonPointsToImplicit3(double kernelRadius, double cutOffThreshold=0.25, bool isOutputSDF=true)
Constructs the converter with given kernel radius and cut-off threshold.
ZhuBridsonPointsToImplicit3()
Constructs the converter with default parameters.
Definition ZhuBridsonPointsToImplicit3.hpp:28
void Convert(const ConstArrayView1< Vector3D > &points, ScalarGrid3 *output) const override
Converts the given points to implicit surface scalar field.
Definition pybind11Utils.hpp:22
std::shared_ptr< ZhuBridsonPointsToImplicit3 > ZhuBridsonPointsToImplicit3Ptr
Shared pointer type for ZhuBridsonPointsToImplicit3 class.
Definition ZhuBridsonPointsToImplicit3.hpp:50