0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / modalg_2 / bug21754
CommitLineData
809eca9d 1puts "================"
2puts "OCC21754"
3puts "================"
4puts ""
5#################################################################
6# Section of face by plane yields empty result
7#################################################################
8
9set BugNumber OCC21754
10
11# load shape and make face with natural bounds, to excluse possibility of
12# lame excuse saying that it contains small edges
13restore [locate_data_file OCC21754-bug_bsection_empty.brep] a
14mksurface s a
15mkface f s
16
17# create plane at Z=-0.410 (the bug is reproduced for Z in range [-0.405;-0.420])
18plane pl 0 0 -0.410 0 0 1
19mkface p pl 0 10 -5 5
20
4e57c75e 21bsection result f p -na
809eca9d 22
a4eba920 23checknbshapes result -vertex 2 -edge 1 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 4
58cf74e0 24checkprops result -l 0.592137
25checkshape result
26checksection result
809eca9d 27
5747059b 28checkview -display result -2d -path ${imagedir}/${test_image}.png
809eca9d 29