80 void SetCorner(
double corner_x,
double corner_y,
double corner_z);
100 void SetDimension(
double dim_x,
double dim_y,
double dim_z);
Class for representing a level set function on a regular grid.
Definition level_set_function.hpp:17
void Reinitialization()
Perform reinitialization with default parameters.
Definition level_set_function.cpp:296
Vec3d GradientPlus(int i, int j, int k)
Compute the gradient at the grid point (i, j, k) using forward differences.
Definition level_set_function.cpp:178
Vec3i dim
Dimensions of the grid.
Definition level_set_function.hpp:32
void SetSignedDistance(int id_x, int id_y, int id_z, double sdf)
Set the signed distance value of a certian cell of the grid.
Definition level_set_function.cpp:58
Vec3d GradientMinus(int i, int j, int k)
Compute the gradient at the grid point (i, j, k) using backward differences.
Definition level_set_function.cpp:160
Vec3i const & GetDimensions() const
Definition level_set_function.cpp:23
double GetSpacing() const
Definition level_set_function.cpp:21
void SetDimension(double dim_x, double dim_y, double dim_z)
Set the dimensions of the grid.
Definition level_set_function.cpp:43
void SetSpacing(double sp)
Set the spacing between grid points.
Definition level_set_function.cpp:41
void SetCorner(double corner_x, double corner_y, double corner_z)
Set the corner of the grid.
Definition level_set_function.cpp:34
Vec3d GradientInterpolate(Vec3d const &pos)
Compute the gradient at a point in space using interpolation.
Definition level_set_function.cpp:110
VecXT< VecXT< VecXT< double > > > const & GetSignedDistanceTable() const
Definition level_set_function.cpp:30
LevelSetFunction()
Default constructor.
Definition level_set_function.cpp:8
double spacing
Spacing between grid points.
Definition level_set_function.hpp:27
Vec3d corner
Coordinates of the corner of the grid.
Definition level_set_function.hpp:22
double SignedDistance(Vec3d const &pos) const
Compute the signed distance at a point in space.
Definition level_set_function.cpp:78
VecXT< VecXT< VecXT< double > > > signed_distance_table
Table containing the signed distance values.
Definition level_set_function.hpp:37
Vec3d const & GetCorner() const
Definition level_set_function.cpp:19
void InitFromSDFCalculator(const SDFCalculator &sdf_calculator)
Initialize from a signed distance field.
Definition level_set_function.cpp:63
double GetSignedDistance(int id_x, int id_y, int id_z)
Get the signed distance value of a certian cell of the grid.
Definition level_set_function.cpp:25
Class for computing signed distance fields from triangle meshes.
Definition sdf_calculator.hpp:20
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31
pos
Definition json_serilization.hpp:19
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18
std::array< int, 3 > Vec3i
Definition utils_macros.hpp:14