1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-02 17:46:22 +03:00
occt/tests/bugs/vis/bug21091_6
abv 7f83633f7e 0029196: Tests - some test cases fail with Intel HD graphics
Test bugs vis bug26357 is revised to check colors in more robust way.
In tests bugs vis bug29091_*, size of produced file is checked to be within range of known valid sizes, rather than hard-coded (per-platform) exact sizes.
FPE signals are disabled for test bugs vis bug29127 to prevent exceptions cause by software OpenGl driver.

File data/occ/Box.brep is removed to avoid confusion with file box.brep in public data files used in tests.

Two additional non-alphabetic-order combinations of complex types are handled in RWStepAP214_ReadWriteModule.cxx
2017-10-12 12:23:18 +03:00

63 lines
2.3 KiB
Plaintext
Executable File

puts "============"
puts "OCC21091"
puts "OCC21450"
puts "============"
puts ""
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vinit
vtrihedron trihedron
vpoint p1 -300 -300 -300
vdrawtext OC0 OpenCascade -pos -300 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vpoint p2 -300 -300 -100
vdrawtext OC1 OpenCascade -pos -300 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vpoint p3 -100 -100 -300
vdrawtext OC2 OpenCascade -pos -100 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vpoint p4 -100 -100 -100
vdrawtext OC3 OpenCascade -pos -100 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vpoint p5 -300 -100 -300
vdrawtext OC4 OpenCascade -pos -300 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vpoint p6 -100 -300 -300
vdrawtext OC5 OpenCascade -pos -100 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vpoint p7 -300 -100 -100
vdrawtext OC6 OpenCascade -pos -300 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vpoint p8 -100 -300 -100
vdrawtext OC7 OpenCascade -pos -100 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SansFont
vaxis ax1 100 100 100 100 100 0
box a 110 110 110 200 200 200
vdisplay a
file delete -force ${imagedir}/${test_image}.eps
set aFile ${imagedir}/${test_image}.eps
vcaps -ffp 1
vexport ${aFile} EPS
set refsize_min 9480
set refsize_max 9520
if { [file exists ${aFile}] } {
puts "Export to EPS format successful"
set filesize [file size ${aFile}]
if { $filesize < $refsize_min || $filesize > $refsize_max } {
puts "Error: Export to EPS file was done but size of file is incorrect"
puts " (current = $filesize, expected to be in range \[$refsize_min, $refsize_max\])."
puts "Error: Update refsize limits if necessary."
}
} else {
puts "Error: Export to EPS format has failed"
}
checkview -screenshot -3d -path ${imagedir}/${test_image}.png