Fix simulation reaching different states when started from different snaphots.

This commit is contained in:
Crozet Sébastien
2020-11-02 15:07:50 +01:00
parent 4b8242b9c2
commit 01af6c09a7
16 changed files with 392 additions and 203 deletions

View File

@@ -14,6 +14,18 @@ pub struct PolyhedronFace {
pub num_vertices: usize,
}
impl Default for PolyhedronFace {
fn default() -> Self {
Self {
vertices: [Point::origin(); 4],
vids: [0; 4],
eids: [0; 4],
fid: 0,
num_vertices: 0,
}
}
}
impl From<CuboidFeatureFace> for PolyhedronFace {
fn from(face: CuboidFeatureFace) -> Self {
Self {