mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
18 lines
504 B
Plaintext
18 lines
504 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
|
|
ReadStep D0 [locate_data_file screw.step]
|
|
XGetOneShape ss D0
|
|
incmesh ss 1.0
|
|
|
|
set aGltfFile1 "${imagedir}/${casename}_tmp1.glb"
|
|
set aGltfFile2 "${imagedir}/${casename}_tmp2.glb"
|
|
|
|
WriteGltf D0 "$aGltfFile1" -draco on -mergefaces
|
|
WriteGltf D0 "$aGltfFile2" -draco on
|
|
|
|
ReadGltf D1 "$aGltfFile1"
|
|
ReadGltf D "$aGltfFile2" |