SphericalPointsToImplicit2.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: SphericalPointsToImplicit2.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: 2-D points-to-implicit converter based on simple sphere model.
6 > Created Time: 2017/11/16
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_SPHERICAL_POINTS_TO_IMPLICIT2_H
10 #define CUBBYFLOW_SPHERICAL_POINTS_TO_IMPLICIT2_H
11 
13 
14 namespace CubbyFlow
15 {
20  {
21  public:
23  SphericalPointsToImplicit2(double radius = 1.0, bool isOutputSdf = true);
24 
26  void Convert(const ConstArrayAccessor1<Vector2D>& points, ScalarGrid2* output) const override;
27 
28  private:
29  double m_radius = 1.0;
30  bool m_isOutputSDF = true;
31  };
32 
34  using SphericalPointsToImplicit2Ptr = std::shared_ptr<SphericalPointsToImplicit2>;
35 }
36 
37 #endif
2-D points-to-implicit converter based on simple sphere model.
Definition: SphericalPointsToImplicit2.h:19
std::shared_ptr< SphericalPointsToImplicit2 > SphericalPointsToImplicit2Ptr
Shared pointer type for SphericalPointsToImplicit2.
Definition: SphericalPointsToImplicit2.h:34
SphericalPointsToImplicit2(double radius=1.0, bool isOutputSdf=true)
Constructs the converter with given sphere radius.
void Convert(const ConstArrayAccessor1< Vector2D > &points, ScalarGrid2 *output) const override
Converts the given points to implicit surface scalar field.
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
Abstract base class for 2-D scalar grid structure.
Definition: ScalarGrid2.h:21