0030315: Data Exchange - Crash reading views during STEP import.
[occt.git] / tests / bugs / modalg_6 / bug27766
CommitLineData
ae541252 1puts "========"
2puts "OCC27766"
3puts "========"
4puts ""
5#################################################
6# Incorrect section curves between attached cylinders
7#################################################
8
9set ExpTol 1.0e-7
d30895f5 10set GoodNbCurv 3
ae541252 11
12restore [locate_data_file bug27761_c1.brep] c1
13restore [locate_data_file bug27761_c2.brep] c2
14
15set log [bopcurves c1 c2 -2d]
16
17regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
18
19if {${NbCurv} != ${GoodNbCurv}} {
20 puts "Error: Number of curves is bad!"
21}
22
23checkreal TolReached $Toler $ExpTol 0.0 0.1
24
25smallview
26don c_*
27fit
28disp c1 c2
29
30checkview -screenshot -2d -path ${imagedir}/${test_image}.png