summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/demo.pov23
-rwxr-xr-xtests/dimension/demo.sh30
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')