0029303: Data Exchange - add RWObj_CafWriter tool for wavefront OBJ file
[occt.git] / tests / de_mesh / obj_write / ball
1 puts "========"
2 puts "0029303: Data Exchange - add RWObj_CafWriter tool for wavefront OBJ file"
3 puts "Write B-Rep model into OBJ file"
4 puts "========"
5
6 pload XDE OCAF MODELING VISUALIZATION
7 Close D -silent
8
9 restore [locate_data_file Ball.brep] b
10 incmesh b 0.1
11
12 set aTmpObjBase "${imagedir}/${casename}_tmp"
13 set aTmpObj "${aTmpObjBase}.obj"
14 lappend occ_tmp_files $aTmpObj
15 lappend occ_tmp_files "${aTmpObjBase}.mtl"
16
17 writeobj b "$aTmpObj"
18
19 ReadObj D "$aTmpObj"
20 XGetOneShape s D
21 checknbshapes s -face 2 -compound 2
22
23 vclear
24 vinit View1
25 XDisplay -dispMode 1 D
26 vaxo
27 vfit
28 vdump ${imagedir}/${casename}.png