Track insertion status of `Tetrahedron`

This commit is contained in:
Hanno Braun 2023-05-04 12:01:42 +02:00
parent c57c44a139
commit b5ec5738f3
1 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,9 @@ use fj_math::Point;
use crate::{ use crate::{
objects::{Face, Shell}, objects::{Face, Shell},
operations::{Insert, IsInsertedYes, JoinCycle, UpdateFace}, operations::{
Insert, IsInserted, IsInsertedNo, IsInsertedYes, JoinCycle, UpdateFace,
},
services::Services, services::Services,
}; };
@ -83,9 +85,9 @@ impl BuildShell for Shell {}
/// `d`, in the order in which they are passed. /// `d`, in the order in which they are passed.
/// ///
/// Returned by [`BuildShell::tetrahedron`]. /// Returned by [`BuildShell::tetrahedron`].
pub struct Tetrahedron { pub struct Tetrahedron<I: IsInserted = IsInsertedNo> {
/// The shell that forms the tetrahedron /// The shell that forms the tetrahedron
pub shell: Shell, pub shell: I::T<Shell>,
/// The face formed by the points `a`, `b`, and `c`. /// The face formed by the points `a`, `b`, and `c`.
pub abc: Polygon<3, IsInsertedYes>, pub abc: Polygon<3, IsInsertedYes>,