mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 02:48:27 +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 {
|
||||
fn flip(self) -> Flip;
|
||||
fn flip(self) -> Handle<Face>;
|
||||
}
|
||||
|
||||
impl FlipExt for &Face {
|
||||
fn flip(self) -> Flip {
|
||||
let output = Handle::new(Face::new(
|
||||
self.surface().flip(),
|
||||
self.vertices().cloned(),
|
||||
));
|
||||
|
||||
Flip { output }
|
||||
fn flip(self) -> Handle<Face> {
|
||||
Handle::new(Face::new(self.surface().flip(), self.vertices().cloned()))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user