0031492: BRepBuilderAPI_MakeFace crashes on a wire
[occt.git] / tests / bugs / modalg_7 / bug25730
1 puts "# ===================================================================="
2 puts "# OCC25730: result of MakeThickSolid aborts the BOPCheck in Geom_OffsetSurface::SetD0"
3 puts "# ===================================================================="
4 puts ""
5
6 puts "# Load shape"
7 restore [locate_data_file bug25730_thickness8-draw-fillet001.brep] Fillet001
8
9 explode Fillet001 F
10
11 puts "# Perform offset"
12 offsetparameter 1e-7 p a
13 offsetload Fillet001 -1 Fillet001_4
14 offsetperform Thickness
15
16 puts "# Check result"
17 if { [regexp "errors" [bopcheck Fillet001]] == 1 } {
18     puts "Error : bopcheck fails on initial shape"
19 }
20
21 if { [regexp "errors" [bopcheck Thickness]] == 1 } {
22     puts "Error : bopcheck fails on offsetted shape"
23 }
24
25 checkview -display Fillet001 -2d -path ${imagedir}/${test_image}-Fillet001-2d.png
26 checkview -display Thickness -2d -path ${imagedir}/${test_image}-Thickness-2d.png