mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-02 16:10:11 +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
285 lines
6.5 KiB
C++
285 lines
6.5 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 catmark_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 4 \n"
|
|
"f 4 3 5 \n"
|
|
"f 2 6 7 3 \n"
|
|
"f 3 7 5 \n"
|
|
"f 6 8 9 7 \n"
|
|
"f 7 9 5 \n"
|
|
"f 8 10 11 9 \n"
|
|
"f 9 11 5 \n"
|
|
"f 10 12 13 11 \n"
|
|
"f 11 13 5 \n"
|
|
"f 12 14 15 13 \n"
|
|
"f 13 15 5 \n"
|
|
"f 14 16 17 15 \n"
|
|
"f 15 17 5 \n"
|
|
"f 16 18 19 17 \n"
|
|
"f 17 19 5 \n"
|
|
"f 18 20 21 19 \n"
|
|
"f 19 21 5 \n"
|
|
"f 20 22 23 21 \n"
|
|
"f 21 23 5 \n"
|
|
"f 22 24 25 23 \n"
|
|
"f 23 25 5 \n"
|
|
"f 24 26 27 25 \n"
|
|
"f 25 27 5 \n"
|
|
"f 26 28 29 27 \n"
|
|
"f 27 29 5 \n"
|
|
"f 28 30 31 29 \n"
|
|
"f 29 31 5 \n"
|
|
"f 30 32 33 31 \n"
|
|
"f 31 33 5 \n"
|
|
"f 32 34 35 33 \n"
|
|
"f 33 35 5 \n"
|
|
"f 34 36 37 35 \n"
|
|
"f 35 37 5 \n"
|
|
"f 36 38 39 37 \n"
|
|
"f 37 39 5 \n"
|
|
"f 38 40 41 39 \n"
|
|
"f 39 41 5 \n"
|
|
"f 40 42 43 41 \n"
|
|
"f 41 43 5 \n"
|
|
"f 42 44 45 43 \n"
|
|
"f 43 45 5 \n"
|
|
"f 44 46 47 45 \n"
|
|
"f 45 47 5 \n"
|
|
"f 46 48 49 47 \n"
|
|
"f 47 49 5 \n"
|
|
"f 48 50 51 49 \n"
|
|
"f 49 51 5 \n"
|
|
"f 50 52 53 51 \n"
|
|
"f 51 53 5 \n"
|
|
"f 52 54 55 53 \n"
|
|
"f 53 55 5 \n"
|
|
"f 54 56 57 55 \n"
|
|
"f 55 57 5 \n"
|
|
"f 56 58 59 57 \n"
|
|
"f 57 59 5 \n"
|
|
"f 58 60 61 59 \n"
|
|
"f 59 61 5 \n"
|
|
"f 60 62 63 61 \n"
|
|
"f 61 63 5 \n"
|
|
"f 62 64 65 63 \n"
|
|
"f 63 65 5 \n"
|
|
"f 64 66 67 65 \n"
|
|
"f 65 67 5 \n"
|
|
"f 66 68 69 67 \n"
|
|
"f 67 69 5 \n"
|
|
"f 68 70 71 69 \n"
|
|
"f 69 71 5 \n"
|
|
"f 70 72 73 71 \n"
|
|
"f 71 73 5 \n"
|
|
"f 72 74 75 73 \n"
|
|
"f 73 75 5 \n"
|
|
"f 74 76 77 75 \n"
|
|
"f 75 77 5 \n"
|
|
"f 76 78 79 77 \n"
|
|
"f 77 79 5 \n"
|
|
"f 78 80 81 79 \n"
|
|
"f 79 81 5 \n"
|
|
"f 80 82 83 81 \n"
|
|
"f 81 83 5 \n"
|
|
"f 82 84 85 83 \n"
|
|
"f 83 85 5 \n"
|
|
"f 84 86 87 85 \n"
|
|
"f 85 87 5 \n"
|
|
"f 86 88 89 87 \n"
|
|
"f 87 89 5 \n"
|
|
"f 88 90 91 89 \n"
|
|
"f 89 91 5 \n"
|
|
"f 90 92 93 91 \n"
|
|
"f 91 93 5 \n"
|
|
"f 92 94 95 93 \n"
|
|
"f 93 95 5 \n"
|
|
"f 94 96 97 95 \n"
|
|
"f 95 97 5 \n"
|
|
"f 96 98 99 97 \n"
|
|
"f 97 99 5 \n"
|
|
"f 98 100 101 99 \n"
|
|
"f 99 101 5 \n"
|
|
"f 100 102 103 101 \n"
|
|
"f 101 103 5 \n"
|
|
"f 102 104 105 103 \n"
|
|
"f 103 105 5 \n"
|
|
"f 104 106 107 105 \n"
|
|
"f 105 107 5 \n"
|
|
"f 106 108 109 107 \n"
|
|
"f 107 109 5 \n"
|
|
"f 108 110 111 109 \n"
|
|
"f 109 111 5 \n"
|
|
"f 110 112 113 111 \n"
|
|
"f 111 113 5 \n"
|
|
"f 112 114 115 113 \n"
|
|
"f 113 115 5 \n"
|
|
"f 114 116 117 115 \n"
|
|
"f 115 117 5 \n"
|
|
"f 116 118 119 117 \n"
|
|
"f 117 119 5 \n"
|
|
"f 118 120 121 119 \n"
|
|
"f 119 121 5 \n"
|
|
"f 120 122 123 121 \n"
|
|
"f 121 123 5 \n"
|
|
"f 122 124 125 123 \n"
|
|
"f 123 125 5 \n"
|
|
"f 124 126 127 125 \n"
|
|
"f 125 127 5 \n"
|
|
"f 126 128 129 127 \n"
|
|
"f 127 129 5 \n"
|
|
"f 128 1 4 129 \n"
|
|
"f 129 4 5 \n"
|
|
"\n"
|
|
;
|