0031201: Modeling Algorithms - Result of a section operation is incomplete
[occt.git] / tests / offset / begin
CommitLineData
8013367c 1# To prevent loops limit to 15 minutes
5805221e 2cpulimit 900
40093367 3if { [array get Draw_Groups "TOPOLOGY Feature commands"] == "" } {
5805221e 4 pload TOPTEST
5}
6if { [array get Draw_Groups "Shape Healing"] == "" } {
7 pload XSDRAW
40093367 8}
40093367 9if { [info exists imagedir] == 0 } {
10 set imagedir .
11}
12if { [info exists test_image ] == 0 } {
13 set test_image photo
14}
40093367 15proc OFFSETSHAPE {distance faces calcul type} {
16 global GlobFaces
17 set GlobFaces $faces
b6725456 18 if {[llength $faces] > 0} {uplevel #0 explode s f}
40093367 19 uplevel #0 offsetparameter 1e-7 $calcul $type
20 uplevel #0 offsetload s $distance $faces
21 uplevel #0 offsetperform result
22}