Prepare to use TriMesh in latest experiment

This commit is contained in:
Hanno Braun 2025-03-21 21:28:14 +01:00
parent 5fe9676949
commit 65bb42ba54
2 changed files with 11 additions and 0 deletions

View File

@ -70,6 +70,7 @@ impl Triangulate for FaceApprox {
let points = triangle.map(|point| point.point_global);
mesh.triangles.push(MeshTriangle {
inner: points.into(),
is_internal: false,
color,
});
}

View File

@ -50,6 +50,16 @@ pub struct MeshTriangle {
/// # The triangle
pub inner: Triangle<3>,
/// # Track whether this is an internal triangle
///
/// Internal triangles are triangles that are inside of the solid body that
/// the triangle mesh is a boundary for.
///
/// If the triangle mesh is well-formed, then internal triangles are still
/// part of a single contiguous outer shell. But this shell might touch
/// itself, making the triangles where that is the case internal.
pub is_internal: bool,
/// # The color of the triangle
pub color: Color,
}