contained_core/compute/
surface.rs

1/*
2    Appellation: surface <module>
3    Contrib: FL03 <jo3mccain@icloud.com>
4    Description:
5        A surface is used to describe a topological object that generally extends a graph data-structure by adding an additional surface value.
6        The surface value or area typically describes all of the possible results of a transition function and is used to establish a consistent state
7*/
8
9pub trait Surface {
10    fn area(&self) -> f64;
11    fn perimeter(&self) -> f64;
12    fn edges(&self) -> u32;
13    fn vertices(&self) -> u32;
14    fn faces(&self) -> u32;
15    fn volume(&self) -> f64;
16}
17
18pub trait Polytope {
19    fn dim(&self) -> u32;
20}