Split module

This commit is contained in:
Hanno Braun 2024-11-06 21:07:22 +01:00
parent f40c0bc43b
commit 7bb4dbba4a
2 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,7 @@
mod operation;
mod operations;
pub use self::operations::Operations;
pub use self::{operation::Operation, operations::Operations};
use crate::math::Point;
@ -18,8 +19,3 @@ impl Operation for Vertex {
}
pub type Triangle = [Vertex; 3];
pub trait Operation {
fn vertices(&self, vertices: &mut Vec<Vertex>);
fn triangles(&self, triangles: &mut Vec<Triangle>);
}

View File

@ -0,0 +1,6 @@
use super::{Triangle, Vertex};
pub trait Operation {
fn vertices(&self, vertices: &mut Vec<Vertex>);
fn triangles(&self, triangles: &mut Vec<Triangle>);
}