7 set Test "TNaming_Builder test"
11 puts "Creating document"
12 NewDocument D MDTV-Standard
15 #################### PRIMITIVE EVOLUTION ####################
19 if {[catch {BuildNamedShape D $TestLab:1 PRIMITIVE b}] == 1} {
21 set TestError "$TestError # Can't build solid as primitive"
23 if {[catch {BuildNamedShape D [set TestLab]:1:1 PRIMITIVE b_1}] == 1} {
25 set TestError "$TestError # Can't build edge as alone primitive"
27 if {[catch {BuildNamedShape D [set TestLab]:1:1 PRIMITIVE b_1 b_2 b_3}] == 1} {
29 set TestError "$TestError # Can't build several edges as primitive over the old one"
31 if {[catch {BuildNamedShape D [set TestLab]:1:2 PRIMITIVE b_4 b_5 b_6}] == 1} {
33 set TestError "$TestError # Can't build several edges as primitive"
37 #################### GENERATED EVOLUTION ####################
40 if {[catch {BuildNamedShape D $TestLab:2 GENERATED b b2}] == 1} {
42 set TestError "$TestError # Can't build solid as generation"
44 if {[catch {BuildNamedShape D [set TestLab]:2:1 GENERATED b_1 b2_1}] == 1} {
46 set TestError "$TestError # Can't build face as alone generation"
48 if {[catch {BuildNamedShape D [set TestLab]:2:2 GENERATED b_2 b2_2 b_2 b2_3 b_3 b2_4}] == 1} {
50 set TestError "$TestError # Can't build face as generation n:m"
52 if {[catch {BuildNamedShape D [set TestLab]:2:1 GENERATED b_3 b2_1 b_3 b2_3 b_4 b2_4}] == 1} {
54 set TestError "$TestError # Can't build face as generation n:m to the exists named shape"
57 #################### MODIFY EVOLUTION ####################
60 if {[catch {BuildNamedShape D $TestLab:3 MODIFY b2 b3}] == 1} {
62 set TestError "$TestError # Can't build solid as modification"
64 if {[catch {BuildNamedShape D [set TestLab]:3:1 MODIFY b2_1 b3_1}] == 1} {
66 set TestError "$TestError # Can't build face as alone modification"
68 if {[catch {BuildNamedShape D [set TestLab]:3:2 MODIFY b2_5 b3_2 b2_2 b3_3 b2_3 b3_4}] == 1} {
70 set TestError "$TestError # Can't build face as modification n:m"
72 if {[catch {BuildNamedShape D [set TestLab]:3:1 MODIFY b2_3 b3_1 b_3 b3_3 b2_4 b3_4}] == 1} {
74 set TestError "$TestError # Can't build face as modification n:m to the exists named shape"
78 tinspector -select 0:1:3:2 TNaming_NamedShape