Return triangle vertices as children

This commit is contained in:
Hanno Braun 2024-12-09 20:45:27 +01:00
parent a9bcd5df1b
commit cef2aaec07

View File

@ -70,6 +70,9 @@ impl Operation for Triangle {
}
fn children(&self) -> Vec<Box<dyn Operation>> {
Vec::new()
self.vertices
.iter()
.map(|vertex| Box::new(*vertex) as _)
.collect()
}
}