0032612: Data Exchange, RWGltf_CafReader - lost hierarchy of two nested compounds
[occt.git] / tests / de_mesh / gltf_write / helmetglb
1 puts "========"
2 puts "0031703: Data Exchange, RWGltf_CafWriter - add option putting textures inside GLB file as alternative to external references"
3 puts "Test case exporting glTF model into GLB file."
4 puts "========"
5
6 Close D1 -silent
7 ReadGltf D1 [locate_data_file bug30691_DamagedHelmet.gltf]
8
9 set aTmpGltfBase "${imagedir}/${casename}_tmp"
10 set aTmpGltf "${aTmpGltfBase}.glb"
11 lappend occ_tmp_files $aTmpGltf
12 lappend occ_tmp_files "${aTmpGltfBase}.bin"
13 lappend occ_tmp_files "${aTmpGltfBase}_textures"
14
15 WriteGltf D1 "$aTmpGltf"
16
17 ReadGltf D "$aTmpGltf"
18 XGetOneShape s D
19 checknbshapes s -face 1 -compound 0
20 checktrinfo s -tri 15452 -nod 14556
21
22 set THE_REF_DUMP {
23 INSTANCE FACE 0:1:1:1 (refers to 0:1:1:2) "node_damagedHelmet_-6514"
24 PART FACE 0:1:1:2 "mesh_helmet_LP_13930damagedHelmet"
25
26 Free Shapes: 1
27 INSTANCE FACE  0:1:1:1 (refers to 0:1:1:2) "node_damagedHelmet_-6514"
28 }
29 checkXDump D $THE_REF_DUMP