2 # Presentation attributes
4 # Testing attribute: TPrsStd_AISPresentation
6 # Testing command: AISMaterial
7 # Testing command: AISHasOwnMaterial
8 # Note: Numerical control of setting material
13 # Set NamedShape attribute
16 SetShape D ${aLabel} aBox1
18 # Initialize 3D viewer
21 # Add AISPresentation attribute with parameter NS
27 # Display presentation of NamedShape in the viewer
28 AISDisplay D ${aLabel}
30 # Close/Open transaction
33 # Set a material of the shape as NOM_JADE
35 AISMaterial D ${aLabel} ${JadeMaterial}
37 # Close/Open transaction
53 #set aMaterial [lindex [AISMaterial D ${aLabel}] 0]
54 set tmpLine [AISMaterial D ${aLabel}]
55 set tmpLength [llength ${tmpLine}]
56 set aMaterial [lindex ${tmpLine} [expr ${tmpLength} - 1]]
58 puts "It is not necessary to have the photo for this case."
60 if { ${aMaterial} != ${JadeMaterial} } {
61 puts "JadeMaterial=${JadeMaterial}"
62 puts "aMaterial=${aMaterial}"
63 puts "The box's material is not NOM_JADE; AISMaterial command: Error"
66 puts "The box's material is NOM_JADE; AISMaterial command: OK"