From 14f3b8afdf3bd8369aa6e9bce9f88ede0db1e385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Tue, 13 Feb 2018 18:27:44 +0100 Subject: [PATCH] Display Perlin ground --- main_bounce.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main_bounce.cpp b/main_bounce.cpp index b1849e8..61b9f96 100644 --- a/main_bounce.cpp +++ b/main_bounce.cpp @@ -18,10 +18,12 @@ int main(int argc, char** argv) { Ball ball(Point(0, 5, 0), flat, 0.75, -0.5, -0.7, 1, 1); Cuboid bbox = ball.get_surface()->max_bounding_box(); + Cuboid bbox_2(Point(-2, -1, -2), Point(2,1,2)); printf("%.2lf %.2lf %.2lf | %.2lf %.2lf %.2lf\n", bbox.low(0), bbox.low(1), bbox.low(2), bbox.high(0), bbox.high(1), bbox.high(2)); render.add_surface(ball.get_surface(), bbox); + render.add_surface(flat->get_surface(), bbox_2); render.set_idle_func(periodic_update); init_periodic_static(&ball);