Skip to content

Commit

Permalink
Add CurveBoundaries::is_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 16, 2023
1 parent eef8fd4 commit 066c1aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/fj-core/src/geometry/boundary/multiple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ impl<T: CurveBoundariesPayload> CurveBoundaries<T> {
Self { inner: Vec::new() }
}

/// Indicate whether this `CurveBoundaries` instance is empty
pub fn is_empty(&self) -> bool {
self.inner.is_empty()
}

/// Transform `self` into the payload of the single boundary requested
///
/// If there are no boundaries or multiple boundaries in `self`, or if the
Expand Down

0 comments on commit 066c1aa

Please sign in to comment.