conspire 0.7.0

The Rust interface to conspire.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(test)]
mod test;

use crate::geometry::{mesh::Mesh, segmentation::Segmentation};

impl Mesh<3> {
    pub fn from_segmentation<T>(segmentation: Segmentation<3, T>, remove: Option<&[T]>) -> Self
    where
        T: Copy + PartialEq + Into<usize>,
    {
        let (grid, scale, translate) = segmentation.into_parts();
        Self::from_voxels_embedded(grid, remove, &scale, &translate)
    }
}