diff --git a/models/vertices-indices/src/lib.rs b/models/vertices-indices/src/lib.rs index 15050e57e..f4727cbeb 100644 --- a/models/vertices-indices/src/lib.rs +++ b/models/vertices-indices/src/lib.rs @@ -6,16 +6,13 @@ use fj::core::{ update::UpdateSolid, }, services::Services, - storage::Handle, }; -pub fn model(services: &mut Services) -> Handle { - Solid::empty() - .add_shells([Shell::from_vertices_and_indices( - [[0., 0., 0.], [1., 0., 0.], [0., 1., 0.], [0., 0., 1.]], - [[2, 1, 0], [0, 1, 3], [1, 2, 3], [2, 0, 3]], - services, - ) - .insert(services)]) - .insert(services) +pub fn model(services: &mut Services) -> Solid { + Solid::empty().add_shells([Shell::from_vertices_and_indices( + [[0., 0., 0.], [1., 0., 0.], [0., 1., 0.], [0., 0., 1.]], + [[2, 1, 0], [0, 1, 3], [1, 2, 3], [2, 0, 3]], + services, + ) + .insert(services)]) } diff --git a/models/vertices-indices/src/main.rs b/models/vertices-indices/src/main.rs index 9d294d208..87fa9c58a 100644 --- a/models/vertices-indices/src/main.rs +++ b/models/vertices-indices/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 = vertices_indices::model(&mut services); - handle_model(model.deref(), services)?; + handle_model(&model, services)?; Ok(()) }