mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Prepare to use TriMesh
in latest experiment
This commit is contained in:
parent
5fe9676949
commit
65bb42ba54
@ -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,
|
||||
});
|
||||
}
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user