diff --git a/crates/fj-viewer/src/graphics/vertices.rs b/crates/fj-viewer/src/graphics/vertices.rs index db641c4b1..d7f76c4a4 100644 --- a/crates/fj-viewer/src/graphics/vertices.rs +++ b/crates/fj-viewer/src/graphics/vertices.rs @@ -1,8 +1,5 @@ use bytemuck::{Pod, Zeroable}; -use fj_interop::{ - debug::DebugInfo, - mesh::{Index, Mesh}, -}; +use fj_interop::mesh::{Index, Mesh}; use fj_math::{Point, Vector}; #[derive(Debug)] @@ -102,36 +99,6 @@ impl From<&Mesh>> for Vertices { } } -impl From<&DebugInfo> for Vertices { - fn from(debug_info: &DebugInfo) -> Self { - let mut self_ = Self::empty(); - - for triangle_edge_check in &debug_info.triangle_edge_checks { - let normal = [0.; 3]; - - let red = [1., 0., 0., 1.]; - let green = [0., 1., 0., 1.]; - - let color = if triangle_edge_check.hits.len() % 2 == 0 { - red - } else { - green - }; - - self_.push_cross(triangle_edge_check.origin, normal, color); - - for &hit in &triangle_edge_check.hits { - let line = hit.points(); - let color = [0., 0., 0., 1.]; - - self_.push_line(line, normal, color); - } - } - - self_ - } -} - #[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)] #[repr(C)] pub struct Vertex {