From 9866679dc7c7573090b0911fb7af809342c6ff09 Mon Sep 17 00:00:00 2001 From: STP Date: Fri, 17 Nov 2023 21:22:04 -0500 Subject: [PATCH] Fixed out of bounds error --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 41e0030..1efaab1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -223,7 +223,7 @@ fn main() -> Result<(), Error> { // let cone = Arc::new(Cone::new(0.25, 1.0, -0.5, turquoise.clone())); // primitives.push(cone.clone()); let mut primitives: Vec> = Vec::new(); - let cube = Box::new(Cube::unit(blue.clone())); + let cube = Box::new(Sphere::unit(blue.clone())); primitives.push(cube); //Lights let light_pos = Point3::new(10.0, 12.0, 10.0);