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