mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
Add Face::flip
This commit is contained in:
parent
9cf0d8f3f1
commit
97d26e0211
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user