mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +00:00
Add Point
This commit is contained in:
parent
20b69fc757
commit
68b97e02a2
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
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