pub pub pub

This commit is contained in:
randogoth 2024-03-26 12:01:57 +02:00
parent 7d02217d5d
commit 29e483be04

View file

@ -12,18 +12,18 @@ pub struct Edge(usize, usize);
#[derive(Debug)] #[derive(Debug)]
pub struct TriangleData { pub struct TriangleData {
index: usize, pub index: usize,
area: Option<f32>, pub area: Option<f32>,
terminal_edge: Option<Edge>, pub terminal_edge: Option<Edge>,
vertices: Vec<usize> pub vertices: Vec<usize>
} }
#[derive(Debug)] #[derive(Debug)]
pub struct GeometryData { pub struct GeometryData {
triangles: Vec<TriangleData>, pub triangles: Vec<TriangleData>,
edge_to_triangles: HashMap<Edge, Vec<usize>>, // Maps an edge to triangle indices pub edge_to_triangles: HashMap<Edge, Vec<usize>>, // Maps an edge to triangle indices
edge_lengths: HashMap<Edge, f32>, // Edge lengths pub edge_lengths: HashMap<Edge, f32>, // Edge lengths
vertex_connections: HashMap<usize, HashSet<usize>>, // Direct connections between vertices, for DTSCAN pub vertex_connections: HashMap<usize, HashSet<usize>>, // Direct connections between vertices, for DTSCAN
} }
impl GeometryData { impl GeometryData {