OpenSubdiv/regression/shapes/catmark_fan.h
barry 7b2a0b239d minor improvements to examples/glFVarViewer:
- added detection of shapes without UVs and report fatal error
    - fixed command line parsing of shape file arguments and other options
    - added missing UVs from shapes/catmark_fan
2017-01-27 14:22:54 -08:00

96 lines
2.7 KiB
C++

//
// Copyright 2016 Dreamworks
//
// 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_fan =
"# This file uses centimeters as units for non-parametric coordinates.\n"
"\n"
"# This file uses centimeters as units for non-parametric coordinates.\n"
"v 0.0 0 1.0\n"
"v -0.5 0 0.5\n"
"v 0.5 0 0.5\n"
"v -1.0 0 0.0\n"
"v 1.0 0 0.0\n"
"v -1.5 0 -0.5\n"
"v 1.5 0 -0.5\n"
"v -1.0 0 -1.0\n"
"v -0.5 0 -0.5\n"
"v 0.0 0 0.0\n"
"v 0.5 0 -0.5\n"
"v 1.0 0 -1.0\n"
"v -1.0 .5 -1.0\n"
"v -0.5 .5 -0.5\n"
"v 0.0 .5 0.0\n"
"v 0.5 .5 -0.5\n"
"v 1.0 .5 -1.0\n"
"v -1.0 -.5 -1.0\n"
"v -0.5 -.5 -0.5\n"
"v 0.0 -.5 0.0\n"
"v 0.5 -.5 -0.5\n"
"v 1.0 -.5 -1.0\n"
"\n"
"vt 0.10 0.50\n"
"vt 0.10 0.40\n"
"vt 0.20 0.50\n"
"vt 0.10 0.30\n"
"vt 0.30 0.50\n"
"vt 0.10 0.20\n"
"vt 0.40 0.50\n"
"vt 0.20 0.20\n"
"vt 0.20 0.30\n"
"vt 0.20 0.40\n"
"vt 0.30 0.40\n"
"vt 0.40 0.40\n"
"vt 0.10 0.60\n"
"vt 0.20 0.60\n"
"vt 0.30 0.60\n"
"vt 0.40 0.60\n"
"vt 0.50 0.60\n"
"vt 0.10 0.70\n"
"vt 0.20 0.70\n"
"vt 0.30 0.70\n"
"vt 0.40 0.70\n"
"vt 0.50 0.70\n"
"vt 0.10 0.80\n"
"vt 0.20 0.80\n"
"vt 0.30 0.80\n"
"vt 0.40 0.80\n"
"vt 0.50 0.80\n"
"\n"
"f 1/1 2/2 10/10 3/3\n"
"f 2/2 4/4 9/9 10/10\n"
"f 4/4 6/6 8/8 9/9\n"
"f 5/5 3/3 10/10 11/11\n"
"f 7/7 5/5 11/11 12/12\n"
"f 8/18 9/19 14/24 13/23\n"
"f 9/19 10/20 15/25 14/24\n"
"f 10/20 11/21 16/26 15/25\n"
"f 11/21 12/22 17/27 16/26\n"
"f 9/19 8/18 18/13 19/14\n"
"f 10/20 9/19 19/14 20/15\n"
"f 11/21 10/20 20/15 21/16\n"
"f 12/22 11/21 21/16 22/17\n"
"\n"
"t interpolateboundary 1/0/0 1\n"
"\n";