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/bug297_4
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

34 lines
464 B
Plaintext
Executable File

puts "========"
puts "OCC297"
puts "========"
vertex v1 250 250 0
vertex v2 -250 250 0
vertex v3 -250 -250 0
vertex v4 250 -250 0
edge e1 v1 v2
edge e2 v2 v3
edge e3 v3 v4
edge e4 v4 v1
wire w1 e1 e2 e3 e4
mkplane f w1
set x 0
set y 0
set Zpoint 100
set Zbox -80
halfspace hs f $x $y $Zpoint
box b 0 0 $Zbox 150 200 200
bcut result b hs
checkprops result -s 116000
checkshape result
checkview -display result -2d -path ${imagedir}/${test_image}.png