Type Definition truck_topology::FaceID[][src]

type FaceID<S> = ID<Mutex<S>>;

The id that does not depend on the direction of the face.

Examples

use truck_topology::*;
let v = Vertex::news(&[(); 3]);
let wire = Wire::from(vec![
    Edge::new(&v[0], &v[1], ()),
    Edge::new(&v[1], &v[2], ()),
    Edge::new(&v[2], &v[0], ()),
]);
let face0 = Face::new(vec![wire.clone()], ());
let face1 = face0.inverse();
let face2 = Face::new(vec![wire], ());
assert_ne!(face0, face1);
assert_ne!(face0, face2);
assert_eq!(face0.id(), face1.id());
assert_ne!(face0.id(), face2.id());