Skip to content

Commit

Permalink
Add BuildRegion::empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jun 19, 2023
1 parent d6240d8 commit 9f309b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/fj-core/src/operations/build/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ use crate::{

/// Build a [`Region`]
pub trait BuildRegion {
/// Build an empty region
fn empty(services: &mut Services) -> Region {
let exterior = Cycle::empty().insert(services);
let interiors = [];
let color = None;

Region::new(exterior, interiors, color)
}

/// Build a circle
fn circle(
center: impl Into<Point<2>>,
Expand Down

0 comments on commit 9f309b6

Please sign in to comment.