springrep 0.1.0

An exact boundary-representation geometry kernel, in safe Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! What an operation knows by construction about how the two arenas it hands a boolean meet, so
//! the boolean takes it instead of computing it. The boolean checks every fact and refuses one that
//! does not hold.

use super::{EdgeId, FaceId};

/// Edge `edge` of input `side` (0 or 1) lies in the surface of face `face` of the other input.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct OnFace {
    pub side: usize,
    pub edge: EdgeId,
    pub face: FaceId,
}

#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Facts {
    pub on_face: Vec<OnFace>,
}