sampled-dmc 0.1.2

An implementation of Dual Marching Cubes (DMC) for already sampled data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use cgmath::Vector3;
use dmc::prelude::*;

#[derive(Clone, Copy)]
pub struct Node {
    pub density: f32,
    pub normal: Vector3<f32>,
}

impl McNode for Node {
    fn density(&self) -> f32 {
        self.density
    }

    fn normal(&self) -> Vector3<f32> {
        self.normal
    }
}