mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-08 20:08:30 +00:00
Simplify return value of Flip::flip
This commit is contained in:
parent
72de73c364
commit
89d13dee02
@ -1,11 +1,11 @@
|
||||
use crate::{operation::Handle, topology::face::Face};
|
||||
use crate::topology::face::Face;
|
||||
|
||||
pub trait FlipExt {
|
||||
fn flip(self) -> Handle<Face>;
|
||||
fn flip(self) -> Face;
|
||||
}
|
||||
|
||||
impl FlipExt for &Face {
|
||||
fn flip(self) -> Handle<Face> {
|
||||
Handle::new(Face::new(self.surface().flip(), self.vertices().cloned()))
|
||||
fn flip(self) -> Face {
|
||||
Face::new(self.surface().flip(), self.vertices().cloned())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user