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

48 lines
1.0 KiB
Plaintext
Executable File

puts "============"
puts "OCC22313"
puts "============"
puts ""
#######################################################################
# Bug in shading mode with attached shape
#######################################################################
set BugNumber OCC22313
# Data
set scale 2.9701073117025172
set proj_X 0.4096425473690033
set proj_Y 0.77340573072433472
set proj_Z 0.48377299308776855
set up_X -0.83569550514221191
set up_Y 0.1055084615945816
set up_Z 0.538962721824646
set at_X -632.109173226325
set at_Y -2711.56694941045
set at_Z -1979.06316609577
set x1 300
set y1 230
set Artifact_R 0
set Artifact_G 0
set Artifact_B 0
# Start
restore [locate_data_file OCC22313-face_shading_problem.brep] result
vinit
vdisplay result
vfit
vsetdispmode 1
vfit
vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z}
checkcolor ${x1} ${y1} ${Artifact_R} ${Artifact_G} ${Artifact_B}
checkview -screenshot -3d -path ${imagedir}/${test_image}.png