NetDEM v1.0
Loading...
Searching...
No Matches
cgal_wrapper.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "utils_macros.hpp"
4
5namespace netdem {
6
12public:
24 static void GetTetmesh(const VecXT<Vec3d> &vv, const VecXT<Vec3i> &ff,
25 VecXT<Vec3d> *const tv, VecXT<Vec4i> *const tt,
26 double mesh_size);
27
35 static void SmoothMesh(VecXT<Vec3d> *const vv, VecXT<Vec3i> *const ff,
36 int num_iters);
37
47 static void GetAlphaShape(VecXT<Vec3d> *vv_out, VecXT<Vec3i> *ff_out,
48 const VecXT<Vec3d> &vv_in, double alpha = 0.7);
49};
50
51} // namespace netdem
The CGAL class provides a wrapper for various CGAL mesh operations.
Definition cgal_wrapper.hpp:11
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.
Definition cgal_wrapper.cpp:75
static void SmoothMesh(VecXT< Vec3d > *const vv, VecXT< Vec3i > *const ff, int num_iters)
SmoothMesh applies Laplacian smoothing to the input mesh.
Definition cgal_wrapper.cpp:135
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.
Definition cgal_wrapper.cpp:183
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31