1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_2/bug23043
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

30 lines
888 B
Plaintext
Executable File

puts "========================"
puts "OCC23043"
puts "========================"
puts ""
################################################################################################################
# Wrong results of BRepExtrema_DistShapeShape: non-null minimum distance between intersecting line and cylinder
################################################################################################################
set BugNumber OCC23043
restore [locate_data_file bug23043_croix.brep] a
restore [locate_data_file bug23043_cylindre.brep] b
vdisplay a b
vfit
distmini dd a b
set dist1 [ dval dd ]
set dist2 [ dval dd2 ]
set dist3 [ dval dd3 ]
set dist4 [ dval dd4 ]
puts ""
if { $dist1 == 0 && $dist2 == 0 && $dist3 == 0 && $dist4 == 0 } {
puts "OK ${BugNumber}"
} else {
puts "Faulty ${BugNumber}"
}
checkview -screenshot -3d -path ${imagedir}/${test_image}.png