We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e7c74 commit 86d12d2Copy full SHA for 86d12d2
test/runtests.jl
@@ -150,6 +150,24 @@ end
150
@test typeof(newply["test"]["listprop"][1]) == Vector{proptype}
151
@test newply["test"]["listprop"] == listprop
152
end
153
+
154
+ @testset "Batched writes for homogenous properties" begin
155
+ ply = Ply()
156
+ nverts = 1000
157
+ x, y, z = [rand(nverts) for _ = 1:3]
158
+ push!(ply, PlyElement("vertex",
159
+ ArrayProperty("x", x),
160
+ ArrayProperty("y", y),
161
+ ArrayProperty("z", z)))
162
+ io = IOBuffer()
163
+ save_ply(ply, io)
164
+ seek(io, 0)
165
+ newply = load_ply(io)
166
+ @test length(newply) == 1
167
+ @test newply["vertex"]["x"] == x
168
+ @test newply["vertex"]["y"] == y
169
+ @test newply["vertex"]["z"] == z
170
+ end
171
172
173
0 commit comments