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