feat: stuff

This commit is contained in:
2024-03-24 16:45:17 +01:00
parent f1f038ccca
commit 61d3b15c73
10 changed files with 260 additions and 138 deletions

View File

@@ -3,13 +3,13 @@ use nalgebra::Vector3;
use crate::console_log;
use super::base_slices::BaseSlice;
use super::{base_slices::BaseSlice, FloatValue};
#[derive(Debug)]
pub struct SliceRing {
pub z: f64,
pub z: FloatValue,
/// The points of the ring, in clockwise order.
pub points: Vec<Vector3<f64>>,
pub points: Vec<Vector3<FloatValue>>,
}
pub fn find_slice_rings(mut slice: BaseSlice, layer_index: &mut u32) -> Vec<SliceRing> {