From cef2aaec07a3d94790054930d77dd4e9820bcfd8 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 9 Dec 2024 20:45:27 +0100 Subject: [PATCH] Return triangle vertices as children --- experiments/2024-12-09/src/geometry/primitives.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/experiments/2024-12-09/src/geometry/primitives.rs b/experiments/2024-12-09/src/geometry/primitives.rs index 99fdfb852..1fcad5e66 100644 --- a/experiments/2024-12-09/src/geometry/primitives.rs +++ b/experiments/2024-12-09/src/geometry/primitives.rs @@ -70,6 +70,9 @@ impl Operation for Triangle { } fn children(&self) -> Vec> { - Vec::new() + self.vertices + .iter() + .map(|vertex| Box::new(*vertex) as _) + .collect() } }