Prepare to add Flip operation

This commit is contained in:
Hanno Braun 2025-02-12 20:32:26 +01:00
parent a7387eadfc
commit c25d1167e0

View File

@ -3,11 +3,11 @@ use crate::geometry::Handle;
use super::face::Face; use super::face::Face;
pub trait FlipExt { pub trait FlipExt {
fn flip(self) -> Face; fn flip(self) -> Handle<Face>;
} }
impl FlipExt for Handle<Face> { impl FlipExt for Handle<Face> {
fn flip(self) -> Face { fn flip(self) -> Handle<Face> {
Face::new(self.surface().flip(), self.vertices().cloned()) Handle::new(Face::new(self.surface().flip(), self.vertices().cloned()))
} }
} }