1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_5/bug23698
apn e1cbc34c5f 0023698: BRepBuilderAPI_Copy creates invalid copy
Added test case bugs/modalg_5/bug23698
2014-10-23 14:00:26 +04:00

25 lines
615 B
Plaintext

puts "========"
puts "OCC23698"
puts "========"
puts ""
##############################################
# BRepBuilderAPI_Copy creates invalid copy
##############################################
restore [locate_data_file case_1_solid.brep] a
restore [locate_data_file case_1_wire3.brep] b
bcommon result b a
tcopy result r
regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full anEdge
if { ${anEdge} == 0 } {
puts "Error: Common operation is wrong"
}
regexp {Mass +: +([-0-9.+eE]+)} [lprops r] full aCopyEdge
if { ${anEdge} != ${aCopyEdge} } {
puts "Error: Copy is wrong"
} else {
puts "OK: Copy is correct"
}