diff --git a/experiments/2024-12-09/src/topology/sweep.rs b/experiments/2024-12-09/src/topology/sweep.rs index 9539d0fc7..75028c7f7 100644 --- a/experiments/2024-12-09/src/topology/sweep.rs +++ b/experiments/2024-12-09/src/topology/sweep.rs @@ -8,30 +8,6 @@ use crate::{ use super::{face::Face, solid::Solid, vertex::Vertex}; -pub struct Sweep { - output: Solid, -} - -impl Operation for Sweep { - type Output = Solid; - - fn output(&self) -> &Self::Output { - &self.output - } - - fn display(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "Sweep") - } - - fn tri_mesh(&self) -> TriMesh { - self.output.tri_mesh() - } - - fn children(&self) -> Vec { - self.output.children() - } -} - pub trait SweepExt { /// Sweep a face along a path, creating a solid /// @@ -70,3 +46,27 @@ impl SweepExt for Handle { Sweep { output: solid } } } + +pub struct Sweep { + output: Solid, +} + +impl Operation for Sweep { + type Output = Solid; + + fn output(&self) -> &Self::Output { + &self.output + } + + fn display(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "Sweep") + } + + fn tri_mesh(&self) -> TriMesh { + self.output.tri_mesh() + } + + fn children(&self) -> Vec { + self.output.children() + } +}