fgfs-base-tar:
(cd $(HOME); \
- tar czvf fgfs-base-$(VERSION).tar.gz \
+ tar --exclude=CVS -czvf fgfs-base-$(VERSION).tar.gz \
FlightGear/A[A-su-z]* \
FlightGear/[B-CE-R]* \
FlightGear/Scenery/w130n30/w123n37 \
FlightGear/Sounds \
FlightGear/Textures \
FlightGear/T[A-Za-df-z]* \
- FlightGear/[U-W]* FlightGear/[c-z]*)
+ FlightGear/[U-W]* FlightGear/[c-z]* \
+ -x '*/CVS/*' )
fgfs-base-patch:
(cd $(HOME); \
}
-static float sgTriArea( sgVec3 p0, sgVec3 p1, sgVec3 p2 ) {
+static float fgTriArea( sgVec3 p0, sgVec3 p1, sgVec3 p2 ) {
/*
From comp.graph.algorithms FAQ
2A(P) = abs(N.(sum_{i=0}^{n-1}(v_i x v_{i+1})))
#if 0
-// this works too, but Norman claims sgTriArea() is more efficient :-)
+// this works too, but Norman claims fgTriArea() is more efficient :-)
static double triangle_area_3d( float *p1, float *p2, float *p3 ) {
// Heron's formula: A^2 = s(s-a)(s-b)(s-c) where A is the area,
// a,b,c are the side lengths, s=(a+b+c)/2. In R^3 you can compute
p1 = leaf->getVertex(n1);
p2 = leaf->getVertex(n2);
p3 = leaf->getVertex(n3);
- double area = sgTriArea( p1, p2, p3 );
+ double area = fgTriArea( p1, p2, p3 );
double num = area / factor;
// generate a light point for each unit of area