mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 10:58:28 +00:00
Simplify return value of Flip::flip
This commit is contained in:
parent
c3836c9abf
commit
d4d09ca89d
@ -7,17 +7,12 @@ use crate::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
pub trait FlipExt {
|
pub trait FlipExt {
|
||||||
fn flip(self) -> Flip;
|
fn flip(self) -> Handle<Face>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FlipExt for &Face {
|
impl FlipExt for &Face {
|
||||||
fn flip(self) -> Flip {
|
fn flip(self) -> Handle<Face> {
|
||||||
let output = Handle::new(Face::new(
|
Handle::new(Face::new(self.surface().flip(), self.vertices().cloned()))
|
||||||
self.surface().flip(),
|
|
||||||
self.vertices().cloned(),
|
|
||||||
));
|
|
||||||
|
|
||||||
Flip { output }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user