mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0032121: Draw Harness, ViewerTest - implement -reset option for vlight command
vlight command has been revised to provide more friendly syntax. Command now accepts light index or name as first argument. Added arguments -enable/-disable for managing enabled state. Added argument -reset to reset light parameters to default values. V3d_Viewer::SetDefaultLights() now sets names "headlight" and "ambient" to created lights. Graphic3d_TypeOfLightSource enumeration values have been renamed to avoid shortcuts. Draw::Atof(), applied corrections to avoid explicit new/delete calls.
This commit is contained in:
@@ -43,7 +43,7 @@ vdisplay -top -dispMode 1 -trsfPers zoom -trsfPersPos 1000 0 0 zp
|
||||
vclipplane pln -equation -1 0 0 1000 -set
|
||||
|
||||
# check positional lights
|
||||
vlight add positional pos 1000 0 0.001 color RED1 headlight 0
|
||||
vlight pntlight -type POSITIONAL -pos 1000 0 0.001 -color RED1 -headlight 0
|
||||
|
||||
vremove f1000
|
||||
vmoveto 220 220
|
||||
|
@@ -1,5 +1,5 @@
|
||||
puts "========"
|
||||
puts "Test to verify the lights are turned off after 'vlight clear' (and scene is black)"
|
||||
puts "Test to verify the lights are turned off after 'vlight -clear' (and scene is black)"
|
||||
puts "========"
|
||||
|
||||
pload MODELING VISUALIZATION
|
||||
@@ -15,7 +15,7 @@ vsetdispmode 1
|
||||
vdisplay b
|
||||
vfit
|
||||
|
||||
vlight clear
|
||||
vlight -clear
|
||||
|
||||
set color [vreadpixel 100 100 rgb]
|
||||
set black "0 0 0"
|
||||
|
Reference in New Issue
Block a user