Remove unused code

This commit is contained in:
Hanno Braun 2025-03-18 21:06:54 +01:00
parent 74c1315113
commit 501a89cce3
3 changed files with 2 additions and 33 deletions

View File

@ -1,7 +1,5 @@
use crate::math::Point; use crate::math::Point;
use super::{MeshTriangle, ToTriMesh, TriMesh};
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)] #[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub struct Triangle<const D: usize> { pub struct Triangle<const D: usize> {
pub points: [Point<D>; 3], pub points: [Point<D>; 3],
@ -25,14 +23,3 @@ where
} }
} }
} }
impl ToTriMesh for Triangle<3> {
fn to_tri_mesh(&self) -> TriMesh {
TriMesh {
triangles: vec![MeshTriangle {
inner: *self,
is_internal: false,
}],
}
}
}

View File

@ -1,7 +1,4 @@
use crate::{ use crate::object::Handle;
geometry::{ToTriMesh, TriMesh},
object::Handle,
};
use super::vertex::Vertex; use super::vertex::Vertex;
@ -9,9 +6,3 @@ pub struct HalfEdge {
pub start: Handle<Vertex>, pub start: Handle<Vertex>,
pub is_internal: bool, pub is_internal: bool,
} }
impl ToTriMesh for HalfEdge {
fn to_tri_mesh(&self) -> TriMesh {
TriMesh::new()
}
}

View File

@ -1,7 +1,4 @@
use crate::{ use crate::math::Point;
geometry::{ToTriMesh, TriMesh},
math::Point,
};
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)] #[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub struct Vertex { pub struct Vertex {
@ -14,9 +11,3 @@ impl Vertex {
Self { point } Self { point }
} }
} }
impl ToTriMesh for Vertex {
fn to_tri_mesh(&self) -> TriMesh {
TriMesh::new()
}
}