PointsToImplicit3.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_POINTS_TO_IMPLICIT3_HPP
12 #define CUBBYFLOW_POINTS_TO_IMPLICIT3_HPP
13 
14 #include <Core/Array/ArrayView.hpp>
15 #include <Core/Grid/ScalarGrid.hpp>
16 
17 namespace CubbyFlow
18 {
21 {
22  public:
24  PointsToImplicit3() = default;
25 
27  PointsToImplicit3(const PointsToImplicit3&) = default;
28 
30  PointsToImplicit3(PointsToImplicit3&&) noexcept = default;
31 
33  virtual ~PointsToImplicit3() = default;
34 
37 
39  PointsToImplicit3& operator=(PointsToImplicit3&&) noexcept = default;
40 
42  virtual void Convert(const ConstArrayView1<Vector3D>& points,
43  ScalarGrid3* output) const = 0;
44 };
45 
47 using PointsToImplicit3Ptr = std::shared_ptr<PointsToImplicit3>;
48 } // namespace CubbyFlow
49 
50 #endif
virtual ~PointsToImplicit3()=default
Default virtual destructor.
Abstract base class for N-D scalar grid structure.
Definition: ScalarGrid.hpp:24
Definition: pybind11Utils.hpp:20
Abstract base class for 3-D points-to-implicit converters.
Definition: PointsToImplicit3.hpp:20
std::shared_ptr< PointsToImplicit3 > PointsToImplicit3Ptr
Shared pointer for the PointsToImplicit3 type.
Definition: PointsToImplicit3.hpp:47
Generic N-dimensional array class interface.
Definition: Array.hpp:32
virtual void Convert(const ConstArrayView1< Vector3D > &points, ScalarGrid3 *output) const =0
Converts the given points to implicit surface scalar field.
PointsToImplicit3 & operator=(const PointsToImplicit3 &)=default
Default copy assignment operator.
PointsToImplicit3()=default
Default constructor.