0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / moddata_1 / bug22303
CommitLineData
3bea4c16 1puts "========================"
2puts "OCC22303"
3puts "========================"
4puts ""
5#######################################################################
6# The algorithm BRepExtrema_DistShapeShape crashes with exception if one of the shapes does non contain vertices
7#######################################################################
8
9set BugNumber OCC22303
10
11line ll 0 20 0 1 0 0
12mkedge ee ll
13psphere ss 10
14
15distmini dd ee ss
16puts "Distance=[dval dd_val]"
17
18if [expr [dval dd_val] - 10. > 1.e-3 ] {
19 set status 1
20} else {
21 set status 0
22}
23
24# Resume
25puts ""
26if { ${status} != 0 } {
27 puts "Faulty ${BugNumber}"
28} else {
29 puts "OK ${BugNumber}"
30}
31