0029312: Using OBB to speed up Boolean Operations
[occt.git] / tests / perf / modalg / bug24751_2
1 puts "========="
2 puts "OCC24751"
3 puts "========="
4 puts ""
5 ###########################################################
6 # Performance improvements in the Edge/Edge intersection algorithm
7 ###########################################################
8
9 pload QAcommands
10
11 # enable OBB usage in BOP
12 buseobb 1
13
14 dchrono h restart
15
16 restore [locate_data_file bug24696_cx_e1200_nurbs.brep] cx
17
18 ###------------------####
19 trotate cx 0 0 0 0 1 1 45
20 ###------------------####
21
22 bclearobjects
23 bcleartools
24
25 set edges [explode cx e]
26 set nbe [llength $edges]
27 for {set i 1} {$i <= $nbe} {incr i} {baddobjects cx_$i}
28 bfillds
29 bbuild result
30
31 dchrono h stop counter EdgeIntersection
32
33 buseobb 0
34
35 checkview -display result -2d -path ${imagedir}/${test_image}.png