File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* *
2
+ * @file MeshBoundary.h
3
+ * @author Quoc-Minh Ton-That ([email protected] )
4
+ * @brief This file contains functions to compute the boundary of a mesh.
5
+ * @date 2025-02-12
6
+ *
7
+ * @copyright Copyright (c) 2025
8
+ *
9
+ */
10
+
1
11
#ifndef PBAT_GEOMETRY_MESH_BOUNDARY_H
2
12
#define PBAT_GEOMETRY_MESH_BOUNDARY_H
3
13
8
18
namespace pbat {
9
19
namespace geometry {
10
20
21
+ /* *
22
+ * @brief Obtains the boundary mesh of a simplex mesh.
23
+ *
24
+ * @note Only works for triangle (`C.rows()==3`) and tetrahedral (`C.rows()==4`) meshes.
25
+ *
26
+ * @param C The connectivity matrix of the mesh (i.e. the simplices)
27
+ * @param n The number of vertices in the mesh. If -1, the number of vertices is computed from C.
28
+ * @return A tuple containing the boundary vertices and the boundary facets
29
+ */
11
30
std::tuple<IndexVectorX, IndexMatrixX>
12
31
SimplexMeshBoundary (IndexMatrixX const & C, Index n = Index(-1 ));
13
32
You can’t perform that action at this time.
0 commit comments