5 #####################################################################
6 ##Locations are not correctly processed by ShapeBuild_ReShape (and base class BRepTools_ReShape)
7 #####################################################################
11 restore [locate_data_file OCC21.brep] shape
13 compound shape_1 shape_2 compoundToBeDivided
15 # Case A of the bug is reproduced. Resulting shape must have 5 faces instead of 3
17 if [catch { OCC22 result shape compoundToBeDivided 0 } ] {
18 puts "OCC22 ERROR; (case 1)"
20 puts "OCC22 OK; (case 1)"
23 regexp {([-0-9.+eE]+)\s FACE} [statshape result] full nbFaces
25 puts "OCC22 FAULTY: Initial shape was not splitted"
28 # Case B of the bug is reproduced. Result must be valid
29 if [catch { OCC22 res shape compoundToBeDivided 1 } ] {
30 puts "OCC22 ERROR; (case 2)"
32 puts "OCC22 OK; (case 2)"