OpenSubdiv/regression/shapes/catmark_helmet.h
barry 669e54a9f7 Fixed indexing errors in old regression/shapes:
- added missing vertex texture or normal entry when only one missing
    - removed texture or normal indices from face definitions when none present
    - removed normals when incomplete and not correlated with face definitions
2019-05-15 13:45:33 -07:00

202 lines
6.5 KiB
C++

//
// Copyright 2013 Pixar
//
// 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_helmet =
"# This file uses centimeters as units for non-parametric coordinates.\n"
"\n"
"v -0.383022 -0.321394 -0.866025\n"
"v -0.250000 -0.433013 -0.866025\n"
"v -0.086824 -0.492404 -0.866025\n"
"v 0.086824 -0.492404 -0.866025\n"
"v 0.250000 -0.433013 -0.866025\n"
"v 0.383022 -0.321394 -0.866025\n"
"v -0.541675 -0.454519 -0.707107\n"
"v -0.353553 -0.612372 -0.707107\n"
"v -0.122788 -0.696364 -0.707107\n"
"v 0.122788 -0.696364 -0.707107\n"
"v 0.353553 -0.612372 -0.707107\n"
"v 0.541675 -0.454519 -0.707107\n"
"v -0.663414 -0.556670 -0.500000\n"
"v -0.433013 -0.750000 -0.500000\n"
"v -0.150384 -0.852869 -0.500000\n"
"v 0.150384 -0.852869 -0.500000\n"
"v 0.433013 -0.750000 -0.500000\n"
"v 0.663414 -0.556670 -0.500000\n"
"v -0.739942 -0.620885 -0.258819\n"
"v -0.482963 -0.836516 -0.258819\n"
"v -0.167731 -0.951251 -0.258819\n"
"v 0.167731 -0.951251 -0.258819\n"
"v 0.482963 -0.836516 -0.258819\n"
"v 0.739942 -0.620885 -0.258819\n"
"v -0.766045 -0.642787 0.000000\n"
"v -0.500000 -0.866025 0.000000\n"
"v -0.173648 -0.984808 0.000000\n"
"v 0.173648 -0.984808 0.000000\n"
"v 0.500000 -0.866025 0.000000\n"
"v 0.766044 -0.642788 0.000000\n"
"v -0.739942 -0.620885 0.258819\n"
"v -0.482963 -0.836516 0.258819\n"
"v -0.167731 -0.951251 0.258819\n"
"v 0.167731 -0.951251 0.258819\n"
"v 0.482963 -0.836516 0.258819\n"
"v 0.739942 -0.620885 0.258819\n"
"v -0.663414 -0.556670 0.500000\n"
"v -0.433013 -0.750000 0.500000\n"
"v -0.150384 -0.852869 0.500000\n"
"v 0.150384 -0.852869 0.500000\n"
"v 0.433013 -0.750000 0.500000\n"
"v 0.663414 -0.556670 0.500000\n"
"v -0.541675 -0.454519 0.707107\n"
"v -0.353553 -0.612372 0.707107\n"
"v -0.122788 -0.696364 0.707107\n"
"v 0.122788 -0.696364 0.707107\n"
"v 0.353553 -0.612372 0.707107\n"
"v 0.541675 -0.454519 0.707107\n"
"v -0.383022 -0.321394 0.866025\n"
"v -0.250000 -0.433013 0.866025\n"
"v -0.086824 -0.492404 0.866025\n"
"v 0.086824 -0.492404 0.866025\n"
"v 0.250000 -0.433013 0.866025\n"
"v 0.383022 -0.321394 0.866025\n"
"v -0.086824 -0.531654 -0.916400\n"
"v 0.086824 -0.531654 -0.916400\n"
"v 0.122788 -0.741464 -0.751545\n"
"v -0.122788 -0.741464 -0.751545\n"
"v 0.150384 -0.907909 -0.531311\n"
"v -0.150384 -0.907909 -0.531311\n"
"v 0.167731 -1.012482 -0.274985\n"
"v -0.167731 -1.012482 -0.274985\n"
"v 0.173648 -1.048138 0.000000\n"
"v -0.173648 -1.048138 0.000000\n"
"v 0.167731 -1.012482 0.274985\n"
"v -0.167731 -1.012482 0.274985\n"
"v 0.150384 -0.907909 0.531311\n"
"v -0.150384 -0.907909 0.531311\n"
"v 0.122788 -0.741464 0.751545\n"
"v -0.122788 -0.741464 0.751545\n"
"v 0.086824 -0.531654 0.916400\n"
"v -0.086824 -0.531654 0.916400\n"
"vt 0 0\n"
"vt 1 0\n"
"vt 1 1\n"
"vt 0 1\n"
"f 1/1 2/2 8/3 7/4\n"
"f 2/1 3/2 9/3 8/4\n"
"f 55/1 56/2 57/3 58/4\n"
"f 4/1 5/2 11/3 10/4\n"
"f 5/1 6/2 12/3 11/4\n"
"f 7/1 8/2 14/3 13/4\n"
"f 8/1 9/2 15/3 14/4\n"
"f 58/1 57/2 59/3 60/4\n"
"f 10/1 11/2 17/3 16/4\n"
"f 11/1 12/2 18/3 17/4\n"
"f 13/1 14/2 20/3 19/4\n"
"f 14/1 15/2 21/3 20/4\n"
"f 60/1 59/2 61/3 62/4\n"
"f 16/1 17/2 23/3 22/4\n"
"f 17/1 18/2 24/3 23/4\n"
"f 19/1 20/2 26/3 25/4\n"
"f 20/1 21/2 27/3 26/4\n"
"f 62/1 61/2 63/3 64/4\n"
"f 22/1 23/2 29/3 28/4\n"
"f 23/1 24/2 30/3 29/4\n"
"f 25/1 26/2 32/3 31/4\n"
"f 26/1 27/2 33/3 32/4\n"
"f 64/1 63/2 65/3 66/4\n"
"f 28/1 29/2 35/3 34/4\n"
"f 29/1 30/2 36/3 35/4\n"
"f 31/1 32/2 38/3 37/4\n"
"f 32/1 33/2 39/3 38/4\n"
"f 66/1 65/2 67/3 68/4\n"
"f 34/1 35/2 41/3 40/4\n"
"f 35/1 36/2 42/3 41/4\n"
"f 37/1 38/2 44/3 43/4\n"
"f 38/1 39/2 45/3 44/4\n"
"f 68/1 67/2 69/3 70/4\n"
"f 40/1 41/2 47/3 46/4\n"
"f 41/1 42/2 48/3 47/4\n"
"f 43/1 44/2 50/3 49/4\n"
"f 44/1 45/2 51/3 50/4\n"
"f 70/1 69/2 71/3 72/4\n"
"f 46/1 47/2 53/3 52/4\n"
"f 47/1 48/2 54/3 53/4\n"
"f 3/1 4/2 56/3 55/4\n"
"f 4/1 10/2 57/3 56/4\n"
"f 9/1 3/2 55/3 58/4\n"
"f 10/1 16/2 59/3 57/4\n"
"f 15/1 9/2 58/3 60/4\n"
"f 16/1 22/2 61/3 59/4\n"
"f 21/1 15/2 60/3 62/4\n"
"f 22/1 28/2 63/3 61/4\n"
"f 27/1 21/2 62/3 64/4\n"
"f 28/1 34/2 65/3 63/4\n"
"f 33/1 27/2 64/3 66/4\n"
"f 34/1 40/2 67/3 65/4\n"
"f 39/1 33/2 66/3 68/4\n"
"f 40/1 46/2 69/3 67/4\n"
"f 45/1 39/2 68/3 70/4\n"
"f 46/1 52/2 71/3 69/4\n"
"f 52/1 51/2 72/3 71/4\n"
"f 51/1 45/2 70/3 72/4\n"
"t crease 2/1/0 2 8 7.000000 \n"
"t crease 2/1/0 3 9 7.000000 \n"
"t crease 2/1/0 8 14 7.000000 \n"
"t crease 2/1/0 9 15 7.000000 \n"
"t crease 2/1/0 14 20 7.000000 \n"
"t crease 2/1/0 15 21 7.000000 \n"
"t crease 2/1/0 20 26 7.000000 \n"
"t crease 2/1/0 21 27 7.000000 \n"
"t crease 2/1/0 26 32 7.000000 \n"
"t crease 2/1/0 27 33 7.000000 \n"
"t crease 2/1/0 32 38 7.000000 \n"
"t crease 2/1/0 33 39 7.000000 \n"
"t crease 2/1/0 38 44 7.000000 \n"
"t crease 2/1/0 39 45 7.000000 \n"
"t crease 2/1/0 44 50 7.000000 \n"
"t crease 2/1/0 45 51 7.000000 \n"
"t crease 2/1/0 2 54 7.000000 \n"
"t crease 2/1/0 3 55 7.000000 \n"
"t crease 2/1/0 54 55 7.000000 \n"
"t crease 2/1/0 55 56 7.000000 \n"
"t crease 2/1/0 54 57 7.000000 \n"
"t crease 2/1/0 56 58 7.000000 \n"
"t crease 2/1/0 57 59 7.000000 \n"
"t crease 2/1/0 58 60 7.000000 \n"
"t crease 2/1/0 59 61 7.000000 \n"
"t crease 2/1/0 60 62 7.000000 \n"
"t crease 2/1/0 61 63 7.000000 \n"
"t crease 2/1/0 62 64 7.000000 \n"
"t crease 2/1/0 63 65 7.000000 \n"
"t crease 2/1/0 64 66 7.000000 \n"
"t crease 2/1/0 65 67 7.000000 \n"
"t crease 2/1/0 66 68 7.000000 \n"
"t crease 2/1/0 67 69 7.000000 \n"
"t crease 2/1/0 51 70 7.000000 \n"
"t crease 2/1/0 68 70 7.000000 \n"
"t crease 2/1/0 50 71 7.000000 \n"
"t crease 2/1/0 71 70 7.000000 \n"
"t crease 2/1/0 69 71 7.000000 \n"
"t interpolateboundary 1/0/0 1 \n"
;