AnisotropicPointsToImplicit2.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: AnisotropicPointsToImplicit2.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: 2-D points-to-implicit converter using Anisotropic kernels.
6 > Created Time: 2017/11/19
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_ANISOTROPIC_POINTS_TO_IMPLICIT2_H
10 #define CUBBYFLOW_ANISOTROPIC_POINTS_TO_IMPLICIT2_H
11 
13 
14 namespace CubbyFlow
15 {
29  {
30  public:
40  double kernelRadius = 1.0,
41  double cutOffDensity = 0.5,
42  double positionSmoothingFactor = 0.5,
43  size_t minNumNeighbors = 8,
44  bool isOutputSDF = true);
45 
47  void Convert(const ConstArrayAccessor1<Vector2D>& points, ScalarGrid2* output) const override;
48 
49  private:
50  double m_kernelRadius = 1.0;
51  double m_cutOffDensity = 0.5;
52  double m_positionSmoothingFactor = 0.0;
53  size_t m_minNumNeighbors = 8;
54  bool m_isOutputSDF = true;
55  };
56 
58  using AnisotropicPointsToImplicit2Ptr = std::shared_ptr<AnisotropicPointsToImplicit2>;
59 }
60 
61 #endif
void Convert(const ConstArrayAccessor1< Vector2D > &points, ScalarGrid2 *output) const override
Converts the given points to implicit surface scalar field.
std::shared_ptr< AnisotropicPointsToImplicit2 > AnisotropicPointsToImplicit2Ptr
Shared pointer for the AnisotropicPointsToImplicit2 type.
Definition: AnisotropicPointsToImplicit2.h:58
AnisotropicPointsToImplicit2(double kernelRadius=1.0, double cutOffDensity=0.5, double positionSmoothingFactor=0.5, size_t minNumNeighbors=8, bool isOutputSDF=true)
Constructs the converter with given parameters.
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
2-D points-to-implicit converter using Anisotropic kernels.
Definition: AnisotropicPointsToImplicit2.h:28
Abstract base class for 2-D scalar grid structure.
Definition: ScalarGrid2.h:21