diff --git a/examples/29-debugdraw/debugdraw.cpp b/examples/29-debugdraw/debugdraw.cpp index 543bba34f..936118d03 100644 --- a/examples/29-debugdraw/debugdraw.cpp +++ b/examples/29-debugdraw/debugdraw.cpp @@ -18,154 +18,154 @@ namespace static DdVertex s_bunnyVertices[] = { - { 25.0883f, -44.2788f, 31.0055f }, - { 0.945623f, 53.5504f, -24.6146f }, - { -0.94455f, -14.3443f, -16.8223f }, - { -20.1103f, -48.6664f, 12.6763f }, - { -1.60652f, -26.3165f, -24.5424f }, - { -30.6284f, -53.6299f, 14.7666f }, - { 1.69145f, -43.8075f, -15.2065f }, - { -20.5139f, 21.0521f, -5.40868f }, - { -13.9518f, 53.6299f, -39.1193f }, - { -21.7912f, 48.7801f, -42.0995f }, - { -26.8408f, 23.6537f, -17.7324f }, - { -23.1196f, 33.9692f, 4.91483f }, - { -12.3236f, -41.6303f, 31.8324f }, - { 27.6427f, -5.05034f, -11.3201f }, - { 32.2565f, 1.30521f, 30.2671f }, - { 47.2723f, -27.0974f, 11.1774f }, - { 33.598f, 10.5888f, 7.95916f }, - { -13.2898f, 12.6234f, 5.55953f }, - { -32.7364f, 19.0648f, -10.5736f }, - { -32.7536f, 31.4158f, -1.40712f }, - { -25.3672f, 30.2874f, -12.4682f }, - { 32.921f, -36.8408f, -12.0254f }, - { -37.7251f, -33.8989f, 0.378443f }, - { -35.6341f, -0.246891f, -9.25165f }, - { -16.7041f, -50.0254f, -15.6177f }, - { 24.6604f, -53.5319f, -11.1059f }, - { -7.77574f, -53.5719f, -16.6655f }, - { 20.6241f, 13.3489f, 0.376349f }, - { -44.2889f, 29.5222f, 18.7918f }, - { 18.5805f, 16.3651f, 12.6351f }, - { -23.7853f, 31.7598f, -6.54093f }, - { 24.7518f, -53.5075f, 2.14984f }, - { -45.7912f, -17.6301f, 21.1198f }, - { 51.8403f, -33.1847f, 24.3337f }, - { -47.5343f, -4.32792f, 4.06232f }, - { -50.6832f, -12.442f, 11.0994f }, - { -49.5132f, 19.2782f, 3.17559f }, - { -39.4881f, 29.0208f, -6.70431f }, - { -52.7286f, 1.23232f, 9.74872f }, - { 26.505f, -16.1297f, -17.0487f }, - { -25.367f, 20.0473f, -8.44282f }, - { -24.5797f, -10.3143f, -18.3154f }, - { -28.6707f, 6.12074f, 27.8025f }, - { -16.9868f, 22.6819f, 1.37408f }, - { -37.2678f, 23.9443f, -9.4945f }, - { -24.8562f, 21.3763f, 18.8847f }, - { -47.1879f, 3.8542f, -4.74621f }, - { 38.0706f, -7.33673f, -7.6099f }, - { -34.8833f, -3.57074f, 26.4838f }, - { 12.3797f, 5.46782f, 32.9762f }, - { -31.5974f, -22.956f, 30.5827f }, - { -6.80953f, 48.055f, -18.5116f }, - { 6.3474f, -15.1622f, -24.4726f }, - { -25.5733f, 25.2452f, -34.4736f }, - { -23.8955f, 31.8323f, -40.8696f }, - { -11.8622f, 38.2304f, -43.3125f }, - { -20.4918f, 41.2409f, -3.11271f }, - { 24.9806f, -8.53455f, 37.2862f }, - { -52.8935f, 5.3376f, 28.246f }, - { 34.106f, -41.7941f, 30.962f }, - { -1.26914f, 35.6664f, -18.7177f }, - { -0.13048f, 44.7288f, -28.7163f }, - { 2.47929f, 0.678165f, -14.6892f }, - { -31.8649f, -14.2299f, 32.2998f }, - { -19.774f, 30.8258f, 5.77293f }, - { 49.8059f, -37.125f, 4.97284f }, - { -28.0581f, -26.439f, -14.8316f }, - { -9.12066f, -27.3987f, -12.8592f }, - { -13.8752f, -29.9821f, 32.5962f }, - { -6.6222f, -10.9884f, 33.5007f }, - { -21.2664f, -53.6089f, -3.49195f }, - { -0.628672f, 52.8093f, -9.88088f }, - { 8.02417f, 51.8956f, -21.5834f }, - { -44.6547f, 11.9973f, 34.7897f }, + { 25.0883f, -44.2788f, 31.0055f }, + { 0.945623f, 53.5504f, -24.6146f }, + { -0.94455f, -14.3443f, -16.8223f }, + { -20.1103f, -48.6664f, 12.6763f }, + { -1.60652f, -26.3165f, -24.5424f }, + { -30.6284f, -53.6299f, 14.7666f }, + { 1.69145f, -43.8075f, -15.2065f }, + { -20.5139f, 21.0521f, -5.40868f }, + { -13.9518f, 53.6299f, -39.1193f }, + { -21.7912f, 48.7801f, -42.0995f }, + { -26.8408f, 23.6537f, -17.7324f }, + { -23.1196f, 33.9692f, 4.91483f }, + { -12.3236f, -41.6303f, 31.8324f }, + { 27.6427f, -5.05034f, -11.3201f }, + { 32.2565f, 1.30521f, 30.2671f }, + { 47.2723f, -27.0974f, 11.1774f }, + { 33.598f, 10.5888f, 7.95916f }, + { -13.2898f, 12.6234f, 5.55953f }, + { -32.7364f, 19.0648f, -10.5736f }, + { -32.7536f, 31.4158f, -1.40712f }, + { -25.3672f, 30.2874f, -12.4682f }, + { 32.921f, -36.8408f, -12.0254f }, + { -37.7251f, -33.8989f, 0.378443f }, + { -35.6341f, -0.246891f, -9.25165f }, + { -16.7041f, -50.0254f, -15.6177f }, + { 24.6604f, -53.5319f, -11.1059f }, + { -7.77574f, -53.5719f, -16.6655f }, + { 20.6241f, 13.3489f, 0.376349f }, + { -44.2889f, 29.5222f, 18.7918f }, + { 18.5805f, 16.3651f, 12.6351f }, + { -23.7853f, 31.7598f, -6.54093f }, + { 24.7518f, -53.5075f, 2.14984f }, + { -45.7912f, -17.6301f, 21.1198f }, + { 51.8403f, -33.1847f, 24.3337f }, + { -47.5343f, -4.32792f, 4.06232f }, + { -50.6832f, -12.442f, 11.0994f }, + { -49.5132f, 19.2782f, 3.17559f }, + { -39.4881f, 29.0208f, -6.70431f }, + { -52.7286f, 1.23232f, 9.74872f }, + { 26.505f, -16.1297f, -17.0487f }, + { -25.367f, 20.0473f, -8.44282f }, + { -24.5797f, -10.3143f, -18.3154f }, + { -28.6707f, 6.12074f, 27.8025f }, + { -16.9868f, 22.6819f, 1.37408f }, + { -37.2678f, 23.9443f, -9.4945f }, + { -24.8562f, 21.3763f, 18.8847f }, + { -47.1879f, 3.8542f, -4.74621f }, + { 38.0706f, -7.33673f, -7.6099f }, + { -34.8833f, -3.57074f, 26.4838f }, + { 12.3797f, 5.46782f, 32.9762f }, + { -31.5974f, -22.956f, 30.5827f }, + { -6.80953f, 48.055f, -18.5116f }, + { 6.3474f, -15.1622f, -24.4726f }, + { -25.5733f, 25.2452f, -34.4736f }, + { -23.8955f, 31.8323f, -40.8696f }, + { -11.8622f, 38.2304f, -43.3125f }, + { -20.4918f, 41.2409f, -3.11271f }, + { 24.9806f, -8.53455f, 37.2862f }, + { -52.8935f, 5.3376f, 28.246f }, + { 34.106f, -41.7941f, 30.962f }, + { -1.26914f, 35.6664f, -18.7177f }, + { -0.13048f, 44.7288f, -28.7163f }, + { 2.47929f, 0.678165f, -14.6892f }, + { -31.8649f, -14.2299f, 32.2998f }, + { -19.774f, 30.8258f, 5.77293f }, + { 49.8059f, -37.125f, 4.97284f }, + { -28.0581f, -26.439f, -14.8316f }, + { -9.12066f, -27.3987f, -12.8592f }, + { -13.8752f, -29.9821f, 32.5962f }, + { -6.6222f, -10.9884f, 33.5007f }, + { -21.2664f, -53.6089f, -3.49195f }, + { -0.628672f, 52.8093f, -9.88088f }, + { 8.02417f, 51.8956f, -21.5834f }, + { -44.6547f, 11.9973f, 34.7897f }, { -7.55466f, 37.9035f, -0.574101f }, - { 52.8252f, -27.1986f, 11.6429f }, - { -0.934591f, 9.81861f, 0.512566f }, - { -3.01043f, 5.70605f, 22.0954f }, - { -34.6337f, 44.5964f, -31.1713f }, - { -26.9017f, 35.1991f, -32.4307f }, - { 15.9884f, -8.92223f, -14.7411f }, - { -22.8337f, -43.458f, 26.7274f }, - { -31.9864f, -47.0243f, 9.36972f }, - { -36.9436f, 24.1866f, 29.2521f }, - { -26.5411f, 29.6549f, 21.2867f }, - { 33.7644f, -24.1886f, -13.8513f }, - { -2.44749f, -17.0148f, 41.6617f }, - { -38.364f, -13.9823f, -12.5705f }, - { -10.2972f, -51.6584f, 38.935f }, - { 1.28109f, -43.4943f, 36.6288f }, - { -19.7784f, -44.0413f, -4.23994f }, - { 37.0944f, -53.5479f, 27.6467f }, - { 24.9642f, -37.1722f, 35.7038f }, - { 37.5851f, 5.64874f, 21.6702f }, - { -17.4738f, -53.5734f, 30.0664f }, - { -8.93088f, 45.3429f, -34.4441f }, - { -17.7111f, -6.5723f, 29.5162f }, - { 44.0059f, -17.4408f, -5.08686f }, - { -46.2534f, -22.6115f, 0.702059f }, - { 43.9321f, -33.8575f, 4.31819f }, - { 41.6762f, -7.37115f, 27.6798f }, - { 8.20276f, -42.0948f, -18.0893f }, - { 26.2678f, -44.6777f, -10.6835f }, - { 17.709f, 13.1542f, 25.1769f }, - { -35.9897f, 3.92007f, 35.8198f }, - { -23.9323f, -37.3142f, -2.39396f }, - { 5.19169f, 46.8851f, -28.7587f }, - { -37.3072f, -35.0484f, 16.9719f }, - { 45.0639f, -28.5255f, 22.3465f }, - { -34.4175f, 35.5861f, -21.7562f }, - { 9.32684f, -12.6655f, 42.189f }, - { 1.00938f, -31.7694f, 43.1914f }, - { -45.4666f, -3.71104f, 19.2248f }, - { -28.7999f, -50.8481f, 31.5232f }, - { 35.2212f, -45.9047f, 0.199736f }, - { 40.3f, -53.5889f, 7.47622f }, - { 29.0515f, 5.1074f, -10.002f }, - { 13.4336f, 4.84341f, -9.72327f }, - { 11.0617f, -26.245f, -24.9471f }, - { -35.6056f, -51.2531f, 0.436527f }, - { -10.6863f, 34.7374f, -36.7452f }, - { -51.7652f, 27.4957f, 7.79363f }, - { -50.1898f, 18.379f, 26.3763f }, - { -49.6836f, -1.32722f, 26.2828f }, - { 19.0363f, -16.9114f, 41.8511f }, - { 32.7141f, -21.501f, 36.0025f }, - { 12.5418f, -28.4244f, 43.3125f }, - { -19.5634f, 42.6328f, -27.0687f }, - { -16.1942f, 6.55011f, 19.4066f }, - { 46.9886f, -18.8482f, 22.1332f }, - { 45.9697f, -3.76781f, 4.10111f }, - { -28.2912f, 51.3277f, -35.1815f }, - { -40.2796f, -27.7518f, 22.8684f }, - { -22.7984f, -38.9977f, 22.158f }, - { 54.0614f, -35.6096f, 12.694f }, - { 44.2064f, -53.6029f, 18.8679f }, - { 19.789f, -29.517f, -19.6094f }, - { -34.3769f, 34.8566f, 9.92517f }, - { -23.7518f, -45.0319f, 8.71282f }, - { -12.7978f, 3.55087f, -13.7108f }, - { -54.0614f, 8.83831f, 8.91353f }, - { 16.2986f, -53.5717f, 34.065f }, - { -36.6243f, -53.5079f, 24.6495f }, - { 16.5794f, -48.5747f, 35.5681f }, - { -32.3263f, 41.4526f, -18.7388f }, - { -18.8488f, 9.62627f, -8.81052f }, - { 5.35849f, 36.3616f, -12.9346f }, - { 6.19167f, 34.497f, -17.965f }, + { 52.8252f, -27.1986f, 11.6429f }, + { -0.934591f, 9.81861f, 0.512566f }, + { -3.01043f, 5.70605f, 22.0954f }, + { -34.6337f, 44.5964f, -31.1713f }, + { -26.9017f, 35.1991f, -32.4307f }, + { 15.9884f, -8.92223f, -14.7411f }, + { -22.8337f, -43.458f, 26.7274f }, + { -31.9864f, -47.0243f, 9.36972f }, + { -36.9436f, 24.1866f, 29.2521f }, + { -26.5411f, 29.6549f, 21.2867f }, + { 33.7644f, -24.1886f, -13.8513f }, + { -2.44749f, -17.0148f, 41.6617f }, + { -38.364f, -13.9823f, -12.5705f }, + { -10.2972f, -51.6584f, 38.935f }, + { 1.28109f, -43.4943f, 36.6288f }, + { -19.7784f, -44.0413f, -4.23994f }, + { 37.0944f, -53.5479f, 27.6467f }, + { 24.9642f, -37.1722f, 35.7038f }, + { 37.5851f, 5.64874f, 21.6702f }, + { -17.4738f, -53.5734f, 30.0664f }, + { -8.93088f, 45.3429f, -34.4441f }, + { -17.7111f, -6.5723f, 29.5162f }, + { 44.0059f, -17.4408f, -5.08686f }, + { -46.2534f, -22.6115f, 0.702059f }, + { 43.9321f, -33.8575f, 4.31819f }, + { 41.6762f, -7.37115f, 27.6798f }, + { 8.20276f, -42.0948f, -18.0893f }, + { 26.2678f, -44.6777f, -10.6835f }, + { 17.709f, 13.1542f, 25.1769f }, + { -35.9897f, 3.92007f, 35.8198f }, + { -23.9323f, -37.3142f, -2.39396f }, + { 5.19169f, 46.8851f, -28.7587f }, + { -37.3072f, -35.0484f, 16.9719f }, + { 45.0639f, -28.5255f, 22.3465f }, + { -34.4175f, 35.5861f, -21.7562f }, + { 9.32684f, -12.6655f, 42.189f }, + { 1.00938f, -31.7694f, 43.1914f }, + { -45.4666f, -3.71104f, 19.2248f }, + { -28.7999f, -50.8481f, 31.5232f }, + { 35.2212f, -45.9047f, 0.199736f }, + { 40.3f, -53.5889f, 7.47622f }, + { 29.0515f, 5.1074f, -10.002f }, + { 13.4336f, 4.84341f, -9.72327f }, + { 11.0617f, -26.245f, -24.9471f }, + { -35.6056f, -51.2531f, 0.436527f }, + { -10.6863f, 34.7374f, -36.7452f }, + { -51.7652f, 27.4957f, 7.79363f }, + { -50.1898f, 18.379f, 26.3763f }, + { -49.6836f, -1.32722f, 26.2828f }, + { 19.0363f, -16.9114f, 41.8511f }, + { 32.7141f, -21.501f, 36.0025f }, + { 12.5418f, -28.4244f, 43.3125f }, + { -19.5634f, 42.6328f, -27.0687f }, + { -16.1942f, 6.55011f, 19.4066f }, + { 46.9886f, -18.8482f, 22.1332f }, + { 45.9697f, -3.76781f, 4.10111f }, + { -28.2912f, 51.3277f, -35.1815f }, + { -40.2796f, -27.7518f, 22.8684f }, + { -22.7984f, -38.9977f, 22.158f }, + { 54.0614f, -35.6096f, 12.694f }, + { 44.2064f, -53.6029f, 18.8679f }, + { 19.789f, -29.517f, -19.6094f }, + { -34.3769f, 34.8566f, 9.92517f }, + { -23.7518f, -45.0319f, 8.71282f }, + { -12.7978f, 3.55087f, -13.7108f }, + { -54.0614f, 8.83831f, 8.91353f }, + { 16.2986f, -53.5717f, 34.065f }, + { -36.6243f, -53.5079f, 24.6495f }, + { 16.5794f, -48.5747f, 35.5681f }, + { -32.3263f, 41.4526f, -18.7388f }, + { -18.8488f, 9.62627f, -8.81052f }, + { 5.35849f, 36.3616f, -12.9346f }, + { 6.19167f, 34.497f, -17.965f }, }; static const uint16_t s_bunnyTriList[] =