[gegl] perspective bug: best attempt so far
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] perspective bug: best attempt so far
- Date: Mon, 17 Dec 2012 01:28:14 +0000 (UTC)
commit f65eab45bc8174245d51c69f85516b77ffc7fedb
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Sun Dec 16 20:28:10 2012 -0500
perspective bug: best attempt so far
gegl/gegl-matrix.c | 10 +++++-----
operations/transform/transform-core.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gegl/gegl-matrix.c b/gegl/gegl-matrix.c
index d06460a..e813391 100644
--- a/gegl/gegl-matrix.c
+++ b/gegl/gegl-matrix.c
@@ -219,11 +219,11 @@ gegl_matrix3_transform_point (GeglMatrix3 *matrix,
w = (*x * matrix->coeff [2][0] + *y * matrix->coeff [2][1] + matrix->coeff [2][2]);
-/*
- * Attempt at making near degenerate cases be handled somewhat
- * gracefully: Set a floor, above 0, for w.
- */
-#define PERSPECTIVE_TRANSFORM_EPSILON ((gdouble) 1.e-6)
+ /*
+ * Attempt at making near degenerate cases be handled somewhat
+ * gracefully: Set a floor, above 0, for w.
+ */
+#define PERSPECTIVE_TRANSFORM_EPSILON ((gdouble) 1.e-4)
#define CLAMP_PERSPECTIVE_TRANSFORM(w) \
( (w) > PERSPECTIVE_TRANSFORM_EPSILON ? (w) : PERSPECTIVE_TRANSFORM_EPSILON )
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 137e991..1240a64 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -1082,7 +1082,7 @@ transform_generic (GeglBuffer *dest,
* Attempt at making near degenerate cases be handled somewhat
* gracefully: Set a floor, above 0, for w.
*/
-#define PERSPECTIVE_TRANSFORM_EPSILON ((gdouble) 1.e-6)
+#define PERSPECTIVE_TRANSFORM_EPSILON ((gdouble) 1.e-5)
#define CLAMP_PERSPECTIVE_TRANSFORM(w) \
( (w) > PERSPECTIVE_TRANSFORM_EPSILON ? (w) : PERSPECTIVE_TRANSFORM_EPSILON )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]