1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-05 11:24:17 +03:00
occt/tests/bugs/moddata/buc60852
apn 352ffd7358 Adding test cases for chl grid
Test case tests/bugs/modalg/dxf906 was renamed to bug889
Adding test cases to tests/bugs/moddata
Modified expressions puts [checkshape result]. Added command vzfit in end file in folder bugs. Unlocked command coordload in QABugs_3.cxx
Modified test case bugs vis buc60738
Added test cases to modalg and moddata
Added test cases to caf and fclasses
Added test cases to group heal
2012-12-21 16:39:38 +04:00

69 lines
1.6 KiB
Plaintext
Executable File

puts "========"
puts "BUC60852"
puts "BUC60923"
puts "========"
pload QAcommands
set bndbox_X1 0
set bndbox_Y1 0
set bndbox_Z1 0
set bndbox_X2 30
set bndbox_Y2 10
set bndbox_Z2 20
set point_1_1_X -20
set point_1_1_Y -5
set point_1_1_Z 10
set point_1_2_X 50
set point_1_2_Y 15
set point_1_2_Z 10
vertex vertex_1_1 $point_1_1_X $point_1_1_Y $point_1_1_Z
vertex vertex_1_2 $point_1_2_X $point_1_2_Y $point_1_2_Z
edge edge_1 vertex_1_1 vertex_1_2
puts ""
set point_2_1_X -20
set point_2_1_Y -10
set point_2_1_Z 10
set point_2_2_X 50
set point_2_2_Y -10
set point_2_2_Z 10
vertex vertex_2_1 $point_2_1_X $point_2_1_Y $point_2_1_Z
vertex vertex_2_2 $point_2_2_X $point_2_2_Y $point_2_2_Z
edge edge_2 vertex_2_1 vertex_2_2
puts ""
box bndbox $bndbox_X1 $bndbox_Y1 $bndbox_Z1 $bndbox_X2 $bndbox_Y2 $bndbox_Z2
line line_1 $point_1_1_X $point_1_1_Y $point_1_1_Z [ expr { $point_1_1_X - $point_1_2_X } ] [ expr { $point_1_1_Y - $point_1_2_Y } ] [ expr { $point_1_1_Z - $point_1_2_Z } ]
line line_2 $point_2_1_X $point_2_1_Y $point_2_1_Z [ expr { $point_2_1_X - $point_2_2_X } ] [ expr { $point_2_1_Y - $point_2_2_Y } ] [ expr { $point_2_1_Z - $point_2_2_Z } ]
puts ""
set result1 [BUC60852 edge_1 $bndbox_X1 $bndbox_Y1 $bndbox_Z1 $bndbox_X2 $bndbox_Y2 $bndbox_Z2]
if {${result1} != "Line that lies on edge intersects the box\n"} {
puts "BUC60852: Error; (case 1)"
} else {
puts "BUC60852: OK; (case 1)"
}
puts ""
set result2 [BUC60852 edge_2 $bndbox_X1 $bndbox_Y1 $bndbox_Z1 $bndbox_X2 $bndbox_Y2 $bndbox_Z2]
if {${result2} != "Line that lies on edge does not intersect the box\n"} {
puts "BUC60852: Error; (case 2)"
} else {
puts "BUC60852: OK; (case 2)"
}