summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-20 19:08:05 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-20 19:08:05 -0400
commit0cb8dcce563a36dd2adb8e4d941cbac4adcb8561 (patch)
treef88e290a73fa863488960f4142eae57a6cffbdfc /tests
parent59481d4e4421cc7d0610d49c6dbec720de1f11ea (diff)
downloaddimension-0cb8dcce563a36dd2adb8e4d941cbac4adcb8561.tar.xz
Add cones to dimension.
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/demo.pov11
-rwxr-xr-xtests/dimension/demo.sh21
2 files changed, 25 insertions, 7 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov
index 69c9d4e..0ec053b 100644
--- a/tests/dimension/demo.pov
+++ b/tests/dimension/demo.pov
@@ -71,8 +71,15 @@ difference {
}
}
-cylinder {
- -1.25*y, 1.25*y, 0.1
+union {
+ cylinder {
+ -1.25*y, 1.25*y, 0.1
+ }
+ cone {
+ 1.25*y, 0.1, 1.5*y, 0
+ open
+ }
+
pigment {
color rgb <1, 0, 0>
}
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index 2bf21b9..fc37226 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -77,11 +77,22 @@ demo_exp=$(echo -n \
(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))
+ (union
+ (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)
+ (object
+ (cone
+ (vector (float 0) (float 1.25) (float 0) (float 0) (float 0))
+ (float 0.1)
+ (vector (float 0) (float 1.5) (float 0) (float 0) (float 0))
+ (integer 0)
+ (integer 1))
+ object-modifiers))
(object-modifiers
(pigment
(vector (integer 1) (integer 0) (integer 0)