Add Face::flip

This commit is contained in:
Hanno Braun 2025-01-20 19:22:31 +01:00
parent 9cf0d8f3f1
commit 97d26e0211

View File

@ -36,6 +36,14 @@ impl Face {
pub fn vertices(&self) -> impl Iterator<Item = &Handle<Vertex>> {
self.vertices.iter()
}
#[allow(unused)] // code that uses it is being worked on
pub fn flip(&self, surfaces: &mut Store<Plane>) -> Self {
Self {
surface: surfaces.insert(self.surface.flip()),
vertices: self.vertices.clone(),
}
}
}
impl Operation for Face {