0025952: Wrong intersection curve
[occt.git] / tests / lowalgos / intss / bug29323
CommitLineData
faaa95cb 1puts "========"
2puts "OCC29323"
3puts "========"
4puts ""
5#################################################
6# Intersection algorithm produces the curve with oscillation
7#################################################
8
9set MaxTolReached 0.15
10set GoodNbCurv 1
11set ExpLength 96.268040111795571
12
13restore [locate_data_file bug29323_hb.brep] h
14plane p 0 0 4 0 0 1
15mkface f p -200 200 -200 200
16explode h f
17
18set log [bopcurves h_4 f -2d]
19
20smallview
21donly c_1
22fit
23
24checkview -screenshot -2d -path ${imagedir}/${test_image}_1.png
25checklength c_1 -l $ExpLength
26
27regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
28
29if {$Toler > $MaxTolReached} {
30 puts "Error: Big tolerance is returned by intersector"
31}
32
33if {$NbCurv != $GoodNbCurv} {
34 puts "Error: Please check NbCurves for intersector"
35}