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)]
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;

View File

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

View File

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