mirror of https://github.com/hannobraun/Fornjot
Track insertion status of `Tetrahedron`
This commit is contained in:
parent
c57c44a139
commit
b5ec5738f3
|
@ -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>,
|
||||||
|
|
Loading…
Reference in New Issue