Jet  v1.3.3
zhu_bridson_points_to_implicit3.h
Go to the documentation of this file.
1 // Copyright (c) 2018 Doyub Kim
2 //
3 // I am making my contributions/submissions to this project solely in my
4 // personal capacity and am not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef INCLUDE_JET_ZHU_BRIDSON_POINTS_TO_IMPLICIT3_H_
8 #define INCLUDE_JET_ZHU_BRIDSON_POINTS_TO_IMPLICIT3_H_
9 
11 
12 namespace jet {
13 
21  public:
23  ZhuBridsonPointsToImplicit3(double kernelRadius = 1.0,
24  double cutOffThreshold = 0.25,
25  bool isOutputSdf = true);
26 
29  ScalarGrid3* output) const override;
30 
31  private:
32  double _kernelRadius = 1.0;
33  double _cutOffThreshold = 0.25;
34  bool _isOutputSdf = true;
35 };
36 
38 typedef std::shared_ptr<ZhuBridsonPointsToImplicit3> ZhuBridsonPointsToImplicit3Ptr;
39 
40 } // namespace jet
41 
42 #endif // INCLUDE_JET_ZHU_BRIDSON_POINTS_TO_IMPLICIT3_H_
jet::ZhuBridsonPointsToImplicit3::ZhuBridsonPointsToImplicit3
ZhuBridsonPointsToImplicit3(double kernelRadius=1.0, double cutOffThreshold=0.25, bool isOutputSdf=true)
Constructs the converter with given kernel radius and cut-off threshold.
jet::PointsToImplicit3
Abstract base class for 3-D points-to-implicit converters.
Definition: points_to_implicit3.h:19
jet::ZhuBridsonPointsToImplicit3::convert
void convert(const ConstArrayAccessor1< Vector3D > &points, ScalarGrid3 *output) const override
Converts the given points to implicit surface scalar field.
jet::ConstArrayAccessor< T, 1 >
1-D read-only array accessor class.
Definition: array_accessor1.h:184
points_to_implicit3.h
jet
Definition: advection_solver2.h:18
jet::ZhuBridsonPointsToImplicit3
3-D points-to-implicit converter based on Zhu and Bridson's method.
Definition: zhu_bridson_points_to_implicit3.h:20
jet::ScalarGrid3
Abstract base class for 3-D scalar grid structure.
Definition: scalar_grid3.h:21
jet::ZhuBridsonPointsToImplicit3Ptr
std::shared_ptr< ZhuBridsonPointsToImplicit3 > ZhuBridsonPointsToImplicit3Ptr
Shared pointer type for ZhuBridsonPointsToImplicit3 class.
Definition: zhu_bridson_points_to_implicit3.h:38