tests/model: comments: specs only
This commit is contained in:
1 parent
5f7f6005f6
commit
fe7566cbba
37 files changed
+72
-440
No files matched your search
@@ -1,8 +1,5 @@
|
||||
-- model/robloxmesh with a Draco-compressed COREMESH (6.00 / 7.00, COREMESH v2): draco_encoder streams of a UV sphere
|
||||
-- (normals, uvs) and a coloured PLY at three compression levels, wrapped in the chunk layout. Positions, normals,
|
||||
-- uvs, colours and indices match libdraco's decode byte for byte, and the scene equals the decode of the same mesh
|
||||
-- written with a plain COREMESH v1; corrupt streams fail without throwing (fuzz). Fixtures:
|
||||
-- tools/fixtures/robloxmesh_draco.py.
|
||||
-- model/robloxmesh Draco COREMESH v2 tests: draco_encoder streams against libdraco's decode, byte for byte.
|
||||
-- Fixtures: tools/fixtures/robloxmesh_draco.py.
|
||||
local T = require("@tests/T")
|
||||
local RobloxMesh = require("@rosetta/model/robloxmesh")
|
||||
local Bytes = require("@rosetta/core/Bytes")
|
||||
@@ -43,7 +40,6 @@ for _, c in Cases do
|
||||
t:eq(Crc32.of(a[name].data), Crc32.of(pp.attributes[name].data), c.name .. ": " .. name .. " like COREMESH v1")
|
||||
end
|
||||
t:eq(Crc32.of(prim.indices.data), Crc32.of(pp.indices.data), c.name .. ": indices like COREMESH v1")
|
||||
-- written back as 2.00 and read again
|
||||
local back = assert(decode(buffer.tostring(assert(RobloxMesh.encode(scene)))))
|
||||
t:eq(back.meshes[1].primitives[1].indices.count, c.faces * 3, c.name .. ": round trip")
|
||||
if #c.data < 3000 then
|
||||
|
||||
Reference in new issue
Block a user