mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023422: Selection problems when using SetLocation. 0024756: AIS_ConnectedInteractive does not support nested AIS_ConnectedInteractive 0025103: Visualization - Regression in interactive detection Each PrsMgr_PresentableObject has list of PrsMgr _PresentableObject called myChildren. Transformation PrsMgr_PresentableObject applied to its children every time when its own transformation affected. This hierarchy does not propagate to Graphic3d level and below. PrsMgr_PresentableObject send its combined (according to hierarchy) transform down to Graphic3d_Structure. AIS_ConnectedInteractive and AIS_MultiplyConnectedInteractive are reused but behavior has been changed. AIS_ConnectedInteractive now is an instance of object. It reuses geometry of connected object but have own transformation, material, visibility flag etc. This connection propagated down to OpenGl level to OpenGl_Structure. For this task old “connected” mechanism has been reused. AIS_MultiplyConnectedInteractive represents assembly which doesn’t have its own presentation. Assemblies are able to participate is scene hierarchy and intended to handle a grouped set of instanced objects. It behaves as single object in terms of selection. It applies high level transform to all sub-elements since it located above in the hierarchy. All AIS_MultiplyConnectedInteractive are able to have child assemblies. Deep copy of object instances performed when one assembly attached to another. Correction test cases for CR24837 Test cases for issue CR23422 Test cases for issue CR24756 Test cases for issue CR25103 Viewer3d sample fixed.
134 lines
3.1 KiB
Plaintext
Executable File
134 lines
3.1 KiB
Plaintext
Executable File
puts "TODO ?OCC11111 ALL: Faulty OCC12121"
|
|
|
|
puts "================"
|
|
puts "OCC12121"
|
|
puts "================"
|
|
puts ""
|
|
#######################################################################################
|
|
# Optimization of existing selection classes
|
|
######################################################################################
|
|
|
|
set BugNumber OCC12121
|
|
set x1 226
|
|
set y1 154
|
|
|
|
set x2 300
|
|
set y2 187
|
|
|
|
set x3 183
|
|
set y3 269
|
|
|
|
set x_vertex_obj 330
|
|
set y_vertex_obj 212
|
|
set x_vertex_new 184
|
|
set y_vertex_new 268
|
|
|
|
set x_edge_obj 296
|
|
set y_edge_obj 155
|
|
set x_edge_new 205
|
|
set y_edge_new 240
|
|
|
|
set x_wire_obj 298
|
|
set y_wire_obj 209
|
|
set x_wire_new 55
|
|
set y_wire_new 236
|
|
|
|
set x_face_obj 169
|
|
set y_face_obj 146
|
|
set x_face_new 204
|
|
set y_face_new 238
|
|
|
|
set x_shell_obj 224
|
|
set y_shell_obj 148
|
|
set x_shell_new 230
|
|
set y_shell_new 268
|
|
|
|
set x_solid_obj 329
|
|
set y_solid_obj 218
|
|
set x_solid_new 168
|
|
set y_solid_new 256
|
|
|
|
set R_check 0
|
|
set G_check 1
|
|
set B_check 1
|
|
|
|
set x_refresh 10
|
|
set y_refresh 10
|
|
|
|
restore [locate_data_file OCC12121-CrankArm.brep] obj
|
|
vinit
|
|
vdisplay obj
|
|
vconnect new 50 50 50 obj
|
|
vfit
|
|
vmoveto $x1 $y1
|
|
set ColorObj1 [QAGetPixelColor ${x2} ${y2}]
|
|
set ColorNew1 [QAGetPixelColor ${x3} ${y3}]
|
|
|
|
vselect $x1 $y1
|
|
set ColorObj2 [QAGetPixelColor ${x2} ${y2}]
|
|
set ColorNew2 [QAGetPixelColor ${x3} ${y3}]
|
|
|
|
puts "Check vconnect command"
|
|
set status_vconnect 0
|
|
if { ${ColorObj1} == ${ColorNew1} && ${ColorObj2} == ${ColorNew2} } {
|
|
set status_vconnect 0
|
|
} else {
|
|
set status_vconnect 1
|
|
}
|
|
|
|
vselect ${x_refresh} ${y_refresh}
|
|
vselmode 1 1
|
|
vmoveto ${x_vertex_obj} ${y_vertex_obj}
|
|
checkcolor ${x_vertex_obj} ${y_vertex_obj} ${R_check} ${G_check} ${B_check}
|
|
vmoveto ${x_vertex_new} ${y_vertex_new}
|
|
checkcolor ${x_vertex_new} ${y_vertex_new} ${R_check} ${G_check} ${B_check}
|
|
|
|
vselmode 1 0
|
|
vselmode 2 1
|
|
vmoveto ${x_edge_obj} ${y_edge_obj}
|
|
checkcolor ${x_edge_obj} ${y_edge_obj} ${R_check} ${G_check} ${B_check}
|
|
vmoveto ${x_edge_new} ${y_edge_new}
|
|
checkcolor ${x_edge_new} ${y_edge_new} ${R_check} ${G_check} ${B_check}
|
|
|
|
vselmode 2 0
|
|
vselmode 3 1
|
|
vmoveto ${x_wire_obj} ${y_wire_obj}
|
|
checkcolor ${x_wire_obj} ${y_wire_obj} ${R_check} ${G_check} ${B_check}
|
|
vmoveto ${x_wire_new} ${y_wire_new}
|
|
checkcolor ${x_wire_new} ${y_wire_new} ${R_check} ${G_check} ${B_check}
|
|
|
|
vselmode 3 0
|
|
vselmode 4 1
|
|
vmoveto ${x_face_obj} ${y_face_obj}
|
|
checkcolor ${x_face_obj} ${y_face_obj} ${R_check} ${G_check} ${B_check}
|
|
vmoveto ${x_face_new} ${y_face_new}
|
|
checkcolor ${x_face_new} ${y_face_new} ${R_check} ${G_check} ${B_check}
|
|
|
|
vselmode 4 0
|
|
vselmode 5 1
|
|
vmoveto ${x_shell_obj} ${y_shell_obj}
|
|
checkcolor ${x_shell_obj} ${y_shell_obj} ${R_check} ${G_check} ${B_check}
|
|
vmoveto ${x_shell_new} ${y_shell_new}
|
|
checkcolor ${x_shell_new} ${y_shell_new} ${R_check} ${G_check} ${B_check}
|
|
|
|
vselmode 5 0
|
|
vselmode 6 1
|
|
vmoveto ${x_solid_obj} ${y_solid_obj}
|
|
checkcolor ${x_solid_obj} ${y_solid_obj} ${R_check} ${G_check} ${B_check}
|
|
vmoveto ${x_solid_new} ${y_solid_new}
|
|
checkcolor ${x_solid_new} ${y_solid_new} ${R_check} ${G_check} ${B_check}
|
|
|
|
vselmode 6 0
|
|
vselmode obj 1
|
|
vselect ${x_refresh} ${y_refresh}
|
|
|
|
##Resume
|
|
puts ""
|
|
if { ${status_vconnect} == 1 } {
|
|
puts "OK ${BugNumber}"
|
|
} else {
|
|
puts "Faulty ${BugNumber}"
|
|
}
|
|
|
|
set only_screen 1
|