49259460 |
1 | puts "========" |
2 | puts "0032061: Data Exchange, RWGltf_CafWriter - exporting XBF file produces an invalid glTF document" |
3 | puts "========" |
4 | |
5 | set aTmpGltf "${imagedir}/${casename}_tmp.glb" |
6 | pload MODELING OCAF XDE VISUALIZATION |
7 | |
8 | # create a document with one shape without triangulation |
9 | box b1 0 0 0 1 2 3 |
10 | box b2 3 3 3 1 2 3 |
11 | compound ce |
12 | compound b1 b2 ce cc |
13 | incmesh b2 1 |
14 | XNewDoc DD |
16f9b46d |
15 | XAutoNaming DD 0 |
49259460 |
16 | XAddShape DD cc 1 |
17 | WriteGltf DD "$aTmpGltf" |
18 | Close DD |
19 | |
20 | ReadGltf D "$aTmpGltf" |
21 | XGetOneShape s D |
16f9b46d |
22 | checknbshapes s -face 6 -compound 2 |
23 | |
24 | set THE_REF_DUMP { |
25 | ASSEMBLY COMPOUND 0:1:1:1 "empty_tmp.glb" |
26 | INSTANCE COMPOUND 0:1:1:1:1 (refers to 0:1:1:2) "Compound" |
27 | PART COMPOUND 0:1:1:2 "Compound" |
28 | |
29 | Free Shapes: 1 |
30 | ASSEMBLY COMPOUND 0:1:1:1 "empty_tmp.glb" |
31 | } |
32 | checkXDump D $THE_REF_DUMP |