mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-05 14:31:07 +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
102 lines
2.7 KiB
C++
102 lines
2.7 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_bound1 =
|
|
"\n"
|
|
"v 0.0 0 1.0\n"
|
|
"v -0.433 0 0.75\n"
|
|
"v 0.0 0 0.5\n"
|
|
"v -0.866 0 0.5\n"
|
|
"v -0.433 0 0.25\n"
|
|
"v 0.433 0 0.75\n"
|
|
"v -0.866 0 0.0\n"
|
|
"v 0.433 0 0.25\n"
|
|
"v 0.0 -0.5 0.0\n"
|
|
"v -0.433 0 -0.25\n"
|
|
"v 0.866 0 0.5\n"
|
|
"v 0.866 0 0.0\n"
|
|
"v 0.433 0 -0.25\n"
|
|
"v 0.0 0 -0.5\n"
|
|
"v -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/8 15/22 10/12 \n"
|
|
"f 10/12 15/22 16/23 \n"
|
|
"f 10/12 16/23 14/20 \n"
|
|
"f 12/17 13/19 17/24 \n"
|
|
"f 13/19 14/21 18/25 \n"
|
|
"f 14/20 16/23 19/26 \n"
|
|
"f 13/19 18/25 17/24 \n"
|
|
"f 14/21 19/27 18/25 \n"
|
|
"\n"
|
|
;
|