0033084: Visualization - Cylindrical prism is selectable only by its base when extrud...
[occt.git] / tests / vselect / bugs / bug33084
1 puts "============="
2 puts "0033084: Visualization - Cylindrical prism is selectable only by its base when extruded in some directions"
3 puts "============="
4
5 pload MODELING VISUALIZATION
6 profile p1 c 1 360 ww
7 mkplane f p1 
8 prism pr1 f 0 0 2
9 prism pr2 f 0 0 -2
10 ttranslate pr1 1 1 1
11 ttranslate pr2 -1 -1 -1
12
13 vinit View1
14 vclear
15 vaxo
16 vdisplay -dispmode 1 pr1 pr2
17 vfit
18 vsensdis
19
20 vdump $imagedir/${casename}_prism_sensitive_prs.png
21
22 vmoveto 130 330
23 if { ![string match "*Select3D_SensitiveCylinder*" [vstate -entities]] } { puts "Error: cylinder should be detected" }
24
25 vmoveto 270 130
26 if { ![string match "*Select3D_SensitiveCylinder*" [vstate -entities]] } { puts "Error: cylinder should be detected" }