mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 09:58:27 +00:00
Split module
This commit is contained in:
parent
f40c0bc43b
commit
7bb4dbba4a
@ -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>);
|
||||
}
|
||||
|
6
experiments/2024-10-30/src/geometry/operation.rs
Normal file
6
experiments/2024-10-30/src/geometry/operation.rs
Normal 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>);
|
||||
}
|
Loading…
Reference in New Issue
Block a user