mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
21 lines
565 B
Plaintext
21 lines
565 B
Plaintext
puts "========"
|
|
puts "0032867: Data Exchange - Implement Draco compression for writing glTF"
|
|
puts "Test case exporting model into glb (binary glTF) file."
|
|
puts "========"
|
|
|
|
Close D0 -silent
|
|
ReadGltf D0 [locate_data_file bug32867_test.glb]
|
|
|
|
set aGltfFile1 "${imagedir}/${casename}_tmp1.glb"
|
|
set aGltfFile2 "${imagedir}/${casename}_tmp2.glb"
|
|
|
|
WriteGltf D0 "$aGltfFile1" -draco on
|
|
WriteGltf D0 "$aGltfFile2" -draco on -mergefaces
|
|
|
|
ReadGltf D1 "$aGltfFile1"
|
|
XGetOneShape s1 D1
|
|
checktrinfo s1 -tri 9366
|
|
ReadGltf D "$aGltfFile2"
|
|
XGetOneShape s2 D
|
|
checktrinfo s2 -tri 9366
|