0025890: Intersection algorithm produces curves overlaped
[occt.git] / tests / bugs / moddata_3 / bug23863
CommitLineData
19875353 1puts "================"
2puts "OCC23863"
3puts "================"
4puts ""
5#######################################################################
6# Wrong distance value between circle and cylinder
7#######################################################################
8
9pcylinder b1 10 10
10explode b1 f
11copy b1_1 b1
12circle b2 0 10 10 1 0 0 5
13mkedge b2 b2
14
15distmini d b1 b2
16
17regexp {([-0-9.+eE]+)$} [dump d_val] full dist
18regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [ maxtolerance d ] full toler
19set good_dist 0
20if { [expr abs( ${dist} - ${good_dist} )] > ${toler} } {
21 puts "Faulty : the distanse is ${dist}. It is bad value"
22}
23
24regexp { +Point 3D : +([-0-9.+eE]+), +([-0-9.+eE]+), +([-0-9.+eE]+)} [ dump d ] full x y z
25set good_x 0
26set good_y 10
27set good_z 5
28if { [expr abs( ${x} - ${good_x} )] > ${toler} } {
29 puts "Faulty : the x coordinate of the point is ${x}. It is bad value"
30}
31if { [expr abs( ${y} - ${good_y} )] > ${toler} } {
32 puts "Faulty : the y coordinate of the point is ${y}. It is bad value"
33}
34if { [expr abs( ${z} - ${good_z} )] > ${toler} } {
35 puts "Faulty : the z coordinate of the point is ${z}. It is bad value"
36}
37
38set 2dviewer 1