Jet  v1.3.3
spherical_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_SPHERICAL_POINTS_TO_IMPLICIT3_H_
8 #define INCLUDE_JET_SPHERICAL_POINTS_TO_IMPLICIT3_H_
9 
11 
12 namespace jet {
13 
18  public:
20  SphericalPointsToImplicit3(double radius = 1.0, bool isOutputSdf = true);
21 
24  ScalarGrid3* output) const override;
25 
26  private:
27  double _radius = 1.0;
28  bool _isOutputSdf = true;
29 };
30 
32 typedef std::shared_ptr<SphericalPointsToImplicit3>
34 
35 } // namespace jet
36 
37 #endif // INCLUDE_JET_SPHERICAL_POINTS_TO_IMPLICIT3_H_
jet::PointsToImplicit3
Abstract base class for 3-D points-to-implicit converters.
Definition: points_to_implicit3.h:19
jet::ConstArrayAccessor< T, 1 >
1-D read-only array accessor class.
Definition: array_accessor1.h:184
jet::SphericalPointsToImplicit3Ptr
std::shared_ptr< SphericalPointsToImplicit3 > SphericalPointsToImplicit3Ptr
Shared pointer type for SphericalPointsToImplicit3.
Definition: spherical_points_to_implicit3.h:33
points_to_implicit3.h
jet
Definition: advection_solver2.h:18
jet::SphericalPointsToImplicit3::SphericalPointsToImplicit3
SphericalPointsToImplicit3(double radius=1.0, bool isOutputSdf=true)
Constructs the converter with given sphere radius.
jet::SphericalPointsToImplicit3
3-D points-to-implicit converter based on simple sphere model.
Definition: spherical_points_to_implicit3.h:17
jet::SphericalPointsToImplicit3::convert
void convert(const ConstArrayAccessor1< Vector3D > &points, ScalarGrid3 *output) const override
Converts the given points to implicit surface scalar field.
jet::ScalarGrid3
Abstract base class for 3-D scalar grid structure.
Definition: scalar_grid3.h:21