mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-08 13:30:04 +00:00
544213b3f0
- rename enums in sdc/options - add support for "smoothtriangles" tag in Shapes - add 2 test shapes to glViewer
236 lines
6.5 KiB
C++
236 lines
6.5 KiB
C++
//
|
|
// Copyright 2013 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_smoothtris0 =
|
|
"# This file uses centimeters as units for non-parametric coordinates.\n"
|
|
"\n"
|
|
"v 0.951057 -1.000000 -0.309017\n"
|
|
"v 0.809018 -1.000000 -0.587786\n"
|
|
"v 0.587786 -1.000000 -0.809017\n"
|
|
"v 0.309017 -1.000000 -0.951057\n"
|
|
"v 0.000000 -1.000000 -1.000000\n"
|
|
"v -0.309017 -1.000000 -0.951057\n"
|
|
"v -0.587785 -1.000000 -0.809017\n"
|
|
"v -0.809017 -1.000000 -0.587785\n"
|
|
"v -0.951057 -1.000000 -0.309017\n"
|
|
"v -1.000000 -1.000000 0.000000\n"
|
|
"v -0.951057 -1.000000 0.309017\n"
|
|
"v -0.809017 -1.000000 0.587785\n"
|
|
"v -0.587785 -1.000000 0.809017\n"
|
|
"v -0.309017 -1.000000 0.951057\n"
|
|
"v -0.000000 -1.000000 1.000000\n"
|
|
"v 0.309017 -1.000000 0.951057\n"
|
|
"v 0.587785 -1.000000 0.809017\n"
|
|
"v 0.809017 -1.000000 0.587785\n"
|
|
"v 0.951057 -1.000000 0.309017\n"
|
|
"v 1.000000 -1.000000 0.000000\n"
|
|
"v 0.951057 1.000000 -0.309017\n"
|
|
"v 0.809018 1.000000 -0.587786\n"
|
|
"v 0.587786 1.000000 -0.809017\n"
|
|
"v 0.309017 1.000000 -0.951057\n"
|
|
"v 0.000000 1.000000 -1.000000\n"
|
|
"v -0.309017 1.000000 -0.951057\n"
|
|
"v -0.587785 1.000000 -0.809017\n"
|
|
"v -0.809017 1.000000 -0.587785\n"
|
|
"v -0.951057 1.000000 -0.309017\n"
|
|
"v -1.000000 1.000000 0.000000\n"
|
|
"v -0.951057 1.000000 0.309017\n"
|
|
"v -0.809017 1.000000 0.587785\n"
|
|
"v -0.587785 1.000000 0.809017\n"
|
|
"v -0.309017 1.000000 0.951057\n"
|
|
"v -0.000000 1.000000 1.000000\n"
|
|
"v 0.309017 1.000000 0.951057\n"
|
|
"v 0.587785 1.000000 0.809017\n"
|
|
"v 0.809017 1.000000 0.587785\n"
|
|
"v 0.951057 1.000000 0.309017\n"
|
|
"v 1.000000 1.000000 0.000000\n"
|
|
"v 0.000000 -1.000000 0.000000\n"
|
|
"v 0.000000 1.000000 0.000000\n"
|
|
"vt 0.648603 0.107966\n"
|
|
"vt 0.626409 0.064408\n"
|
|
"vt 0.591842 0.029841\n"
|
|
"vt 0.548284 0.007647\n"
|
|
"vt 0.500000 -0.000000\n"
|
|
"vt 0.451716 0.007647\n"
|
|
"vt 0.408159 0.029841\n"
|
|
"vt 0.373591 0.064409\n"
|
|
"vt 0.351397 0.107966\n"
|
|
"vt 0.343750 0.156250\n"
|
|
"vt 0.351397 0.204534\n"
|
|
"vt 0.373591 0.248091\n"
|
|
"vt 0.408159 0.282659\n"
|
|
"vt 0.451716 0.304853\n"
|
|
"vt 0.500000 0.312500\n"
|
|
"vt 0.548284 0.304853\n"
|
|
"vt 0.591841 0.282659\n"
|
|
"vt 0.626409 0.248091\n"
|
|
"vt 0.648603 0.204534\n"
|
|
"vt 0.656250 0.156250\n"
|
|
"vt 0.375000 0.312500\n"
|
|
"vt 0.387500 0.312500\n"
|
|
"vt 0.400000 0.312500\n"
|
|
"vt 0.412500 0.312500\n"
|
|
"vt 0.425000 0.312500\n"
|
|
"vt 0.437500 0.312500\n"
|
|
"vt 0.450000 0.312500\n"
|
|
"vt 0.462500 0.312500\n"
|
|
"vt 0.475000 0.312500\n"
|
|
"vt 0.487500 0.312500\n"
|
|
"vt 0.500000 0.312500\n"
|
|
"vt 0.512500 0.312500\n"
|
|
"vt 0.525000 0.312500\n"
|
|
"vt 0.537500 0.312500\n"
|
|
"vt 0.550000 0.312500\n"
|
|
"vt 0.562500 0.312500\n"
|
|
"vt 0.575000 0.312500\n"
|
|
"vt 0.587500 0.312500\n"
|
|
"vt 0.600000 0.312500\n"
|
|
"vt 0.612500 0.312500\n"
|
|
"vt 0.625000 0.312500\n"
|
|
"vt 0.375000 0.688440\n"
|
|
"vt 0.387500 0.688440\n"
|
|
"vt 0.400000 0.688440\n"
|
|
"vt 0.412500 0.688440\n"
|
|
"vt 0.425000 0.688440\n"
|
|
"vt 0.437500 0.688440\n"
|
|
"vt 0.450000 0.688440\n"
|
|
"vt 0.462500 0.688440\n"
|
|
"vt 0.475000 0.688440\n"
|
|
"vt 0.487500 0.688440\n"
|
|
"vt 0.500000 0.688440\n"
|
|
"vt 0.512500 0.688440\n"
|
|
"vt 0.525000 0.688440\n"
|
|
"vt 0.537500 0.688440\n"
|
|
"vt 0.550000 0.688440\n"
|
|
"vt 0.562500 0.688440\n"
|
|
"vt 0.575000 0.688440\n"
|
|
"vt 0.587500 0.688440\n"
|
|
"vt 0.600000 0.688440\n"
|
|
"vt 0.612500 0.688440\n"
|
|
"vt 0.625000 0.688440\n"
|
|
"vt 0.648603 0.795466\n"
|
|
"vt 0.626409 0.751908\n"
|
|
"vt 0.591842 0.717341\n"
|
|
"vt 0.548284 0.695147\n"
|
|
"vt 0.500000 0.687500\n"
|
|
"vt 0.451716 0.695147\n"
|
|
"vt 0.408159 0.717341\n"
|
|
"vt 0.373591 0.751909\n"
|
|
"vt 0.351397 0.795466\n"
|
|
"vt 0.343750 0.843750\n"
|
|
"vt 0.351397 0.892034\n"
|
|
"vt 0.373591 0.935591\n"
|
|
"vt 0.408159 0.970159\n"
|
|
"vt 0.451716 0.992353\n"
|
|
"vt 0.500000 1.000000\n"
|
|
"vt 0.548284 0.992353\n"
|
|
"vt 0.591841 0.970159\n"
|
|
"vt 0.626409 0.935591\n"
|
|
"vt 0.648603 0.892034\n"
|
|
"vt 0.656250 0.843750\n"
|
|
"vt 0.500000 0.150000\n"
|
|
"vt 0.500000 0.837500\n"
|
|
"f 1/21 2/22 21/42\n"
|
|
"f 21/42 2/22 22/43\n"
|
|
"f 2/22 3/23 22/43\n"
|
|
"f 22/43 3/23 23/44\n"
|
|
"f 3/23 4/24 23/44\n"
|
|
"f 23/44 4/24 24/45\n"
|
|
"f 4/24 5/25 24/45\n"
|
|
"f 24/45 5/25 25/46\n"
|
|
"f 5/25 6/26 25/46\n"
|
|
"f 25/46 6/26 26/47\n"
|
|
"f 6/26 7/27 26/47\n"
|
|
"f 26/47 7/27 27/48\n"
|
|
"f 7/27 8/28 27/48\n"
|
|
"f 27/48 8/28 28/49\n"
|
|
"f 8/28 9/29 28/49\n"
|
|
"f 28/49 9/29 29/50\n"
|
|
"f 9/29 10/30 29/50\n"
|
|
"f 29/50 10/30 30/51\n"
|
|
"f 10/30 11/31 30/51\n"
|
|
"f 30/51 11/31 31/52\n"
|
|
"f 11/31 12/32 31/52\n"
|
|
"f 31/52 12/32 32/53\n"
|
|
"f 12/32 13/33 32/53\n"
|
|
"f 32/53 13/33 33/54\n"
|
|
"f 13/33 14/34 33/54\n"
|
|
"f 33/54 14/34 34/55\n"
|
|
"f 14/34 15/35 34/55\n"
|
|
"f 34/55 15/35 35/56\n"
|
|
"f 15/35 16/36 35/56\n"
|
|
"f 35/56 16/36 36/57\n"
|
|
"f 16/36 17/37 36/57\n"
|
|
"f 36/57 17/37 37/58\n"
|
|
"f 17/37 18/38 37/58\n"
|
|
"f 37/58 18/38 38/59\n"
|
|
"f 18/38 19/39 38/59\n"
|
|
"f 38/59 19/39 39/60\n"
|
|
"f 19/39 20/40 39/60\n"
|
|
"f 39/60 20/40 40/61\n"
|
|
"f 20/40 1/41 40/61\n"
|
|
"f 40/61 1/41 21/62\n"
|
|
"f 2/2 1/1 41/83\n"
|
|
"f 3/3 2/2 41/83\n"
|
|
"f 4/4 3/3 41/83\n"
|
|
"f 5/5 4/4 41/83\n"
|
|
"f 6/6 5/5 41/83\n"
|
|
"f 7/7 6/6 41/83\n"
|
|
"f 8/8 7/7 41/83\n"
|
|
"f 9/9 8/8 41/83\n"
|
|
"f 10/10 9/9 41/83\n"
|
|
"f 11/11 10/10 41/83\n"
|
|
"f 12/12 11/11 41/83\n"
|
|
"f 13/13 12/12 41/83\n"
|
|
"f 14/14 13/13 41/83\n"
|
|
"f 15/15 14/14 41/83\n"
|
|
"f 16/16 15/15 41/83\n"
|
|
"f 17/17 16/16 41/83\n"
|
|
"f 18/18 17/17 41/83\n"
|
|
"f 19/19 18/18 41/83\n"
|
|
"f 20/20 19/19 41/83\n"
|
|
"f 1/1 20/20 41/83\n"
|
|
"f 21/81 22/80 42/84\n"
|
|
"f 22/80 23/79 42/84\n"
|
|
"f 23/79 24/78 42/84\n"
|
|
"f 24/78 25/77 42/84\n"
|
|
"f 25/77 26/76 42/84\n"
|
|
"f 26/76 27/75 42/84\n"
|
|
"f 27/75 28/74 42/84\n"
|
|
"f 28/74 29/73 42/84\n"
|
|
"f 29/73 30/72 42/84\n"
|
|
"f 30/72 31/71 42/84\n"
|
|
"f 31/71 32/70 42/84\n"
|
|
"f 32/70 33/69 42/84\n"
|
|
"f 33/69 34/68 42/84\n"
|
|
"f 34/68 35/67 42/84\n"
|
|
"f 35/67 36/66 42/84\n"
|
|
"f 36/66 37/65 42/84\n"
|
|
"f 37/65 38/64 42/84\n"
|
|
"f 38/64 39/63 42/84\n"
|
|
"f 39/63 40/82 42/84\n"
|
|
"f 40/82 21/81 42/84\n"
|
|
"t smoothtriangles 0/0/1 catmark\n"
|
|
"\n";
|