2 puts "0029824: Intersection of cylinder and sphere is incorrect"
6 restore [locate_data_file OCC20964_revsolid.brep] b1
7 restore [locate_data_file OCC20964_sphere.brep] b2
15 checknbshapes result -edge 3
17 foreach a [explode result e] {
21 if {[dval U2-U1] < 1.0e-9} {
22 puts "Error: Wrong curve's range!"
25 set aStep [expr [dval U2-U1]/100.0 ]
31 for {set aU [dval U1]} {$aU <= [dval U2]} {set aU [expr $aU + $aStep]} {
32 cvalue cc $aU xx yy zz dx dy dz
35 set m1 [module dx1 dy1 dz1]
36 set m2 [module dx dy dz]
37 set aCos [dval dx1*dx+dy1*dy+dz1*dz]
38 set aCos [expr $aCos/($m1*$m2)]
40 if {abs([expr $aCos - $aCosPrev]) > 0.05} {
41 puts "Error: It seems that the curve $a change it direction at the point $aU. Please recheck."