Jet  v1.3.3
sph_points_to_implicit2.h
Go to the documentation of this file.
1 // Copyright (c) 2018 Doyub Kim
2 //
3 // I am making my contributions/submissions to this project solely in my
4 // personal capacity and am not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef INCLUDE_JET_SPH_POINTS_TO_IMPLICIT2_H_
8 #define INCLUDE_JET_SPH_POINTS_TO_IMPLICIT2_H_
9 
11 
12 namespace jet {
13 
23  public:
25  SphPointsToImplicit2(double kernelRadius = 1.0, double cutOffDensity = 0.5,
26  bool isOutputSdf = true);
27 
30  ScalarGrid2* output) const override;
31 
32  private:
33  double _kernelRadius = 1.0;
34  double _cutOffDensity = 0.5;
35  bool _isOutputSdf = true;
36 };
37 
39 typedef std::shared_ptr<SphPointsToImplicit2> SphPointsToImplicit2Ptr;
40 
41 } // namespace jet
42 
43 #endif // INCLUDE_JET_SPH_POINTS_TO_IMPLICIT2_H_
jet::SphPointsToImplicit2Ptr
std::shared_ptr< SphPointsToImplicit2 > SphPointsToImplicit2Ptr
Shared pointer type for SphPointsToImplicit2 class.
Definition: sph_points_to_implicit2.h:39
points_to_implicit2.h
jet::ConstArrayAccessor< T, 1 >
1-D read-only array accessor class.
Definition: array_accessor1.h:184
jet
Definition: advection_solver2.h:18
jet::ScalarGrid2
Abstract base class for 2-D scalar grid structure.
Definition: scalar_grid2.h:21
jet::PointsToImplicit2
Abstract base class for 2-D points-to-implicit converters.
Definition: points_to_implicit2.h:19
jet::SphPointsToImplicit2::convert
void convert(const ConstArrayAccessor1< Vector2D > &points, ScalarGrid2 *output) const override
Converts the given points to implicit surface scalar field.
jet::SphPointsToImplicit2
2-D points-to-implicit converter based on standard SPH kernel.
Definition: sph_points_to_implicit2.h:22
jet::SphPointsToImplicit2::SphPointsToImplicit2
SphPointsToImplicit2(double kernelRadius=1.0, double cutOffDensity=0.5, bool isOutputSdf=true)
Constructs the converter with given kernel radius and cut-off density.