0029412: Huge Memory leak since I upgraded to OC 6.9.0
[occt.git] / tests / bugs / vis / bug27821
1 puts "========"
2 puts "AIS_Shape - displaying TopoDS_Face with NULL surface (test case checks there is no crash)"
3 puts "========"
4
5 pload MODELING VISUALIZATION
6
7 restore [locate_data_file bug27821_nullsurf.brep] s
8 explode s F
9
10 # check that sprops and vprops do not crash on NULL surface
11 sprops s
12 vprops s
13
14 # check that AIS_Shape does not crash on NULL surface
15 vclear
16 vinit View1
17 vaxo
18 vdisplay -noupdate -dispMode 0 s
19 vaspects s -subshapes s_1 -setcolor RED
20 vdisplay -noupdate -dispMode 1 s
21 vshowfaceboundary s 1 255 0 0 2
22 vfit
23 vselect 250 250
24
25 vdump $imagedir/${casename}.png