mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-01 17:36:21 +03:00
0032208: Tests - refactor visualization tests to cover several graphic drivers
Removed testgrids 'bugs/vis' and '3rdparty'; tests have been redistributed across other grids. Moved testgrid 'v3d/ivtk' into dedicated 'vtk/ivtk'. Added testgrid 'vselect' dedicated to 3D viewer picking/selection functionality and filled with tests from 'v3d/vertex', 'v3d/face' and similar groups. Added testgrid 'opengl' dedicated to OpenGL driver low-level functionality (GLSL programs and similar) and filled with tests from 'v3d/glsl', 'v3d/raytrace', '3rdparty/fonts', 'bugs/vis' (portion) and similar. Added testgrid 'opengles3' dedicated to OpenGL ES 3.0 driver low-level functionality and reusing tests from 'opengl' testgrid. Subgroup 'opengles3/raytrace' is disabled on Windows, as Ray-Tracing currently requires OpenGL ES 3.2. while ANGLE library implements only OpenGL ES 3.0. Added testgrid 'opengles2' dedicated to OpenGL ES 2.0 driver low-level functionality and reusing a limited subset of passing tests from 'opengl' testgrid. Currently testgrid is activated only on Windows platform when using ANGLE library (properietary OpenGL ES drivers do not allow creation of restricted 2.0 context). Test cases have been cleaned out to put bug description into log, to properly load necessary plugins and to explicitly dump viewer.
This commit is contained in:
parent
a076535090
commit
0d828ac838
12
tests/3rdparty/begin
vendored
12
tests/3rdparty/begin
vendored
@ -1,12 +0,0 @@
|
||||
cpulimit 1000
|
||||
|
||||
pload TOPTEST VISUALIZATION
|
||||
|
||||
if { [info exists imagedir] == 0 } {
|
||||
set imagedir .
|
||||
}
|
||||
if { [info exists test_image] == 0 } {
|
||||
set test_image photo
|
||||
}
|
||||
|
||||
vinit View1
|
3
tests/3rdparty/end
vendored
3
tests/3rdparty/end
vendored
@ -1,3 +0,0 @@
|
||||
puts ""
|
||||
puts "TEST COMPLETED"
|
||||
puts ""
|
2
tests/3rdparty/grids.list
vendored
2
tests/3rdparty/grids.list
vendored
@ -1,2 +0,0 @@
|
||||
001 fonts
|
||||
002 text3d
|
@ -1,23 +1,22 @@
|
||||
001 demo
|
||||
002 fclasses
|
||||
003 iges
|
||||
004 vis
|
||||
005 xde
|
||||
006 modalg_1
|
||||
007 modalg_2
|
||||
008 modalg_3
|
||||
009 modalg_4
|
||||
010 modalg_5
|
||||
011 modalg_6
|
||||
012 modalg_7
|
||||
013 moddata_1
|
||||
014 moddata_2
|
||||
015 moddata_3
|
||||
016 step
|
||||
017 caf
|
||||
018 mesh
|
||||
019 heal
|
||||
020 stlvrml
|
||||
021 splitshape
|
||||
022 splitshape_1
|
||||
023 filling
|
||||
004 xde
|
||||
005 modalg_1
|
||||
006 modalg_2
|
||||
007 modalg_3
|
||||
008 modalg_4
|
||||
009 modalg_5
|
||||
010 modalg_6
|
||||
011 modalg_7
|
||||
012 moddata_1
|
||||
013 moddata_2
|
||||
014 moddata_3
|
||||
015 step
|
||||
016 caf
|
||||
017 mesh
|
||||
018 heal
|
||||
019 stlvrml
|
||||
020 splitshape
|
||||
021 splitshape_1
|
||||
022 filling
|
||||
|
1
tests/bugs/vis/buc60830_1 → tests/bugs/modalg_1/buc60830_1
Executable file → Normal file
1
tests/bugs/vis/buc60830_1 → tests/bugs/modalg_1/buc60830_1
Executable file → Normal file
@ -14,4 +14,3 @@ result
|
||||
side right
|
||||
mat
|
||||
result
|
||||
|
7
tests/bugs/vis/buc60830_2 → tests/bugs/modalg_1/buc60830_2
Executable file → Normal file
7
tests/bugs/vis/buc60830_2 → tests/bugs/modalg_1/buc60830_2
Executable file → Normal file
@ -2,6 +2,8 @@ puts "============="
|
||||
puts "BUC60830"
|
||||
puts "BUC60829"
|
||||
puts "============="
|
||||
|
||||
pload QAcommands
|
||||
coordload res [locate_data_file cont1.dat]
|
||||
topoload res
|
||||
drawcont
|
||||
@ -11,5 +13,6 @@ result
|
||||
side right
|
||||
mat
|
||||
result
|
||||
|
||||
|
||||
axo
|
||||
fit
|
||||
xwd ${imagedir}/${casename}.png
|
6
tests/bugs/vis/buc60830_3 → tests/bugs/modalg_1/buc60830_3
Executable file → Normal file
6
tests/bugs/vis/buc60830_3 → tests/bugs/modalg_1/buc60830_3
Executable file → Normal file
@ -3,6 +3,7 @@ puts "BUC60830"
|
||||
puts "BUC60829"
|
||||
puts "============="
|
||||
|
||||
pload QAcommands
|
||||
coordload res [locate_data_file cont2.dat]
|
||||
topoload res
|
||||
drawcont
|
||||
@ -12,5 +13,6 @@ result
|
||||
side right
|
||||
mat
|
||||
result
|
||||
|
||||
|
||||
axo
|
||||
fit
|
||||
xwd ${imagedir}/${casename}.png
|
@ -1,7 +0,0 @@
|
||||
pload QAcommands
|
||||
|
||||
set subgroup vis
|
||||
|
||||
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
puts "================"
|
||||
puts "BUC60632"
|
||||
puts "================"
|
||||
|
||||
vinit
|
||||
BUC60632 0 100
|
||||
vfit
|
||||
vmoveto 126 143
|
||||
puts "Highlighting by 'Move To' command in wireframe mode"
|
||||
|
||||
set x_coord 129
|
||||
set y_coord 143
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Highlighting by Move To command in wireframe mode is WRONG."
|
||||
}
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
puts "================"
|
||||
puts "BUC60632"
|
||||
puts "================"
|
||||
|
||||
vinit
|
||||
BUC60632 1 100
|
||||
vfit
|
||||
vmoveto 126 143
|
||||
puts "Highlighting by 'Move To' command in shading mode"
|
||||
|
||||
set x_coord 128
|
||||
set y_coord 143
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Highlighting by Move To command in shading mode is WRONG."
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -1,16 +0,0 @@
|
||||
|
||||
puts "=========================="
|
||||
puts "BUC60659"
|
||||
puts "=========================="
|
||||
puts ""
|
||||
##########################################
|
||||
## puts "There was Exception after vsetshading command"
|
||||
##########################################
|
||||
|
||||
box a 10 30 50
|
||||
vinit
|
||||
vdisplay a
|
||||
vfit
|
||||
vsetshading a
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,28 +0,0 @@
|
||||
puts "==========="
|
||||
puts "BUC60740"
|
||||
puts "==========="
|
||||
puts "=================================="
|
||||
puts "It takes visual check for this BUG"
|
||||
puts "=================================="
|
||||
|
||||
vinit
|
||||
box b 0 0 0 10 10 10
|
||||
pcylinder c 10 10
|
||||
vdisplay b
|
||||
vsetdispmode b 1
|
||||
vdisplay c
|
||||
vsetdispmode c 1
|
||||
vfit
|
||||
vsettransparency c 0.5
|
||||
|
||||
set x_coord 154
|
||||
set y_coord 257
|
||||
|
||||
|
||||
checkcolor $x_coord $y_coord 0.6 0.4 0.07
|
||||
|
||||
if {$stat != 1} {
|
||||
puts "Error :function vsettransparency works WRONGLY"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,14 +0,0 @@
|
||||
puts "========"
|
||||
puts "BUC60774"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
vinit
|
||||
catch {BUC60774}
|
||||
vfit
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
|
||||
puts "============"
|
||||
puts "BUC60832"
|
||||
puts "============"
|
||||
puts ""
|
||||
################################################################################
|
||||
## Try to display this shape in the viewer 3D by means of the method AIS_InteractiveContext::Display().
|
||||
## This method calls StdSelect_BRepSelectionTool::ComputeSelection() a recursive method which hangs up an application.
|
||||
################################################################################
|
||||
|
||||
restore [locate_data_file BUC60832.brep] result
|
||||
checkshape result
|
||||
|
||||
tclean result
|
||||
vinit
|
||||
vdisplay result
|
||||
vsetdispmode result 1
|
||||
vfit
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,20 +0,0 @@
|
||||
puts "============"
|
||||
puts "BUC60887"
|
||||
puts "============"
|
||||
puts ""
|
||||
############################################
|
||||
## Shape hangs after command " vdisplay " in the Viewer3d.
|
||||
############################################
|
||||
|
||||
restore [locate_data_file BUC60887.brep] result
|
||||
|
||||
set nb_info [nbshapes result]
|
||||
regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full nb_v
|
||||
|
||||
puts [format "Shape res contains %s vertexes" $nb_v]
|
||||
if { $nb_v == 0} {
|
||||
puts "Error : Result shape is NULL shape"
|
||||
} else {
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
puts "==========="
|
||||
puts "BUC60915"
|
||||
puts "==========="
|
||||
puts "=================================="
|
||||
puts "It takes visual check for this BUG"
|
||||
puts "=================================="
|
||||
|
||||
vinit
|
||||
BUC60915
|
||||
|
||||
set x_coord 300
|
||||
set y_coord 164
|
||||
|
||||
checkcolor $x_coord $y_coord 0.51 0.98 0
|
||||
|
||||
if {$stat != 1} {
|
||||
puts "Error : Cannot set the arrow size when using AIS_LengthDimension or AIS_RadiusDimensin."
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
puts "==========="
|
||||
puts "BUC60920"
|
||||
puts "==========="
|
||||
puts "=================================="
|
||||
puts "It takes visual check for this BUG"
|
||||
puts "=================================="
|
||||
#########################################################################
|
||||
## Bug in Viewer3d: curves and points are not highlighted when mouse pointer is moved over in shading mode.
|
||||
#########################################################################
|
||||
|
||||
vinit
|
||||
BUC60920
|
||||
vfit
|
||||
|
||||
|
||||
set x_coord 315
|
||||
set y_coord 210
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,33 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC10781"
|
||||
puts "MeshVS is not sensitive to width of edges"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC10781
|
||||
|
||||
pload XDE
|
||||
|
||||
vinit View1
|
||||
vclear
|
||||
vaxo
|
||||
|
||||
meshfromstl m [locate_data_file OMF6391_box.stl]
|
||||
|
||||
set aCoordX 206
|
||||
set aCoordY 280
|
||||
|
||||
vmoveto $aCoordX $aCoordY
|
||||
|
||||
set aColor1px [vreadpixel $aCoordX $aCoordY rgb name]
|
||||
if { "$aColor1px" != "BLACK" } {
|
||||
puts "Error: BLACK color is expected at pixel ${aCoordX}x${aCoordY}"
|
||||
}
|
||||
|
||||
mesh_edge_width m 6
|
||||
set aColor5px [vreadpixel $aCoordX $aCoordY rgb name]
|
||||
if { "$aColor5px" == "BLACK" } {
|
||||
puts "Error: YELLOW color is expected at pixel ${aCoordX}x${aCoordY}"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,38 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC11095"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# MeshVS: Borders of faces are not visible in shrink mode
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC11095
|
||||
|
||||
pload XDE
|
||||
|
||||
vinit
|
||||
|
||||
meshfromstl m [locate_data_file OMF6391_box.stl]
|
||||
|
||||
set x_coord 157
|
||||
set y_coord 280
|
||||
|
||||
set RED_R1 0
|
||||
set GREEN_R1 0
|
||||
set BLUE_R1 0
|
||||
|
||||
vmoveto $x_coord $y_coord
|
||||
|
||||
vsetdispmode m 3
|
||||
puts "\nSet shrinked display mode\n"
|
||||
|
||||
set x_coord 137
|
||||
set y_coord 277
|
||||
|
||||
checkcolor $x_coord $y_coord 0 0 0
|
||||
|
||||
if { ${stat} != 1 } {
|
||||
puts "Error : Borders of faces are not visible in shrink mode"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,26 +0,0 @@
|
||||
puts "========"
|
||||
puts "BUC60956"
|
||||
puts "OCC112"
|
||||
puts "========"
|
||||
puts ""
|
||||
###############################################################
|
||||
## When restoring a TopoDS_Shape containing a valid Meshing (computed for display) the
|
||||
## meshing is computed again when displaying it.
|
||||
###############################################################
|
||||
|
||||
set x_coord 140
|
||||
set y_coord 115
|
||||
|
||||
restore [locate_data_file OCC20.brep] result
|
||||
tclean result
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
vsetdispmode result 1
|
||||
|
||||
checkcolor $x_coord $y_coord 0.77 0.54 0.9
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
||||
|
@ -1,44 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC11615"
|
||||
puts "============"
|
||||
puts ""
|
||||
######################################################
|
||||
# Anisotropic scaling in 3D view
|
||||
######################################################
|
||||
|
||||
set BugNumber OCC11615
|
||||
|
||||
box b 10 10 10
|
||||
vinit
|
||||
vdisplay b
|
||||
vfit
|
||||
vscale 1 1 1
|
||||
|
||||
set x1 [list 165 340 70]
|
||||
set y1 [list 384 283 79]
|
||||
vaspects -setwidth 5
|
||||
puts ""
|
||||
for {set i 0} {$i < 3} {incr i} {
|
||||
set x_coord [lindex ${x1} $i]
|
||||
set y_coord [lindex ${y1} $i]
|
||||
if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
|
||||
puts "Error : color is not yellow"
|
||||
}
|
||||
}
|
||||
|
||||
vscale 0.5 1.5 0.7
|
||||
vfit
|
||||
|
||||
set x2 [list 80 390 25]
|
||||
set y2 [list 390 218 167]
|
||||
|
||||
puts ""
|
||||
for {set i 0} {$i < 3} {incr i} {
|
||||
set x_coord [lindex ${x2} $i]
|
||||
set y_coord [lindex ${y2} $i]
|
||||
if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
|
||||
puts "Error : color is not yellow"
|
||||
}
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,10 +0,0 @@
|
||||
set BugNumber OCC12584
|
||||
|
||||
puts "============"
|
||||
puts "OCC12584"
|
||||
puts "============"
|
||||
puts ""
|
||||
vinit
|
||||
OCC12584
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,17 +0,0 @@
|
||||
puts "================"
|
||||
puts "OCC128"
|
||||
puts "================"
|
||||
###############################################################
|
||||
## The shading is false: objects seem to be situated in front of the others while they are behind.
|
||||
###############################################################
|
||||
|
||||
set x_coord 171
|
||||
set y_coord 171
|
||||
|
||||
vinit
|
||||
OCC128
|
||||
vviewparams -scale 4.9487928 -proj 0.7329295 0.59461397 0.33052679 -up -0.536849 0.2071041 0.81786 -at 32.4556665273951 52.9347942181675 -5.1270029887922
|
||||
|
||||
checkcolor $x_coord $y_coord 0.43 0.48 0.54
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,25 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC16950"
|
||||
puts "==========="
|
||||
######################################################
|
||||
# OCC Visualization fails to display empty nested compounds
|
||||
######################################################
|
||||
|
||||
set BugNumber OCC16950
|
||||
|
||||
puts "Make compound containing another (empty) one"
|
||||
compound c
|
||||
compound c result
|
||||
|
||||
puts "And display it"
|
||||
vinit
|
||||
vdisplay result
|
||||
|
||||
# Resume
|
||||
if [catch { vsetdispmode 1 } res] {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
||||
|
||||
|
@ -1,24 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC16950"
|
||||
puts "==========="
|
||||
######################################################
|
||||
# OCC Visualization fails to display empty nested compounds
|
||||
######################################################
|
||||
|
||||
set BugNumber OCC16950
|
||||
|
||||
puts "Make compound containing another (empty) one"
|
||||
compound c
|
||||
compound c result
|
||||
|
||||
puts "And display it"
|
||||
vinit
|
||||
vdisplay result
|
||||
|
||||
# Resume
|
||||
if [catch { vsetdispmode 2 } res] {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "OK ${BugNumber}"
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
puts "================"
|
||||
puts "OCC17126"
|
||||
puts "================"
|
||||
puts ""
|
||||
#######################################################################################
|
||||
# Visualisation in 3d viewer in Draw hangs up
|
||||
#######################################################################################
|
||||
|
||||
restore [locate_data_file bug17126_ff_1285_viz.brep] a
|
||||
|
||||
vinit
|
||||
vdisplay a
|
||||
vfit
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,38 +0,0 @@
|
||||
puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
puts "========"
|
||||
puts "OCC173"
|
||||
puts "(case 1)"
|
||||
puts "========"
|
||||
puts ""
|
||||
###########################################################
|
||||
## Impossible to change the material or the transparency of the attached BREP shape.
|
||||
###########################################################
|
||||
|
||||
restore [locate_data_file OCC173.brep] result
|
||||
checkshape result
|
||||
|
||||
vinit
|
||||
tclean result
|
||||
vdisplay result
|
||||
vfit
|
||||
vsetdispmode result 1
|
||||
|
||||
set x_coord 175
|
||||
set y_coord 195
|
||||
|
||||
checkcolor $x_coord $y_coord 1 0.75 0.15
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Shading is missing in 3D Viewer"
|
||||
}
|
||||
|
||||
########################################################
|
||||
vsetmaterial result COPPER
|
||||
|
||||
checkcolor $x_coord $y_coord 0.77 0.32 0.23
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : material of shape is not COPPER"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,36 +0,0 @@
|
||||
puts "========"
|
||||
puts "OCC185"
|
||||
puts "========"
|
||||
|
||||
pload XDE
|
||||
|
||||
igesbrep [locate_data_file OCC185.igs] a *
|
||||
|
||||
tpcompound result
|
||||
tclean result
|
||||
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
set x_coord 235
|
||||
set y_coord 214
|
||||
|
||||
vsetdispmode result 1
|
||||
|
||||
checkcolor $x_coord $y_coord 0.78 0.55 0.9
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Shading is OFF, but should be ON"
|
||||
}
|
||||
|
||||
vsetdispmode result 0
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 0
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Shading is ON, but should be OFF"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,14 +0,0 @@
|
||||
puts "================"
|
||||
puts "OCC19"
|
||||
puts "================"
|
||||
puts ""
|
||||
|
||||
restore [locate_data_file OCC19.brep] result
|
||||
checkshape result
|
||||
|
||||
tclean result
|
||||
incmesh result .9
|
||||
triangles result
|
||||
|
||||
checktrinfo result -tri 82 -nod 84
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
@ -1,21 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC20373"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Shading doesn't work on b-spline sphere
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20373
|
||||
|
||||
restore [locate_data_file OCC20373.brep] result
|
||||
|
||||
vinit
|
||||
vdisplay result
|
||||
vsetdispmode 1
|
||||
vfit
|
||||
|
||||
checktrinfo result -tri
|
||||
checkprops result -s 9.92128e+06
|
||||
checkshape result
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,19 +0,0 @@
|
||||
puts "========"
|
||||
puts "OCC204"
|
||||
puts "========"
|
||||
|
||||
vinit
|
||||
OCC204 1
|
||||
vfit
|
||||
|
||||
set x_coord 150
|
||||
set y_coord 200
|
||||
|
||||
checkcolor $x_coord $y_coord 0 0 0
|
||||
|
||||
if { ${stat} != 1 } {
|
||||
puts "Error : There are 3 boxes in the viewer! (should be nothing)"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,18 +0,0 @@
|
||||
puts "========================"
|
||||
puts "OCC20802"
|
||||
puts "========================"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# V3d_View: Text size used by V3d_ZBUFFER'ed trihedron is too large
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC20802
|
||||
|
||||
vinit
|
||||
vzbufftrihedron
|
||||
|
||||
puts "V3d_View: Text size used by V3d_ZBUFFER'ed trihedron is too large"
|
||||
|
||||
puts "OK ${BugNumber}"
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,22 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21171"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with vfit of vertex and edge
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21171
|
||||
|
||||
box result 100 100 100
|
||||
explode result e
|
||||
|
||||
vinit
|
||||
vdisplay result_1
|
||||
vfit
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
puts "1 edge is not fit"
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,23 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21171"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with vfit of vertex and edge
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21171
|
||||
|
||||
box result 100 100 100
|
||||
explode result e
|
||||
|
||||
vinit
|
||||
vdisplay result_1
|
||||
vdisplay result_2
|
||||
vfit
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
puts "2 edges are fit"
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,22 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21171"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with vfit of vertex and edge
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21171
|
||||
|
||||
box result 100 100 100
|
||||
explode result v
|
||||
|
||||
vinit
|
||||
vdisplay result_8
|
||||
vfit
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
puts "1 vertex is not fit"
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,23 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21171"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Problem with vfit of vertex and edge
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21171
|
||||
|
||||
box result 100 100 100
|
||||
explode result v
|
||||
|
||||
vinit
|
||||
vdisplay result_8
|
||||
vdisplay result_1
|
||||
vfit
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
puts "2 vertexes are fit"
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,16 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=NONE, Color from RED to BLUE"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode NONE
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER1, Color from RED to BLUE, Direction from LEFT TOP CORNER"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode CORNER1
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER2, Color from RED to BLUE, Direction from RIGHT TOP CORNER"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode CORNER2
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER3, Color from RED to BLUE, Direction from RIGHT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode CORNER3
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER4, Color from RED to BLUE, Direction from LEFT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode CORNER4
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER1, Color from BLUE to RED, Direction from LEFT TOP CORNER"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode CORNER1
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER2, Color from BLUE to RED, Direction from RIGHT TOP CORNER"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode CORNER2
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER3, Color from BLUE to RED, Direction from RIGHT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode CORNER3
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=CORNER4, Color from BLUE to RED, Direction from LEFT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode CORNER4
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,16 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=HORIZONTAL, Color from RED to BLUE, Direction from LEFT to RIGHT"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode HORIZONTAL
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=HORIZONTAL, Color from BLUE to RED, Direction from LEFT to RIGHT"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode HORIZONTAL
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=VERTICAL, Color from RED to BLUE, Direction from TOP to BOTTOM"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode VERTICAL
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=VERTICAL, Color from BLUE to RED, Direction from TOP to BOTTOM"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode VERTICAL
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=DIAGONAL1, Color from RED to BLUE, Direction from LEFT TOP CORNER to RIGHT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode DIAGONAL1
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=DIAGONAL1, Color from BLUE to RED, Direction from LEFT TOP CORNER to RIGHT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode DIAGONAL1
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=DIAGONAL2, Color from RED to BLUE, Direction from RIGHT TOP CORNER to LEFT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient RED BLUE -gradientMode DIAGONAL2
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,15 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21747"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
set BugNumber OCC21747
|
||||
|
||||
vinit
|
||||
|
||||
puts "${BugNumber}"
|
||||
puts "Type=DIAGONAL2, Color from BLUE to RED, Direction from RIGHT TOP CORNER to LEFT BOTTOM CORNER"
|
||||
|
||||
vbackground -gradient BLUE RED -gradientMode DIAGONAL2
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,24 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC21757"
|
||||
puts "==========="
|
||||
puts ""
|
||||
################################################################################
|
||||
# Funny (giraffe-like) shading of torus meshed with specific parameters (WNT)
|
||||
################################################################################
|
||||
|
||||
set BugNumber OCC21757
|
||||
|
||||
vinit
|
||||
vsetdispmode 1
|
||||
vclear
|
||||
|
||||
ptorus result 200 50 45
|
||||
incmesh result 0.4
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
checkprops result -s 65069.2
|
||||
checkshape result
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21757"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Funny (giraffe-like) shading of torus meshed with specific parameters (WNT)
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21757
|
||||
|
||||
vinit
|
||||
vsetdispmode 1
|
||||
vclear
|
||||
|
||||
# variant 1: mesh explicitly
|
||||
ptorus result 200 50 45
|
||||
incmesh result 0.4
|
||||
vdisplay result
|
||||
vfit
|
||||
checkcolor 200 200 0.89 0.63 0.109
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,23 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21757"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Funny (giraffe-like) shading of torus meshed with specific parameters (WNT)
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21757
|
||||
|
||||
vinit
|
||||
vsetdispmode 1
|
||||
vclear
|
||||
|
||||
# variant 2: alternative implicit method of setting deflection
|
||||
plane pl2 0 0 200 0 0 1
|
||||
ptorus result pl2 200 50 45
|
||||
vdisplay result
|
||||
vsetshading result 0.0004
|
||||
vfit
|
||||
checkcolor 200 200 0.89 0.63 0.109
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,19 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC21798"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Attached face hangs during visualization in OCC Viewer 3D .
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC21798
|
||||
|
||||
restore [locate_data_file OCC21798.brep] result
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
vsetdispmode 1
|
||||
vfit
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,21 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC22304"
|
||||
puts "==========="
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Incorrect triangulation on face of the attached file
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22304
|
||||
|
||||
restore [locate_data_file OCC22304-face_976_badvisu.brep] result
|
||||
|
||||
tclean result
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
vsetdispmode 1
|
||||
|
||||
checktrinfo result -tri -nod
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,31 +0,0 @@
|
||||
puts "========================"
|
||||
puts "OCC22368"
|
||||
puts "========================"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# AIS_Trihedron's highlight presentation isn't updated on trihedron relocation
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22368
|
||||
|
||||
vclear
|
||||
vinit View1
|
||||
vtrihedron trihedron
|
||||
OCC74_set trihedron 3
|
||||
|
||||
set x1 200
|
||||
set x2 220
|
||||
set x3 210
|
||||
|
||||
set y 190
|
||||
|
||||
vselect ${x3} ${y}
|
||||
|
||||
vsetlocation trihedron 100 100 100
|
||||
|
||||
set status 0
|
||||
for {set i ${x1} } {$i <= ${x2} } {incr i} {
|
||||
checkcolor ${i} ${y} 0 0 0
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,16 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22483"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# ZBufferTrihedron loses user-defined color
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22483
|
||||
|
||||
vinit
|
||||
vzbufftrihedron
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22483"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# ZBufferTrihedron loses user-defined color
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22483
|
||||
|
||||
vinit View1
|
||||
vzbufftrihedron -position left_lower -scale 0.1 -type zbuffer -colorLabels WHITE
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,14 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22483"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# ZBufferTrihedron loses user-defined color
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22483
|
||||
|
||||
vinit View1
|
||||
vzbufftrihedron -position right_upper -scale 0.2 -type zbuffer -colorLabels 0.78 0.20 1.0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,14 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22483"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# ZBufferTrihedron loses user-defined color
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22483
|
||||
|
||||
vinit View1
|
||||
vzbufftrihedron -position center -scale 0.1 -type wireframe -colorLabels 0.0 0.59 1.0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,29 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22507"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Regression: shading of face is bad (wrong normals)
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22507
|
||||
|
||||
restore [locate_data_file OCC22507-bug589_f77_badshading.brep] result
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
vsetdispmode 1
|
||||
|
||||
set x 200
|
||||
set y 220
|
||||
|
||||
set RED_R1 0.96470499038696289
|
||||
set GREEN_R1 0.68627399206161499
|
||||
set BLUE_R1 0.12156800180673599
|
||||
|
||||
vmoveto $x $y
|
||||
|
||||
checkcolor $x $y ${RED_R1} ${GREEN_R1} ${BLUE_R1}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,21 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22652"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# No mesh for face (regression)
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22652
|
||||
|
||||
pload ALL
|
||||
|
||||
restore [locate_data_file OCC22652-faceNoMesh.brep] result
|
||||
vinit
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
vsetdispmode 1
|
||||
|
||||
checktrinfo result -tri -nod
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,22 +0,0 @@
|
||||
puts "========"
|
||||
puts "OCC22735"
|
||||
puts "========"
|
||||
puts ""
|
||||
###########################################################
|
||||
# Data races in BRepMesh working in parallel mode
|
||||
###########################################################
|
||||
|
||||
set BugNumber OCC22735
|
||||
|
||||
vinit
|
||||
vsetdispmode 1
|
||||
mpparallel 1
|
||||
|
||||
restore [locate_data_file OCC22735-march_cube.brep] result
|
||||
|
||||
vdisplay result
|
||||
|
||||
checktrinfo result -tri 48 -nod 96 -defl 0 -tol_rel_defl 0.001 -tol_rel_tri 0.001 -tol_rel_nod 0.001
|
||||
|
||||
vfit
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,20 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22796"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Possibility to display multi-line text in 3D
|
||||
#######################################################################
|
||||
|
||||
vfont add [locate_data_file DejaVuSans.ttf] SansFont
|
||||
|
||||
set BugNumber OCC22796
|
||||
|
||||
vinit
|
||||
vdrawtext text0 "MyTest1\rHello,\tWor\vld!\nMyTest2\t\a\bMyTest3" -pos 0 0 0 -color WHITE -halign left -valign bottom -angle 0 -zoom 1 -height 50 -aspect regular -font SansFont
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
||||
|
||||
|
@ -1,17 +0,0 @@
|
||||
puts "============"
|
||||
puts "CR22835"
|
||||
puts "============"
|
||||
puts ""
|
||||
##########################################################################################################
|
||||
# IncrementalMesh generates FLT exceptions when running in parallel mode
|
||||
##########################################################################################################
|
||||
|
||||
mpparallel 1
|
||||
restore [locate_data_file bug22835_hello.brep] result
|
||||
vinit
|
||||
vdisplay result
|
||||
vsetdispmode 1
|
||||
tclean result
|
||||
vdisplay result
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,51 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC22847"
|
||||
puts "============"
|
||||
puts ""
|
||||
##############################################################################################
|
||||
# DrawTrSurf: provide interface for configuring visualization properties in axonometric viewer
|
||||
##############################################################################################
|
||||
|
||||
set BugNumber OCC22847
|
||||
|
||||
axo
|
||||
point p1 0 0 0
|
||||
point p2 30 0 0
|
||||
point p3 60 0 0
|
||||
point p4 90 0 0
|
||||
point p5 120 0 0
|
||||
point a1 0 30 0
|
||||
point a2 0 60 0
|
||||
point a3 0 90 0
|
||||
point a4 0 120 0
|
||||
point b1 0 0 30
|
||||
point b2 0 0 60
|
||||
point b3 0 0 90
|
||||
point b4 0 0 120
|
||||
|
||||
changepointcolor white p1
|
||||
changepointcolor red p2
|
||||
changepointcolor blue p3
|
||||
changepointcolor green p4
|
||||
changepointcolor cyan p5
|
||||
changepointcolor golden a1
|
||||
changepointcolor brown a3
|
||||
changepointcolor orange a4
|
||||
changepointcolor pink a2
|
||||
changepointcolor coral b1
|
||||
changepointcolor violet b2
|
||||
changepointcolor pink b3
|
||||
changepointcolor pink b4
|
||||
|
||||
changepointmarker square p5
|
||||
changepointmarker diamond p4
|
||||
changepointmarker x p3
|
||||
changepointmarker plus a4
|
||||
changepointmarker circle a3
|
||||
changepointmarker circle b3
|
||||
|
||||
setpointcolor white
|
||||
setpointmarker square
|
||||
point f 100 50 50
|
||||
|
||||
puts "It's a visualization bug. There are not results. See photo."
|
@ -1,40 +0,0 @@
|
||||
puts "TODO CR30056 ALL: Meshing statuses: SelfIntersectingWire Failure"
|
||||
|
||||
puts "============"
|
||||
puts "OCC22849"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Bad import of a STEP file (error during triangulation)
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22849
|
||||
|
||||
catch {pload XDE}
|
||||
|
||||
stepread [locate_data_file OCC22849-2520-6002_step.stp] a *
|
||||
checkshape a_1
|
||||
##tole a_1
|
||||
incmesh a_1 0.1
|
||||
tricheck a_1
|
||||
explode a_1 f
|
||||
|
||||
set info1 [fromshape a_1_67]
|
||||
regexp {Shape a_1_67 : imported from entity ([-0-9.+eE]+:#[-0-9.+eE]+)} $info1 full entity1
|
||||
set word1 [string compare $entity1 4973:#5009]
|
||||
|
||||
set info2 [fromshape a_1_73]
|
||||
regexp {Shape a_1_73 : imported from entity ([-0-9.+eE]+:#[-0-9.+eE]+)} $info2 full entity2
|
||||
set word2 [string compare $entity2 5157:#5193]
|
||||
|
||||
set info3 [fromshape a_1_91]
|
||||
regexp {Shape a_1_91 : imported from entity ([-0-9.+eE]+:#[-0-9.+eE]+)} $info3 full entity3
|
||||
set word3 [string compare $entity3 5659:#5695]
|
||||
|
||||
if { ${word1} == 0 && ${word2} == 0 && ${word3} == 0 } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
||||
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
@ -1,32 +0,0 @@
|
||||
puts "================"
|
||||
puts "OCC22900"
|
||||
puts "================"
|
||||
puts ""
|
||||
#######################################################################################
|
||||
# Problem with shape displaying in shading mode
|
||||
######################################################################################
|
||||
|
||||
set BugNumber OCC22900
|
||||
|
||||
set x1 204
|
||||
set y1 202
|
||||
|
||||
vertex v1 0 0 0
|
||||
vertex v2 0 0 30
|
||||
edge e1 v1 v2
|
||||
pcone con1 5 0 10
|
||||
ttranslate con1 0 0 30
|
||||
compound con1 e1 c1
|
||||
don c1
|
||||
fit
|
||||
vinit
|
||||
vdisplay c1
|
||||
vfit
|
||||
vsetcolor c1 RED
|
||||
vsetcolor c1 GREEN
|
||||
vsetdispmode 1
|
||||
vsetcolor c1 RED
|
||||
|
||||
checkcolor ${x1} ${y1} 1 0 0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,32 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC22912"
|
||||
puts "==========="
|
||||
puts ""
|
||||
########################################################################################################################
|
||||
# After calling AIS_InteractiveContext::UnsetColor objects are drawn with the same color when transparency is changed
|
||||
########################################################################################################################
|
||||
|
||||
restore [locate_data_file bug22912_p.brep] p
|
||||
explode p
|
||||
vinit
|
||||
vdisplay p_1
|
||||
vdisplay p_2
|
||||
vfit
|
||||
vsetdispmode p_1 1
|
||||
vsetdispmode p_2 1
|
||||
vsetcolor p_1 red
|
||||
vsetcolor p_2 green
|
||||
vunsetcolor p_1
|
||||
vunsetcolor p_2
|
||||
vsetcolor p_1 red
|
||||
vsetcolor p_2 green
|
||||
vsettransparency p_1 0.5
|
||||
vsettransparency p_1 0
|
||||
|
||||
checkcolor 120 150 0.831 0.000 0.000
|
||||
checkcolor 180 273 0.000 0.753 0.000
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
puts "========"
|
||||
puts "CR23062"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
#######################################################
|
||||
## Incorrect display of edge in draw axo viewer
|
||||
#######################################################
|
||||
|
||||
restore [locate_data_file bug23062_ProblemWire.brep] result
|
||||
|
||||
smallview
|
||||
display result
|
||||
fit
|
||||
|
||||
explode result v
|
||||
|
||||
vinit
|
||||
vdisplay result
|
||||
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
@ -1,34 +0,0 @@
|
||||
puts "================"
|
||||
puts "OCC23065"
|
||||
puts "================"
|
||||
puts ""
|
||||
##########################################################################################
|
||||
# This is desirable to add general DRAW command to estimate visualization performance
|
||||
##########################################################################################
|
||||
|
||||
set BugNumber OCC23065
|
||||
|
||||
vinit
|
||||
set Log [vfps]
|
||||
|
||||
set status 0
|
||||
if { [llength ${Log}] == 5} {
|
||||
set word1 [string compare [lindex ${Log} end] "msec"]
|
||||
set word2 [string compare [lindex ${Log} end-2] "CPU:"]
|
||||
set word3 [string compare [lindex ${Log} end-4] "FPS:"]
|
||||
if { ${word1} == 0 && ${word2} == 0 && ${word3} == 0 } {
|
||||
set status 0
|
||||
} else {
|
||||
set status 1
|
||||
}
|
||||
} else {
|
||||
set status 1
|
||||
}
|
||||
|
||||
# Resume
|
||||
puts ""
|
||||
if { ${status} == 0 } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC23067"
|
||||
puts "==========="
|
||||
puts ""
|
||||
################################################################################
|
||||
# OpenGl package API needed by UserDraw feature is not exported
|
||||
################################################################################
|
||||
|
||||
set BugNumber OCC23067
|
||||
set x1 321
|
||||
set y1 159
|
||||
|
||||
vinit
|
||||
vuserdraw a
|
||||
vfit
|
||||
checkcolor ${x1} ${y1} 1 1 0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC23069"
|
||||
puts "==========="
|
||||
puts ""
|
||||
################################################################################
|
||||
# OpenGL state extraction for GL_RENDER_MODE significantly impact performance
|
||||
#
|
||||
# Execution of the test case is actual only for testing on specific hardware.
|
||||
# Test case will be updated after starting testing on hardware.
|
||||
################################################################################
|
||||
|
||||
set BugNumber OCC23069
|
||||
|
||||
#vinit
|
||||
|
||||
#for {set anInter 1} {$anInter <= 1000} {incr anInter} {
|
||||
# box b${anInter} [expr $anInter * 20] 0 0 10 20 30
|
||||
# vdisplay b${anInter}
|
||||
#}
|
||||
|
||||
#vfit
|
||||
|
||||
#set Log [vfps]
|
||||
|
||||
# it's necessary to check value of CPU and FPS
|
@ -1,17 +0,0 @@
|
||||
puts "========"
|
||||
puts "OCC230"
|
||||
puts "OCC489"
|
||||
puts "========"
|
||||
puts ""
|
||||
############################################
|
||||
## Numeric Error occurs in V2d_View::WindowFit() , Magnify()
|
||||
############################################
|
||||
|
||||
point p1 0 10
|
||||
point p2 10 20
|
||||
|
||||
if [catch { OCC230 tc p1 p2 } ] {
|
||||
puts "OCC230: Error"
|
||||
} else {
|
||||
puts "OCC230: OK"
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
puts "========"
|
||||
puts "OCC230"
|
||||
puts "OCC489"
|
||||
puts "========"
|
||||
puts ""
|
||||
############################################
|
||||
## Numeric Error occurs in V2d_View::WindowFit() , Magnify()
|
||||
############################################
|
||||
|
||||
point p1 0 10
|
||||
point p2 10 20
|
||||
|
||||
if [catch { OCC230 tc p2 p1 } ] {
|
||||
puts "OCC230: Error"
|
||||
} else {
|
||||
puts "OCC230: OK"
|
||||
}
|
||||
|
@ -1,33 +0,0 @@
|
||||
puts "================"
|
||||
puts "OCC23102"
|
||||
puts "================"
|
||||
puts ""
|
||||
###################################################################################################
|
||||
# Change the algorithm of rendering the 3d viewer background using tiled texture
|
||||
###################################################################################################
|
||||
|
||||
set BugNumber OCC23102
|
||||
|
||||
vinit
|
||||
vbackground -image [locate_data_file OCC23102.bmp] -imageMode TILED
|
||||
|
||||
set x1 58
|
||||
set y1 4
|
||||
set R_bg 0.70196002721786499
|
||||
set G_bg 0.78039199113845825
|
||||
set B_bg 0.86274499999999998
|
||||
|
||||
set WrongColor "$R_bg $G_bg $B_bg"
|
||||
|
||||
set Color [vreadpixel ${x1} ${y1} rgb]
|
||||
|
||||
#Resume
|
||||
puts ""
|
||||
if { "[vreadpixel ${x1} ${y1} rgb]" != "$WrongColor" } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,30 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23120"
|
||||
puts "============"
|
||||
puts ""
|
||||
###########################################################################
|
||||
# Transform persistence is not restored
|
||||
###########################################################################
|
||||
|
||||
box b1 10 20 30
|
||||
box b2 10 20 30
|
||||
ttranslate b2 50 50 0
|
||||
vinit
|
||||
vdisplay b1 -trihedron center
|
||||
|
||||
vdisplay b2
|
||||
vfit
|
||||
vsetdispmode 1
|
||||
vzoom 0.5
|
||||
vpan 100 0
|
||||
|
||||
set x_coord 300
|
||||
set y_coord 130
|
||||
|
||||
checkcolor $x_coord $y_coord 0.78 0.55 0.9
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Transform persistence is not restored"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,28 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23123"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Bug/Regression in visualization of XDE documents in shaded mode
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC23123
|
||||
|
||||
catch { pload XDE }
|
||||
|
||||
ReadStep D [locate_data_file OCC23123-test.step]
|
||||
XShow D
|
||||
vfit
|
||||
vsetdispmode 1
|
||||
|
||||
puts "Point color test:"
|
||||
set x1 310
|
||||
set y1 225
|
||||
set r1 0.04
|
||||
set g1 0.04
|
||||
set b1 0.67
|
||||
|
||||
checkcolor $x1 $y1 $r1 $g1 $b1
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,20 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23186"
|
||||
puts "============"
|
||||
puts ""
|
||||
############################################################################
|
||||
# Unable to display Graphic3d_ArrayOfPoints after migrating from OCCT 6.5.2
|
||||
############################################################################
|
||||
|
||||
set BugNumber OCC23186
|
||||
|
||||
vinit
|
||||
vdrawparray a points v 0 0 0 v 0 0 10 v 0 10 10 v 0 10 0
|
||||
vfit
|
||||
|
||||
checkcolor 321 2 1 1 0
|
||||
checkcolor 321 271 1 1 0
|
||||
checkcolor 87 137 1 1 0
|
||||
checkcolor 87 406 1 1 0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,30 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23385"
|
||||
puts "============"
|
||||
puts ""
|
||||
####################################################################################
|
||||
# Bug in AIS_TexturedShape::Compute()
|
||||
####################################################################################
|
||||
|
||||
set BugNumber OCC23385
|
||||
|
||||
vinit
|
||||
restore [locate_data_file OCC23115-bottle.brep] b
|
||||
explode b F
|
||||
vdisplay b_16
|
||||
vtexture b_16 [locate_data_file OCC23385-carrelage1.gif]
|
||||
vtexrepeat b_16 3 2
|
||||
vsetdispmode b_16 1
|
||||
vfit
|
||||
|
||||
if { "[vreadpixel 85 73 rgb name]" != "BLACK" } {
|
||||
puts "OK ${BugNumber}"
|
||||
} else {
|
||||
puts "Faulty ${BugNumber}"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
||||
|
||||
|
@ -1,16 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23400"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Triangulation of thin ring contains gap
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file bug23400_thinring.brep] a
|
||||
vinit
|
||||
vsetdispmode 1
|
||||
vdisplay a
|
||||
vtop
|
||||
vfit
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,37 +0,0 @@
|
||||
puts "============"
|
||||
puts "CR23407"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Draw face outlines for XDE objects
|
||||
#######################################################################
|
||||
pload XDEDRAW
|
||||
|
||||
XNewDoc Doc1
|
||||
ReadStep Doc1 [locate_data_file screw.step]
|
||||
XShow Doc1 0:1:1:1
|
||||
XShowFaceBoundary Doc1 0:1:1:1 1 255 0 0 10 1
|
||||
vfit
|
||||
vsetdispmode 1
|
||||
|
||||
set x_coord 178
|
||||
set y_coord 36
|
||||
|
||||
checkcolor $x_coord $y_coord 1 0 0
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Boundary of face is not changed"
|
||||
}
|
||||
|
||||
set x_coord 244
|
||||
set y_coord 89
|
||||
|
||||
checkcolor $x_coord $y_coord 1 0 0
|
||||
|
||||
if { $stat != 01} {
|
||||
puts "Error : Boundary of face is not changed"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
|
@ -1,20 +0,0 @@
|
||||
puts "============"
|
||||
puts "CR23422"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Selection problems when using SetLocation.
|
||||
#######################################################################
|
||||
|
||||
box b 50 50 50
|
||||
vinit
|
||||
vsetdispmode 1
|
||||
vdisplay b
|
||||
vtrihedron t
|
||||
|
||||
vsetlocation b 30 30 130
|
||||
|
||||
vmoveto 240 150
|
||||
|
||||
set anImage ${imagedir}/${casename}.png
|
||||
vdump ${anImage}
|
@ -1,23 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23484"
|
||||
puts "============"
|
||||
puts ""
|
||||
############################################################################################
|
||||
puts "Visualization, TKOpenGl - primitive arrays to become the only way to render geometry"
|
||||
puts "Tests wireframe trihedron rendering with primitive arrays"
|
||||
############################################################################################
|
||||
|
||||
set anImage1 $imagedir/${casename}_1.png
|
||||
set anImage2 $imagedir/${casename}_2.png
|
||||
|
||||
vinit View1
|
||||
vfit
|
||||
vaxo
|
||||
|
||||
vzbufftrihedron -scale 0.1 -type wireframe -position left_lower
|
||||
vdump $anImage1
|
||||
|
||||
vzbufftrihedron -scale 0.1 -type wireframe -position center
|
||||
vdump $anImage2
|
||||
|
||||
vclear
|
@ -1,27 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23484"
|
||||
puts "============"
|
||||
puts ""
|
||||
############################################################################################
|
||||
puts "Visualization, TKOpenGl - primitive arrays to become the only way to render geometry"
|
||||
puts "Tests clipping plane rendering with primitive arrays"
|
||||
############################################################################################
|
||||
|
||||
set anImage $imagedir/${casename}_1.png
|
||||
|
||||
vinit View1
|
||||
vclear
|
||||
vaxo
|
||||
vsetdispmode 1
|
||||
box b 1 1 1
|
||||
vdisplay b
|
||||
vfit
|
||||
|
||||
vclipplane create pln
|
||||
vclipplane set pln view Driver1/Viewer1/View1
|
||||
vclipplane change pln equation 0 1 0 -0.5
|
||||
vclipplane change pln capping on
|
||||
|
||||
vdump $anImage
|
||||
|
||||
vclear
|
@ -1,33 +0,0 @@
|
||||
|
||||
|
||||
puts "============"
|
||||
puts "CR23539"
|
||||
puts "============"
|
||||
puts ""
|
||||
#############################
|
||||
## Test case for polygonal shift selection
|
||||
#############################
|
||||
|
||||
box a 10 10 10
|
||||
box b 50 50 50 10 10 10
|
||||
vinit
|
||||
vdisplay a b
|
||||
vfit
|
||||
vselmode 2 1
|
||||
vselect 0 0
|
||||
vselect 58 300
|
||||
vselect 300 200 300 60 400 60 407 150 -xor
|
||||
|
||||
set NbSelected1 [vnbselected]
|
||||
if { ${NbSelected1} != 13 } {
|
||||
puts "Error : Polygonal shift selection doesn't work properly"
|
||||
}
|
||||
|
||||
vselect 350 120 -xor
|
||||
|
||||
set NbSelected1 [vnbselected]
|
||||
if { ${NbSelected1} != 12 } {
|
||||
puts "Error : (case 2)"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,28 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23670"
|
||||
puts "============"
|
||||
puts ""
|
||||
############################################################################
|
||||
# Support for multiple 3D views
|
||||
############################################################################
|
||||
|
||||
#test case for vinit, vclose and vviewlist commands
|
||||
#create view with default name Driver1/Viewer1/View1
|
||||
vinit
|
||||
vinit MyDriver/MyViewer/View1
|
||||
vinit MyDriver/MyViewer/MyView
|
||||
#close MyDriver/MyViewer/View1
|
||||
vclose View1
|
||||
set ResultBefore [vviewlist]
|
||||
vinit Driver1/Viewer1/MyView
|
||||
vclose MyView
|
||||
vinit Driver1/Viewer1/View2
|
||||
|
||||
set ResultAfter [vviewlist]
|
||||
set Result [string equal $ResultBefore $ResultAfter]
|
||||
#compare outputs of two vviewlist calls
|
||||
if {$Result != 0} {
|
||||
puts "Error. Different view lists are equal."
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,22 +0,0 @@
|
||||
puts "========"
|
||||
puts "CR23705"
|
||||
puts "========"
|
||||
puts ""
|
||||
###############################################################
|
||||
## Isoline in the AIS viewer is not trimmed
|
||||
###############################################################
|
||||
|
||||
restore [locate_data_file bug23705_plancher20igs_face.brep] result
|
||||
|
||||
vinit
|
||||
visos 10 10 1
|
||||
|
||||
vdisplay result
|
||||
vfit
|
||||
|
||||
set x 326
|
||||
set y 295
|
||||
|
||||
checkcolor $x $y 0 0 0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,30 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23709"
|
||||
puts "============"
|
||||
puts ""
|
||||
############################################################################
|
||||
# Redesign of hlrtest command
|
||||
############################################################################
|
||||
|
||||
pcone a 5 0 10
|
||||
box b 15 0 0 10 10 10
|
||||
vinit
|
||||
vdisplay a
|
||||
vdisplay b
|
||||
vrotate 35 0 0
|
||||
vfit
|
||||
vhlr on
|
||||
vhlrtype polyalgo b
|
||||
|
||||
set x_coord 290
|
||||
set y_coord 170
|
||||
vaspects -setwidth 5
|
||||
if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
|
||||
puts "Error : color is not yellow"
|
||||
}
|
||||
|
||||
set x_coord 86
|
||||
set y_coord 221
|
||||
checkcolor $x_coord $y_coord 0 0 0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,30 +0,0 @@
|
||||
puts "============"
|
||||
puts "OCC23709"
|
||||
puts "============"
|
||||
puts ""
|
||||
############################################################################
|
||||
# Redesign of hlrtest command
|
||||
############################################################################
|
||||
|
||||
pcone a 5 0 10
|
||||
box b 15 0 0 10 10 10
|
||||
vinit
|
||||
vdisplay a
|
||||
vdisplay b
|
||||
vrotate 35 0 0
|
||||
vfit
|
||||
vhlr on
|
||||
vhlrtype algo a
|
||||
|
||||
set x_coord 290
|
||||
set y_coord 170
|
||||
vaspects -setwidth 5
|
||||
if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
|
||||
puts "Error : color is not yellow"
|
||||
}
|
||||
|
||||
set x_coord 86
|
||||
set y_coord 221
|
||||
checkcolor $x_coord $y_coord 0 0 0
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,25 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC23709"
|
||||
puts "==========="
|
||||
puts ""
|
||||
##################################
|
||||
# Redesign of hlrtest command
|
||||
##################################
|
||||
|
||||
set x_coord 183
|
||||
set y_coord 267
|
||||
|
||||
restore [locate_data_file bug23709_solidcone.brep] result
|
||||
vinit
|
||||
vdisplay result
|
||||
vrotate 35 0 0
|
||||
vfit
|
||||
vhlr on
|
||||
vhlrtype algo result
|
||||
|
||||
vaspects -setwidth 5
|
||||
if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
|
||||
puts "Error : color is not yellow"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,25 +0,0 @@
|
||||
puts "==========="
|
||||
puts "OCC23709"
|
||||
puts "==========="
|
||||
puts ""
|
||||
##################################
|
||||
# Redesign of hlrtest command
|
||||
##################################
|
||||
|
||||
set x_coord 183
|
||||
set y_coord 267
|
||||
|
||||
restore [locate_data_file bug23709_surfcone.brep] result
|
||||
vinit
|
||||
vdisplay result
|
||||
vrotate 35 0 0
|
||||
vfit
|
||||
vhlr on
|
||||
vhlrtype algo result
|
||||
|
||||
vaspects -setwidth 5
|
||||
if { "[vreadpixel $x_coord $y_coord rgb name]" != "YELLOW" } {
|
||||
puts "Error : color is not yellow"
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,13 +0,0 @@
|
||||
puts "================"
|
||||
puts "CR23743"
|
||||
puts "================"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# AIS_Triangulation crashes if Poly_Triangulation has no normals
|
||||
#######################################################################
|
||||
|
||||
vinit
|
||||
vdrawsphere result 100
|
||||
vfit
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,19 +0,0 @@
|
||||
puts "============"
|
||||
puts "CR23984"
|
||||
puts "============"
|
||||
puts ""
|
||||
########################################################
|
||||
# Incorrect visualization of wires in wireframe mode
|
||||
########################################################
|
||||
|
||||
vinit View1
|
||||
restore [locate_data_file bug23984_bug.brep] result
|
||||
vdisplay result
|
||||
vsetdispmode 0
|
||||
vfit
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
||||
|
||||
axo
|
||||
fit
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
||||
|
@ -1,27 +0,0 @@
|
||||
puts "============"
|
||||
puts "CR24133"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Development of improvement of dimensions implementation
|
||||
# Length dimension
|
||||
#######################################################################
|
||||
pload VISUALIZATION
|
||||
|
||||
vfont add [locate_data_file DejaVuSans.ttf] SansFont
|
||||
|
||||
vinit
|
||||
vpoint lengthP1 0 0 0
|
||||
vpoint lengthP2 50 50 50
|
||||
vdimension dim1 -length -plane xoy -shapes lengthP1 lengthP2 -font SansFont
|
||||
vfit
|
||||
vmoveto 82 254
|
||||
|
||||
set x_coord 362
|
||||
set y_coord 102
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Highlighting of length dimension is wrong."
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,46 +0,0 @@
|
||||
puts "============"
|
||||
puts "CR24133"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Development of improvement of dimensions implementation
|
||||
# Angle dimension
|
||||
#######################################################################
|
||||
pload VISUALIZATION
|
||||
|
||||
vfont add [locate_data_file DejaVuSans.ttf] SansFont
|
||||
|
||||
vinit
|
||||
vpoint angle1P1 0 0 0
|
||||
vpoint angle1P2 50 50 50
|
||||
vpoint angle1P3 50 50 100
|
||||
vdimension dim1 -angle -shapes angle1P1 angle1P2 angle1P3 -font SansFont
|
||||
vfit
|
||||
vmoveto 249 206
|
||||
|
||||
set x_coord 249
|
||||
set y_coord 200
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Highlighting of angle dimension with 2d text is wrong."
|
||||
}
|
||||
vinit Viewer2/View2
|
||||
vpoint angle2P1 0 0 0
|
||||
vpoint angle2P2 50 50 50
|
||||
vpoint angle2P3 50 50 100
|
||||
vdimension dim2 -angle -text 3d -shapes angle2P1 angle2P2 angle2P3 -font SansFont
|
||||
vfit
|
||||
vmoveto 263 251
|
||||
|
||||
set x_coord 335
|
||||
set y_coord 319
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Highlighting of angle dimension with 3d text is wrong."
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -1,47 +0,0 @@
|
||||
puts "============"
|
||||
puts "CR24133"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Development of improvement of dimensions implementation
|
||||
# Radius dimension
|
||||
#######################################################################
|
||||
pload VISUALIZATION
|
||||
|
||||
vfont add [locate_data_file DejaVuSans.ttf] SansFont
|
||||
|
||||
vinit
|
||||
vpoint radP1 0 0 0
|
||||
vpoint radP2 50 50 0
|
||||
vpoint radP3 100 0 0
|
||||
vcircle circle1 radP1 radP2 radP3 0
|
||||
verase radP1 radP2 radP3
|
||||
vdimension dim1 -radius -shapes circle1 -font SansFont
|
||||
vfit
|
||||
vmoveto 123 158
|
||||
|
||||
set x_coord 112
|
||||
set y_coord 151
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Highlighting of radius dimension with 2d text is wrong."
|
||||
}
|
||||
|
||||
vinit Viewer2/View2
|
||||
vcircle circle2 radP1 radP2 radP3 0
|
||||
vdimension dim2 -radius -text 3d -shapes circle2 -font SansFont
|
||||
vfit
|
||||
vmoveto 191 196
|
||||
|
||||
set x_coord 112
|
||||
set y_coord 151
|
||||
|
||||
checkcolor $x_coord $y_coord 0 1 1
|
||||
|
||||
if { $stat != 1 } {
|
||||
puts "Error : Highlighting of radius dimension with 3d text is wrong."
|
||||
}
|
||||
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user