PointsToImplicit3.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: PointsToImplicit3.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Abstract base class for 3-D points-to-implicit converters.
6 > Created Time: 2017/11/16
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_POINTS_TO_IMPLICIT3_H
10 #define CUBBYFLOW_POINTS_TO_IMPLICIT3_H
11 
13 #include <Core/Grid/ScalarGrid3.h>
14 #include <Core/Vector/Vector3.h>
15 
16 namespace CubbyFlow
17 {
20  {
21  public:
24 
26  virtual ~PointsToImplicit3();
27 
29  virtual void Convert(const ConstArrayAccessor1<Vector3D>& points, ScalarGrid3* output) const = 0;
30  };
31 
33  using PointsToImplicit3Ptr = std::shared_ptr<PointsToImplicit3>;
34 }
35 
36 #endif
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
Definition: pybind11Utils.h:24
PointsToImplicit3()
Default constructor.
Abstract base class for 3-D points-to-implicit converters.
Definition: PointsToImplicit3.h:19
virtual ~PointsToImplicit3()
Default destructor.
Abstract base class for 3-D scalar grid structure.
Definition: ScalarGrid3.h:21
std::shared_ptr< PointsToImplicit3 > PointsToImplicit3Ptr
Shared pointer for the PointsToImplicit3 type.
Definition: PointsToImplicit3.h:33
virtual void Convert(const ConstArrayAccessor1< Vector3D > &points, ScalarGrid3 *output) const =0
Converts the given points to implicit surface scalar field.