Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-12 15:48:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-12 15:48:39 +0300
commit4f47f21d446cc6b927939507b00e1299c3ce6b01 (patch)
tree38ad128171d533c0fd977f43f50f1ded172309cd /source/blender/blenlib
parent9596b369bd32e9d5553d467cf61495fade1d6031 (diff)
small corrections, no functionality change
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/boxpack2d.c10
-rw-r--r--source/blender/blenlib/intern/math_geom.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/boxpack2d.c b/source/blender/blenlib/intern/boxpack2d.c
index 7d5e1eec53e..d31bc4e762d 100644
--- a/source/blender/blenlib/intern/boxpack2d.c
+++ b/source/blender/blenlib/intern/boxpack2d.c
@@ -31,7 +31,7 @@
* The defined Below are for internal use only */
/* free vert flags */
-#define eul 0.0000001f
+#define eps 0.0000001f
#define BLF 1
#define TRF 2
#define TLF 4
@@ -68,10 +68,10 @@
b->v[TR]->y = f;\
UPDATE_V34Y(b)
#define BOXINTERSECT(b1, b2)\
- (!( BOXLEFT(b1)+eul>=BOXRIGHT(b2) ||\
- BOXBOTTOM(b1)+eul>=BOXTOP(b2) ||\
- BOXRIGHT(b1)-eul<=BOXLEFT(b2) ||\
- BOXTOP(b1)-eul<=BOXBOTTOM(b2) ))
+ (!( BOXLEFT(b1)+eps>=BOXRIGHT(b2) ||\
+ BOXBOTTOM(b1)+eps>=BOXTOP(b2) ||\
+ BOXRIGHT(b1)-eps<=BOXLEFT(b2) ||\
+ BOXTOP(b1)-eps<=BOXBOTTOM(b2) ))
#define MIN2(x,y) ( (x)<(y) ? (x) : (y) )
#define MAX2(x,y) ( (x)>(y) ? (x) : (y) )
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index 9ce70ee2ee7..0b3ab2f0afc 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -434,7 +434,7 @@ int isect_ray_tri_v3(float p1[3], float d[3], float v0[3], float v1[3], float v2
cross_v3_v3v3(p, d, e2);
a = dot_v3v3(e1, p);
/* note: these values were 0.000001 in 2.4x but for projection snapping on
- * a human head (1BU==1m), subsurf level 2, this gave many errors */
+ * a human head (1BU==1m), subsurf level 2, this gave many errors - campbell */
if ((a > -0.00000001) && (a < 0.00000001)) return 0;
f = 1.0f/a;