OpenSubdiv/regression/shapes/catmark_helmet.h
Takahito Tejima d026aca006 use std::string instead of char* for regression shapes definition,
to avoid MSVC's literal length limitation on some big shapes.
2013-03-19 14:43:21 -07:00

230 lines
9.1 KiB
C++

//
// Copyright (C) Pixar. All rights reserved.
//
// This license governs use of the accompanying software. If you
// use the software, you accept this license. If you do not accept
// the license, do not use the software.
//
// 1. Definitions
// The terms "reproduce," "reproduction," "derivative works," and
// "distribution" have the same meaning here as under U.S.
// copyright law. A "contribution" is the original software, or
// any additions or changes to the software.
// A "contributor" is any person or entity that distributes its
// contribution under this license.
// "Licensed patents" are a contributor's patent claims that read
// directly on its contribution.
//
// 2. Grant of Rights
// (A) Copyright Grant- Subject to the terms of this license,
// including the license conditions and limitations in section 3,
// each contributor grants you a non-exclusive, worldwide,
// royalty-free copyright license to reproduce its contribution,
// prepare derivative works of its contribution, and distribute
// its contribution or any derivative works that you create.
// (B) Patent Grant- Subject to the terms of this license,
// including the license conditions and limitations in section 3,
// each contributor grants you a non-exclusive, worldwide,
// royalty-free license under its licensed patents to make, have
// made, use, sell, offer for sale, import, and/or otherwise
// dispose of its contribution in the software or derivative works
// of the contribution in the software.
//
// 3. Conditions and Limitations
// (A) No Trademark License- This license does not grant you
// rights to use any contributor's name, logo, or trademarks.
// (B) If you bring a patent claim against any contributor over
// patents that you claim are infringed by the software, your
// patent license from such contributor to the software ends
// automatically.
// (C) If you distribute any portion of the software, you must
// retain all copyright, patent, trademark, and attribution
// notices that are present in the software.
// (D) If you distribute any portion of the software in source
// code form, you may do so only under this license by including a
// complete copy of this license with your distribution. If you
// distribute any portion of the software in compiled or object
// code form, you may only do so under a license that complies
// with this license.
// (E) The software is licensed "as-is." You bear the risk of
// using it. The contributors give no express warranties,
// guarantees or conditions. You may have additional consumer
// rights under your local laws which this license cannot change.
// To the extent permitted under your local laws, the contributors
// exclude the implied warranties of merchantability, fitness for
// a particular purpose and non-infringement.
//
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"
"f 1/1/1 2/2/2 8/8/8 7/7/7\n"
"f 2/2/2 3/3/3 9/9/9 8/8/8\n"
"f 55/55/55 56/56/56 57/57/57 58/58/58\n"
"f 4/4/4 5/5/5 11/11/11 10/10/10\n"
"f 5/5/5 6/6/6 12/12/12 11/11/11\n"
"f 7/7/7 8/8/8 14/14/14 13/13/13\n"
"f 8/8/8 9/9/9 15/15/15 14/14/14\n"
"f 58/58/58 57/57/57 59/59/59 60/60/60\n"
"f 10/10/10 11/11/11 17/17/17 16/16/16\n"
"f 11/11/11 12/12/12 18/18/18 17/17/17\n"
"f 13/13/13 14/14/14 20/20/20 19/19/19\n"
"f 14/14/14 15/15/15 21/21/21 20/20/20\n"
"f 60/60/60 59/59/59 61/61/61 62/62/62\n"
"f 16/16/16 17/17/17 23/23/23 22/22/22\n"
"f 17/17/17 18/18/18 24/24/24 23/23/23\n"
"f 19/19/19 20/20/20 26/26/26 25/25/25\n"
"f 20/20/20 21/21/21 27/27/27 26/26/26\n"
"f 62/62/62 61/61/61 63/63/63 64/64/64\n"
"f 22/22/22 23/23/23 29/29/29 28/28/28\n"
"f 23/23/23 24/24/24 30/30/30 29/29/29\n"
"f 25/25/25 26/26/26 32/32/32 31/31/31\n"
"f 26/26/26 27/27/27 33/33/33 32/32/32\n"
"f 64/64/64 63/63/63 65/65/65 66/66/66\n"
"f 28/28/28 29/29/29 35/35/35 34/34/34\n"
"f 29/29/29 30/30/30 36/36/36 35/35/35\n"
"f 31/31/31 32/32/32 38/38/38 37/37/37\n"
"f 32/32/32 33/33/33 39/39/39 38/38/38\n"
"f 66/66/66 65/65/65 67/67/67 68/68/68\n"
"f 34/34/34 35/35/35 41/41/41 40/40/40\n"
"f 35/35/35 36/36/36 42/42/42 41/41/41\n"
"f 37/37/37 38/38/38 44/44/44 43/43/43\n"
"f 38/38/38 39/39/39 45/45/45 44/44/44\n"
"f 68/68/68 67/67/67 69/69/69 70/70/70\n"
"f 40/40/40 41/41/41 47/47/47 46/46/46\n"
"f 41/41/41 42/42/42 48/48/48 47/47/47\n"
"f 43/43/43 44/44/44 50/50/50 49/49/49\n"
"f 44/44/44 45/45/45 51/51/51 50/50/50\n"
"f 70/70/70 69/69/69 71/71/71 72/72/72\n"
"f 46/46/46 47/47/47 53/53/53 52/52/52\n"
"f 47/47/47 48/48/48 54/54/54 53/53/53\n"
"f 3/3/3 4/4/4 56/56/56 55/55/55\n"
"f 4/4/4 10/10/10 57/57/57 56/56/56\n"
"f 9/9/9 3/3/3 55/55/55 58/58/58\n"
"f 10/10/10 16/16/16 59/59/59 57/57/57\n"
"f 15/15/15 9/9/9 58/58/58 60/60/60\n"
"f 16/16/16 22/22/22 61/61/61 59/59/59\n"
"f 21/21/21 15/15/15 60/60/60 62/62/62\n"
"f 22/22/22 28/28/28 63/63/63 61/61/61\n"
"f 27/27/27 21/21/21 62/62/62 64/64/64\n"
"f 28/28/28 34/34/34 65/65/65 63/63/63\n"
"f 33/33/33 27/27/27 64/64/64 66/66/66\n"
"f 34/34/34 40/40/40 67/67/67 65/65/65\n"
"f 39/39/39 33/33/33 66/66/66 68/68/68\n"
"f 40/40/40 46/46/46 69/69/69 67/67/67\n"
"f 45/45/45 39/39/39 68/68/68 70/70/70\n"
"f 46/46/46 52/52/52 71/71/71 69/69/69\n"
"f 52/52/52 51/51/51 72/72/72 71/71/71\n"
"f 51/51/51 45/45/45 70/70/70 72/72/72\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"
;