Skip to content

Commit

Permalink
Add Shell::find_face
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 9, 2022
1 parent 61bc5af commit 2453730
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/fj-kernel/src/objects/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ impl Shell {
pub fn into_faces(self) -> Faces {
self.faces
}

/// Find the given face in this shell
pub fn find_face(&self, face: &Face) -> Option<Face> {
self.faces().find(face)
}
}

impl Default for Shell {
Expand Down

0 comments on commit 2453730

Please sign in to comment.