]> icculus.org git repositories - divverent/darkplaces.git/commit
change the model of curves approximation to one that
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Mar 2009 21:45:12 +0000 (21:45 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Mar 2009 21:45:12 +0000 (21:45 +0000)
commitd5a75020f55315a6b3abd3d218e61398e4708b8e
tree120f43f529d801fae3e8bf98a92c903c22c566cd
parent6d2da394e052aef1781c21f0ed080a70125db2e0
change the model of curves approximation to one that
a) almost matches the previous one, and
b) makes more sense, mathematically
now the inexactness of a patch is defined as the maximum over the inexactness of its quadratic splines;
the inexactness of such a quadratic spline is defined as the area between the spline and the line between its end points;
as that area is hard to calculate, the triangle area of the three control points is taken instead (which obviously is larger than the area between spline and the line between the end points, so this actually is a pessimistic approach to get some nicely defined tesselation)

not much should change for the user, though, but flat patches are now properly detected and handled

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8817 d7cf8633-e32d-0410-b094-e92efae38249
curves.c