0030969: Coding Rules - refactor Quantity_Color.cxx color table definition
[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 vaspects s -unsetFaceBoundary
22 vaspects s -setFaceBoundaryDraw 1 -setFaceBoundaryColor RED -setFaceBoundaryWidth 2
23 vfit
24 vselect 250 250
25
26 vdump $imagedir/${casename}.png