Adjusting test unstable testing cases in Debug mode for current state of OCCT
[occt.git] / tests / perf / bspline / intersect
CommitLineData
11fca7c1 1# Test performance of intersection of several NURBS surfaces
2
429a6c4d 3if { [regexp {Debug mode} [dversion]] } {
4 cpulimit 1000
5} else {
6 cpulimit 500
7}
8
11fca7c1 9bsplinesurf surf1 \
103 4 0 4 1 1 2 1 3 4 \
113 4 0 4 1 1 2 1 3 4 \
120 0 0 1 2 0 0 1 3 0 15 1 5 0 15 1 7 0 0 1 10 0 0 1 \
130 2 0 1 1 3 0 1 4 2 15 1 6 3 15 1 8 2 0 1 10 3 0 1 \
140 4 0 1 3 4 0 1 4 3 15 1 5 3 15 1 7 4 0 1 10 5 0 1 \
150 6 0 1 3 6 0 1 4 6 15 1 5 6 15 1 8 5 0 1 10 7 0 1 \
160 8 0 1 2 8 0 1 4 8 15 1 6 8 15 1 7 7 0 1 10 8 0 1 \
170 10 0 1 2 10 0 1 4 10 15 1 6 10 15 1 7 10 0 1 10 10 0 1
18
19bsplinesurf surf2 \
203 4 0 4 1 1 2 1 3 4 \
213 4 0 4 1 1 2 1 3 4 \
220 0 10 1 2 0 5 1 3 0 4 1 5 0 6 1 7 0 10 1 10 0 5 1 \
230 2 5 1 1 3 7 1 4 2 7 1 6 3 4 1 8 2 4 4 10 3 7 1 \
240 4 8 1 3 4 10 1 4 3 6 1 5 3 8 1 7 4 7 4 10 5 5 1 \
250 6 8 1 3 6 10 1 4 6 6 1 5 6 4 1 8 5 7 4 10 7 10 1 \
260 8 6 1 2 8 5 1 4 8 8 1 6 8 8 1 7 7 3 4 10 8 5 1 \
270 10 8 1 2 10 10 1 4 10 6 1 6 10 5 1 7 10 3 1 10 10 10 1
28
29bsplinesurf surf3 \
302 7 0 3 1 1 2 1 3 1 4 1 5 1 6 3 \
312 3 0 3 1 1 2 3 \
32-20 20 10 1 20 20 10 1 20 -20 10 1 -20 -20 10 1 -10 10 10 1 10 10 10 1 10 -10 10 1 -10 -10 10 1 \
33-10 10 5 1 15 15 5 1 10 -10 5 1 -15 -15 5 1 -5 5 5 1 5 5 5 1 5 -5 5 1 -5 -5 5 1 \
34-15 15 -5 1 10 10 -5 1 15 -15 -5 1 -10 -10 -5 1 -5 5 -5 1 5 5 -5 1 5 -5 -5 1 -5 -5 -5 1 \
35-20 20 -10 1 20 20 -10 1 20 -20 -10 1 -20 -20 -10 1 -10 10 -10 1 10 10 -10 1 10 -10 -10 1 -10 -10 -10 1
36
37bsplinesurf surf4 \
384 5 0 5 2 1 4 1 5 1 6 5 \
394 5 0 5 1 1 4 1 6 1 7 5 \
40 10 20 -20 1 9 19 -19 1 8 18 -18 1 7 17 -17 1 7 17 17 1 8 18 18 1 9 19 19 1 10 20 20 1 \
41 10 -20 20 1 9 -19 19 1 8 -18 18 1 7 -17 17 1 7 -17 -17 1 8 -18 -18 1 9 -19 -19 1 10 -20 -20 1 \
42 10 10 -10 1 9 9 -9 1 8 8 -8 1 7 7 -7 1 7 7 7 1 8 8 8 1 9 9 9 1 10 10 10 1 \
43 10 -10 10 1 9 -9 9 1 8 -8 8 1 7 -7 7 1 7 -7 -7 1 8 -8 -8 1 9 -9 -9 1 10 -10 -10 1 \
44-10 20 -20 1 -9 19 -19 1 -8 18 -18 1 -7 17 -17 1 -7 17 17 1 -8 18 18 1 -9 19 19 1 -10 20 20 1 \
45-10 -20 20 1 -9 -19 19 1 -8 -18 18 1 -7 -17 17 1 -7 -17 -17 1 -8 -18 -18 1 -9 -19 -19 1 -10 -20 -20 1 \
46-10 10 -10 1 -9 9 -9 1 -8 8 -8 1 -7 7 -7 1 -7 7 7 1 -8 8 8 1 -9 9 9 1 -10 10 10 1 \
47-10 -10 10 1 -9 -9 9 1 -8 -8 8 1 -7 -7 7 1 -7 -7 -7 1 -8 -8 -8 1 -9 -9 -9 1 -10 -10 -10 1
48
49bsplinesurf surf5 \
501 2 0 2 1 2 \
515 5 0 6 2 1 3 1 6 1 7 6 \
520 0 0 1 10 0 5 2 \
530 10 2 1 10 10 3 1 \
540 20 10 1 10 20 20 1 \
550 30 0 1 10 30 0 1 \
560 40 -1 1 10 40 5 1 \
570 50 5 1 10 50 5 1 \
580 60 4 1 10 60 4 1 \
590 70 -5 1 10 70 -3 1 \
600 80 7 1 10 80 0 1
61
62
63bsplinesurf surf6 \
642 3 0 3 1 1 2 3 \
655 5 0 6 2 1 3 1 6 1 7 6 \
660 0 0 1 2 0 0 1 5 0 -1 1 10 0 5 2 \
670 10 2 1 3 10 0 1 8 10 5 1 10 10 3 1 \
680 20 10 1 4 20 4 1 7 20 4 1 10 20 20 1 \
690 30 0 1 2 30 0 1 8 30 0 1 10 30 0 1 \
700 40 -1 1 4 40 5 1 9 40 1 1 10 40 5 1 \
710 50 5 1 4 50 10 1 6 50 10 1 10 50 5 1 \
720 60 4 1 3 60 -3 1 7 60 -4 1 10 60 4 1 \
730 70 -5 1 3 70 0 1 5 70 0 1 10 70 -3 1 \
740 80 7 1 3 80 1 1 7 80 3 1 10 80 0 1
75
76bsplinesurf surf7 \
775 5 0 6 1 1 4 1 5 1 8 6 \
785 5 0 6 2 1 3 1 6 1 7 6 \
790 0 0 1 2 0 0 1 5 0 -1 1 10 0 5 1 12 0 1 1 15 0 -3 1 16 0 -3 1 19 0 -4 1 24 0 0 1 \
800 10 2 1 3 10 0 1 8 10 5 1 10 10 3 1 12 10 2 1 15 10 0 1 20 10 5 1 21 10 3 1 24 10 0 1 \
810 20 10 1 4 20 4 1 7 20 4 1 10 20 20 1 12 20 10 1 16 20 4 1 19 20 4 1 20 20 10 1 24 20 0 1 \
820 30 0 1 2 30 0 1 8 30 0 1 10 30 0 1 12 30 0 1 14 30 0 1 20 30 0 1 22 30 0 1 24 30 0 1 \
830 40 -1 1 4 40 5 1 9 40 1 1 10 40 5 1 12 40 -1 1 16 40 5 1 21 40 1 1 22 40 5 1 24 40 0 1 \
840 50 5 1 4 50 10 1 6 50 10 1 10 50 5 1 12 50 5 1 16 50 10 1 18 50 10 1 20 50 5 1 24 50 0 1 \
850 60 4 1 3 60 -3 1 7 60 -4 1 10 60 4 1 12 60 4 1 15 60 -3 1 19 60 -4 1 20 60 4 1 24 60 0 1 \
860 70 -5 1 3 70 0 1 5 70 0 1 10 70 -3 1 12 70 -5 1 15 70 0 1 17 70 0 1 20 70 -3 1 24 70 0 1 \
870 80 7 1 3 80 1 1 7 80 3 1 10 80 0 1 12 80 7 1 15 80 1 1 19 80 3 1 21 80 0 1 24 80 0 1
88
89bsplinesurf surf8 \
905 5 0 6 1 1 4 1 5 1 8 6 \
915 5 0 6 2 1 3 1 6 1 7 6 \
920 0 -8 1 2 0 -7 1 5 0 -9 1 10 0 -8 1 12 0 -9 1 15 0 -7 1 16 0 -8 1 19 0 -8 1 24 0 -8 1 \
930 10 -8 1 3 10 -7 1 8 10 -9 1 10 10 -8 1 12 10 -9 1 15 10 -7 1 20 10 -8 1 21 10 -8 1 24 10 -8 1 \
940 20 8 1 4 20 7 1 7 20 9 1 10 20 8 1 12 20 9 1 16 20 7 1 19 20 8 1 20 20 8 1 24 20 8 1 \
950 30 8 1 2 30 7 1 8 30 9 1 10 30 8 1 12 30 9 1 14 30 7 1 20 30 8 1 22 30 8 1 24 30 8 1 \
960 40 -8 1 4 40 -7 1 9 40 -9 1 10 40 -8 1 12 40 -9 1 16 40 -7 1 21 40 -8 1 22 40 -8 1 24 40 -8 1 \
970 50 -8 1 4 50 -7 1 6 50 -9 1 10 50 -8 1 12 50 -9 1 16 50 -7 1 18 50 -8 1 20 50 -8 1 24 50 -8 1 \
980 60 8 1 3 60 7 1 7 60 9 1 10 60 8 1 12 60 9 1 15 60 7 1 19 60 8 1 20 60 8 1 24 60 8 1 \
990 70 8 1 3 70 7 1 5 70 9 1 10 70 8 1 12 70 9 1 15 70 7 1 17 70 8 1 20 70 8 1 24 70 8 1 \
1000 80 8 1 3 80 7 1 7 80 9 1 10 80 8 1 12 80 9 1 15 80 7 1 19 80 8 1 21 80 8 1 24 80 8 1
101
102bsplinesurf rsurf1 \
1033 4 0 4 1 1 2 1 3 4 \
1043 4 0 4 1 1 2 1 3 4 \
1050 0 0 1 2 0 0 1 3 0 15 1 5 0 15 1 7 0 0 1 10 0 0 1 \
1060 2 0 1 1 3 0 2 4 2 15 2 6 3 15 2 8 2 0 2 10 3 0 1 \
1070 4 0 1 3 4 0 2 4 3 15 3 5 3 15 3 7 4 0 2 10 5 0 1 \
1080 6 0 1 3 6 0 2 4 6 15 3 5 6 15 3 8 5 0 2 10 7 0 1 \
1090 8 0 1 2 8 0 2 4 8 15 2 6 8 15 2 7 7 0 2 10 8 0 1 \
1100 10 0 1 2 10 0 1 4 10 15 1 6 10 15 1 7 10 0 1 10 10 0 1
111
112bsplinesurf rsurf2 \
1133 4 0 4 1 1 2 1 3 4 \
1143 4 0 4 1 1 2 1 3 4 \
1150 0 10 1 2 0 5 1 3 0 4 1 5 0 6 1 7 0 10 1 10 0 5 1 \
1160 2 5 1 1 3 7 4 4 2 7 4 6 3 4 4 8 2 4 4 10 3 7 1 \
1170 4 8 1 3 4 10 4 4 3 6 2 5 3 8 2 7 4 7 4 10 5 5 1 \
1180 6 8 1 3 6 10 4 4 6 6 2 5 6 4 2 8 5 7 4 10 7 10 1 \
1190 8 6 1 2 8 5 4 4 8 8 4 6 8 8 4 7 7 3 4 10 8 5 1 \
1200 10 8 1 2 10 10 1 4 10 6 1 6 10 5 1 7 10 3 1 10 10 10 1
121
122bsplinesurf rsurf3 \
1232 7 0 3 1 1 2 1 3 1 4 1 5 1 6 3 \
1242 3 0 3 1 1 2 3 \
125-20 20 10 1 20 20 10 1 20 -20 10 2 -20 -20 10 2 -10 10 10 3 10 10 10 4 10 -10 10 4 -10 -10 10 2 \
126-10 10 5 1 15 15 5 2 10 -10 5 3 -15 -15 5 1 -5 5 5 1 5 5 5 3 5 -5 5 4 -5 -5 5 3 \
127-15 15 -5 3 10 10 -5 1 15 -15 -5 2 -10 -10 -5 2 -5 5 -5 3 5 5 -5 3 5 -5 -5 1 -5 -5 -5 4 \
128-20 20 -10 2 20 20 -10 4 20 -20 -10 3 -20 -20 -10 3 -10 10 -10 2 10 10 -10 2 10 -10 -10 1 -10 -10 -10 1
129
130bsplinesurf rsurf4 \
1314 5 0 5 2 1 4 1 5 1 6 5 \
1324 5 0 5 1 1 4 1 6 1 7 5 \
133 10 20 -20 1 9 19 -19 1 8 18 -18 2 7 17 -17 2 7 17 17 1 8 18 18 1 9 19 19 4 10 20 20 1 \
134 10 -20 20 2 9 -19 19 2 8 -18 18 1 7 -17 17 2 7 -17 -17 4 8 -18 -18 3 9 -19 -19 3 10 -20 -20 2 \
135 10 10 -10 3 9 9 -9 4 8 8 -8 1 7 7 -7 2 7 7 7 4 8 8 8 1 9 9 9 2 10 10 10 3 \
136 10 -10 10 4 9 -9 9 2 8 -8 8 3 7 -7 7 2 7 -7 -7 1 8 -8 -8 1 9 -9 -9 1 10 -10 -10 4 \
137-10 20 -20 4 -9 19 -19 3 -8 18 -18 3 -7 17 -17 2 -7 17 17 1 -8 18 18 2 -9 19 19 4 -10 20 20 4 \
138-10 -20 20 3 -9 -19 19 2 -8 -18 18 3 -7 -17 17 1 -7 -17 -17 4 -8 -18 -18 2 -9 -19 -19 3 -10 -20 -20 3 \
139-10 10 -10 2 -9 9 -9 1 -8 8 -8 3 -7 7 -7 1 -7 7 7 1 -8 8 8 1 -9 9 9 2 -10 10 10 2 \
140-10 -10 10 1 -9 -9 9 1 -8 -8 8 2 -7 -7 7 1 -7 -7 -7 4 -8 -8 -8 1 -9 -9 -9 1 -10 -10 -10 1
141
142bsplinesurf rsurf5 \
1431 2 0 2 1 2 \
1445 5 0 6 2 1 3 1 6 1 7 6 \
1450 0 0 1 10 0 5 2 \
1460 10 2 3 10 10 3 1 \
1470 20 10 1 10 20 20 4 \
1480 30 0 2 10 30 0 2 \
1490 40 -1 1 10 40 5 2 \
1500 50 5 1 10 50 5 1 \
1510 60 4 3 10 60 4 1 \
1520 70 -5 5 10 70 -3 2 \
1530 80 7 1 10 80 0 1
154
155bsplinesurf rsurf6 \
1562 3 0 3 1 1 2 3 \
1575 5 0 6 2 1 3 1 6 1 7 6 \
1580 0 0 1 2 0 0 1 5 0 -1 1 10 0 5 2 \
1590 10 2 3 3 10 0 1 8 10 5 3 10 10 3 1 \
1600 20 10 1 4 20 4 3 7 20 4 2 10 20 20 4 \
1610 30 0 2 2 30 0 1 8 30 0 1 10 30 0 2 \
1620 40 -1 1 4 40 5 2 9 40 1 3 10 40 5 2 \
1630 50 5 1 4 50 10 5 6 50 10 5 10 50 5 1 \
1640 60 4 3 3 60 -3 1 7 60 -4 1 10 60 4 1 \
1650 70 -5 5 3 70 0 1 5 70 0 1 10 70 -3 2 \
1660 80 7 1 3 80 1 2 7 80 3 1 10 80 0 1
167
168bsplinesurf rsurf7 \
1695 5 0 6 1 1 4 1 5 1 8 6 \
1705 5 0 6 2 1 3 1 6 1 7 6 \
1710 0 0 1 2 0 0 1 5 0 -1 1 10 0 5 2 12 0 1 1 15 0 -3 2 16 0 -3 1 19 0 -4 1 24 0 0 1 \
1720 10 2 3 3 10 0 1 8 10 5 3 10 10 3 1 12 10 2 3 15 10 0 1 20 10 5 3 21 10 3 1 24 10 0 2 \
1730 20 10 1 4 20 4 3 7 20 4 2 10 20 20 4 12 20 10 1 16 20 4 3 19 20 4 2 20 20 10 4 24 20 0 1 \
1740 30 0 2 2 30 0 1 8 30 0 1 10 30 0 2 12 30 0 2 14 30 0 1 20 30 0 1 22 30 0 2 24 30 0 3 \
1750 40 -1 1 4 40 5 2 9 40 1 3 10 40 5 2 12 40 -1 1 16 40 5 2 21 40 1 3 22 40 5 2 24 40 0 1 \
1760 50 5 1 4 50 10 5 6 50 10 5 10 50 5 1 12 50 5 1 16 50 10 5 18 50 10 5 20 50 5 1 24 50 0 2 \
1770 60 4 3 3 60 -3 1 7 60 -4 1 10 60 4 1 12 60 4 3 15 60 -3 1 19 60 -4 1 20 60 4 1 24 60 0 1 \
1780 70 -5 5 3 70 0 1 5 70 0 1 10 70 -3 2 12 70 -5 5 15 70 0 1 17 70 0 1 20 70 -3 2 24 70 0 3 \
1790 80 7 1 3 80 1 2 7 80 3 1 10 80 0 1 12 80 7 1 15 80 1 2 19 80 3 1 21 80 0 1 24 80 0 1
180
181bsplinesurf rsurf8 \
1825 5 0 6 1 1 4 1 5 1 8 6 \
1835 5 0 6 2 1 3 1 6 1 7 6 \
1840 0 -8 1 2 0 -7 1 5 0 -9 1 10 0 -8 2 12 0 -9 1 15 0 -7 2 16 0 -8 1 19 0 -8 1 24 0 -8 1 \
1850 10 -8 3 3 10 -7 1 8 10 -9 3 10 10 -8 1 12 10 -9 3 15 10 -7 1 20 10 -8 3 21 10 -8 1 24 10 -8 2 \
1860 20 8 1 4 20 7 3 7 20 9 2 10 20 8 4 12 20 9 1 16 20 7 3 19 20 8 2 20 20 8 4 24 20 8 1 \
1870 30 8 2 2 30 7 1 8 30 9 1 10 30 8 2 12 30 9 2 14 30 7 1 20 30 8 1 22 30 8 2 24 30 8 3 \
1880 40 -8 1 4 40 -7 2 9 40 -9 3 10 40 -8 2 12 40 -9 1 16 40 -7 2 21 40 -8 3 22 40 -8 2 24 40 -8 1 \
1890 50 -8 1 4 50 -7 5 6 50 -9 5 10 50 -8 1 12 50 -9 1 16 50 -7 5 18 50 -8 5 20 50 -8 1 24 50 -8 2 \
1900 60 8 3 3 60 7 1 7 60 9 1 10 60 8 1 12 60 9 3 15 60 7 1 19 60 8 1 20 60 8 1 24 60 8 1 \
1910 70 8 5 3 70 7 1 5 70 9 1 10 70 8 2 12 70 9 5 15 70 7 1 17 70 8 1 20 70 8 2 24 70 8 3 \
1920 80 8 1 3 80 7 2 7 80 9 1 10 80 8 1 12 80 9 1 15 80 7 2 19 80 8 1 21 80 8 1 24 80 8 1
193
194# intersect all surfaces
195set surfaces [list surf1 surf2 rsurf1 surf3 rsurf2 surf4 rsurf3 surf5 rsurf4 surf6 rsurf5 surf7 rsurf6 surf8 rsurf7 rsurf8]
196#set i 1
197#set shapes {}
198foreach s1 $surfaces {
199# mkface f_$s1 $s1
200# lappend shapes f_$s1
201 foreach s2 $surfaces {
202 if { $s1 != $s2 } {
203 intersect r $s1 $s2
204# if { [regexp {a 3d curve} [whatis r]] } {
205# mkedge e_$i r
206# lappend shapes e_$i
207# incr i
208# }
209 }
210 }
211}
212
465d1a2c 213#eval vdisplay $shapes; vfit