0029768: Visualization, TKOpenGl - structure is entirely clipped by suppressed clipping
[occt.git] / tests / bugs / vis / bug25132
CommitLineData
4769a395 1puts "============"
2puts "OCC25132"
3puts "============"
4puts ""
5####################################################################################
6# Visualization - Capping algorithm not working sometimes
7####################################################################################
8
9vinit View1
10vsetdispmode 1
11vclipplane create pln1
12vclipplane change pln1 equation 0 1 0 0
13vclipplane change pln1 capping on
14vclipplane set pln1 view Driver1/Viewer1/View1
15
16# Capping should be enabled for the solid with a bounding shell with Closed flag not set
17restore [locate_data_file OCC25132-flight_solid.brep] fs
18vdisplay fs
19vfit
20vdump $imagedir/${casename}_flight_solid.png
21vremove fs
22
23# Capping should be enabled for the solid with cavities
24restore [locate_data_file OCC25132-solid_with_cavities.brep] sc
25vdisplay sc
26vfit
27vdump $imagedir/${casename}_solid_with_cavities.png
28vremove sc
29
30# Capping should display a non-manifold solid with an internal open shell correctly
31restore [locate_data_file OCC25132-Partition_1.brep] p1
32vdisplay p1
33vfit
34vdump $imagedir/${casename}_Partition_1.png