vrshoot
diff libs/assimp/MDCNormalTable.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/assimp/MDCNormalTable.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,299 @@ 1.4 +/* ----------------------------------------------------------------------------- 1.5 + 1.6 +PicoModel Library 1.7 + 1.8 +Copyright (c) 2002, Randy Reddig & seaw0lf 1.9 +All rights reserved. 1.10 + 1.11 +Redistribution and use in source and binary forms, with or without modification, 1.12 +are permitted provided that the following conditions are met: 1.13 + 1.14 +Redistributions of source code must retain the above copyright notice, this list 1.15 +of conditions and the following disclaimer. 1.16 + 1.17 +Redistributions in binary form must reproduce the above copyright notice, this 1.18 +list of conditions and the following disclaimer in the documentation and/or 1.19 +other materials provided with the distribution. 1.20 + 1.21 +Neither the names of the copyright holders nor the names of its contributors may 1.22 +be used to endorse or promote products derived from this software without 1.23 +specific prior written permission. 1.24 + 1.25 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 1.26 +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1.27 +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1.28 +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 1.29 +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 1.30 +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 1.31 +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 1.32 +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1.33 +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 1.34 +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.35 + 1.36 +----------------------------------------------------------------------------- */ 1.37 + 1.38 +#if (!defined MDC_NORMAL_TABLE_INCLUDED) 1.39 +#define MDC_NORMAL_TABLE_INCLUDED 1.40 + 1.41 +/* mdc decoding normal table */ 1.42 +float mdcNormals[ 256 ][ 3 ] = 1.43 +{ 1.44 + { 1.000000f, 0.000000f, 0.000000f }, 1.45 + { 0.980785f, 0.195090f, 0.000000f }, 1.46 + { 0.923880f, 0.382683f, 0.000000f }, 1.47 + { 0.831470f, 0.555570f, 0.000000f }, 1.48 + { 0.707107f, 0.707107f, 0.000000f }, 1.49 + { 0.555570f, 0.831470f, 0.000000f }, 1.50 + { 0.382683f, 0.923880f, 0.000000f }, 1.51 + { 0.195090f, 0.980785f, 0.000000f }, 1.52 + { -0.000000f, 1.000000f, 0.000000f }, 1.53 + { -0.195090f, 0.980785f, 0.000000f }, 1.54 + { -0.382683f, 0.923880f, 0.000000f }, 1.55 + { -0.555570f, 0.831470f, 0.000000f }, 1.56 + { -0.707107f, 0.707107f, 0.000000f }, 1.57 + { -0.831470f, 0.555570f, 0.000000f }, 1.58 + { -0.923880f, 0.382683f, 0.000000f }, 1.59 + { -0.980785f, 0.195090f, 0.000000f }, 1.60 + { -1.000000f, -0.000000f, 0.000000f }, 1.61 + { -0.980785f, -0.195090f, 0.000000f }, 1.62 + { -0.923880f, -0.382683f, 0.000000f }, 1.63 + { -0.831470f, -0.555570f, 0.000000f }, 1.64 + { -0.707107f, -0.707107f, 0.000000f }, 1.65 + { -0.555570f, -0.831469f, 0.000000f }, 1.66 + { -0.382684f, -0.923880f, 0.000000f }, 1.67 + { -0.195090f, -0.980785f, 0.000000f }, 1.68 + { 0.000000f, -1.000000f, 0.000000f }, 1.69 + { 0.195090f, -0.980785f, 0.000000f }, 1.70 + { 0.382684f, -0.923879f, 0.000000f }, 1.71 + { 0.555570f, -0.831470f, 0.000000f }, 1.72 + { 0.707107f, -0.707107f, 0.000000f }, 1.73 + { 0.831470f, -0.555570f, 0.000000f }, 1.74 + { 0.923880f, -0.382683f, 0.000000f }, 1.75 + { 0.980785f, -0.195090f, 0.000000f }, 1.76 + { 0.980785f, 0.000000f, -0.195090f }, 1.77 + { 0.956195f, 0.218245f, -0.195090f }, 1.78 + { 0.883657f, 0.425547f, -0.195090f }, 1.79 + { 0.766809f, 0.611510f, -0.195090f }, 1.80 + { 0.611510f, 0.766809f, -0.195090f }, 1.81 + { 0.425547f, 0.883657f, -0.195090f }, 1.82 + { 0.218245f, 0.956195f, -0.195090f }, 1.83 + { -0.000000f, 0.980785f, -0.195090f }, 1.84 + { -0.218245f, 0.956195f, -0.195090f }, 1.85 + { -0.425547f, 0.883657f, -0.195090f }, 1.86 + { -0.611510f, 0.766809f, -0.195090f }, 1.87 + { -0.766809f, 0.611510f, -0.195090f }, 1.88 + { -0.883657f, 0.425547f, -0.195090f }, 1.89 + { -0.956195f, 0.218245f, -0.195090f }, 1.90 + { -0.980785f, -0.000000f, -0.195090f }, 1.91 + { -0.956195f, -0.218245f, -0.195090f }, 1.92 + { -0.883657f, -0.425547f, -0.195090f }, 1.93 + { -0.766809f, -0.611510f, -0.195090f }, 1.94 + { -0.611510f, -0.766809f, -0.195090f }, 1.95 + { -0.425547f, -0.883657f, -0.195090f }, 1.96 + { -0.218245f, -0.956195f, -0.195090f }, 1.97 + { 0.000000f, -0.980785f, -0.195090f }, 1.98 + { 0.218245f, -0.956195f, -0.195090f }, 1.99 + { 0.425547f, -0.883657f, -0.195090f }, 1.100 + { 0.611510f, -0.766809f, -0.195090f }, 1.101 + { 0.766809f, -0.611510f, -0.195090f }, 1.102 + { 0.883657f, -0.425547f, -0.195090f }, 1.103 + { 0.956195f, -0.218245f, -0.195090f }, 1.104 + { 0.923880f, 0.000000f, -0.382683f }, 1.105 + { 0.892399f, 0.239118f, -0.382683f }, 1.106 + { 0.800103f, 0.461940f, -0.382683f }, 1.107 + { 0.653281f, 0.653281f, -0.382683f }, 1.108 + { 0.461940f, 0.800103f, -0.382683f }, 1.109 + { 0.239118f, 0.892399f, -0.382683f }, 1.110 + { -0.000000f, 0.923880f, -0.382683f }, 1.111 + { -0.239118f, 0.892399f, -0.382683f }, 1.112 + { -0.461940f, 0.800103f, -0.382683f }, 1.113 + { -0.653281f, 0.653281f, -0.382683f }, 1.114 + { -0.800103f, 0.461940f, -0.382683f }, 1.115 + { -0.892399f, 0.239118f, -0.382683f }, 1.116 + { -0.923880f, -0.000000f, -0.382683f }, 1.117 + { -0.892399f, -0.239118f, -0.382683f }, 1.118 + { -0.800103f, -0.461940f, -0.382683f }, 1.119 + { -0.653282f, -0.653281f, -0.382683f }, 1.120 + { -0.461940f, -0.800103f, -0.382683f }, 1.121 + { -0.239118f, -0.892399f, -0.382683f }, 1.122 + { 0.000000f, -0.923880f, -0.382683f }, 1.123 + { 0.239118f, -0.892399f, -0.382683f }, 1.124 + { 0.461940f, -0.800103f, -0.382683f }, 1.125 + { 0.653281f, -0.653282f, -0.382683f }, 1.126 + { 0.800103f, -0.461940f, -0.382683f }, 1.127 + { 0.892399f, -0.239117f, -0.382683f }, 1.128 + { 0.831470f, 0.000000f, -0.555570f }, 1.129 + { 0.790775f, 0.256938f, -0.555570f }, 1.130 + { 0.672673f, 0.488726f, -0.555570f }, 1.131 + { 0.488726f, 0.672673f, -0.555570f }, 1.132 + { 0.256938f, 0.790775f, -0.555570f }, 1.133 + { -0.000000f, 0.831470f, -0.555570f }, 1.134 + { -0.256938f, 0.790775f, -0.555570f }, 1.135 + { -0.488726f, 0.672673f, -0.555570f }, 1.136 + { -0.672673f, 0.488726f, -0.555570f }, 1.137 + { -0.790775f, 0.256938f, -0.555570f }, 1.138 + { -0.831470f, -0.000000f, -0.555570f }, 1.139 + { -0.790775f, -0.256938f, -0.555570f }, 1.140 + { -0.672673f, -0.488726f, -0.555570f }, 1.141 + { -0.488725f, -0.672673f, -0.555570f }, 1.142 + { -0.256938f, -0.790775f, -0.555570f }, 1.143 + { 0.000000f, -0.831470f, -0.555570f }, 1.144 + { 0.256938f, -0.790775f, -0.555570f }, 1.145 + { 0.488725f, -0.672673f, -0.555570f }, 1.146 + { 0.672673f, -0.488726f, -0.555570f }, 1.147 + { 0.790775f, -0.256938f, -0.555570f }, 1.148 + { 0.707107f, 0.000000f, -0.707107f }, 1.149 + { 0.653281f, 0.270598f, -0.707107f }, 1.150 + { 0.500000f, 0.500000f, -0.707107f }, 1.151 + { 0.270598f, 0.653281f, -0.707107f }, 1.152 + { -0.000000f, 0.707107f, -0.707107f }, 1.153 + { -0.270598f, 0.653282f, -0.707107f }, 1.154 + { -0.500000f, 0.500000f, -0.707107f }, 1.155 + { -0.653281f, 0.270598f, -0.707107f }, 1.156 + { -0.707107f, -0.000000f, -0.707107f }, 1.157 + { -0.653281f, -0.270598f, -0.707107f }, 1.158 + { -0.500000f, -0.500000f, -0.707107f }, 1.159 + { -0.270598f, -0.653281f, -0.707107f }, 1.160 + { 0.000000f, -0.707107f, -0.707107f }, 1.161 + { 0.270598f, -0.653281f, -0.707107f }, 1.162 + { 0.500000f, -0.500000f, -0.707107f }, 1.163 + { 0.653282f, -0.270598f, -0.707107f }, 1.164 + { 0.555570f, 0.000000f, -0.831470f }, 1.165 + { 0.481138f, 0.277785f, -0.831470f }, 1.166 + { 0.277785f, 0.481138f, -0.831470f }, 1.167 + { -0.000000f, 0.555570f, -0.831470f }, 1.168 + { -0.277785f, 0.481138f, -0.831470f }, 1.169 + { -0.481138f, 0.277785f, -0.831470f }, 1.170 + { -0.555570f, -0.000000f, -0.831470f }, 1.171 + { -0.481138f, -0.277785f, -0.831470f }, 1.172 + { -0.277785f, -0.481138f, -0.831470f }, 1.173 + { 0.000000f, -0.555570f, -0.831470f }, 1.174 + { 0.277785f, -0.481138f, -0.831470f }, 1.175 + { 0.481138f, -0.277785f, -0.831470f }, 1.176 + { 0.382683f, 0.000000f, -0.923880f }, 1.177 + { 0.270598f, 0.270598f, -0.923880f }, 1.178 + { -0.000000f, 0.382683f, -0.923880f }, 1.179 + { -0.270598f, 0.270598f, -0.923880f }, 1.180 + { -0.382683f, -0.000000f, -0.923880f }, 1.181 + { -0.270598f, -0.270598f, -0.923880f }, 1.182 + { 0.000000f, -0.382683f, -0.923880f }, 1.183 + { 0.270598f, -0.270598f, -0.923880f }, 1.184 + { 0.195090f, 0.000000f, -0.980785f }, 1.185 + { -0.000000f, 0.195090f, -0.980785f }, 1.186 + { -0.195090f, -0.000000f, -0.980785f }, 1.187 + { 0.000000f, -0.195090f, -0.980785f }, 1.188 + { 0.980785f, 0.000000f, 0.195090f }, 1.189 + { 0.956195f, 0.218245f, 0.195090f }, 1.190 + { 0.883657f, 0.425547f, 0.195090f }, 1.191 + { 0.766809f, 0.611510f, 0.195090f }, 1.192 + { 0.611510f, 0.766809f, 0.195090f }, 1.193 + { 0.425547f, 0.883657f, 0.195090f }, 1.194 + { 0.218245f, 0.956195f, 0.195090f }, 1.195 + { -0.000000f, 0.980785f, 0.195090f }, 1.196 + { -0.218245f, 0.956195f, 0.195090f }, 1.197 + { -0.425547f, 0.883657f, 0.195090f }, 1.198 + { -0.611510f, 0.766809f, 0.195090f }, 1.199 + { -0.766809f, 0.611510f, 0.195090f }, 1.200 + { -0.883657f, 0.425547f, 0.195090f }, 1.201 + { -0.956195f, 0.218245f, 0.195090f }, 1.202 + { -0.980785f, -0.000000f, 0.195090f }, 1.203 + { -0.956195f, -0.218245f, 0.195090f }, 1.204 + { -0.883657f, -0.425547f, 0.195090f }, 1.205 + { -0.766809f, -0.611510f, 0.195090f }, 1.206 + { -0.611510f, -0.766809f, 0.195090f }, 1.207 + { -0.425547f, -0.883657f, 0.195090f }, 1.208 + { -0.218245f, -0.956195f, 0.195090f }, 1.209 + { 0.000000f, -0.980785f, 0.195090f }, 1.210 + { 0.218245f, -0.956195f, 0.195090f }, 1.211 + { 0.425547f, -0.883657f, 0.195090f }, 1.212 + { 0.611510f, -0.766809f, 0.195090f }, 1.213 + { 0.766809f, -0.611510f, 0.195090f }, 1.214 + { 0.883657f, -0.425547f, 0.195090f }, 1.215 + { 0.956195f, -0.218245f, 0.195090f }, 1.216 + { 0.923880f, 0.000000f, 0.382683f }, 1.217 + { 0.892399f, 0.239118f, 0.382683f }, 1.218 + { 0.800103f, 0.461940f, 0.382683f }, 1.219 + { 0.653281f, 0.653281f, 0.382683f }, 1.220 + { 0.461940f, 0.800103f, 0.382683f }, 1.221 + { 0.239118f, 0.892399f, 0.382683f }, 1.222 + { -0.000000f, 0.923880f, 0.382683f }, 1.223 + { -0.239118f, 0.892399f, 0.382683f }, 1.224 + { -0.461940f, 0.800103f, 0.382683f }, 1.225 + { -0.653281f, 0.653281f, 0.382683f }, 1.226 + { -0.800103f, 0.461940f, 0.382683f }, 1.227 + { -0.892399f, 0.239118f, 0.382683f }, 1.228 + { -0.923880f, -0.000000f, 0.382683f }, 1.229 + { -0.892399f, -0.239118f, 0.382683f }, 1.230 + { -0.800103f, -0.461940f, 0.382683f }, 1.231 + { -0.653282f, -0.653281f, 0.382683f }, 1.232 + { -0.461940f, -0.800103f, 0.382683f }, 1.233 + { -0.239118f, -0.892399f, 0.382683f }, 1.234 + { 0.000000f, -0.923880f, 0.382683f }, 1.235 + { 0.239118f, -0.892399f, 0.382683f }, 1.236 + { 0.461940f, -0.800103f, 0.382683f }, 1.237 + { 0.653281f, -0.653282f, 0.382683f }, 1.238 + { 0.800103f, -0.461940f, 0.382683f }, 1.239 + { 0.892399f, -0.239117f, 0.382683f }, 1.240 + { 0.831470f, 0.000000f, 0.555570f }, 1.241 + { 0.790775f, 0.256938f, 0.555570f }, 1.242 + { 0.672673f, 0.488726f, 0.555570f }, 1.243 + { 0.488726f, 0.672673f, 0.555570f }, 1.244 + { 0.256938f, 0.790775f, 0.555570f }, 1.245 + { -0.000000f, 0.831470f, 0.555570f }, 1.246 + { -0.256938f, 0.790775f, 0.555570f }, 1.247 + { -0.488726f, 0.672673f, 0.555570f }, 1.248 + { -0.672673f, 0.488726f, 0.555570f }, 1.249 + { -0.790775f, 0.256938f, 0.555570f }, 1.250 + { -0.831470f, -0.000000f, 0.555570f }, 1.251 + { -0.790775f, -0.256938f, 0.555570f }, 1.252 + { -0.672673f, -0.488726f, 0.555570f }, 1.253 + { -0.488725f, -0.672673f, 0.555570f }, 1.254 + { -0.256938f, -0.790775f, 0.555570f }, 1.255 + { 0.000000f, -0.831470f, 0.555570f }, 1.256 + { 0.256938f, -0.790775f, 0.555570f }, 1.257 + { 0.488725f, -0.672673f, 0.555570f }, 1.258 + { 0.672673f, -0.488726f, 0.555570f }, 1.259 + { 0.790775f, -0.256938f, 0.555570f }, 1.260 + { 0.707107f, 0.000000f, 0.707107f }, 1.261 + { 0.653281f, 0.270598f, 0.707107f }, 1.262 + { 0.500000f, 0.500000f, 0.707107f }, 1.263 + { 0.270598f, 0.653281f, 0.707107f }, 1.264 + { -0.000000f, 0.707107f, 0.707107f }, 1.265 + { -0.270598f, 0.653282f, 0.707107f }, 1.266 + { -0.500000f, 0.500000f, 0.707107f }, 1.267 + { -0.653281f, 0.270598f, 0.707107f }, 1.268 + { -0.707107f, -0.000000f, 0.707107f }, 1.269 + { -0.653281f, -0.270598f, 0.707107f }, 1.270 + { -0.500000f, -0.500000f, 0.707107f }, 1.271 + { -0.270598f, -0.653281f, 0.707107f }, 1.272 + { 0.000000f, -0.707107f, 0.707107f }, 1.273 + { 0.270598f, -0.653281f, 0.707107f }, 1.274 + { 0.500000f, -0.500000f, 0.707107f }, 1.275 + { 0.653282f, -0.270598f, 0.707107f }, 1.276 + { 0.555570f, 0.000000f, 0.831470f }, 1.277 + { 0.481138f, 0.277785f, 0.831470f }, 1.278 + { 0.277785f, 0.481138f, 0.831470f }, 1.279 + { -0.000000f, 0.555570f, 0.831470f }, 1.280 + { -0.277785f, 0.481138f, 0.831470f }, 1.281 + { -0.481138f, 0.277785f, 0.831470f }, 1.282 + { -0.555570f, -0.000000f, 0.831470f }, 1.283 + { -0.481138f, -0.277785f, 0.831470f }, 1.284 + { -0.277785f, -0.481138f, 0.831470f }, 1.285 + { 0.000000f, -0.555570f, 0.831470f }, 1.286 + { 0.277785f, -0.481138f, 0.831470f }, 1.287 + { 0.481138f, -0.277785f, 0.831470f }, 1.288 + { 0.382683f, 0.000000f, 0.923880f }, 1.289 + { 0.270598f, 0.270598f, 0.923880f }, 1.290 + { -0.000000f, 0.382683f, 0.923880f }, 1.291 + { -0.270598f, 0.270598f, 0.923880f }, 1.292 + { -0.382683f, -0.000000f, 0.923880f }, 1.293 + { -0.270598f, -0.270598f, 0.923880f }, 1.294 + { 0.000000f, -0.382683f, 0.923880f }, 1.295 + { 0.270598f, -0.270598f, 0.923880f }, 1.296 + { 0.195090f, 0.000000f, 0.980785f }, 1.297 + { -0.000000f, 0.195090f, 0.980785f }, 1.298 + { -0.195090f, -0.000000f, 0.980785f }, 1.299 + { 0.000000f, -0.195090f, 0.980785f } 1.300 +}; 1.301 + 1.302 +#endif // !! MDC_NORMAL_TABLE_INCLUDED