From 4147c3012d73107ba99c12f1fceae9f62bd9ab26 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 6 Feb 2025 21:01:58 +0100 Subject: [PATCH] Prepare to show connect operation in tree --- experiments/2024-12-09/src/topology/sweep.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/experiments/2024-12-09/src/topology/sweep.rs b/experiments/2024-12-09/src/topology/sweep.rs index bc02250fe..9df81c387 100644 --- a/experiments/2024-12-09/src/topology/sweep.rs +++ b/experiments/2024-12-09/src/topology/sweep.rs @@ -5,7 +5,11 @@ use crate::{ math::Vector, }; -use super::{connect::ConnectExt, face::Face, solid::Solid}; +use super::{ + connect::{Connect, ConnectExt}, + face::Face, + solid::Solid, +}; pub trait SweepExt { /// # Sweep a face along a path, creating a solid @@ -28,21 +32,19 @@ impl SweepExt for Handle { let top = Handle::new(bottom.flip().translate(path)); let output = top.connect(bottom); - Sweep { - output: output.output, - } + Sweep { output } } } pub struct Sweep { - output: Solid, + output: Connect, } impl Operation for Sweep { type Output = Solid; fn output(&self) -> &Self::Output { - &self.output + self.output.output() } fn display(&self, f: &mut fmt::Formatter) -> fmt::Result {