mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
New flag is inserted in parameters of static methods LinearProperties(...), surfaceProperties(...), volumeProperties(...). This flag defines to skip or not to skip second and next appearance shared topology entities (edges, faces, shells) in properties calculation. Corresponding Draw commands is modified to take in account new parameter. Test case for issue CR27273 Add option -skip into checkprops command
36 lines
907 B
Plaintext
36 lines
907 B
Plaintext
puts "============"
|
|
puts "OCC27273"
|
|
puts "============"
|
|
puts ""
|
|
###########################################################################################################
|
|
# The computation of linear properties on shared shapes is not correct
|
|
###########################################################################################################
|
|
|
|
restore [locate_data_file bug27273_my_shape.brep] a
|
|
checkprops a -l 8
|
|
checkprops a -l 7 -skip
|
|
|
|
box b 1 1 1
|
|
checkprops b -l 24
|
|
checkprops b -l 12 -skip
|
|
|
|
#Create a compsolid with a face repeated in two solids
|
|
plane f 0 0 0 1 0 0
|
|
mkface f f 0 1 0 1
|
|
prism p1 f 1 0 0
|
|
prism p2 f -1 0 0
|
|
shape cs Cs
|
|
add p1 cs
|
|
add p2 cs
|
|
checkprops cs -s 12
|
|
checkprops cs -s 11 -skip
|
|
|
|
#Create a compound of two compounds sharing the same solid
|
|
box b1 2 0 0 1 1 1
|
|
box b2 -2 0 0 1 1 1
|
|
compound b1 b c1
|
|
compound b2 b c2
|
|
compound c1 c2 c3
|
|
checkprops c3 -v 4
|
|
checkprops c3 -v 3 -skip
|