mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-03 08:21:03 +00:00
05e9c48ea9
- changed Vtr::LocalIndex to 16-bit integer from 8-bit - added test shapes including valence 360 vertices - disabled new shapes in far/regression until improved accuracy accepted
349 lines
7.4 KiB
C++
349 lines
7.4 KiB
C++
//
|
|
// Copyright 2015 DreamWorks Animation LLC.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "Apache License")
|
|
// with the following modification; you may not use this file except in
|
|
// compliance with the Apache License and the following modification to it:
|
|
// Section 6. Trademarks. is deleted and replaced with:
|
|
//
|
|
// 6. Trademarks. This License does not grant permission to use the trade
|
|
// names, trademarks, service marks, or product names of the Licensor
|
|
// and its affiliates, except as required to comply with Section 4(c) of
|
|
// the License and to reproduce the content of the NOTICE file.
|
|
//
|
|
// You may obtain a copy of the Apache License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the Apache License with the above modification is
|
|
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
// KIND, either express or implied. See the Apache License for the specific
|
|
// language governing permissions and limitations under the Apache License.
|
|
//
|
|
|
|
static const std::string loop_pole64 =
|
|
"v 0.7811 0.7836 0.07693\n"
|
|
"v 0.7849 0.7836 0\n"
|
|
"v 0.2616 1 0\n"
|
|
"v 0.2604 1 0.02564\n"
|
|
"v 1.227e-16 1 0\n"
|
|
"v 0.7811 0.7836 -0.07693\n"
|
|
"v 0.2604 1 -0.02564\n"
|
|
"v 0.7698 0.7836 -0.1531\n"
|
|
"v 0.2566 1 -0.05104\n"
|
|
"v 0.7511 0.7836 -0.2278\n"
|
|
"v 0.2504 1 -0.07595\n"
|
|
"v 0.7251 0.7836 -0.3004\n"
|
|
"v 0.2417 1 -0.1001\n"
|
|
"v 0.6922 0.7836 -0.37\n"
|
|
"v 0.2307 1 -0.1233\n"
|
|
"v 0.6526 0.7836 -0.4361\n"
|
|
"v 0.2175 1 -0.1454\n"
|
|
"v 0.6067 0.7836 -0.4979\n"
|
|
"v 0.2022 1 -0.166\n"
|
|
"v 0.555 0.7836 -0.555\n"
|
|
"v 0.185 1 -0.185\n"
|
|
"v 0.4979 0.7836 -0.6067\n"
|
|
"v 0.166 1 -0.2022\n"
|
|
"v 0.4361 0.7836 -0.6526\n"
|
|
"v 0.1454 1 -0.2175\n"
|
|
"v 0.37 0.7836 -0.6922\n"
|
|
"v 0.1233 1 -0.2307\n"
|
|
"v 0.3004 0.7836 -0.7251\n"
|
|
"v 0.1001 1 -0.2417\n"
|
|
"v 0.2278 0.7836 -0.7511\n"
|
|
"v 0.07595 1 -0.2504\n"
|
|
"v 0.1531 0.7836 -0.7698\n"
|
|
"v 0.05104 1 -0.2566\n"
|
|
"v 0.07693 0.7836 -0.7811\n"
|
|
"v 0.02564 1 -0.2604\n"
|
|
"v 2.776e-17 0.7836 -0.7849\n"
|
|
"v 6.939e-18 1 -0.2616\n"
|
|
"v -0.07693 0.7836 -0.7811\n"
|
|
"v -0.02564 1 -0.2604\n"
|
|
"v -0.1531 0.7836 -0.7698\n"
|
|
"v -0.05104 1 -0.2566\n"
|
|
"v -0.2278 0.7836 -0.7511\n"
|
|
"v -0.07595 1 -0.2504\n"
|
|
"v -0.3004 0.7836 -0.7251\n"
|
|
"v -0.1001 1 -0.2417\n"
|
|
"v -0.37 0.7836 -0.6922\n"
|
|
"v -0.1233 1 -0.2307\n"
|
|
"v -0.4361 0.7836 -0.6526\n"
|
|
"v -0.1454 1 -0.2175\n"
|
|
"v -0.4979 0.7836 -0.6067\n"
|
|
"v -0.166 1 -0.2022\n"
|
|
"v -0.555 0.7836 -0.555\n"
|
|
"v -0.185 1 -0.185\n"
|
|
"v -0.6067 0.7836 -0.4979\n"
|
|
"v -0.2022 1 -0.166\n"
|
|
"v -0.6526 0.7836 -0.4361\n"
|
|
"v -0.2175 1 -0.1454\n"
|
|
"v -0.6922 0.7836 -0.37\n"
|
|
"v -0.2307 1 -0.1233\n"
|
|
"v -0.7251 0.7836 -0.3004\n"
|
|
"v -0.2417 1 -0.1001\n"
|
|
"v -0.7511 0.7836 -0.2278\n"
|
|
"v -0.2504 1 -0.07595\n"
|
|
"v -0.7698 0.7836 -0.1531\n"
|
|
"v -0.2566 1 -0.05104\n"
|
|
"v -0.7811 0.7836 -0.07693\n"
|
|
"v -0.2604 1 -0.02564\n"
|
|
"v -0.7849 0.7836 -4.163e-17\n"
|
|
"v -0.2616 1 1.041e-17\n"
|
|
"v -0.7811 0.7836 0.07693\n"
|
|
"v -0.2604 1 0.02564\n"
|
|
"v -0.7698 0.7836 0.1531\n"
|
|
"v -0.2566 1 0.05104\n"
|
|
"v -0.7511 0.7836 0.2278\n"
|
|
"v -0.2504 1 0.07595\n"
|
|
"v -0.7251 0.7836 0.3004\n"
|
|
"v -0.2417 1 0.1001\n"
|
|
"v -0.6922 0.7836 0.37\n"
|
|
"v -0.2307 1 0.1233\n"
|
|
"v -0.6526 0.7836 0.4361\n"
|
|
"v -0.2175 1 0.1454\n"
|
|
"v -0.6067 0.7836 0.4979\n"
|
|
"v -0.2022 1 0.166\n"
|
|
"v -0.555 0.7836 0.555\n"
|
|
"v -0.185 1 0.185\n"
|
|
"v -0.4979 0.7836 0.6067\n"
|
|
"v -0.166 1 0.2022\n"
|
|
"v -0.4361 0.7836 0.6526\n"
|
|
"v -0.1454 1 0.2175\n"
|
|
"v -0.37 0.7836 0.6922\n"
|
|
"v -0.1233 1 0.2307\n"
|
|
"v -0.3004 0.7836 0.7251\n"
|
|
"v -0.1001 1 0.2417\n"
|
|
"v -0.2278 0.7836 0.7511\n"
|
|
"v -0.07595 1 0.2504\n"
|
|
"v -0.1531 0.7836 0.7698\n"
|
|
"v -0.05104 1 0.2566\n"
|
|
"v -0.07693 0.7836 0.7811\n"
|
|
"v -0.02564 1 0.2604\n"
|
|
"v -8.327e-17 0.7836 0.7849\n"
|
|
"v 0 1 0.2616\n"
|
|
"v 0.07693 0.7836 0.7811\n"
|
|
"v 0.02564 1 0.2604\n"
|
|
"v 0.1531 0.7836 0.7698\n"
|
|
"v 0.05104 1 0.2566\n"
|
|
"v 0.2278 0.7836 0.7511\n"
|
|
"v 0.07595 1 0.2504\n"
|
|
"v 0.3004 0.7836 0.7251\n"
|
|
"v 0.1001 1 0.2417\n"
|
|
"v 0.37 0.7836 0.6922\n"
|
|
"v 0.1233 1 0.2307\n"
|
|
"v 0.4361 0.7836 0.6526\n"
|
|
"v 0.1454 1 0.2175\n"
|
|
"v 0.4979 0.7836 0.6067\n"
|
|
"v 0.166 1 0.2022\n"
|
|
"v 0.555 0.7836 0.555\n"
|
|
"v 0.185 1 0.185\n"
|
|
"v 0.6067 0.7836 0.4979\n"
|
|
"v 0.2022 1 0.166\n"
|
|
"v 0.6526 0.7836 0.4361\n"
|
|
"v 0.2175 1 0.1454\n"
|
|
"v 0.6922 0.7836 0.37\n"
|
|
"v 0.2307 1 0.1233\n"
|
|
"v 0.7251 0.7836 0.3004\n"
|
|
"v 0.2417 1 0.1001\n"
|
|
"v 0.7511 0.7836 0.2278\n"
|
|
"v 0.2504 1 0.07595\n"
|
|
"v 0.7698 0.7836 0.1531\n"
|
|
"v 0.2566 1 0.05104\n"
|
|
"f 1 2 3 \n"
|
|
"f 4 3 5 \n"
|
|
"f 2 6 7 \n"
|
|
"f 3 7 5 \n"
|
|
"f 6 8 9 \n"
|
|
"f 7 9 5 \n"
|
|
"f 8 10 11 \n"
|
|
"f 9 11 5 \n"
|
|
"f 10 12 13 \n"
|
|
"f 11 13 5 \n"
|
|
"f 12 14 15 \n"
|
|
"f 13 15 5 \n"
|
|
"f 14 16 17 \n"
|
|
"f 15 17 5 \n"
|
|
"f 16 18 19 \n"
|
|
"f 17 19 5 \n"
|
|
"f 18 20 21 \n"
|
|
"f 19 21 5 \n"
|
|
"f 20 22 23 \n"
|
|
"f 21 23 5 \n"
|
|
"f 22 24 25 \n"
|
|
"f 23 25 5 \n"
|
|
"f 24 26 27 \n"
|
|
"f 25 27 5 \n"
|
|
"f 26 28 29 \n"
|
|
"f 27 29 5 \n"
|
|
"f 28 30 31 \n"
|
|
"f 29 31 5 \n"
|
|
"f 30 32 33 \n"
|
|
"f 31 33 5 \n"
|
|
"f 32 34 35 \n"
|
|
"f 33 35 5 \n"
|
|
"f 34 36 37 \n"
|
|
"f 35 37 5 \n"
|
|
"f 36 38 39 \n"
|
|
"f 37 39 5 \n"
|
|
"f 38 40 41 \n"
|
|
"f 39 41 5 \n"
|
|
"f 40 42 43 \n"
|
|
"f 41 43 5 \n"
|
|
"f 42 44 45 \n"
|
|
"f 43 45 5 \n"
|
|
"f 44 46 47 \n"
|
|
"f 45 47 5 \n"
|
|
"f 46 48 49 \n"
|
|
"f 47 49 5 \n"
|
|
"f 48 50 51 \n"
|
|
"f 49 51 5 \n"
|
|
"f 50 52 53 \n"
|
|
"f 51 53 5 \n"
|
|
"f 52 54 55 \n"
|
|
"f 53 55 5 \n"
|
|
"f 54 56 57 \n"
|
|
"f 55 57 5 \n"
|
|
"f 56 58 59 \n"
|
|
"f 57 59 5 \n"
|
|
"f 58 60 61 \n"
|
|
"f 59 61 5 \n"
|
|
"f 60 62 63 \n"
|
|
"f 61 63 5 \n"
|
|
"f 62 64 65 \n"
|
|
"f 63 65 5 \n"
|
|
"f 64 66 67 \n"
|
|
"f 65 67 5 \n"
|
|
"f 66 68 69 \n"
|
|
"f 67 69 5 \n"
|
|
"f 68 70 71 \n"
|
|
"f 69 71 5 \n"
|
|
"f 70 72 73 \n"
|
|
"f 71 73 5 \n"
|
|
"f 72 74 75 \n"
|
|
"f 73 75 5 \n"
|
|
"f 74 76 77 \n"
|
|
"f 75 77 5 \n"
|
|
"f 76 78 79 \n"
|
|
"f 77 79 5 \n"
|
|
"f 78 80 81 \n"
|
|
"f 79 81 5 \n"
|
|
"f 80 82 83 \n"
|
|
"f 81 83 5 \n"
|
|
"f 82 84 85 \n"
|
|
"f 83 85 5 \n"
|
|
"f 84 86 87 \n"
|
|
"f 85 87 5 \n"
|
|
"f 86 88 89 \n"
|
|
"f 87 89 5 \n"
|
|
"f 88 90 91 \n"
|
|
"f 89 91 5 \n"
|
|
"f 90 92 93 \n"
|
|
"f 91 93 5 \n"
|
|
"f 92 94 95 \n"
|
|
"f 93 95 5 \n"
|
|
"f 94 96 97 \n"
|
|
"f 95 97 5 \n"
|
|
"f 96 98 99 \n"
|
|
"f 97 99 5 \n"
|
|
"f 98 100 101 \n"
|
|
"f 99 101 5 \n"
|
|
"f 100 102 103 \n"
|
|
"f 101 103 5 \n"
|
|
"f 102 104 105 \n"
|
|
"f 103 105 5 \n"
|
|
"f 104 106 107 \n"
|
|
"f 105 107 5 \n"
|
|
"f 106 108 109 \n"
|
|
"f 107 109 5 \n"
|
|
"f 108 110 111 \n"
|
|
"f 109 111 5 \n"
|
|
"f 110 112 113 \n"
|
|
"f 111 113 5 \n"
|
|
"f 112 114 115 \n"
|
|
"f 113 115 5 \n"
|
|
"f 114 116 117 \n"
|
|
"f 115 117 5 \n"
|
|
"f 116 118 119 \n"
|
|
"f 117 119 5 \n"
|
|
"f 118 120 121 \n"
|
|
"f 119 121 5 \n"
|
|
"f 120 122 123 \n"
|
|
"f 121 123 5 \n"
|
|
"f 122 124 125 \n"
|
|
"f 123 125 5 \n"
|
|
"f 124 126 127 \n"
|
|
"f 125 127 5 \n"
|
|
"f 126 128 129 \n"
|
|
"f 127 129 5 \n"
|
|
"f 128 1 4 \n"
|
|
"f 129 4 5 \n"
|
|
"f 3 4 1 \n"
|
|
"f 7 3 2 \n"
|
|
"f 9 7 6 \n"
|
|
"f 11 9 8 \n"
|
|
"f 13 11 10 \n"
|
|
"f 15 13 12 \n"
|
|
"f 17 15 14 \n"
|
|
"f 19 17 16 \n"
|
|
"f 21 19 18 \n"
|
|
"f 23 21 20 \n"
|
|
"f 25 23 22 \n"
|
|
"f 27 25 24 \n"
|
|
"f 29 27 26 \n"
|
|
"f 31 29 28 \n"
|
|
"f 33 31 30 \n"
|
|
"f 35 33 32 \n"
|
|
"f 37 35 34 \n"
|
|
"f 39 37 36 \n"
|
|
"f 41 39 38 \n"
|
|
"f 43 41 40 \n"
|
|
"f 45 43 42 \n"
|
|
"f 47 45 44 \n"
|
|
"f 49 47 46 \n"
|
|
"f 51 49 48 \n"
|
|
"f 53 51 50 \n"
|
|
"f 55 53 52 \n"
|
|
"f 57 55 54 \n"
|
|
"f 59 57 56 \n"
|
|
"f 61 59 58 \n"
|
|
"f 63 61 60 \n"
|
|
"f 65 63 62 \n"
|
|
"f 67 65 64 \n"
|
|
"f 69 67 66 \n"
|
|
"f 71 69 68 \n"
|
|
"f 73 71 70 \n"
|
|
"f 75 73 72 \n"
|
|
"f 77 75 74 \n"
|
|
"f 79 77 76 \n"
|
|
"f 81 79 78 \n"
|
|
"f 83 81 80 \n"
|
|
"f 85 83 82 \n"
|
|
"f 87 85 84 \n"
|
|
"f 89 87 86 \n"
|
|
"f 91 89 88 \n"
|
|
"f 93 91 90 \n"
|
|
"f 95 93 92 \n"
|
|
"f 97 95 94 \n"
|
|
"f 99 97 96 \n"
|
|
"f 101 99 98 \n"
|
|
"f 103 101 100 \n"
|
|
"f 105 103 102 \n"
|
|
"f 107 105 104 \n"
|
|
"f 109 107 106 \n"
|
|
"f 111 109 108 \n"
|
|
"f 113 111 110 \n"
|
|
"f 115 113 112 \n"
|
|
"f 117 115 114 \n"
|
|
"f 119 117 116 \n"
|
|
"f 121 119 118 \n"
|
|
"f 123 121 120 \n"
|
|
"f 125 123 122 \n"
|
|
"f 127 125 124 \n"
|
|
"f 129 127 126 \n"
|
|
"f 4 129 128 \n"
|
|
"\n"
|
|
;
|