mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-30 23:30:07 +00:00
d026aca006
to avoid MSVC's literal length limitation on some big shapes.
125 lines
5.4 KiB
C++
125 lines
5.4 KiB
C++
//
|
|
// Copyright (C) Pixar. All rights reserved.
|
|
//
|
|
// This license governs use of the accompanying software. If you
|
|
// use the software, you accept this license. If you do not accept
|
|
// the license, do not use the software.
|
|
//
|
|
// 1. Definitions
|
|
// The terms "reproduce," "reproduction," "derivative works," and
|
|
// "distribution" have the same meaning here as under U.S.
|
|
// copyright law. A "contribution" is the original software, or
|
|
// any additions or changes to the software.
|
|
// A "contributor" is any person or entity that distributes its
|
|
// contribution under this license.
|
|
// "Licensed patents" are a contributor's patent claims that read
|
|
// directly on its contribution.
|
|
//
|
|
// 2. Grant of Rights
|
|
// (A) Copyright Grant- Subject to the terms of this license,
|
|
// including the license conditions and limitations in section 3,
|
|
// each contributor grants you a non-exclusive, worldwide,
|
|
// royalty-free copyright license to reproduce its contribution,
|
|
// prepare derivative works of its contribution, and distribute
|
|
// its contribution or any derivative works that you create.
|
|
// (B) Patent Grant- Subject to the terms of this license,
|
|
// including the license conditions and limitations in section 3,
|
|
// each contributor grants you a non-exclusive, worldwide,
|
|
// royalty-free license under its licensed patents to make, have
|
|
// made, use, sell, offer for sale, import, and/or otherwise
|
|
// dispose of its contribution in the software or derivative works
|
|
// of the contribution in the software.
|
|
//
|
|
// 3. Conditions and Limitations
|
|
// (A) No Trademark License- This license does not grant you
|
|
// rights to use any contributor's name, logo, or trademarks.
|
|
// (B) If you bring a patent claim against any contributor over
|
|
// patents that you claim are infringed by the software, your
|
|
// patent license from such contributor to the software ends
|
|
// automatically.
|
|
// (C) If you distribute any portion of the software, you must
|
|
// retain all copyright, patent, trademark, and attribution
|
|
// notices that are present in the software.
|
|
// (D) If you distribute any portion of the software in source
|
|
// code form, you may do so only under this license by including a
|
|
// complete copy of this license with your distribution. If you
|
|
// distribute any portion of the software in compiled or object
|
|
// code form, you may only do so under a license that complies
|
|
// with this license.
|
|
// (E) The software is licensed "as-is." You bear the risk of
|
|
// using it. The contributors give no express warranties,
|
|
// guarantees or conditions. You may have additional consumer
|
|
// rights under your local laws which this license cannot change.
|
|
// To the extent permitted under your local laws, the contributors
|
|
// exclude the implied warranties of merchantability, fitness for
|
|
// a particular purpose and non-infringement.
|
|
//
|
|
static const std::string catmark_torus =
|
|
"# This file uses centimeters as units for non-parametric coordinates.\n"
|
|
"\n"
|
|
"v 1.25052 0.517982 0.353553\n"
|
|
"v 0.597239 0.247384 0.353553\n"
|
|
"v 0.597239 0.247384 -0.353553\n"
|
|
"v 1.25052 0.517982 -0.353553\n"
|
|
"v 0.517982 1.25052 0.353553\n"
|
|
"v 0.247384 0.597239 0.353553\n"
|
|
"v 0.247384 0.597239 -0.353553\n"
|
|
"v 0.517982 1.25052 -0.353553\n"
|
|
"v -0.517982 1.25052 0.353553\n"
|
|
"v -0.247384 0.597239 0.353553\n"
|
|
"v -0.247384 0.597239 -0.353553\n"
|
|
"v -0.517982 1.25052 -0.353553\n"
|
|
"v -1.25052 0.517982 0.353553\n"
|
|
"v -0.597239 0.247384 0.353553\n"
|
|
"v -0.597239 0.247384 -0.353553\n"
|
|
"v -1.25052 0.517982 -0.353553\n"
|
|
"v -1.25052 -0.517982 0.353553\n"
|
|
"v -0.597239 -0.247384 0.353553\n"
|
|
"v -0.597239 -0.247384 -0.353553\n"
|
|
"v -1.25052 -0.517982 -0.353553\n"
|
|
"v -0.517982 -1.25052 0.353553\n"
|
|
"v -0.247384 -0.597239 0.353553\n"
|
|
"v -0.247384 -0.597239 -0.353553\n"
|
|
"v -0.517982 -1.25052 -0.353553\n"
|
|
"v 0.517982 -1.25052 0.353553\n"
|
|
"v 0.247384 -0.597239 0.353553\n"
|
|
"v 0.247384 -0.597239 -0.353553\n"
|
|
"v 0.517982 -1.25052 -0.353553\n"
|
|
"v 1.25052 -0.517982 0.353553\n"
|
|
"v 0.597239 -0.247384 0.353553\n"
|
|
"v 0.597239 -0.247384 -0.353553\n"
|
|
"v 1.25052 -0.517982 -0.353553\n"
|
|
"f 5/1/1 6/2/2 2/3/3 1/4/4\n"
|
|
"f 6/5/5 7/6/6 3/7/7 2/8/8\n"
|
|
"f 7/9/9 8/10/10 4/11/11 3/12/12\n"
|
|
"f 8/13/13 5/14/14 1/15/15 4/16/16\n"
|
|
"f 9/17/17 10/18/18 6/19/19 5/20/20\n"
|
|
"f 10/21/21 11/22/22 7/23/23 6/24/24\n"
|
|
"f 11/25/25 12/26/26 8/27/27 7/28/28\n"
|
|
"f 12/29/29 9/30/30 5/31/31 8/32/32\n"
|
|
"f 13/33/33 14/34/34 10/35/35 9/36/36\n"
|
|
"f 14/37/37 15/38/38 11/39/39 10/40/40\n"
|
|
"f 15/41/41 16/42/42 12/43/43 11/44/44\n"
|
|
"f 16/45/45 13/46/46 9/47/47 12/48/48\n"
|
|
"f 17/49/49 18/50/50 14/51/51 13/52/52\n"
|
|
"f 18/53/53 19/54/54 15/55/55 14/56/56\n"
|
|
"f 19/57/57 20/58/58 16/59/59 15/60/60\n"
|
|
"f 20/61/61 17/62/62 13/63/63 16/64/64\n"
|
|
"f 21/65/65 22/66/66 18/67/67 17/68/68\n"
|
|
"f 22/69/69 23/70/70 19/71/71 18/72/72\n"
|
|
"f 23/73/73 24/74/74 20/75/75 19/76/76\n"
|
|
"f 24/77/77 21/78/78 17/79/79 20/80/80\n"
|
|
"f 25/81/81 26/82/82 22/83/83 21/84/84\n"
|
|
"f 26/85/85 27/86/86 23/87/87 22/88/88\n"
|
|
"f 27/89/89 28/90/90 24/91/91 23/92/92\n"
|
|
"f 28/93/93 25/94/94 21/95/95 24/96/96\n"
|
|
"f 29/97/97 30/98/98 26/99/99 25/100/100\n"
|
|
"f 30/101/101 31/102/102 27/103/103 26/104/104\n"
|
|
"f 31/105/105 32/106/106 28/107/107 27/108/108\n"
|
|
"f 32/109/109 29/110/110 25/111/111 28/112/112\n"
|
|
"f 1/113/113 2/114/114 30/115/115 29/116/116\n"
|
|
"f 2/117/117 3/118/118 31/119/119 30/120/120\n"
|
|
"f 3/121/121 4/122/122 32/123/123 31/124/124\n"
|
|
"f 4/125/125 1/126/126 29/127/127 32/128/128\n"
|
|
;
|