2 puts "0029303: Data Exchange - add RWObj_CafWriter tool for wavefront OBJ file"
3 puts "Write as1 STEP model into OBJ file"
6 pload XDE OCAF MODELING VISUALIZATION
9 ReadStep D1 [locate_data_file as1-oc-214-mat.stp]
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"
19 WriteObj D1 "$aTmpObj"
23 checknbshapes s -face 18 -compound 2
27 XDisplay -dispMode 1 D
30 vdump ${imagedir}/${casename}.png