1b6b8afc |
1 | puts "========" |
2 | puts "0029303: Data Exchange - add RWObj_CafWriter tool for wavefront OBJ file" |
3 | puts "Write as1 STEP model into OBJ file" |
4 | puts "========" |
5 | |
6 | pload XDE OCAF MODELING VISUALIZATION |
7 | Close D -silent |
8 | Close D1 -silent |
9 | ReadStep D1 [locate_data_file as1-oc-214-mat.stp] |
10 | XGetOneShape ss D1 |
11 | incmesh ss 1.0 |
12 | |
13 | set aTmpObjBase "${imagedir}/${casename}_tmp" |
14 | set aTmpObj "${aTmpObjBase}.obj" |
15 | lappend occ_tmp_files $aTmpObj |
16 | lappend occ_tmp_files "${aTmpObjBase}.mtl" |
17 | lappend occ_tmp_files "${aTmpObjBase}_textures" |
18 | |
19 | WriteObj D1 "$aTmpObj" |
20 | |
21 | ReadObj D "$aTmpObj" |
22 | XGetOneShape s D |
23 | checknbshapes s -face 18 -compound 2 |
24 | |
25 | vclear |
26 | vinit View1 |
27 | XDisplay -dispMode 1 D |
28 | vaxo |
29 | vfit |
30 | vdump ${imagedir}/${casename}.png |