From 71b149ad617a7cbca08a2a7cb8ca5e3b0d8143db Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 26 Oct 2010 19:25:07 -0400 Subject: Add torii to dimension. --- tests/dimension/demo.pov | 23 +++++++++++++++++++++++ tests/dimension/demo.sh | 30 ++++++++++++++++++++++++++++-- 2 files changed, 51 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov index 0ec053b..1d0ff53 100644 --- a/tests/dimension/demo.pov +++ b/tests/dimension/demo.pov @@ -86,6 +86,29 @@ union { rotate -45*x } +union { + torus { + 0.15, 0.05 + translate -y + sturm off + } + torus { + 0.15, 0.05 + } + torus { + 0.15, 0.05 + translate y + } + + pigment { + color rgb <0, 0, 1> + } + finish { + ambient 1 + } + rotate -45*x +} + plane { y, -2 pigment { diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh index fc37226..20eebb9 100755 --- a/tests/dimension/demo.sh +++ b/tests/dimension/demo.sh @@ -101,14 +101,40 @@ demo_exp=$(echo -n \ (transformation (rotation (vector (integer -45) (integer 0) (integer 0) (integer 0) (integer 0)))))) + (object + (union + (object + (torus (float 0.15) (float 0.05)) + (object-modifiers + (transformation + (translation (vector (integer 0) (integer -1) (integer 0) + (integer 0) (integer 0)))))) + (object + (torus (float 0.15) (float 0.05)) + object-modifiers) + (object + (torus (float 0.15) (float 0.05)) + (object-modifiers + (transformation + (translation (vector (integer 0) (integer 1) (integer 0) + (integer 0) (integer 0))))))) + (object-modifiers + (pigment + (vector (integer 0) (integer 0) (integer 1) (integer 0) (integer 0)) + pigment-modifiers) + (finish + (ambient + (vector (integer 1) (integer 1) (integer 1) (integer 1) (integer 1)))) + (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)) (integer -2)) (object-modifiers (pigment - (vector (integer 1) (integer 1) (integer 1) - (integer 0) (integer 0)) + (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0)) pigment-modifiers))))' \ | tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g') -- cgit v1.2.3