809eca9d |
1 | puts "================" |
2 | puts "OCC22670" |
3 | puts "================" |
4 | puts "" |
5 | ####################################################################################### |
6 | # Regression in the method RWStl::WriteAscii |
7 | ####################################################################################### |
8 | # |
9 | puts "================" |
10 | puts "OCC22866" |
11 | puts "================" |
12 | puts "" |
13 | ####################################################################################### |
14 | # Now it is not possible to mesh a shape in parallel mode during the export in STL |
15 | ####################################################################################### |
16 | # |
17 | |
18 | set BugNumber OCC22670 |
19 | |
5d1833ef |
20 | set filepath [locate_data_file OMF6391_box.stl] |
4c4420df |
21 | if { [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 |
37 | checkprops result -s 600 |
38 | checkshape result |
5747059b |
39 | checkview -display result -3d -path ${imagedir}/${test_image}.png |