4 # Testing attribute: TNaming_NamedShape
6 # Testing command: SelectGeometry (VERTEX)
13 foreach OS [directory [concat aBox1$ter]] {
25 box aBox1 ${aSetX1} ${aSetY1} ${aSetZ1} ${aSetDX1} ${aSetDY1} ${aSetDZ1}
31 # Set a shape to the label
32 ImportShape D ${aLabel} aBox1
34 # Close/Open transaction
37 # Select all the sub-shapes of type <aType>
40 explode ${aBox1} ${aType}
44 foreach S [directory [concat $aBox1$ter]] {
49 #Memorize a bounding box of the selected sub-shape
50 bounding -s ${S} -save X1_Box1 Y1_Box1 Z1_Box1 X2_Box1 Y2_Box1 Z2_Box1
53 set LABEL [Label D 0:$iSubLabel]
54 SelectGeometry D ${LABEL} ${S} ${aBox1}
56 # Solve selected sub-shape
57 SolveSelection D ${LABEL}
59 # Get selected (and solved) sub-shape
60 GetShape D ${LABEL} aSubShape
63 bounding -s aSubShape -save X1_Box2 Y1_Box2 Z1_Box2 X2_Box2 Y2_Box2 Z2_Box2
65 if {[dval X1_Box1] != [dval X1_Box2] || [dval Y1_Box1] != [dval Y1_Box2] || [dval Z1_Box1] != [dval Z1_Box2] || [dval X2_Box1] != [dval X2_Box2] || [dval Y2_Box1] != [dval Y2_Box2] || [dval Z2_Box1] != [dval Z2_Box2]} {
66 puts "SelectGeometry command (${i}): Error"
70 puts "SelectGeometry command: OK"