puts "================"
puts "OCC22818"
puts "================"
puts ""
#######################################################################################
# Wrong triangulation of Revolution surface with slice angle <= 180 degree
######################################################################################

set BugNumber OCC22818

vertex v1 0 10 0
vertex v2 0 10 10
vertex v3 0 5 5
vertex v4 0 0 -10
edge e1 v1 v2
edge e2 v2 v3
edge e3 v3 v1
wire w1 e1 e2 e3
plane pln 0 5 5 1 0 0
mkface f1 pln
add w1 f1
don f1
revol result f1 0 10 0 0 0 1 180
checkshape result

checkprops result -s 161.072 

checknbshapes result -vertex 3 -edge 8 -wire 4 -face 4 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 21
vinit
vdisplay result
vsetdispmode 1
vfit
vzfit

# relative tolerance (%)
set rel_tol 1
set area_eps 0

checkview -screenshot -3d -path ${imagedir}/${test_image}.png
