diff --git a/models/star/src/lib.rs b/models/star/src/lib.rs index ca1ad15ab..87787e4ac 100644 --- a/models/star/src/lib.rs +++ b/models/star/src/lib.rs @@ -11,7 +11,6 @@ use fj::{ update::{UpdateRegion, UpdateSketch}, }, services::Services, - storage::Handle, }, math::Vector, }; @@ -22,7 +21,7 @@ pub fn model( r2: f64, h: f64, services: &mut Services, -) -> Handle { +) -> Solid { let num_vertices = num_points * 2; let vertex_iter = (0..num_vertices).map(|i| { let angle_rad = 2. * PI / num_vertices as f64 * i as f64; @@ -55,5 +54,4 @@ pub fn model( .insert(services), ) .sweep_sketch(bottom_surface, sweep_path, services) - .insert(services) } diff --git a/models/star/src/main.rs b/models/star/src/main.rs index a9848f0c2..c91ba4bc0 100644 --- a/models/star/src/main.rs +++ b/models/star/src/main.rs @@ -1,10 +1,8 @@ -use std::ops::Deref; - use fj::{core::services::Services, handle_model}; fn main() -> fj::Result { let mut services = Services::new(); let model = star::model(5, 1., 2., 1., &mut services); - handle_model(model.deref(), services)?; + handle_model(&model, services)?; Ok(()) }