mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-04 11:47:53 +08:00
0029947: Visualization - SelectMgr_SelectableObject::GetSelectPresentation() should copy object clipping planes
Methods SelectMgr_SelectableObject::GetHilightPresentation(), ::GetSelectPresentation() and ::UpdateClipping() have been corrected to copy clipping planes of the object into highlighting and selection presentations.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
puts "============="
|
||||
puts "0029947: Visualization - SelectMgr_SelectableObject::GetSelectPresentation() should copy object clipping planes"
|
||||
puts "============="
|
||||
|
||||
pload MODELING VISUALIZATION XDE
|
||||
vclear
|
||||
vinit View1
|
||||
vaxo
|
||||
meshfromstl m [locate_data_file shape.stl]
|
||||
vfit
|
||||
vdisplay -dispMode 2 m
|
||||
vselmode m 8 1
|
||||
vselect 160 170 320 370
|
||||
if { [vreadpixel 230 260 rgb name] == "BLACK" } { puts "Error" }
|
||||
vclipplane c -set m -equation 0 1 0 4
|
||||
if { [vreadpixel 230 260 rgb name] != "BLACK" } { puts "Error" }
|
||||
vmoveto 75 172
|
||||
if { [vreadpixel 70 170 rgb name] != "BLACK" } { puts "Error" }
|
||||
|
||||
vdump ${imagedir}/${casename}.png
|
||||
Reference in New Issue
Block a user