@@ -166,11 +166,11 @@ end
166
166
@test msh[:materials ][" Material" ][" ambient" ] === Vec3f (0.0 , 0.0 , 0.0 )
167
167
end
168
168
169
- msh = Mesh ( load (joinpath (tf, " cube_uv.obj" ) ))
169
+ msh = load (joinpath (tf, " cube_uv.obj" ))
170
170
@test typeof (msh. uv) == Vector{Vec{2 ,Float32}}
171
171
@test length (msh. uv) == 8
172
172
173
- msh = Mesh ( load (joinpath (tf, " cube_uvw.obj" ) ))
173
+ msh = load (joinpath (tf, " cube_uvw.obj" ))
174
174
@test typeof (msh. uv) == Vector{Vec{3 ,Float32}}
175
175
@test length (msh. uv) == 8
176
176
187
187
@test normals (msh) isa FaceView
188
188
189
189
# test correctness of reordered vertices
190
- msh2 = expand_faceviews (msh)
190
+ msh2 = expand_faceviews (Mesh ( msh) )
191
191
@test ! (normals (msh2) isa FaceView)
192
192
@test length (faces (msh2)) == 1
193
193
@test coordinates (coordinates (msh2)[faces (msh2)[1 ]]) == (Vec3f (0 ), Vec3f (0.062805 , 0.591207 , 0.902102 ), Vec3f (0.058382 , 0.577691 , 0.904429 ))
197
197
mktempdir () do tmpdir
198
198
save (joinpath (tmpdir, " test.obj" ), msh)
199
199
msh1 = load (joinpath (tmpdir, " test.obj" ))
200
- msh3 = expand_faceviews (msh1) # should be unnecessary atm
200
+ msh3 = expand_faceviews (Mesh ( msh1) ) # should be unnecessary atm
201
201
@test length (faces (msh2)) == length (faces (msh3))
202
202
for (f1, f2) in zip (faces (msh2), faces (msh3))
203
203
@test coordinates (msh2)[f1] == coordinates (msh3)[f2]
0 commit comments