mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +00:00
Inline redundant function
This commit is contained in:
parent
00d908d61b
commit
a7387eadfc
@ -42,10 +42,6 @@ impl Face {
|
||||
.map(|(a, b)| [a, b])
|
||||
}
|
||||
|
||||
pub fn flip(&self) -> Self {
|
||||
Self::new(self.surface().flip(), self.vertices().cloned())
|
||||
}
|
||||
|
||||
pub fn translate(&self, offset: impl Into<Vector<3>>) -> Self {
|
||||
let offset = offset.into();
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
use std::ops::Deref;
|
||||
|
||||
use crate::geometry::Handle;
|
||||
|
||||
use super::face::Face;
|
||||
@ -10,6 +8,6 @@ pub trait FlipExt {
|
||||
|
||||
impl FlipExt for Handle<Face> {
|
||||
fn flip(self) -> Face {
|
||||
self.deref().flip()
|
||||
Face::new(self.surface().flip(), self.vertices().cloned())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user