OpenSubdiv/regression/shapes/bilinear_nonquads1.h
barry 42a0be5cb9 Patches and regression shapes for Bilinear scheme:
- Bilinear patches derived from non-quads now correctly created
    - added new regression/shapes for Bilinear (non-planar and non-quad)
2018-12-21 12:35:31 -08:00

83 lines
2.3 KiB
C++

//
// Copyright 2018 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 bilinear_nonquads1 =
"\n"
"v 0.80 0.0 -0.9\n"
"v 0.0 0.0 -0.9\n"
"v 0.40 0.0 -1.2\n"
"v 0.80 0.35 -0.5\n"
"v 0.80 0.0 0.9\n"
"v -0.50 0.0 -0.9\n"
"v -0.50 0.0 -0.5\n"
"v 0.0 0.0 -0.5\n"
"v 0.0 0.35 -0.2\n"
"v -0.50 0.35 -0.2\n"
"v -0.0 0.0 0.5\n"
"v -0.50 0.0 0.5\n"
"v 0.40 0.35 -0.2\n"
"v -0.0 0.0 0.9\n"
"v -0.50 0.0 0.9\n"
"v 0.40 0.0 1.2\n"
"v -0.0 0.35 0.2\n"
"v 0.80 0.35 0.5\n"
"v 0.40 0.35 0.2\n"
"v -0.50 0.35 0.2\n"
"\n"
"vt 0.80 0.2\n"
"vt 0.40 0.2\n"
"vt 0.60 0.1\n"
"vt 0.80 0.33\n"
"vt 0.80 0.8\n"
"vt 0.15 0.2\n"
"vt 0.15 0.33\n"
"vt 0.40 0.33\n"
"vt 0.40 0.43\n"
"vt 0.15 0.43\n"
"vt 0.40 0.67\n"
"vt 0.15 0.67\n"
"vt 0.60 0.43\n"
"vt 0.40 0.8\n"
"vt 0.15 0.8\n"
"vt 0.60 0.9\n"
"vt 0.40 0.57\n"
"vt 0.80 0.67\n"
"vt 0.60 0.57\n"
"vt 0.15 0.57\n"
"\n"
"f 13/13 9/9 8/8\n"
"f 11/11 17/17 19/19\n"
"f 11/11 12/12 20/20 17/17\n"
"f 7/7 6/6 2/2 8/8\n"
"f 9/9 10/10 7/7 8/8\n"
"f 14/14 15/15 12/12 11/11\n"
"f 18/18 5/5 16/16 14/14 11/11 19/19\n"
"f 2/2 3/3 1/1 4/4 13/13 8/8\n"
"f 4/4 18/18 19/19 13/13\n"
"f 17/17 20/20 10/10 9/9\n"
"f 19/19 17/17 9/9 13/13\n"
"\n"
"t interpolateboundary 1/0/0 1\n"
;