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
|
|
|
|
mkoffset 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 114 -edge 114 -wire 1
|
|
checkprops result_1 -l 4.39365
|
|
checknbshapes result_2 -t -vertex 110 -edge 110 -wire 1
|
|
checkprops result_2 -l 5.02084
|
|
checknbshapes result_3 -t -vertex 104 -edge 104 -wire 1
|
|
checkprops result_3 -l 5.64778
|
|
checknbshapes result_4 -t -vertex 101 -edge 101 -wire 1
|
|
checkprops result_4 -l 6.27443
|
|
checknbshapes result_5 -t -vertex 95 -edge 95 -wire 1
|
|
checkprops result_5 -l 6.89816
|
|
checknbshapes result_6 -t -vertex 92 -edge 92 -wire 1
|
|
checkprops result_6 -l 7.51255
|
|
checknbshapes result_7 -t -vertex 88 -edge 88 -wire 1
|
|
checkprops result_7 -l 8.12807
|
|
checknbshapes result_8 -t -vertex 81 -edge 81 -wire 1
|
|
checkprops result_8 -l 8.74586
|
|
checknbshapes result_9 -t -vertex 72 -edge 72 -wire 1
|
|
checkprops result_9 -l 9.36292
|
|
checknbshapes result_10 -t -vertex 65 -edge 65 -wire 1
|
|
checkprops result_10 -l 9.97455
|
|
checknbshapes result_11 -t -vertex 60 -edge 60 -wire 1
|
|
checkprops result_11 -l 10.5864
|
|
checknbshapes result_12 -t -vertex 59 -edge 59 -wire 1
|
|
checkprops result_12 -l 11.2017
|
|
checknbshapes result_13 -t -vertex 57 -edge 57 -wire 1
|
|
checkprops result_13 -l 11.8196
|
|
checknbshapes result_14 -t -vertex 55 -edge 55 -wire 1
|
|
checkprops result_14 -l 12.4395
|