0024910: Offset of solid is not created
[occt.git] / tests / bugs / modalg_5 / bug23881
CommitLineData
7a9d451a 1puts "============"
2puts "OCC23881"
3puts "============"
4puts ""
5############################################################################
6# BRepAlgoAPI_Section HasAnsectorFaceOn1 returned False on the boundary
7############################################################################
8
9polyline w1 0 0 0 1 0 0 1 1 0 0 1 0 0 0 0
10polyline w2 0 1 0 1 1 0 1 2 0 0 2 0 0 1 0
11mkplane f1 w1
12mkplane f2 w2
13sewing s1 0.0001 f1 f2
14
15plane pl 0 1 0 0 1 0
16mkface f3 pl
17
18bsection r s1 f3
19
20# check that section edge (r) is the edge from original shape (s1)
21compound r s1 c
22if { ! [regexp {EDGE\s*:\s*([0-9]+)} [nbshapes s1] str nbedges_s1] ||
23 ! [regexp {EDGE\s*:\s*([0-9]+)} [nbshapes c ] str nbedges_c] } {
24 error "Could not get number of edges from resulting shapes"
25}
26
27if { $nbedges_s1 != $nbedges_c } {
28 puts "Error: section does not share common edge with original shape"
29}
30
31renamevar r result
32set 2dviewer 0