OpenSubdiv/regression/shapes/loop_nonman_edge100.h
barry 07b4ecc1cc Added new regression shapes for non-manifold edges with many incident faces:
- added simple shapes for both Catmark and Loop
    - included per-vertex UVs, which triggered issues with FVar StencilTables
2019-05-16 14:47:01 -07:00

339 lines
8.8 KiB
C++

//
// Copyright 2019 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_nonman_edge100 =
"#\n"
"# 100 triangles arranged radially and sharing a common edge:\n"
"#\n"
"v 1.000 0.000 0.000\n"
"v 0.998 0.000 0.063\n"
"v 0.992 0.000 0.125\n"
"v 0.982 0.000 0.187\n"
"v 0.969 0.000 0.249\n"
"v 0.951 0.000 0.309\n"
"v 0.930 0.000 0.368\n"
"v 0.905 0.000 0.426\n"
"v 0.876 0.000 0.482\n"
"v 0.844 0.000 0.536\n"
"v 0.809 0.000 0.588\n"
"v 0.771 0.000 0.637\n"
"v 0.729 0.000 0.685\n"
"v 0.685 0.000 0.729\n"
"v 0.637 0.000 0.771\n"
"v 0.588 0.000 0.809\n"
"v 0.536 0.000 0.844\n"
"v 0.482 0.000 0.876\n"
"v 0.426 0.000 0.905\n"
"v 0.368 0.000 0.930\n"
"v 0.309 0.000 0.951\n"
"v 0.249 0.000 0.969\n"
"v 0.187 0.000 0.982\n"
"v 0.125 0.000 0.992\n"
"v 0.063 0.000 0.998\n"
"v 0.000 0.000 1.000\n"
"v -0.063 0.000 0.998\n"
"v -0.125 0.000 0.992\n"
"v -0.187 0.000 0.982\n"
"v -0.249 0.000 0.969\n"
"v -0.309 0.000 0.951\n"
"v -0.368 0.000 0.930\n"
"v -0.426 0.000 0.905\n"
"v -0.482 0.000 0.876\n"
"v -0.536 0.000 0.844\n"
"v -0.588 0.000 0.809\n"
"v -0.637 0.000 0.771\n"
"v -0.685 0.000 0.729\n"
"v -0.729 0.000 0.685\n"
"v -0.771 0.000 0.637\n"
"v -0.809 0.000 0.588\n"
"v -0.844 0.000 0.536\n"
"v -0.876 0.000 0.482\n"
"v -0.905 0.000 0.426\n"
"v -0.930 0.000 0.368\n"
"v -0.951 0.000 0.309\n"
"v -0.969 0.000 0.249\n"
"v -0.982 0.000 0.187\n"
"v -0.992 0.000 0.125\n"
"v -0.998 0.000 0.063\n"
"v -1.000 0.000 0.000\n"
"v -0.998 0.000 -0.063\n"
"v -0.992 0.000 -0.125\n"
"v -0.982 0.000 -0.187\n"
"v -0.969 0.000 -0.249\n"
"v -0.951 0.000 -0.309\n"
"v -0.930 0.000 -0.368\n"
"v -0.905 0.000 -0.426\n"
"v -0.876 0.000 -0.482\n"
"v -0.844 0.000 -0.536\n"
"v -0.809 0.000 -0.588\n"
"v -0.771 0.000 -0.637\n"
"v -0.729 0.000 -0.685\n"
"v -0.685 0.000 -0.729\n"
"v -0.637 0.000 -0.771\n"
"v -0.588 0.000 -0.809\n"
"v -0.536 0.000 -0.844\n"
"v -0.482 0.000 -0.876\n"
"v -0.426 0.000 -0.905\n"
"v -0.368 0.000 -0.930\n"
"v -0.309 0.000 -0.951\n"
"v -0.249 0.000 -0.969\n"
"v -0.187 0.000 -0.982\n"
"v -0.125 0.000 -0.992\n"
"v -0.063 0.000 -0.998\n"
"v 0.000 0.000 -1.000\n"
"v 0.063 0.000 -0.998\n"
"v 0.125 0.000 -0.992\n"
"v 0.187 0.000 -0.982\n"
"v 0.249 0.000 -0.969\n"
"v 0.309 0.000 -0.951\n"
"v 0.368 0.000 -0.930\n"
"v 0.426 0.000 -0.905\n"
"v 0.482 0.000 -0.876\n"
"v 0.536 0.000 -0.844\n"
"v 0.588 0.000 -0.809\n"
"v 0.637 0.000 -0.771\n"
"v 0.685 0.000 -0.729\n"
"v 0.729 0.000 -0.685\n"
"v 0.771 0.000 -0.637\n"
"v 0.809 0.000 -0.588\n"
"v 0.844 0.000 -0.536\n"
"v 0.876 0.000 -0.482\n"
"v 0.905 0.000 -0.426\n"
"v 0.930 0.000 -0.368\n"
"v 0.951 0.000 -0.309\n"
"v 0.969 0.000 -0.249\n"
"v 0.982 0.000 -0.187\n"
"v 0.992 0.000 -0.125\n"
"v 0.998 0.000 -0.063\n"
"v 0.000 -0.500 0.000\n"
"v 0.000 0.500 0.000\n"
"\n"
"vt 1.000 0.500\n"
"vt 0.999 0.531\n"
"vt 0.996 0.563\n"
"vt 0.991 0.594\n"
"vt 0.984 0.624\n"
"vt 0.976 0.655\n"
"vt 0.965 0.684\n"
"vt 0.952 0.713\n"
"vt 0.938 0.741\n"
"vt 0.922 0.768\n"
"vt 0.905 0.794\n"
"vt 0.885 0.819\n"
"vt 0.864 0.842\n"
"vt 0.842 0.864\n"
"vt 0.819 0.885\n"
"vt 0.794 0.905\n"
"vt 0.768 0.922\n"
"vt 0.741 0.938\n"
"vt 0.713 0.952\n"
"vt 0.684 0.965\n"
"vt 0.655 0.976\n"
"vt 0.624 0.984\n"
"vt 0.594 0.991\n"
"vt 0.563 0.996\n"
"vt 0.531 0.999\n"
"vt 0.500 1.000\n"
"vt 0.469 0.999\n"
"vt 0.437 0.996\n"
"vt 0.406 0.991\n"
"vt 0.376 0.984\n"
"vt 0.345 0.976\n"
"vt 0.316 0.965\n"
"vt 0.287 0.952\n"
"vt 0.259 0.938\n"
"vt 0.232 0.922\n"
"vt 0.206 0.905\n"
"vt 0.181 0.885\n"
"vt 0.158 0.864\n"
"vt 0.136 0.842\n"
"vt 0.115 0.819\n"
"vt 0.095 0.794\n"
"vt 0.078 0.768\n"
"vt 0.062 0.741\n"
"vt 0.048 0.713\n"
"vt 0.035 0.684\n"
"vt 0.024 0.655\n"
"vt 0.016 0.624\n"
"vt 0.009 0.594\n"
"vt 0.004 0.563\n"
"vt 0.001 0.531\n"
"vt 0.000 0.500\n"
"vt 0.001 0.469\n"
"vt 0.004 0.437\n"
"vt 0.009 0.406\n"
"vt 0.016 0.376\n"
"vt 0.024 0.345\n"
"vt 0.035 0.316\n"
"vt 0.048 0.287\n"
"vt 0.062 0.259\n"
"vt 0.078 0.232\n"
"vt 0.095 0.206\n"
"vt 0.115 0.181\n"
"vt 0.136 0.158\n"
"vt 0.158 0.136\n"
"vt 0.181 0.115\n"
"vt 0.206 0.095\n"
"vt 0.232 0.078\n"
"vt 0.259 0.062\n"
"vt 0.287 0.048\n"
"vt 0.316 0.035\n"
"vt 0.345 0.024\n"
"vt 0.376 0.016\n"
"vt 0.406 0.009\n"
"vt 0.437 0.004\n"
"vt 0.469 0.001\n"
"vt 0.500 0.000\n"
"vt 0.531 0.001\n"
"vt 0.563 0.004\n"
"vt 0.594 0.009\n"
"vt 0.624 0.016\n"
"vt 0.655 0.024\n"
"vt 0.684 0.035\n"
"vt 0.713 0.048\n"
"vt 0.741 0.062\n"
"vt 0.768 0.078\n"
"vt 0.794 0.095\n"
"vt 0.819 0.115\n"
"vt 0.842 0.136\n"
"vt 0.864 0.158\n"
"vt 0.885 0.181\n"
"vt 0.905 0.206\n"
"vt 0.922 0.232\n"
"vt 0.938 0.259\n"
"vt 0.952 0.287\n"
"vt 0.965 0.316\n"
"vt 0.976 0.345\n"
"vt 0.984 0.376\n"
"vt 0.991 0.406\n"
"vt 0.996 0.437\n"
"vt 0.999 0.469\n"
"vt 0.500 0.500\n"
"vt 0.500 0.500\n"
"\n"
"f 1/1 101/101 102/102\n"
"f 2/2 101/101 102/102\n"
"f 3/3 101/101 102/102\n"
"f 4/4 101/101 102/102\n"
"f 5/5 101/101 102/102\n"
"f 6/6 101/101 102/102\n"
"f 7/7 101/101 102/102\n"
"f 8/8 101/101 102/102\n"
"f 9/9 101/101 102/102\n"
"f 10/10 101/101 102/102\n"
"f 11/11 101/101 102/102\n"
"f 12/12 101/101 102/102\n"
"f 13/13 101/101 102/102\n"
"f 14/14 101/101 102/102\n"
"f 15/15 101/101 102/102\n"
"f 16/16 101/101 102/102\n"
"f 17/17 101/101 102/102\n"
"f 18/18 101/101 102/102\n"
"f 19/19 101/101 102/102\n"
"f 20/20 101/101 102/102\n"
"f 21/21 101/101 102/102\n"
"f 22/22 101/101 102/102\n"
"f 23/23 101/101 102/102\n"
"f 24/24 101/101 102/102\n"
"f 25/25 101/101 102/102\n"
"f 26/26 101/101 102/102\n"
"f 27/27 101/101 102/102\n"
"f 28/28 101/101 102/102\n"
"f 29/29 101/101 102/102\n"
"f 30/30 101/101 102/102\n"
"f 31/31 101/101 102/102\n"
"f 32/32 101/101 102/102\n"
"f 33/33 101/101 102/102\n"
"f 34/34 101/101 102/102\n"
"f 35/35 101/101 102/102\n"
"f 36/36 101/101 102/102\n"
"f 37/37 101/101 102/102\n"
"f 38/38 101/101 102/102\n"
"f 39/39 101/101 102/102\n"
"f 40/40 101/101 102/102\n"
"f 41/41 101/101 102/102\n"
"f 42/42 101/101 102/102\n"
"f 43/43 101/101 102/102\n"
"f 44/44 101/101 102/102\n"
"f 45/45 101/101 102/102\n"
"f 46/46 101/101 102/102\n"
"f 47/47 101/101 102/102\n"
"f 48/48 101/101 102/102\n"
"f 49/49 101/101 102/102\n"
"f 50/50 101/101 102/102\n"
"f 51/51 101/101 102/102\n"
"f 52/52 101/101 102/102\n"
"f 53/53 101/101 102/102\n"
"f 54/54 101/101 102/102\n"
"f 55/55 101/101 102/102\n"
"f 56/56 101/101 102/102\n"
"f 57/57 101/101 102/102\n"
"f 58/58 101/101 102/102\n"
"f 59/59 101/101 102/102\n"
"f 60/60 101/101 102/102\n"
"f 61/61 101/101 102/102\n"
"f 62/62 101/101 102/102\n"
"f 63/63 101/101 102/102\n"
"f 64/64 101/101 102/102\n"
"f 65/65 101/101 102/102\n"
"f 66/66 101/101 102/102\n"
"f 67/67 101/101 102/102\n"
"f 68/68 101/101 102/102\n"
"f 69/69 101/101 102/102\n"
"f 70/70 101/101 102/102\n"
"f 71/71 101/101 102/102\n"
"f 72/72 101/101 102/102\n"
"f 73/73 101/101 102/102\n"
"f 74/74 101/101 102/102\n"
"f 75/75 101/101 102/102\n"
"f 76/76 101/101 102/102\n"
"f 77/77 101/101 102/102\n"
"f 78/78 101/101 102/102\n"
"f 79/79 101/101 102/102\n"
"f 80/80 101/101 102/102\n"
"f 81/81 101/101 102/102\n"
"f 82/82 101/101 102/102\n"
"f 83/83 101/101 102/102\n"
"f 84/84 101/101 102/102\n"
"f 85/85 101/101 102/102\n"
"f 86/86 101/101 102/102\n"
"f 87/87 101/101 102/102\n"
"f 88/88 101/101 102/102\n"
"f 89/89 101/101 102/102\n"
"f 90/90 101/101 102/102\n"
"f 91/91 101/101 102/102\n"
"f 92/92 101/101 102/102\n"
"f 93/93 101/101 102/102\n"
"f 94/94 101/101 102/102\n"
"f 95/95 101/101 102/102\n"
"f 96/96 101/101 102/102\n"
"f 97/97 101/101 102/102\n"
"f 98/98 101/101 102/102\n"
"f 99/99 101/101 102/102\n"
"f 100/100 101/101 102/102\n"
"\n"
"t interpolateboundary 1/0/0 1\n"
"\n"
;