2a9be0e2 |
1 | puts "# ===============================================================" |
2 | puts "# 0028131: BRepOffset_MakeOffset can't create offset with a face which created by filling 3 bsplinecurve" |
3 | puts "# ===============================================================" |
4 | puts "" |
5 | |
6 | puts "# Create face to be offset, by dedicated command" |
7 | pload QAcommands |
8 | OCC28131 f |
9 | |
10 | puts "# Try simple offset" |
11 | offsetshapesimple result_simple f 10. |
12 | checkshape result_simple |
13 | checkmaxtol result_simple -ref 0.205 |
14 | checkprops result_simple -s 1693.7 |
15 | |
16 | puts "# Try standard offset" |
17 | offsetshape result_std f 10. |
18 | fixshape result_std result_std ;# need to fix it.... |
19 | checkshape result_std |
20 | checkmaxtol result_std -ref 0.408 |
21 | checkprops result_std -s 1693.76 |
22 | |
23 | puts "# Make snapshots (overall and zoom to degenerated point)" |
24 | |
25 | smallview -Y+Z |
26 | fit |
27 | checkview -2d -screenshot -path ${imagedir}/${test_image}.png |
28 | |
29 | smallview -Y+Z |
30 | zoom 400 |
31 | pu; pu; pu |
32 | pr; pr; pr |
33 | |
34 | donly result_simple |
35 | checkview -2d -screenshot -path ${imagedir}/${test_image}_zoom_simple.png |
36 | |
37 | donly result_std |
38 | checkview -2d -screenshot -path ${imagedir}/${test_image}_zoom_standard.png |