mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Add new option to convert input contours into ones consisting of 2D circular arcs and 2D linear segments only. Update documentation
53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
puts "========================================="
|
|
puts "OCC32214: 2d Offset produces wrong result"
|
|
puts "========================================="
|
|
puts ""
|
|
|
|
restore [locate_data_file bug32214.brep] a
|
|
wire ww a
|
|
donly ww
|
|
|
|
openoffset result ww 14 0.1 -approx
|
|
|
|
front
|
|
fit
|
|
|
|
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
|
|
|
for {set i 1} {$i<=14} {incr i} {
|
|
checkshape result_${i}
|
|
set tolres [checkmaxtol result_${i}]
|
|
if { ${tolres} > 1.001e-7} {
|
|
puts "Error: bad tolerance of result"
|
|
}
|
|
}
|
|
|
|
checknbshapes result_1 -t -vertex 61 -edge 60 -wire 1
|
|
checkprops result_1 -l 2.04858
|
|
checknbshapes result_2 -t -vertex 61 -edge 60 -wire 1
|
|
checkprops result_2 -l 2.21414
|
|
checknbshapes result_3 -t -vertex 61 -edge 60 -wire 1
|
|
checkprops result_3 -l 2.37971
|
|
checknbshapes result_4 -t -vertex 61 -edge 60 -wire 1
|
|
checkprops result_4 -l 2.54528
|
|
checknbshapes result_5 -t -vertex 61 -edge 60 -wire 1
|
|
checkprops result_5 -l 2.71084
|
|
checknbshapes result_6 -t -vertex 61 -edge 60 -wire 1
|
|
checkprops result_6 -l 2.87641
|
|
checknbshapes result_7 -t -vertex 61 -edge 60 -wire 1
|
|
checkprops result_7 -l 3.04198
|
|
checknbshapes result_8 -t -vertex 56 -edge 55 -wire 1
|
|
checkprops result_8 -l 3.20723
|
|
checknbshapes result_9 -t -vertex 50 -edge 49 -wire 1
|
|
checkprops result_9 -l 3.38587
|
|
checknbshapes result_10 -t -vertex 48 -edge 47 -wire 1
|
|
checkprops result_10 -l 3.58204
|
|
checknbshapes result_11 -t -vertex 45 -edge 44 -wire 1
|
|
checkprops result_11 -l 3.73715
|
|
checknbshapes result_12 -t -vertex 45 -edge 44 -wire 1
|
|
checkprops result_12 -l 3.97323
|
|
checknbshapes result_13 -t -vertex 43 -edge 42 -wire 1
|
|
checkprops result_13 -l 4.14242
|
|
checknbshapes result_14 -t -vertex 43 -edge 42 -wire 1
|
|
checkprops result_14 -l 4.37544
|