///
/// Merges the mesh together with the `other` mesh.
/// The `other` mesh primitives are copied to the current mesh (and `other` is therefore not changed)
/// followed by merging of overlapping primitives.
///
/// # Error
///
/// Returns an error if the merging will result in a non-manifold mesh.
///
Merges the mesh together with the `other` mesh.
The `other` mesh primitives are copied to the current mesh (and `other` is therefore not changed)
followed by merging of overlapping primitives.
Merges the mesh together with the ` other ` mesh . The ` other ` mesh primitives are copied to the current mesh ( and ` other ` is therefore not changed ) followed by merging of overlapping primitives .
pub fn merge_with(&mut self, other: &Self) -> Result<(), Error>
    {
        self.append(other);
        self.merge_overlapping_primitives()?;
        Ok(())
    }
pub fn merge_with ( & mut self , other : & Self ) -> Result < ( ) , Error > { self . append ( other ) ; self . merge_overlapping_primitives ( ) ? ; Ok ( ( ) ) }
Merges the mesh together with the `other` mesh.
Merges the mesh together with the ` other ` mesh .
&mut self
other
&Self
error
Returns an error if the merging will result in a non-manifold mesh.
Returns an error if the merging will result in a non - manifold mesh .