0032107: Data Exchange, RWGltf_CafReader - reading glTF document back loses sharing
[occt.git] / tests / de_mesh / gltf_write / as1
1 puts "========"
2 puts "0032530: Data Exchange, RWGltf_CafWriter - add option merging Faces within the Part"
3 puts "========"
4
5 Close D0 -silent
6 ReadStep D0 [locate_data_file as1-oc-214-mat.stp]
7 XGetOneShape ss D0
8 incmesh ss 1.0
9
10 set aTmpGltf1 "${imagedir}/${casename}_tmp1.glb"
11 set aTmpGltf2 "${imagedir}/${casename}_tmp2.glb"
12 lappend occ_tmp_files $aTmpGltf1
13 lappend occ_tmp_files $aTmpGltf2
14
15 WriteGltf D0 "$aTmpGltf1"
16 WriteGltf D0 "$aTmpGltf2" -mergeFaces
17
18 ReadGltf D1 "$aTmpGltf1"
19 XGetOneShape s1 D1
20 checknbshapes s1 -face 53 -compound 28
21
22 ReadGltf D "$aTmpGltf2"
23 XGetOneShape s2 D
24 checknbshapes s2 -face 5 -compound 10