Skip to content

Commit 3b608e2

Browse files
committed
Document MeshBoundary functions and add file header
1 parent 89a194d commit 3b608e2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/pbat/geometry/MeshBoundary.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
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+
111
#ifndef PBAT_GEOMETRY_MESH_BOUNDARY_H
212
#define PBAT_GEOMETRY_MESH_BOUNDARY_H
313

@@ -8,6 +18,15 @@
818
namespace pbat {
919
namespace geometry {
1020

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+
*/
1130
std::tuple<IndexVectorX, IndexMatrixX>
1231
SimplexMeshBoundary(IndexMatrixX const& C, Index n = Index(-1));
1332

0 commit comments

Comments
 (0)