0031517: Data Exchange - wrong result of ShapeTool::UpdateAssemblies()
[occt.git] / tests / bugs / xde / bug22670_2
CommitLineData
809eca9d 1puts "================"
2puts "OCC22670"
3puts "================"
4puts ""
5#######################################################################################
6# Regression in the method RWStl::WriteAscii
7#######################################################################################
8#
9puts "================"
10puts "OCC22866"
11puts "================"
12puts ""
13#######################################################################################
14# Now it is not possible to mesh a shape in parallel mode during the export in STL
15#######################################################################################
16#
17
18set BugNumber OCC22670
19
5d1833ef 20set filepath [locate_data_file OMF6391_box.stl]
4c4420df 21if { [catch { readstl res_mesh $filepath -brep } catch_result] } {
809eca9d 22 puts "Faulty ${BugNumber}: here is reading problem"
23} else {
809eca9d 24 set aFile $imagedir/${test_image}.stl
25 catch {exec rm -f ${aFile}}
b9c1e440 26
27 incmesh res_mesh 0.1
809eca9d 28
29 set anASCIImode 0
b9c1e440 30 writestl res_mesh ${aFile} ${anASCIImode}
809eca9d 31 catch {exec chmod 777 ${aFile}}
32
4c4420df 33 readstl result ${aFile} -brep
809eca9d 34
a4eba920 35 checknbshapes result -vertex 8 -edge 18 -wire 12 -face 12 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 51
809eca9d 36}
58cf74e0 37checkprops result -s 600
38checkshape result
5747059b 39checkview -display result -3d -path ${imagedir}/${test_image}.png