|
From: <kin...@us...> - 2004-02-19 06:55:25
|
Update of /cvsroot/teem/teem/src/limn In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16501/limn Modified Files: renderLimn.c shapes.c Log Message: going crazy: replaced M_E with AIR_E and M_PI with AIR_PI, out of spite for windows Index: renderLimn.c =================================================================== RCS file: /cvsroot/teem/teem/src/limn/renderLimn.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** renderLimn.c 13 Feb 2004 22:57:30 -0000 1.21 --- renderLimn.c 19 Feb 2004 06:45:12 -0000 1.22 *************** *** 257,262 **** edge->type = limnEdgeTypeBorder; } else { ! angle = 180/M_PI*acos(ELL_3V_DOT(face0->worldNormal, ! face1->worldNormal)); if (face0->visible && face1->visible) { edge->type = (angle > win->ps.creaseAngle --- 257,262 ---- edge->type = limnEdgeTypeBorder; } else { ! angle = 180/AIR_PI*acos(ELL_3V_DOT(face0->worldNormal, ! face1->worldNormal)); if (face0->visible && face1->visible) { edge->type = (angle > win->ps.creaseAngle *************** *** 334,339 **** edge->type = limnEdgeTypeBorder; } else { ! angle = 180/M_PI*acos(ELL_3V_DOT(face0->worldNormal, ! face1->worldNormal)); if (face0->visible && face1->visible) { edge->type = (angle > win->ps.creaseAngle --- 334,339 ---- edge->type = limnEdgeTypeBorder; } else { ! angle = 180/AIR_PI*acos(ELL_3V_DOT(face0->worldNormal, ! face1->worldNormal)); if (face0->visible && face1->visible) { edge->type = (angle > win->ps.creaseAngle Index: shapes.c =================================================================== RCS file: /cvsroot/teem/teem/src/limn/shapes.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** shapes.c 9 Feb 2004 22:48:01 -0000 1.16 --- shapes.c 19 Feb 2004 06:45:12 -0000 1.17 *************** *** 90,94 **** for (ii=0; ii<=res-1; ii++) { ! theta = AIR_AFFINE(0, ii, res, 0, 2*M_PI); switch(axis) { case 0: --- 90,94 ---- for (ii=0; ii<=res-1; ii++) { ! theta = AIR_AFFINE(0, ii, res, 0, 2*AIR_PI); switch(axis) { case 0: *************** *** 146,150 **** partIdx = limnObjectPartAdd(obj); for (ii=0; ii<=res-1; ii++) { ! th = AIR_AFFINE(0, ii, res, 0, 2*M_PI); switch(axis) { case 0: --- 146,150 ---- partIdx = limnObjectPartAdd(obj); for (ii=0; ii<=res-1; ii++) { ! th = AIR_AFFINE(0, ii, res, 0, 2*AIR_PI); switch(axis) { case 0: *************** *** 209,215 **** } for (pi=1; pi<=phiRes-1; pi++) { ! p = AIR_AFFINE(0, pi, phiRes, 0, M_PI); for (ti=0; ti<=thetaRes-1; ti++) { ! t = AIR_AFFINE(0, ti, thetaRes, 0, 2*M_PI); switch(axis) { case 0: --- 209,215 ---- } for (pi=1; pi<=phiRes-1; pi++) { ! p = AIR_AFFINE(0, pi, phiRes, 0, AIR_PI); for (ti=0; ti<=thetaRes-1; ti++) { ! t = AIR_AFFINE(0, ti, thetaRes, 0, 2*AIR_PI); switch(axis) { case 0: *************** *** 281,287 **** } for (pi=1; pi<=phiRes-1; pi++) { ! p = AIR_AFFINE(0, pi, phiRes, 0, M_PI); for (ti=0; ti<=thetaRes-1; ti++) { ! t = AIR_AFFINE(0, ti, thetaRes, 0, 2*M_PI); switch(axis) { case 0: --- 281,287 ---- } for (pi=1; pi<=phiRes-1; pi++) { ! p = AIR_AFFINE(0, pi, phiRes, 0, AIR_PI); for (ti=0; ti<=thetaRes-1; ti++) { ! t = AIR_AFFINE(0, ti, thetaRes, 0, 2*AIR_PI); switch(axis) { case 0: |