SPHPointsToImplicit2.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: SPHPointsToImplicit2.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: 2-D points-to-implicit converter based on standard SPH kernel.
6 > Created Time: 2017/11/17
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_SPH_POINTS_TO_IMPLICIT2_H
10 #define CUBBYFLOW_SPH_POINTS_TO_IMPLICIT2_H
11 
13 
14 namespace CubbyFlow
15 {
25  {
26  public:
28  SPHPointsToImplicit2(double kernelRadius = 1.0, double cutOffDensity = 0.5, bool isOutputSDF = true);
29 
31  void Convert(const ConstArrayAccessor1<Vector2D>& points, ScalarGrid2* output) const override;
32 
33  private:
34  double m_kernelRadius = 1.0;
35  double m_cutOffDensity = 0.5;
36  bool m_isOutputSDF = true;
37  };
38 
40  using SPHPointsToImplicit2Ptr = std::shared_ptr<SPHPointsToImplicit2>;
41 }
42 
43 #endif
2-D points-to-implicit converter based on standard SPH kernel.
Definition: SPHPointsToImplicit2.h:24
Abstract base class for 2-D points-to-implicit converters.
Definition: PointsToImplicit2.h:19
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
Definition: pybind11Utils.h:24
void Convert(const ConstArrayAccessor1< Vector2D > &points, ScalarGrid2 *output) const override
Converts the given points to implicit surface scalar field.
SPHPointsToImplicit2(double kernelRadius=1.0, double cutOffDensity=0.5, bool isOutputSDF=true)
Constructs the converter with given kernel radius and cut-off density.
std::shared_ptr< SPHPointsToImplicit2 > SPHPointsToImplicit2Ptr
Shared pointer type for SPHPointsToImplicit2 class.
Definition: SPHPointsToImplicit2.h:40
Abstract base class for 2-D scalar grid structure.
Definition: ScalarGrid2.h:21