mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Add Point
This commit is contained in:
parent
20b69fc757
commit
68b97e02a2
@ -1,3 +1,5 @@
|
||||
use crate::math::Point;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Mesh {
|
||||
vertices: Vec<Vertex>,
|
||||
@ -24,7 +26,7 @@ impl Mesh {
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct Vertex {
|
||||
pub point: [f64; 3],
|
||||
pub point: Point,
|
||||
}
|
||||
|
||||
pub type Index = u32;
|
||||
|
@ -1,6 +1,7 @@
|
||||
mod app;
|
||||
mod export;
|
||||
mod geometry;
|
||||
mod math;
|
||||
mod model;
|
||||
mod render;
|
||||
|
||||
|
1
experiments/2024-10-30/src/math.rs
Normal file
1
experiments/2024-10-30/src/math.rs
Normal file
@ -0,0 +1 @@
|
||||
pub type Point = [f64; 3];
|
Loading…
Reference in New Issue
Block a user