mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 12:07:41 +08:00
RWGltf_CafWriter::ToEmbedTexturesInGlb() - added option embedding textures into GLB file enabled by default. Fixed uninitialized class field RWGltf_CafWriter::myIsForcedUVExport. Image_Texture::MimeType() - added method returning MIME type based on image file format. Image_Texture::WriteImage() - added method writing image into stream.
21 lines
634 B
Plaintext
21 lines
634 B
Plaintext
puts "========"
|
|
puts "0031703: Data Exchange, RWGltf_CafWriter - add option putting textures inside GLB file as alternative to external references"
|
|
puts "Test case exporting glTF model into GLB file."
|
|
puts "========"
|
|
|
|
catch { Close D1 }
|
|
ReadGltf D1 [locate_data_file bug30691_Lantern.glb]
|
|
|
|
set aTmpGltfBase "${imagedir}/${casename}_tmp"
|
|
set aTmpGltf "${aTmpGltfBase}.glb"
|
|
lappend occ_tmp_files $aTmpGltf
|
|
lappend occ_tmp_files "${aTmpGltfBase}.bin"
|
|
lappend occ_tmp_files "${aTmpGltfBase}_textures"
|
|
|
|
WriteGltf D1 "$aTmpGltf"
|
|
|
|
ReadGltf D "$aTmpGltf"
|
|
XGetOneShape s D
|
|
checknbshapes s -face 3 -compound 1
|
|
checktrinfo s -tri 5394 -nod 4145
|