From e0efc5ef27039f03be4783d593508ea7480aa4d0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 15 Aug 2010 00:22:47 -0600 Subject: Add cylinder support to dimension. --- tests/dimension/demo.pov | 8 ++++++++ tests/dimension/demo.sh | 14 ++++++++++++++ 2 files changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov index 4e8ba4d..69c9d4e 100644 --- a/tests/dimension/demo.pov +++ b/tests/dimension/demo.pov @@ -71,6 +71,14 @@ difference { } } +cylinder { + -1.25*y, 1.25*y, 0.1 + pigment { + color rgb <1, 0, 0> + } + rotate -45*x +} + plane { y, -2 pigment { diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh index a5f05a5..2bf21b9 100755 --- a/tests/dimension/demo.sh +++ b/tests/dimension/demo.sh @@ -76,6 +76,20 @@ demo_exp=$(echo -n \ (phong (float 0.2)) (phong_size (float 40))))))) object-modifiers) + (object + (cylinder + (vector (float 0) (float -1.25) (float 0) (float 0) (float 0)) + (vector (float 0) (float 1.25) (float 0) (float 0) (float 0)) + (float 0.1) + (integer 0)) + (object-modifiers + (pigment + (vector (integer 1) (integer 0) (integer 0) + (integer 0) (integer 0)) + pigment-modifiers) + (transformation + (rotation (vector (integer -45) (integer 0) (integer 0) + (integer 0) (integer 0)))))) (object (plane (vector (integer 0) (integer 1) (integer 0) (integer 0) (integer 0)) -- cgit v1.2.3