1 //
2 //   Copyright 2013 Pixar
3 //
4 //   Licensed under the Apache License, Version 2.0 (the "Apache License")
5 //   with the following modification; you may not use this file except in
6 //   compliance with the Apache License and the following modification to it:
7 //   Section 6. Trademarks. is deleted and replaced with:
8 //
9 //   6. Trademarks. This License does not grant permission to use the trade
10 //      names, trademarks, service marks, or product names of the Licensor
11 //      and its affiliates, except as required to comply with Section 4(c) of
12 //      the License and to reproduce the content of the NOTICE file.
13 //
14 //   You may obtain a copy of the Apache License at
15 //
16 //       http://www.apache.org/licenses/LICENSE-2.0
17 //
18 //   Unless required by applicable law or agreed to in writing, software
19 //   distributed under the Apache License with the above modification is
20 //   distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 //   KIND, either express or implied. See the Apache License for the specific
22 //   language governing permissions and limitations under the Apache License.
23 //
24 
25 static const std::string loop_triangle_edgecorner =
26 "#\n"
27 "#   Test cases for BoundaryInterpolation option \"edge and corner\":\n"
28 "#\n"
29 "t interpolateboundary 1/0/0 1\n"
30 "\n"
31 "#\n"
32 "#   Shape 1:  top-left\n"
33 "#\n"
34 "v -1.250  0.000  0.250\n"
35 "v -1.000  0.000  0.250\n"
36 "v -0.750  0.000  0.250\n"
37 "v -0.500  0.000  0.250\n"
38 "v -0.250  0.000  0.250\n"
39 "v -1.125  0.000  0.500\n"
40 "v -0.875  0.000  0.500\n"
41 "v -0.625  0.000  0.500\n"
42 "v -0.375  0.000  0.500\n"
43 "v -1.000  0.000  0.750\n"
44 "v -0.750  0.000  0.750\n"
45 "v -0.500  0.000  0.750\n"
46 "v -0.875  0.000  1.000\n"
47 "v -0.625  0.000  1.000\n"
48 "v -0.750  0.000  1.250\n"
49 "\n"
50 "vt  0.000  0.600\n"
51 "vt  0.100  0.600\n"
52 "vt  0.200  0.600\n"
53 "vt  0.300  0.600\n"
54 "vt  0.400  0.600\n"
55 "vt  0.050  0.700\n"
56 "vt  0.150  0.700\n"
57 "vt  0.250  0.700\n"
58 "vt  0.350  0.700\n"
59 "vt  0.100  0.800\n"
60 "vt  0.200  0.800\n"
61 "vt  0.300  0.800\n"
62 "vt  0.150  0.900\n"
63 "vt  0.250  0.900\n"
64 "vt  0.200  1.000\n"
65 "\n"
66 "f   1/1     2/2     6/6  \n"
67 "f   2/2     3/3     7/7  \n"
68 "f   3/3     4/4     8/8  \n"
69 "f   4/4     5/5     9/9  \n"
70 "f   2/2     7/7     6/6  \n"
71 "f   3/3     8/8     7/7  \n"
72 "f   4/4     9/9     8/8  \n"
73 "f   6/6     7/7    10/10 \n"
74 "f   7/7     8/8    11/11 \n"
75 "f   8/8     9/9    12/12 \n"
76 "f   7/7    11/11   10/10 \n"
77 "f   8/8    12/12   11/11 \n"
78 "f  10/10   11/11   13/13 \n"
79 "f  11/11   12/12   14/14 \n"
80 "f  11/11   14/14   13/13 \n"
81 "f  13/13   14/14   15/15 \n"
82 "\n"
83 "#\n"
84 "#   Shape 2:  top-right\n"
85 "#\n"
86 "v  0.250  0.000  0.250\n"
87 "v  0.500  0.000  0.250\n"
88 "v  0.750 -0.250  0.250\n"
89 "v  1.000  0.000  0.250\n"
90 "v  1.250  0.000  0.250\n"
91 "v  0.375  0.000  0.500\n"
92 "v  0.625 -0.250  0.500\n"
93 "v  0.875 -0.250  0.500\n"
94 "v  1.125  0.000  0.500\n"
95 "v  0.500 -0.250  0.750\n"
96 "v  0.750 -0.250  0.750\n"
97 "v  1.000 -0.250  0.750\n"
98 "v  0.625  0.000  1.000\n"
99 "v  0.875  0.000  1.000\n"
100 "v  0.750  0.000  1.250\n"
101 "\n"
102 "vt  0.600  0.600\n"
103 "vt  0.700  0.600\n"
104 "vt  0.800  0.600\n"
105 "vt  0.900  0.600\n"
106 "vt  1.000  0.600\n"
107 "vt  0.650  0.700\n"
108 "vt  0.750  0.700\n"
109 "vt  0.850  0.700\n"
110 "vt  0.950  0.700\n"
111 "vt  0.700  0.800\n"
112 "vt  0.800  0.800\n"
113 "vt  0.900  0.800\n"
114 "vt  0.750  0.900\n"
115 "vt  0.850  0.900\n"
116 "vt  0.800  1.000\n"
117 "\n"
118 "f  16/16   17/17   21/21 \n"
119 "f  17/17   18/18   22/22 \n"
120 "f  18/18   19/19   23/23 \n"
121 "f  19/19   20/20   24/24 \n"
122 "f  17/17   22/22   21/21 \n"
123 "f  18/18   23/23   22/22 \n"
124 "f  19/19   24/24   23/23 \n"
125 "f  21/21   22/22   25/25 \n"
126 "f  22/22   23/23   26/26 \n"
127 "f  23/23   24/24   27/27 \n"
128 "f  22/22   26/26   25/25 \n"
129 "f  23/23   27/27   26/26 \n"
130 "f  25/25   26/26   28/28 \n"
131 "f  26/26   27/27   29/29 \n"
132 "f  26/26   29/29   28/28 \n"
133 "f  28/28   29/29   30/30 \n"
134 "\n"
135 "#\n"
136 "#   Shape 3:  bottom-left\n"
137 "#\n"
138 "v -1.250  0.000 -1.250\n"
139 "v -1.000 -0.250 -1.250\n"
140 "v -0.750 -0.250 -1.250\n"
141 "v -0.500 -0.250 -1.250\n"
142 "v -0.250  0.000 -1.250\n"
143 "v -1.125 -0.250 -1.000\n"
144 "v -0.875  0.000 -1.000\n"
145 "v -0.625  0.000 -1.000\n"
146 "v -0.375 -0.250 -1.000\n"
147 "v -1.000 -0.250 -0.750\n"
148 "v -0.750  0.000 -0.750\n"
149 "v -0.500 -0.250 -0.750\n"
150 "v -0.875 -0.250 -0.500\n"
151 "v -0.625 -0.250 -0.500\n"
152 "v -0.750  0.000 -0.250\n"
153 "\n"
154 "vt  0.000  0.000\n"
155 "vt  0.100  0.000\n"
156 "vt  0.200  0.000\n"
157 "vt  0.300  0.000\n"
158 "vt  0.400  0.000\n"
159 "vt  0.050  0.100\n"
160 "vt  0.150  0.100\n"
161 "vt  0.250  0.100\n"
162 "vt  0.350  0.100\n"
163 "vt  0.100  0.200\n"
164 "vt  0.200  0.200\n"
165 "vt  0.300  0.200\n"
166 "vt  0.150  0.300\n"
167 "vt  0.250  0.300\n"
168 "vt  0.200  0.400\n"
169 "\n"
170 "f  31/31   32/32   36/36 \n"
171 "f  32/32   33/33   37/37 \n"
172 "f  33/33   34/34   38/38 \n"
173 "f  34/34   35/35   39/39 \n"
174 "f  32/32   37/37   36/36 \n"
175 "f  33/33   38/38   37/37 \n"
176 "f  34/34   39/39   38/38 \n"
177 "f  36/36   37/37   40/40 \n"
178 "f  37/37   38/38   41/41 \n"
179 "f  38/38   39/39   42/42 \n"
180 "f  37/37   41/41   40/40 \n"
181 "f  38/38   42/42   41/41 \n"
182 "f  40/40   41/41   43/43 \n"
183 "f  41/41   42/42   44/44 \n"
184 "f  41/41   44/44   43/43 \n"
185 "f  43/43   44/44   45/45 \n"
186 "\n"
187 "#\n"
188 "#   Shape 4:  bottom-right\n"
189 "#\n"
190 "v  0.250  0.000 -1.250\n"
191 "v  1.250  0.000 -1.250\n"
192 "v  0.750  0.000 -0.250\n"
193 "\n"
194 "vt  0.600  0.000\n"
195 "vt  1.000  0.000\n"
196 "vt  0.800  0.400\n"
197 "\n"
198 "f  46/46   47/47   48/48 \n"
199 "\n"
200 ;
201