mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +03:00
Fast shading presentation update on setting color, material and transparency for AIS_Shape: - Iterate through all groups not only last one. - Iterate through all presentation (to change presentations in all viewers). Added test cases bugs/vis/bug2883_1 and bugs/vis/bug2883_2
27 lines
537 B
Plaintext
27 lines
537 B
Plaintext
puts "=========="
|
|
puts "OCC2883"
|
|
puts "=========="
|
|
puts ""
|
|
########################################################################
|
|
# It is impossible to set material, color and transparency to compound
|
|
########################################################################
|
|
|
|
vertex v -20 10 -30
|
|
vertex ve1 -10 10 10
|
|
vertex ve2 0 10 10
|
|
edge e ve1 ve2
|
|
sphere s -80 0 0 150
|
|
mkface f s 0.1 0.7 0.2 0.9
|
|
box s -60 0 0 30 60 40
|
|
compound v e f s c
|
|
|
|
vinit View1
|
|
vclear
|
|
vaxo
|
|
vsetdispmode 1
|
|
vdisplay c
|
|
vfit
|
|
vsetmaterial c JADE
|
|
set only_screen 1
|
|
|