[Gtkradiant] r403 - GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2

svn-noreply at zerowing.idsoftware.com svn-noreply at zerowing.idsoftware.com
Sun Jan 2 00:50:58 CST 2011


Author: rambetter
Date: Sun Jan  2 00:50:58 2011
New Revision: 403

Modified:
   GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c
Log:
In PlaneEqual() in map.c, being extra anal about the logic there.  Previous
logic used '<=' in compare, new logic uses '<'.  This was changed for two
reasons:
1. It adheres the the true meaning of epsilon, which is something along the
lines of "the minimum value that can be added to number X such that number X
takes on a new value after the addition" in computer science.
2. Other code that compares epsilons uses strict inequality, so I don't want
to have a case where to planes are reported equal but are not snapped
together, etc.
I still have to finish looking at where else PlaneEqual() is used and fix
related problems.


Modified: GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c?view=diff&rev=403&p1=GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c&r1=402&p2=GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c&r2=403
==============================================================================



More information about the Gtkradiant mailing list