fe3e01db |
1 | puts "============" |
2 | puts "OCC27273" |
3 | puts "============" |
4 | puts "" |
5 | ########################################################################################################### |
6 | # The computation of linear properties on shared shapes is not correct |
7 | ########################################################################################################### |
8 | |
9 | restore [locate_data_file bug27273_my_shape.brep] a |
10 | checkprops a -l 8 |
11 | checkprops a -l 7 -skip |
12 | |
13 | box b 1 1 1 |
14 | checkprops b -l 24 |
15 | checkprops b -l 12 -skip |
16 | |
17 | #Create a compsolid with a face repeated in two solids |
18 | plane f 0 0 0 1 0 0 |
19 | mkface f f 0 1 0 1 |
20 | prism p1 f 1 0 0 |
21 | prism p2 f -1 0 0 |
22 | shape cs Cs |
23 | add p1 cs |
24 | add p2 cs |
25 | checkprops cs -s 12 |
26 | checkprops cs -s 11 -skip |
27 | |
28 | #Create a compound of two compounds sharing the same solid |
29 | box b1 2 0 0 1 1 1 |
30 | box b2 -2 0 0 1 1 1 |
31 | compound b1 b c1 |
32 | compound b2 b c2 |
33 | compound c1 c2 c3 |
34 | checkprops c3 -v 4 |
35 | checkprops c3 -v 3 -skip |