mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-09 15:51:29 +08:00
1b0c828bdc
- Apply `SelectMgr_SelectableObject` transformation when computing `BndBoxOfSelected()` for selected sub-owners. - Add Draw Harness regression test for `MeshVS_Mesh` vertex selection with a transformation. - Add Draw Harness regression test for transformed `TopoDS_Shape` face selection to ensure existing behavior remains correct.
24 lines
423 B
Plaintext
24 lines
423 B
Plaintext
puts "============"
|
|
puts "Verify vfit -selected works correctly for a primitive TopoDS_Shape with transformation"
|
|
puts "============"
|
|
puts ""
|
|
|
|
pload MODELING VISUALIZATION
|
|
box b 100 200 300
|
|
|
|
vinit View1
|
|
|
|
vdisplay b -dispMode 1
|
|
vlocation b -location 500 0 0
|
|
vfit
|
|
|
|
vzoom 0.5
|
|
vselmode b FACE 1
|
|
vselect 250 125
|
|
|
|
vfit -selected
|
|
|
|
if { [vreadpixel 250 250 rgb name] == "BLACK" } {
|
|
puts "Error: face should be in the middle"
|
|
}
|