diff options
Diffstat (limited to 'src/geometry/polyhedron_feature3d.rs')
| -rw-r--r-- | src/geometry/polyhedron_feature3d.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/geometry/polyhedron_feature3d.rs b/src/geometry/polyhedron_feature3d.rs index e88674e..d7f0a23 100644 --- a/src/geometry/polyhedron_feature3d.rs +++ b/src/geometry/polyhedron_feature3d.rs @@ -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 { |
