summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-06-28 11:18:13 -0600
committerTavian Barnes <tavianator@gmail.com>2010-06-28 11:18:13 -0600
commit1b77e953067ce43515e96f99ecafa2ea468a60bc (patch)
treed0b7a2a97a1fd1ca4484af1929ed56592f5e9f85
parentac1ef5630c21c92455c8da9f4d77b81536ef9808 (diff)
downloaddimension-1b77e953067ce43515e96f99ecafa2ea468a60bc.tar.xz
Don't make a degenerate sphere in transformations.pov.
-rw-r--r--libdimension/geometry.c10
-rw-r--r--tests/dimension/transformations.pov2
-rwxr-xr-xtests/dimension/transformations.sh2
3 files changed, 7 insertions, 7 deletions
diff --git a/libdimension/geometry.c b/libdimension/geometry.c
index 5d14953..26ca628 100644
--- a/libdimension/geometry.c
+++ b/libdimension/geometry.c
@@ -140,11 +140,11 @@ dmnsn_matrix_inverse(dmnsn_matrix A)
if (Pdet == 0.0) {
/* If we can't invert P, try a more generic algorithm; this is very
- unlikely, but not impossible, eg.
- ( 1 1 0 0 )
- ( 1 1 1 0 )
- ( 0 1 1 0 )
- ( 0 0 0 1 )
+ * unlikely, but not impossible, eg.
+ * [ 1 1 0 0 ]
+ * [ 1 1 1 0 ]
+ * [ 0 1 1 0 ]
+ * [ 0 0 0 1 ]
*/
return dmnsn_matrix_inverse_generic(A);
}
diff --git a/tests/dimension/transformations.pov b/tests/dimension/transformations.pov
index 4b56c3f..f7a31fe 100644
--- a/tests/dimension/transformations.pov
+++ b/tests/dimension/transformations.pov
@@ -22,7 +22,7 @@
#declare Trans = transform { translate 1*z }
sphere {
- 0, 0
+ 0, 1
translate -1*x
rotate 90*y
scale 2
diff --git a/tests/dimension/transformations.sh b/tests/dimension/transformations.sh
index 65f8b1b..462dbeb 100755
--- a/tests/dimension/transformations.sh
+++ b/tests/dimension/transformations.sh
@@ -24,7 +24,7 @@ transformations_exp="$(echo -n \
'((object
(sphere
(vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0))
- (integer 0))
+ (integer 1))
(object-modifiers
(transformation
(translation