mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Added to Draw command 'setsweep ' posibility to change degmax and segmax parameter manually by '-SM' and '-DM' options Added test Added new condition to prevent crash
36 lines
643 B
Plaintext
36 lines
643 B
Plaintext
puts "============"
|
|
puts "0031147: Modeling Algorithms - BRepOffsetAPI_MakePipeShell null access"
|
|
puts "============"
|
|
puts ""
|
|
|
|
pload VISUALIZATION
|
|
|
|
restore [locate_data_file bug31147.brep] s
|
|
explode s e
|
|
wire spine s_1
|
|
wire profile s_2
|
|
|
|
mksweep spine
|
|
addsweep profile
|
|
setsweep -SM 1000
|
|
setsweep -DM 14
|
|
buildsweep result -S -C
|
|
|
|
set info1 [errorsweep]
|
|
|
|
set check [regexp {Tolerance on surfaces = ([0-9\-+Ee.]+)} $info1 str error]
|
|
|
|
if { $error > 1.e-4 } {
|
|
puts "Error: bad tolerance of result"
|
|
}
|
|
|
|
vinit
|
|
vdisplay result
|
|
vsetdispmode 1
|
|
vfit
|
|
|
|
checkshape result
|
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
|
|
|
puts "TEST COMPLETED"
|