0023087: Upgrade of the OCCT test system
[occt.git] / tests / caf / presentation / L1
CommitLineData
40093367 1#INTERFACE CAF
2# Presentation attributes
3#
4# Testing attribute: TPrsStd_AISPresentation
5#
6# Testing command: AISDriver
7#
8
9puts "caf003-L1"
10
11# Create a box
12box aBox 100 200 300
13set aLabel 0:2
14SetShape D ${aLabel} aBox
15
16# Initialize 3D viewer
17AISInitViewer D
18
19# Add AISPresentation attribute with parameter NS
20set aDriverGUID1 [lindex [AISSet D ${aLabel} NS] 0]
21
22# Display presentation of NamedShape in the viewer
23AISDisplay D ${aLabel}
24
25# Get driver GUID
26set aDriverGUID2 [lindex [AISDriver D ${aLabel}] 0]
27
28puts "It is not necessary to have the photo for this case."
29
30if { ${aDriverGUID1} != ${aDriverGUID2} } {
31 puts "aDriverGUID1=${aDriverGUID1} aDriverGUID2=${aDriverGUID2}"
32 puts "Get the driver GUID; AISDriver command: Error"
33 return
34}
35puts "Get the driver GUID; AISDriver command: OK"