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