fj_kernel/operations/update/
solid.rs

1use crate::{
2    objects::{Shell, Solid},
3    storage::Handle,
4};
5
6/// Update a [`Solid`]
7pub trait UpdateSolid {
8    /// Add a shell to the solid
9    fn add_shell(&self, shell: Handle<Shell>) -> Solid;
10}
11
12impl UpdateSolid for Solid {
13    fn add_shell(&self, shell: Handle<Shell>) -> Solid {
14        let shells = self.shells().cloned().chain([shell]);
15        Solid::new(shells)
16    }
17}