2 # Presentation attributes
4 # Testing attribute: TPrsStd_AISPresentation
6 # Testing command: AISHasOwnTransparency
7 # Note: After a start: AISHasOwnTransparency = false ( int 0 )
12 # Set NamedShape attribute
15 SetShape D ${aLabel} aBox1
17 # Initialize 3D viewer
20 # Add AISPresentation attribute with parameter NS
26 # Display presentation of NamedShape in the viewer
27 AISDisplay D ${aLabel}
29 # Check own transparency
30 set HasOwnTransparency [AISHasOwnTransparency D ${aLabel}]
32 puts "It is not necessary to have the photo for this case."
34 if { ${HasOwnTransparency} > 0 } {
35 puts "HasOwnTransparency=${HasOwnTransparency}"
36 puts "There is own transparency; AISHasOwnTransparency command: Error"
39 puts "There is not own transparency; AISHasOwnTransparency command: OK"