mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Clipping range has been moved from SelectMgr_RectangularFrustum to SelectMgr_SelectingVolumeManager and passed to frustum as an argument to Overlap() methods. This fixes an issue when Clipping is customized per-object within SelectMgr_ViewerSelector::traverseObject() in case when shallow copy of SelectMgr_SelectingVolumeManager is created (frustums are copied from global frustum manager by Handle).
21 lines
682 B
Plaintext
21 lines
682 B
Plaintext
puts "============="
|
|
puts "0030906: Visualization, SelectMgr_ViewerSelector - Object clipping planes overrides View clipping plane for next objects"
|
|
puts "============="
|
|
|
|
pload MODELING VISUALIZATION
|
|
box b1 1 1 0 1 2 3
|
|
box b2 3 0 0 1 2 3
|
|
vclear
|
|
vinit View1
|
|
vdisplay -dispMode 1 -highMode 1 b1 b2
|
|
vfit
|
|
vzbufftrihedron
|
|
vpoint p0 0 0 0
|
|
vclipplane c1 -equation 0 1 0 1 -setOverrideGlobal b1
|
|
vclipplane c2 -equation 0 1 0 -1 -set
|
|
vmoveto 200 200
|
|
if { [vreadpixel 250 200 -rgb -name] != "DARKGOLDENROD3" } { puts "Error: selection of clipped object" }
|
|
if { [vreadpixel 150 200 -rgb -name] != "DARKTURQUOISE" } { puts "Error: object is not selected" }
|
|
|
|
vdump ${imagedir}/${casename}.png
|