Add Point

This commit is contained in:
Hanno Braun 2024-11-05 18:17:45 +01:00
parent 20b69fc757
commit 68b97e02a2
3 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
use crate::math::Point;
#[derive(Default)] #[derive(Default)]
pub struct Mesh { pub struct Mesh {
vertices: Vec<Vertex>, vertices: Vec<Vertex>,
@ -24,7 +26,7 @@ impl Mesh {
#[derive(Clone, Copy)] #[derive(Clone, Copy)]
pub struct Vertex { pub struct Vertex {
pub point: [f64; 3], pub point: Point,
} }
pub type Index = u32; pub type Index = u32;

View File

@ -1,6 +1,7 @@
mod app; mod app;
mod export; mod export;
mod geometry; mod geometry;
mod math;
mod model; mod model;
mod render; mod render;

View File

@ -0,0 +1 @@
pub type Point = [f64; 3];