mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-08 13:30:04 +00:00
669e54a9f7
- 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
82 lines
2.6 KiB
C++
82 lines
2.6 KiB
C++
//
|
|
// Copyright 2014 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_gregory_test6 = std::string(
|
|
"# This file uses centimeters as units for non-parametric coordinates.\n"
|
|
"v -1.414 -0.000 -1.414\n"
|
|
"v 1.414 -0.000 -1.414\n"
|
|
"v 1.414 0.000 1.414\n"
|
|
"v -1.414 0.000 1.414\n"
|
|
"v 0.000 -0.000 -1.414\n"
|
|
"v -0.000 0.000 1.414\n"
|
|
"v 1.414 -0.000 -0.707\n"
|
|
"v -1.414 -0.000 -0.707\n"
|
|
"v -1.414 0.000 0.707\n"
|
|
"v 1.414 0.000 0.707\n"
|
|
"v 0.000 -1.000 -0.471\n"
|
|
"v -0.000 -1.000 0.471\n"
|
|
"v 0.707 -0.000 -0.707\n"
|
|
"v -0.707 -0.000 -0.707\n"
|
|
"v -0.707 0.000 0.707\n"
|
|
"v 0.707 0.000 0.707\n"
|
|
"v 2.828 -0.000 -1.414\n"
|
|
"v 2.828 -0.000 -0.707\n"
|
|
"v 2.828 0.000 0.707\n"
|
|
"v 2.828 0.000 1.414\n"
|
|
"vt 0.000000 0.000000\n"
|
|
"vt 0.333333 0.000000\n"
|
|
"vt 0.666666 0.000000\n"
|
|
"vt 1.000000 0.000000\n"
|
|
"vt 0.000000 0.250000\n"
|
|
"vt 0.166666 0.250000\n"
|
|
"vt 0.500000 0.250000\n"
|
|
"vt 0.666666 0.250000\n"
|
|
"vt 1.000000 0.250000\n"
|
|
"vt 0.000000 0.750000\n"
|
|
"vt 0.166666 0.750000\n"
|
|
"vt 0.500000 0.750000\n"
|
|
"vt 0.666666 0.750000\n"
|
|
"vt 1.000000 0.750000\n"
|
|
"vt 0.000000 1.000000\n"
|
|
"vt 0.333333 1.000000\n"
|
|
"vt 0.666666 1.000000\n"
|
|
"vt 1.000000 1.000000\n"
|
|
"vt 0.333333 0.333333\n"
|
|
"vt 0.333333 0.666666\n"
|
|
"f 1/1 5/2 14/6 8/5\n"
|
|
"f 2/3 7/8 13/7 5/2\n"
|
|
"f 3/17 6/16 16/12 10/13\n"
|
|
"f 4/15 9/10 15/11 6/16\n"
|
|
"f 5/2 13/7 11/19 14/6\n"
|
|
"f 6/16 15/11 12/20 16/12\n"
|
|
"f 7/8 10/13 16/12 13/7\n"
|
|
"f 9/10 8/5 14/6 15/11\n"
|
|
"f 11/19 13/7 16/12 12/20\n"
|
|
"f 12/20 15/11 14/6 11/19\n"
|
|
"f 2/3 17/4 18/9 7/8\n"
|
|
"f 3/17 10/13 19/14 20/18\n"
|
|
"f 7/8 18/9 19/14 10/13\n"
|
|
"t interpolateboundary 1/0/0 2\n"
|
|
);
|