0027481: [Regression to OCCT 6.6.0] Modeling Algorithms - incorrect CUT on two solids
[occt.git] / tests / bugs / modalg_2 / bug22818_1
CommitLineData
809eca9d 1puts "================"
2puts "OCC22818"
3puts "================"
4puts ""
5#######################################################################################
6# Wrong triangulation of Revolution surface with slice angle <= 180 degree
7######################################################################################
8
9set BugNumber OCC22818
10
11vertex v1 0 10 0
12vertex v2 0 10 10
13vertex v3 0 0 -10
14edge e1 v1 v2
15edge e2 v2 v3
16edge e3 v3 v1
17wire w1 e1 e2 e3
18plane pln 0 10 0 1 0 0
74f764ba 19mkface f1 pln
20add w1 f1
809eca9d 21don f1
22revol result f1 0 10 0 0 0 1 180
23checkshape result
24
58cf74e0 25checkprops result -s 673.385
809eca9d 26
a4eba920 27checknbshapes result -vertex 3 -edge 8 -wire 4 -face 4 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 21
b62b93ac 28vinit
29vdisplay result
30vsetdispmode 1
31vfit
32vzfit
33
34# relative tolerance (%)
35set rel_tol 1
36set area_eps 0
b62b93ac 37
5747059b 38checkview -screenshot -3d -path ${imagedir}/${test_image}.png