ZhuBridsonPointsToImplicit3.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: ZhuBridsonPointsToImplicit3.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: 3-D points-to-implicit converter based on Zhu and Bridson's method.
6 > Created Time: 2017/11/18
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_ZHU_BRIDSON_POINTS_TO_IMPLICIT3_H
10 #define CUBBYFLOW_ZHU_BRIDSON_POINTS_TO_IMPLICIT3_H
11 
13 
14 namespace CubbyFlow
15 {
23  {
24  public:
26  ZhuBridsonPointsToImplicit3(double kernelRadius = 1.0, double cutOffThreshold = 0.25, bool isOutputSDF = true);
27 
29  void Convert(const ConstArrayAccessor1<Vector3D>& points, ScalarGrid3* output) const override;
30 
31  private:
32  double m_kernelRadius = 1.0;
33  double m_cutOffThreshold = 0.25;
34  bool m_isOutputSDF = true;
35  };
36 
38  using ZhuBridsonPointsToImplicit3Ptr = std::shared_ptr<ZhuBridsonPointsToImplicit3>;
39 }
40 
41 #endif
ZhuBridsonPointsToImplicit3(double kernelRadius=1.0, double cutOffThreshold=0.25, bool isOutputSDF=true)
Constructs the converter with given kernel radius and cut-off threshold.
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
void Convert(const ConstArrayAccessor1< Vector3D > &points, ScalarGrid3 *output) const override
Converts the given points to implicit surface scalar field.
Definition: pybind11Utils.h:24
Abstract base class for 3-D points-to-implicit converters.
Definition: PointsToImplicit3.h:19
Abstract base class for 3-D scalar grid structure.
Definition: ScalarGrid3.h:21
std::shared_ptr< ZhuBridsonPointsToImplicit3 > ZhuBridsonPointsToImplicit3Ptr
Shared pointer type for ZhuBridsonPointsToImplicit3 class.
Definition: ZhuBridsonPointsToImplicit3.h:38
3-D points-to-implicit converter based on Zhu and Bridson&#39;s method.
Definition: ZhuBridsonPointsToImplicit3.h:22