2 puts "================"
4 puts "================"
6 #################################################
7 ## Compsolids have no volume. #2432(SAM1380)
8 #################################################
10 restore [locate_data_file OCC300.brep] result
12 set che [checkshape result]
13 if { [regexp {Faulty} $che] == 1 } {
14 puts "Faulty OCC300: Source shape is invalid. It was detected by Checkshape command"
15 puts "Body of the script was NOT executed"
17 puts "OCC300 OK: Source shape is valid"
19 set props [vprops result]
20 set list [split ${props}]
21 set listLength [llength ${list}]
22 if { ${listLength} < 5 } {
23 puts "OCC300 - Error : listLength= ${listLength}"
26 regexp {Mass +: +([-0-9.+eE]+)} $props full volume
28 if { ${volume} < ${maxdelta} } then {
29 puts "OCC300 - Error "
33 puts "Volume = ${volume}"