0023944: Typo in ShapeCustom_RestrictionParameters leading to wrong approximation...
[occt.git] / tests / bugs / heal / bug22
CommitLineData
352ffd73 1puts "======="
2puts "OCC22"
3puts "======="
4puts ""
5#####################################################################
6##Locations are not correctly processed by ShapeBuild_ReShape (and base class BRepTools_ReShape)
7#####################################################################
8
9pload QAcommands
10
11restore [locate_data_file OCC21.brep] shape
12explode shape f
13compound shape_1 shape_2 compoundToBeDivided
14
15# Case A of the bug is reproduced. Resulting shape must have 5 faces instead of 3
16
17if [catch { OCC22 result shape compoundToBeDivided 0 } ] {
18 puts "OCC22 ERROR; (case 1)"
19} else {
20 puts "OCC22 OK; (case 1)"
21}
22
23regexp {([-0-9.+eE]+)\s FACE} [statshape result] full nbFaces
24if {$nbFaces != 5} {
25 puts "OCC22 FAULTY: Initial shape was not splitted"
26}
27
28# Case B of the bug is reproduced. Result must be valid
29if [catch { OCC22 res shape compoundToBeDivided 1 } ] {
30 puts "OCC22 ERROR; (case 2)"
31} else {
32 puts "OCC22 OK; (case 2)"
33}
34
35set 2dviewer 0
36