0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / caf / bug24869
CommitLineData
372ceec4 1puts "=========="
2puts "OCC24869"
3puts "=========="
4puts ""
5###################################################
6# OCAF testing framework extending
7###################################################
8
e837410d 9NewDocument D BinOcaf
372ceec4 10
11#1 - create box1
12NewCommand D
13set B1 [AddObject D]
14set F1 [AddFunction D $B1 Box]
15BoxDX D $B1 100
16BoxDY D $B1 200
17BoxDZ D $B1 300
18InitLogBook D
19AddDriver D Box Section PTxyz
20ComputeFun D $F1
21GetShape D $F1:2 Box1
22
23#1 - create box2
24NewCommand D
25set B2 [AddObject D]
26set F2 [AddFunction D $B2 Box]
27BoxDX D $B2 150
28BoxDY D $B2 200
29BoxDZ D $B2 300
30ComputeFun D $F2
31
32NewCommand D
33set FTr2 [PTranslateDXYZ D $B2 30 40 50]
34ComputeFun D $FTr2
35# get modified result
36GetShape D $FTr2:2 Box2
37
38#3 Make Section Box1 Box2
39NewCommand D
40set CS [AddSection D $B1 $B2]
41ComputeFun D $CS
42erase
43GetShape D $CS:2 S
44
45# Check result
46NewCommand D
47erase
48ExploreShape D $CS:2:1 R
49
803a8caf 50# should be 12 edges and 6 vertices
372ceec4 51set l1 [llength [directory R_*] ]
52
803a8caf 53# should be 18 faces
372ceec4 54set l2 [llength [directory oldR_*] ]
55
803a8caf 56if { ${l1} == 18 } {
372ceec4 57 puts "OK: Good edge number"
58} else {
59 puts "Error: Bad edge number"
60}
61
803a8caf 62if { ${l2} == 18 } {
372ceec4 63 puts "OK: Good face number"
64} else {
65 puts "Error: Bad face number"
66}