mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 03:18:30 +00:00
Remove unused code
This commit is contained in:
parent
74c1315113
commit
501a89cce3
@ -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,
|
|
||||||
}],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user