pub pub pub
This commit is contained in:
parent
7d02217d5d
commit
29e483be04
1 changed files with 8 additions and 8 deletions
16
src/lib.rs
16
src/lib.rs
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue