1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::objects::Solid;

use super::UpdateSolid;

/// Merge two [`Solid`]s
pub trait Merge {
    /// Merge this solid with another
    fn merge(&self, other: &Self) -> Self;
}

impl Merge for Solid {
    fn merge(&self, other: &Self) -> Self {
        self.add_shells(other.shells().cloned())
    }
}