From d8f6a691da20de433ae41ac22f5c415f78e85b02 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 17 Feb 2023 13:11:52 +0100 Subject: [PATCH] Simplify `PartialSurfaceVertex` construction --- crates/fj-kernel/src/partial/objects/edge.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/crates/fj-kernel/src/partial/objects/edge.rs b/crates/fj-kernel/src/partial/objects/edge.rs index 6ee0ad8de..a0057c85a 100644 --- a/crates/fj-kernel/src/partial/objects/edge.rs +++ b/crates/fj-kernel/src/partial/objects/edge.rs @@ -8,9 +8,7 @@ use crate::{ Curve, GlobalCurve, GlobalEdge, GlobalVertex, HalfEdge, Objects, Surface, SurfaceVertex, }, - partial::{ - FullToPartialCache, Partial, PartialObject, PartialSurfaceVertex, - }, + partial::{FullToPartialCache, Partial, PartialObject}, services::Service, }; @@ -106,10 +104,7 @@ impl Default for PartialHalfEdge { let curve = Partial::::new(); let vertices = array::from_fn(|_| { - let surface_form = Partial::from_partial(PartialSurfaceVertex { - ..Default::default() - }); - + let surface_form = Partial::default(); (None, surface_form) });