mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-12 23:20:10 +00:00
3c9673c447
- updated the edge-only and edge-corner shapes consistent with Catmark - moved the existing triangulated cube to loop_cube_asymmetric - added new loop_cube with symmetric triangulation and limit surface - added semi-sharp and inf-sharp variations of cube and icosahedron - added shapes with extra-ordinary interior and boundary vertices - added shapes with face-varying features similar to Catmark
95 lines
2.5 KiB
C++
95 lines
2.5 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 loop_fvar_bound3 =
|
|
"\n"
|
|
"v -1.0 0.0 -0.0\n"
|
|
"v -0.75 0.0 -0.433\n"
|
|
"v -0.5 0.0 -0.0\n"
|
|
"v -0.5 0.0 -0.866\n"
|
|
"v -0.25 0.0 -0.433\n"
|
|
"v -0.75 0.0 0.433\n"
|
|
"v -0.0 0.0 -0.866\n"
|
|
"v -0.25 0.0 0.433\n"
|
|
"v 0.0 -0.5 0.0\n"
|
|
"v 0.25 0.0 -0.433\n"
|
|
"v -0.50 0.0 0.866\n"
|
|
"v 0.0 0.0 0.866\n"
|
|
"v 0.25 0.0 0.433\n"
|
|
"v 0.5 0.0 0.0\n"
|
|
"v 0.5 0.0 -0.866\n"
|
|
"v 0.75 0.0 -0.433\n"
|
|
"v 0.5 0.0 0.866\n"
|
|
"v 0.75 0.0 0.433\n"
|
|
"v 1.0 0.0 0.0\n"
|
|
"\n"
|
|
"vt 0.0 0.5\n"
|
|
"vt 0.125 0.282\n"
|
|
"vt 0.25 0.5\n"
|
|
"vt 0.25 0.065\n"
|
|
"vt 0.375 0.282\n"
|
|
"vt 0.125 0.717\n"
|
|
"vt 0.5 0.065\n"
|
|
"vt 0.375 0.717\n"
|
|
"vt 0.5 0.5\n"
|
|
"vt 0.625 0.283\n"
|
|
"vt 0.25 0.935\n"
|
|
"vt 0.5 0.935\n"
|
|
"vt 0.625 0.718\n"
|
|
"vt 0.75 0.5\n"
|
|
"vt 0.75 0.065\n"
|
|
"vt 0.875 0.283\n"
|
|
"vt 0.75 0.935\n"
|
|
"vt 0.875 0.718\n"
|
|
"vt 1.0 0.5\n"
|
|
"vt 0.550 0.935\n"
|
|
"vt 0.875 0.750\n"
|
|
"\n"
|
|
"f 1/1 2/2 3/3 \n"
|
|
"f 2/2 4/4 5/5 \n"
|
|
"f 1/1 3/3 6/6 \n"
|
|
"f 2/2 5/5 3/3 \n"
|
|
"f 4/4 7/7 5/5 \n"
|
|
"f 6/6 3/3 8/8 \n"
|
|
"f 3/3 5/5 9/9 \n"
|
|
"f 5/5 7/7 10/10 \n"
|
|
"f 6/6 8/8 11/11 \n"
|
|
"f 3/3 9/9 8/8 \n"
|
|
"f 5/5 10/10 9/9 \n"
|
|
"f 11/11 8/8 12/12 \n"
|
|
"f 8/8 9/9 13/13 \n"
|
|
"f 9/9 10/10 14/14 \n"
|
|
"f 8/8 13/13 12/12 \n"
|
|
"f 9/9 14/14 13/13 \n"
|
|
"f 7/7 15/15 10/10 \n"
|
|
"f 10/10 15/15 16/16 \n"
|
|
"f 10/10 16/16 14/14 \n"
|
|
"f 12/20 13/13 17/17 \n"
|
|
"f 13/13 14/14 18/18 \n"
|
|
"f 14/14 16/16 19/19 \n"
|
|
"f 13/13 18/21 17/17 \n"
|
|
"f 14/14 19/19 18/18 \n"
|
|
"\n"
|
|
;
|