mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-07 15:40:15 +00:00
Make Region::new more convenient to call
This commit is contained in:
parent
8270f5abb2
commit
afa79e48f4
@ -28,12 +28,12 @@ impl Region {
|
||||
/// Construct an instance of `Region`
|
||||
pub fn new(
|
||||
exterior: Handle<Cycle>,
|
||||
interiors: Vec<Handle<Cycle>>,
|
||||
interiors: impl IntoIterator<Item = Handle<Cycle>>,
|
||||
color: Option<Color>,
|
||||
) -> Self {
|
||||
Self {
|
||||
exterior,
|
||||
interiors,
|
||||
interiors: interiors.into_iter().collect(),
|
||||
color,
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,8 +47,6 @@ impl Face {
|
||||
interiors: impl IntoIterator<Item = Handle<Cycle>>,
|
||||
color: Option<Color>,
|
||||
) -> Self {
|
||||
let interiors = interiors.into_iter().collect();
|
||||
|
||||
Self {
|
||||
surface,
|
||||
region: Region::new(exterior, interiors, color),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user