Lagrange
Loading...
Searching...
No Matches
test_load_mesh_data.h
1/*
2 * Copyright 2020 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12
13const char* obj_cube_triangles = R"(
14# Blender v2.81 (sub 16) OBJ File: ''
15# www.blender.org
16mtllib material.mtl
17o Cube
18v 1.000000 1.000000 -1.000000
19v 1.000000 -1.000000 -1.000000
20v 1.000000 1.000000 1.000000
21v 1.000000 -1.000000 1.000000
22v -1.000000 1.000000 -1.000000
23v -1.000000 -1.000000 -1.000000
24v -1.000000 1.000000 1.000000
25v -1.000000 -1.000000 1.000000
26vt 0.875000 0.500000
27vt 0.625000 0.750000
28vt 0.625000 0.500000
29vt 0.375000 1.000000
30vt 0.375000 0.750000
31vt 0.625000 0.000000
32vt 0.375000 0.250000
33vt 0.375000 0.000000
34vt 0.375000 0.500000
35vt 0.125000 0.750000
36vt 0.125000 0.500000
37vt 0.625000 0.250000
38vt 0.875000 0.750000
39vt 0.625000 1.000000
40vn 0.0000 1.0000 0.0000
41vn 0.0000 0.0000 1.0000
42vn -1.0000 0.0000 0.0000
43vn 0.0000 -1.0000 0.0000
44vn 1.0000 0.0000 0.0000
45vn 0.0000 0.0000 -1.0000
46usemtl Material
47s off
48f 5/1/1 3/2/1 1/3/1
49f 3/2/2 8/4/2 4/5/2
50f 7/6/3 6/7/3 8/8/3
51f 2/9/4 8/10/4 6/11/4
52f 1/3/5 4/5/5 2/9/5
53f 5/12/6 2/9/6 6/7/6
54f 5/1/1 7/13/1 3/2/1
55f 3/2/2 7/14/2 8/4/2
56f 7/6/3 5/12/3 6/7/3
57f 2/9/4 4/5/4 8/10/4
58f 1/3/5 3/2/5 4/5/5
59f 5/12/6 1/3/6 2/9/6
60
61)";
62
63const char* obj_cube_quads = R"(
64# Blender v2.81 (sub 16) OBJ File: ''
65# www.blender.org
66mtllib material.mtl
67o Cube
68v 1.000000 1.000000 -1.000000
69v 1.000000 -1.000000 -1.000000
70v 1.000000 1.000000 1.000000
71v 1.000000 -1.000000 1.000000
72v -1.000000 1.000000 -1.000000
73v -1.000000 -1.000000 -1.000000
74v -1.000000 1.000000 1.000000
75v -1.000000 -1.000000 1.000000
76vt 0.625000 0.500000
77vt 0.875000 0.500000
78vt 0.875000 0.750000
79vt 0.625000 0.750000
80vt 0.375000 0.750000
81vt 0.625000 1.000000
82vt 0.375000 1.000000
83vt 0.375000 0.000000
84vt 0.625000 0.000000
85vt 0.625000 0.250000
86vt 0.375000 0.250000
87vt 0.125000 0.500000
88vt 0.375000 0.500000
89vt 0.125000 0.750000
90vn 0.0000 1.0000 0.0000
91vn 0.0000 0.0000 1.0000
92vn -1.0000 0.0000 0.0000
93vn 0.0000 -1.0000 0.0000
94vn 1.0000 0.0000 0.0000
95vn 0.0000 0.0000 -1.0000
96usemtl Material
97s off
98f 1/1/1 5/2/1 7/3/1 3/4/1
99f 4/5/2 3/4/2 7/6/2 8/7/2
100f 8/8/3 7/9/3 5/10/3 6/11/3
101f 6/12/4 2/13/4 4/5/4 8/14/4
102f 2/13/5 1/1/5 3/4/5 4/5/5
103f 6/11/6 5/10/6 1/1/6 2/13/6
104
105)";
106
107const char* obj_quad_multiple = R"(
108# Blender v2.81 (sub 16) OBJ File: ''
109# www.blender.org
110mtllib material.mtl
111o Cube
112v 1.000000 1.000000 -1.000000
113v 1.000000 -1.000000 -1.000000
114v 1.000000 1.000000 1.000000
115v 1.000000 -1.000000 1.000000
116v -1.000000 1.000000 -1.000000
117v -1.000000 -1.000000 -1.000000
118v -1.000000 1.000000 1.000000
119v -1.000000 -1.000000 1.000000
120vt 0.625000 0.500000
121vt 0.875000 0.500000
122vt 0.875000 0.750000
123vt 0.625000 0.750000
124vt 0.375000 0.750000
125vt 0.625000 1.000000
126vt 0.375000 1.000000
127vt 0.375000 0.000000
128vt 0.625000 0.000000
129vt 0.625000 0.250000
130vt 0.375000 0.250000
131vt 0.125000 0.500000
132vt 0.375000 0.500000
133vt 0.125000 0.750000
134vn 0.0000 1.0000 0.0000
135vn 0.0000 0.0000 1.0000
136vn -1.0000 0.0000 0.0000
137vn 0.0000 -1.0000 0.0000
138vn 1.0000 0.0000 0.0000
139vn 0.0000 0.0000 -1.0000
140usemtl Material
141s off
142f 1/1/1 5/2/1 7/3/1 3/4/1
143f 4/5/2 3/4/2 7/6/2 8/7/2
144f 8/8/3 7/9/3 5/10/3 6/11/3
145f 6/12/4 2/13/4 4/5/4 8/14/4
146f 2/13/5 1/1/5 3/4/5 4/5/5
147f 6/11/6 5/10/6 1/1/6 2/13/6
148o Plane
149v -1.000000 0.000000 1.000000
150v 1.000000 0.000000 1.000000
151v -1.000000 0.000000 -1.000000
152v 1.000000 0.000000 -1.000000
153vt 0.000000 0.000000
154vt 1.000000 0.000000
155vt 1.000000 1.000000
156vt 0.000000 1.000000
157vn 0.0000 1.0000 0.0000
158usemtl None
159s off
160f 9/15/7 10/16/7 12/17/7 11/18/7
161
162)";
163
164const char* obj_mixed_plane = R"(
165# Blender v2.81 (sub 16) OBJ File: ''
166# www.blender.org
167mtllib material.mtl
168o PlaneMixed
169v -1.000000 0.000000 1.000000
170v 1.000000 0.000000 1.000000
171v -1.000000 0.000000 -1.000000
172v 1.000000 0.000000 -1.000000
173vt 0.000000 0.000000
174vt 1.000000 0.000000
175vt 1.000000 1.000000
176vt 0.000000 1.000000
177vn 0.0000 1.0000 0.0000
178usemtl None
179s off
180f 1/1/1 2/2/1 4/3/1 3/4/1
181f 1/1/1 2/2/1 4/3/1
182f 2/2/1 4/3/1 3/4/1
183
184)";
185
186const char* obj_mixed_plane_vertex_only = R"(
187v -1.000000 0.000000 1.000000
188v 1.000000 0.000000 1.000000
189v -1.000000 0.000000 -1.000000
190v 1.000000 0.000000 -1.000000
191f 1 2 4 3
192f 1 2 4
193f 2 4 3
194)";
195
196const char* mtl_material = R"(
197# Blender MTL File: 'None'
198# Material Count: 1
199
200newmtl Material
201Ns 323.999994
202Ka 1.000000 1.000000 1.000000
203Kd 0.800000 0.800000 0.800000
204Ks 0.500000 0.500000 0.500000
205Ke 0.000000 0.000000 0.000000
206Ni 1.450000
207d 1.000000
208illum 2
209
210)";