The CGAL class provides a wrapper for various CGAL mesh operations.
More...
#include <cgal_wrapper.hpp>
The CGAL class provides a wrapper for various CGAL mesh operations.
◆ GetAlphaShape()
GetAlphaShape generates a alpha shape from the input vertices.
- Parameters
-
vv_out | A pointer to the output vertex positions as a vector of vectors. |
ff_out | A pointer to the output face indices as a vector of vectors. |
vv_in | The input vertex positions as a vector of vectors. |
alpha | The alpha value for the generated shape. Defaults to 0.7. |
◆ GetTetmesh()
GetTetmesh generates a tetrahedral mesh from the input vertices and faces.
- Parameters
-
vv | The input vertex positions as a vector of vectors. |
ff | The input face indices as a vector of vectors. |
tv | A pointer to the output vertex positions as a vector of vectors. |
tt | A pointer to the output tetrahedron indices as a vector of vectors. |
mesh_size | The size of the tetrahedra in the generated mesh. |
◆ SmoothMesh()
void netdem::CGALWrapper::SmoothMesh |
( |
VecXT< Vec3d > *const | vv, |
|
|
VecXT< Vec3i > *const | ff, |
|
|
int | num_iters ) |
|
static |
SmoothMesh applies Laplacian smoothing to the input mesh.
- Parameters
-
vv | A pointer to the input vertex positions as a vector of vectors. |
ff | A pointer to the input face indices as a vector of vectors. |
num_iters | The number of Laplacian smoothing iterations to apply. |
The documentation for this class was generated from the following files:
- /Users/lzhshou/Documents/Research/myProjects/apaam/repo/netdem/src/utils/cgal_wrapper.hpp
- /Users/lzhshou/Documents/Research/myProjects/apaam/repo/netdem/src/utils/cgal_wrapper.cpp