From 4b6fa6aa5aae7aaa7396d56d7dcb1d0492ee6096 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 4 May 2023 11:16:37 +0200 Subject: [PATCH] Add compile-time insertion tracking to `Polygon` --- crates/fj-kernel/src/operations/build/face.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/fj-kernel/src/operations/build/face.rs b/crates/fj-kernel/src/operations/build/face.rs index 57a5de45a..76e12f18d 100644 --- a/crates/fj-kernel/src/operations/build/face.rs +++ b/crates/fj-kernel/src/operations/build/face.rs @@ -3,7 +3,7 @@ use fj_math::Point; use crate::{ objects::{Cycle, Face, HalfEdge, Surface, Vertex}, - operations::Insert, + operations::{Insert, IsInserted, IsInsertedNo}, services::Services, storage::Handle, }; @@ -62,9 +62,9 @@ impl BuildFace for Face {} /// Currently code that deals with `Polygon` might assume that the polygon has /// no holes. Unless you create a `Polygon` yourself, or modify a `Polygon`'s /// `face` field to have interior cycles, this should not affect you. -pub struct Polygon { +pub struct Polygon { /// The face that forms the polygon - pub face: Face, + pub face: I::T, /// The edges of the polygon pub edges: [Handle; D],