NetDEM v1.0
Loading...
Searching...
No Matches
netdem::CGALWrapper Class Reference

The CGAL class provides a wrapper for various CGAL mesh operations. More...

#include <cgal_wrapper.hpp>

Static Public Member Functions

static void GetTetmesh (const VecXT< Vec3d > &vv, const VecXT< Vec3i > &ff, VecXT< Vec3d > *const tv, VecXT< Vec4i > *const tt, double mesh_size)
 GetTetmesh generates a tetrahedral mesh from the input vertices and faces.
 
static void SmoothMesh (VecXT< Vec3d > *const vv, VecXT< Vec3i > *const ff, int num_iters)
 SmoothMesh applies Laplacian smoothing to the input mesh.
 
static void GetAlphaShape (VecXT< Vec3d > *vv_out, VecXT< Vec3i > *ff_out, const VecXT< Vec3d > &vv_in, double alpha=0.7)
 GetAlphaShape generates a alpha shape from the input vertices.
 

Detailed Description

The CGAL class provides a wrapper for various CGAL mesh operations.

Member Function Documentation

◆ GetAlphaShape()

void netdem::CGALWrapper::GetAlphaShape ( VecXT< Vec3d > * vv_out,
VecXT< Vec3i > * ff_out,
const VecXT< Vec3d > & vv_in,
double alpha = 0.7 )
static

GetAlphaShape generates a alpha shape from the input vertices.

Parameters
vv_outA pointer to the output vertex positions as a vector of vectors.
ff_outA pointer to the output face indices as a vector of vectors.
vv_inThe input vertex positions as a vector of vectors.
alphaThe alpha value for the generated shape. Defaults to 0.7.

◆ GetTetmesh()

void netdem::CGALWrapper::GetTetmesh ( const VecXT< Vec3d > & vv,
const VecXT< Vec3i > & ff,
VecXT< Vec3d > *const tv,
VecXT< Vec4i > *const tt,
double mesh_size )
static

GetTetmesh generates a tetrahedral mesh from the input vertices and faces.

Parameters
vvThe input vertex positions as a vector of vectors.
ffThe input face indices as a vector of vectors.
tvA pointer to the output vertex positions as a vector of vectors.
ttA pointer to the output tetrahedron indices as a vector of vectors.
mesh_sizeThe 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
vvA pointer to the input vertex positions as a vector of vectors.
ffA pointer to the input face indices as a vector of vectors.
num_itersThe number of Laplacian smoothing iterations to apply.

The documentation for this class was generated from the following files: