0028095: Draw Harness, ViewerTest - use RGBA format instead of BGRA within vreadpixel
[occt.git] / tests / caf / presentation / D3
CommitLineData
40093367 1#INTERFACE CAF
2# Presentation attributes
3#
4# Testing attribute: TPrsStd_AISPresentation
5#
6# Testing command: AISMaterial
7# Note: Visual control of setting material
8#
9
10puts "caf003-D3"
11
12# Set NamedShape attribute
13box aBox1 100 200 300
14set aLabel 0:2
15SetShape D ${aLabel} aBox1
16
17# Initialize 3D viewer
18AISInitViewer D
19
20# Add AISPresentation attribute with parameter NS
21AISSet D ${aLabel} NS
22
23# Set shading mode
24vsetdispmode 1
25
26# Display presentation of NamedShape in the viewer
27AISDisplay D ${aLabel}
28
29# Close/Open transaction
30NewCommand D
31
32# Set a material of the shape as NOM_JADE
33AISMaterial D ${aLabel} 18
34
35# Close/Open transaction
36NewCommand D
37
38# Undo
39Undo D
40
41# Update the viewer
42AISRepaint D
43
44# Redo
45Redo D
46
47# Update the viewer
48AISRepaint D
49
50puts "The box's material is NOM_JADE"