diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-10-26 19:25:07 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-10-26 19:25:07 -0400 |
commit | 71b149ad617a7cbca08a2a7cb8ca5e3b0d8143db (patch) | |
tree | 9dc0ba264561066a9128292b8ba0d34be424232a /tests | |
parent | 3950b4f0d2483cadf006bf2a957aeb820402503a (diff) | |
download | dimension-71b149ad617a7cbca08a2a7cb8ca5e3b0d8143db.tar.xz |
Add torii to dimension.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dimension/demo.pov | 23 | ||||
-rwxr-xr-x | tests/dimension/demo.sh | 30 |
2 files changed, 51 insertions, 2 deletions
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 @@ -102,13 +102,39 @@ demo_exp=$(echo -n \ (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') |