e841c38c |
1 | puts "========" |
2 | puts "OCC28030" |
3 | puts "========" |
4 | puts "" |
5 | ######################################################################################################## |
7b5e532f |
6 | # Algorithm GeomLib_CheckCurveOnSurface takes too much time for Bspline curves with big number of knots |
e841c38c |
7 | ######################################################################################################## |
8 | |
9 | beziercurve c 4 0 0 0 1 1 0 2 1 0 3 0 0 |
10 | |
11 | convert c1 c |
12 | set i 1 |
13 | repeat 98 {insertknot c1 0.01*$i 1; incr i 1} |
14 | mkedge e1 c1 |
15 | prism p1 e1 0 0 1 |
16 | explode p1 e |
44fae8b1 |
17 | dchrono cpu restart |
e841c38c |
18 | xdistef p1_3 p1 |
44fae8b1 |
19 | dchrono cpu stop counter xdistef_1 |
e841c38c |
20 | |
21 | convert c2 c |
22 | set i 1 |
23 | repeat 1000 {insertknot c2 0.00098*$i 1; incr i 1} |
24 | mkedge e2 c2 |
25 | prism p2 e2 0 0 1 |
26 | explode p2 e |
44fae8b1 |
27 | dchrono cpu restart |
e841c38c |
28 | xdistef p2_3 p2 |
44fae8b1 |
29 | dchrono cpu stop counter xdistef_2 |