Raised maximum valence supported by Vtr and included new test shapes:

- 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
This commit is contained in:
barfowl 2015-05-20 23:36:45 -07:00
parent 32e9bb7e29
commit 05e9c48ea9
11 changed files with 5882 additions and 2 deletions

View File

@ -63,10 +63,10 @@ inline bool IndexIsValid(Index index) { return (index != INDEX_INVALID); }
// could potentially be combined with an Index -- but we need something larger for
// the N-sided face.
//
typedef unsigned char LocalIndex;
typedef unsigned short LocalIndex;
// Declared as "int" since its intended for more general use
static const int VALENCE_LIMIT = 255; // std::numeric_limits<LocalIndex>::max()
static const int VALENCE_LIMIT = ((1 << 16) - 1); // std::numeric_limits<LocalIndex>::max()
//
// Collections if integer types in variable or fixed sized arrays. Note that the use

View File

@ -64,6 +64,9 @@ static std::vector<ShapeDesc> g_shapes;
#include "../shapes/catmark_gregory_test5.h"
#include "../shapes/catmark_helmet.h"
#include "../shapes/catmark_lefthanded.h"
#include "../shapes/catmark_pole8.h"
#include "../shapes/catmark_pole64.h"
#include "../shapes/catmark_pole360.h"
#include "../shapes/catmark_pyramid_creases0.h"
#include "../shapes/catmark_pyramid_creases1.h"
#include "../shapes/catmark_pyramid.h"
@ -81,6 +84,9 @@ static std::vector<ShapeDesc> g_shapes;
#include "../shapes/loop_cube_creases1.h"
#include "../shapes/loop_cube.h"
#include "../shapes/loop_icosahedron.h"
#include "../shapes/loop_pole8.h"
#include "../shapes/loop_pole64.h"
#include "../shapes/loop_pole360.h"
#include "../shapes/loop_saddle_edgecorner.h"
#include "../shapes/loop_saddle_edgeonly.h"
#include "../shapes/loop_triangle_edgecorner.h"
@ -114,6 +120,9 @@ static void initShapes() {
g_shapes.push_back( ShapeDesc("catmark_gregory_test3", catmark_gregory_test3, kCatmark ) );
// g_shapes.push_back( ShapeDesc("catmark_gregory_test4", catmark_gregory_test4, kCatmark ) );
g_shapes.push_back( ShapeDesc("catmark_gregory_test5", catmark_gregory_test5, kCatmark ) );
g_shapes.push_back( ShapeDesc("catmark_pole8", catmark_pole8, kCatmark ) );
g_shapes.push_back( ShapeDesc("catmark_pole64", catmark_pole64, kCatmark ) );
// g_shapes.push_back( ShapeDesc("catmark_pole360", catmark_pole360, kCatmark ) );
g_shapes.push_back( ShapeDesc("catmark_pyramid_creases0", catmark_pyramid_creases0, kCatmark ) );
g_shapes.push_back( ShapeDesc("catmark_pyramid_creases1", catmark_pyramid_creases1, kCatmark ) );
g_shapes.push_back( ShapeDesc("catmark_pyramid", catmark_pyramid, kCatmark ) );
@ -133,6 +142,9 @@ static void initShapes() {
g_shapes.push_back( ShapeDesc("loop_cube_creases1", loop_cube_creases1, kLoop ) );
g_shapes.push_back( ShapeDesc("loop_cube", loop_cube, kLoop ) );
g_shapes.push_back( ShapeDesc("loop_icosahedron", loop_icosahedron, kLoop ) );
g_shapes.push_back( ShapeDesc("loop_pole8", loop_pole8, kLoop ) );
g_shapes.push_back( ShapeDesc("loop_pole64", loop_pole64, kLoop ) );
// g_shapes.push_back( ShapeDesc("loop_pole360", loop_pole360, kLoop ) );
g_shapes.push_back( ShapeDesc("loop_saddle_edgecorner", loop_saddle_edgecorner, kLoop ) );
g_shapes.push_back( ShapeDesc("loop_saddle_edgeonly", loop_saddle_edgeonly, kLoop ) );
g_shapes.push_back( ShapeDesc("loop_triangle_edgecorner", loop_triangle_edgecorner, kLoop ) );

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -0,0 +1,60 @@
//
// 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_nonman_quadpole8 =
"v 0.614 0.7836 0.614\n"
"v 0.8684 0.7836 0\n"
"v 0.2895 1 0\n"
"v 0.2047 1 0.2047\n"
"v 1.357e-16 1 0\n"
"v 0.614 0.7836 -0.614\n"
"v 0.2047 1 -0.2047\n"
"v 1.11e-16 0.7836 -0.8684\n"
"v 5.551e-17 1 -0.2895\n"
"v -0.614 0.7836 -0.614\n"
"v -0.2047 1 -0.2047\n"
"v -0.8684 0.7836 -3.331e-16\n"
"v -0.2895 1 -8.327e-17\n"
"v -0.614 0.7836 0.614\n"
"v -0.2047 1 0.2047\n"
"v -3.886e-16 0.7836 0.8684\n"
"v -1.11e-16 1 0.2895\n"
"f 1 2 3 4 \n"
"f 4 3 5 5 \n"
"f 2 6 7 3 \n"
"f 3 7 5 5 \n"
"f 6 8 9 7 \n"
"f 7 9 5 5 \n"
"f 8 10 11 9 \n"
"f 9 11 5 5 \n"
"f 10 12 13 11 \n"
"f 11 13 5 5 \n"
"f 12 14 15 13 \n"
"f 13 15 5 5 \n"
"f 14 16 17 15 \n"
"f 15 17 5 5 \n"
"f 16 1 4 17 \n"
"f 17 4 5 5 \n"
"\n"
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,284 @@
//
// 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"
;

View File

@ -0,0 +1,60 @@
//
// 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_pole8 =
"v 0.614 0.7836 0.614\n"
"v 0.8684 0.7836 0\n"
"v 0.2895 1 0\n"
"v 0.2047 1 0.2047\n"
"v 1.357e-16 1 0\n"
"v 0.614 0.7836 -0.614\n"
"v 0.2047 1 -0.2047\n"
"v 1.11e-16 0.7836 -0.8684\n"
"v 5.551e-17 1 -0.2895\n"
"v -0.614 0.7836 -0.614\n"
"v -0.2047 1 -0.2047\n"
"v -0.8684 0.7836 -3.331e-16\n"
"v -0.2895 1 -8.327e-17\n"
"v -0.614 0.7836 0.614\n"
"v -0.2047 1 0.2047\n"
"v -3.886e-16 0.7836 0.8684\n"
"v -1.11e-16 1 0.2895\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 1 4 17 \n"
"f 17 4 5 \n"
"\n"
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,348 @@
//
// 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"
;

View File

@ -0,0 +1,68 @@
//
// 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_pole8 =
"v 0.614 0.7836 0.614\n"
"v 0.8684 0.7836 0\n"
"v 0.2895 1 0\n"
"v 0.2047 1 0.2047\n"
"v 1.357e-16 1 0\n"
"v 0.614 0.7836 -0.614\n"
"v 0.2047 1 -0.2047\n"
"v 1.11e-16 0.7836 -0.8684\n"
"v 5.551e-17 1 -0.2895\n"
"v -0.614 0.7836 -0.614\n"
"v -0.2047 1 -0.2047\n"
"v -0.8684 0.7836 -3.331e-16\n"
"v -0.2895 1 -8.327e-17\n"
"v -0.614 0.7836 0.614\n"
"v -0.2047 1 0.2047\n"
"v -3.886e-16 0.7836 0.8684\n"
"v -1.11e-16 1 0.2895\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 1 4 \n"
"f 17 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 4 17 16 \n"
"\n"
;