]> OCCT Git - occt-copy.git/commitdiff
0027109: Modifiy test cases using procedure checklength
authorapn <apn@opencascade.com>
Mon, 25 Jan 2016 15:55:11 +0000 (18:55 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 28 Jan 2016 10:11:33 +0000 (13:11 +0300)
Modify cases

62 files changed:
src/DrawResources/CheckCommands.tcl
tests/bugs/modalg_5/bug23706_6
tests/bugs/modalg_5/bug23706_7
tests/bugs/modalg_5/bug23706_9
tests/bugs/modalg_5/bug24643
tests/bugs/modalg_5/bug25224
tests/bugs/modalg_5/bug25380
tests/bugs/modalg_6/bug26619
tests/bugs/modalg_6/bug26699
tests/bugs/moddata_1/buc60607_1
tests/bugs/moddata_1/buc60618
tests/bugs/moddata_1/buc60622_2
tests/bugs/moddata_1/buc60622_3
tests/bugs/moddata_1/buc60843_1
tests/bugs/moddata_1/buc60843_2
tests/bugs/moddata_1/buc60965
tests/bugs/moddata_1/bug12522
tests/bugs/moddata_1/bug143
tests/bugs/moddata_2/bug23201
tests/bugs/moddata_2/bug23464_1
tests/bugs/moddata_2/bug23464_2
tests/bugs/moddata_2/bug23464_3
tests/bugs/moddata_2/bug23464_4
tests/bugs/moddata_2/bug23464_5
tests/bugs/moddata_2/bug23464_6
tests/bugs/moddata_2/bug7372
tests/bugs/moddata_3/bug24633_1
tests/bugs/moddata_3/bug24633_2
tests/bugs/moddata_3/bug25084
tests/bugs/moddata_3/bug25095
tests/bugs/moddata_3/bug26038_1
tests/bugs/moddata_3/bug26038_2
tests/bugs/moddata_3/bug26351
tests/bugs/moddata_3/bug27059
tests/bugs/xde/bug22826
tests/heal/begin
tests/heal/wire_tails_composed/A1
tests/heal/wire_tails_composed/A10
tests/heal/wire_tails_composed/A11
tests/heal/wire_tails_composed/A12
tests/heal/wire_tails_composed/A13
tests/heal/wire_tails_composed/A14
tests/heal/wire_tails_composed/A15
tests/heal/wire_tails_composed/A16
tests/heal/wire_tails_composed/A17
tests/heal/wire_tails_composed/A18
tests/heal/wire_tails_composed/A19
tests/heal/wire_tails_composed/A2
tests/heal/wire_tails_composed/A3
tests/heal/wire_tails_composed/A4
tests/heal/wire_tails_composed/A5
tests/heal/wire_tails_composed/A6
tests/heal/wire_tails_composed/A7
tests/heal/wire_tails_composed/A8
tests/heal/wire_tails_composed/A9
tests/heal/wire_tails_real/A1
tests/heal/wire_tails_real/A2
tests/heal/wire_tails_real/A3
tests/heal/wire_tails_real/A4
tests/heal/wire_tails_real/A5
tests/heal/wire_tails_real/A6
tests/heal/wire_tails_real/A7

index dd1bb47bc5b2e67366f5ff7c8e0f584baa67a1d8..25bab92d7dd816b57e327235490cba3e018dbdc8 100644 (file)
@@ -568,6 +568,154 @@ proc checkprops {shape args} {
         }
     }
 
+    if { ${compared_equal_shape} == -1 && ${compared_notequal_shape} == -1 } {
+        if { [string compare "$mass" "empty"] != 0 } {
+            if { $m == 0 } {
+                puts "Error : The command is not valid. The $prop is 0."
+            }
+            if { $mass > 0 } {
+                puts "The expected $prop is $mass"
+            }
+            #check of change of area is < 1%
+            if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+                puts "Error : The $prop of result shape is $m"
+            }
+        } else {
+            if { $m != 0 } {
+                puts "Error : The command is not valid. The $prop is $m"
+            }
+        }
+    }
+}
+
+help checkdump {
+  Procedure includes command to parse output dump and compare it with reference values.
+
+  Use: checkdump shapename [options...]
+  Allowed options are:
+    -name NAME: list of parsing parameters (e.g. Center, Axis, etc)
+    -ref VALUE: list of reference values for each parameter in NAME 
+    -eps EPSILON: the epsilon defines relative precision of computation
+}
+
+proc checkdump {shape args} {
+    puts "checkdump ${shape} ${args}"
+    upvar ${shape} ${shape}
+
+    set ddump -1
+    set epsilon -1
+    set options {{"-name" params 1}
+                 {"-ref" ref 1}
+                 {"-eps" epsilon 1}
+                 {"-dump" ddump 1}}
+
+    if { ${ddump} == -1 } {
+        set ddump [dump ${shape}]
+    }
+    _check_args ${args} ${options} "checkdump"
+
+    set index 0
+    foreach param ${params} {
+        set pattern "${param}\\s*:\\s*" 
+        set number_pattern "(\[-0-9.+eE\]+)\\s*" 
+        set ref_values ""
+        set local_ref ${ref}
+        if { [llength ${params}] > 1 } {
+            set local_ref [lindex ${ref} ${index}]
+        }
+        foreach item ${local_ref} {
+            if { ![regexp "$pattern$number_pattern" $ddump full res] } {
+                puts "Error: cheked parameter ${param} is not listed in dump"
+                break
+            }
+            lappend ref_values $res 
+            set pattern "${pattern}${res},\\s*" 
+            ## without precision
+            if { ${epsilon} == -1 } {
+                if { ${item} != ${res} } {
+                    puts "Error: parameter ${param} - current value (${res}) is not equal to reference value (${item})"
+                } else {
+                    puts "OK: parameter ${param} - current value (${res}) is equal to reference value (${item})"
+                }
+            ## with precision
+            } else {
+                set precision 0.0000001
+                if { ( abs($res) > $precision ) || ( abs($item) > $precision ) } {
+                    if { ($item != 0 && [expr 1.*abs($item - $res)/$item] > $epsilon) || ($item == 0 && $res != 0) } {
+                        puts "Error: The $param of the resulting shape is $res and the expected $param is $item"
+                    } else {
+                        puts "OK: parameter ${param} - current value (${res}) is equal to reference value (${item})"
+                    }
+                }
+            }
+        }
+        incr index
+    }
+}
+
+help checklength {
+  Procedure includes commands to compute length of input shape.
+
+  Use: checklength shapename [options...]
+  Allowed options are:
+    -l LENGTH: command length, computes the length of input curve with precision of computation
+    -eps EPSILON: the epsilon defines relative precision of computation
+    -equal SHAPE: compare length of input shapes. Puts error if its are not equal
+    -notequal SHAPE: compare length of input shapes. Puts error if its are equal
+}
+
+proc checklength {shape args} {
+    puts "checklength ${shape} ${args}"
+    upvar ${shape} ${shape}
+
+    if {![isdraw ${shape}] || [regexp "${shape} is a \n" [whatis ${shape}]]} {
+        puts "Error: The command cannot be built"
+        return
+    }
+
+    set length -1
+    set epsilon 1.0e-4
+    set compared_equal_shape -1
+    set compared_notequal_shape -1
+    set equal_check 0
+
+    set options {{"-eps" epsilon 1}
+                 {"-equal" compared_equal_shape 1}
+                 {"-notequal" compared_notequal_shape 1}}
+
+    if { [regexp {\-[not]*equal} $args] } {
+        lappend options {"-l" length 0}
+        set equal_check 1
+    } else {
+        lappend options {"-l" length 1}
+    }
+    _check_args ${args} ${options} "checkprops"
+
+    if { ${length} != -1 || ${equal_check} == 1 } {
+        set CommandName length
+        set mass $length
+        set prop "length"
+        set equal_check 0
+    }
+
+    regexp "The +length+ ${shape} +is +(\[-0-9.+eE\]+)" [${CommandName} ${shape} ${epsilon}] full m
+
+    if { ${compared_equal_shape} != -1 } {
+        upvar ${compared_equal_shape} ${compared_equal_shape}
+        regexp "The +length+ ${compared_equal_shape} +is +(\[-0-9.+eE\]+)" [${CommandName} ${compared_equal_shape} ${epsilon}] full compared_m
+        if { $compared_m != $m } {
+            puts "Error: length of shape ${compared_equal_shape} is not equal to shape ${shape}"
+        }
+    }
+
+    if { ${compared_notequal_shape} != -1 } {
+        upvar ${compared_notequal_shape} ${compared_notequal_shape}
+        regexp regexp "The +length+ ${compared_notequal_shape} +is +(\[-0-9.+eE\]+)" [${CommandName} ${compared_notequal_shape} ${epsilon}] full compared_m
+        if { $compared_m == $m } {
+            puts "Error: length of shape ${compared_notequal_shape} is equal shape to ${shape}"
+        }
+    }
+
     if { ${compared_equal_shape} == -1 && ${compared_notequal_shape} == -1 } {
         if { [string compare "$mass" "empty"] != 0 } {
             if { $m == 0 } {
index 8314b56cc6eb134c3b359f44ce3f5a7851282972..a885fb298e123c84f0d746d919df1824441cddfe 100755 (executable)
@@ -9,10 +9,4 @@ puts ""
 pload XSDRAW
 2dbsplinecurve cc 3 2 0 4 1 4 -1 -1 1 0 -1 1 0 0 1 0 0 1
 offset2dcurve o cc .5
-set info [length o]
-regexp {The length o is+ +([-0-9.+eE]+)} $info full ll
-set ll_check 2.3717833300483151
-
-if { [expr 1.*abs($ll_check - $ll)/$ll_check] > 0.01 } {
-   puts "Error : The lenght of result shape is $ll"
-}
+checklength o -l 2.3717833300483151
\ No newline at end of file
index ae4941f0a6b580f51dbc116bc2d1e01d5bc88f4c..1b8760ef3b920629d8c08e8eca0482d579f23135 100755 (executable)
@@ -10,10 +10,4 @@ pload XSDRAW
 bsplinecurve cc 3 2 0 4 1 4 -1 -1 2 1 0 -1 2 1 0 0 2 1 0 0 2 1
 point pp 0 0 1
 offsetcurve o cc .5 pp
-set info [length o]
-regexp {The length o is+ +([-0-9.+eE]+)} $info full ll
-set ll_check 2.3717833300483151
-
-if { [expr 1.*abs($ll_check - $ll)/$ll_check] > 0.01 } {
-   puts "Error : The lenght of result shape is $ll"
-}
+checklength o -l 2.3717833300483151
\ No newline at end of file
index bb7d45db3ffb15bfd5fed4d931ec6dfd44029c1a..83fdc1fbc71185446bd34755ff5ebfec16c43b4c 100755 (executable)
@@ -9,11 +9,4 @@ puts ""
 pload XSDRAW
 2dbsplinecurve c1 2 5 0 3 0.2 1 0.3 1 0.4 1 0.5 3 2 0 1 3 -1 1 5 5 1 5 5 1 6 8 1 4 7 1
 offset2dcurve o1 c1 2
-
-set info [length o1]
-regexp {The length o1 is+ +([-0-9.+eE]+)} $info full ll
-set ll_check 19.244437838214424
-
-if { [expr 1.*abs($ll_check - $ll)/$ll_check] > 0.01 } {
-   puts "Error : The lenght of result shape is $ll"
-}
+checklength o1 -l 19.244437838214424
\ No newline at end of file
index f2b4974d31af9dc902e805df899863c0b8747e58..68a91f32c276e4264b343fed7ee3a4205874a737 100755 (executable)
@@ -8,15 +8,8 @@ puts ""
 
 restore [locate_data_file bug24643_b1.brep] b1
 restore [locate_data_file bug24643_b2.brep] b2
-
 bopcurves b1 b2
-
-regexp {The length c_1 is ([-0-9.+eE]+)} [length c_1] full Curve_Length
-
-set expected_length 107.39085794960783
-set tol_abs_length 1.e-3
-set tol_rel_length 0.01
-checkreal "Curve length" ${Curve_Length} ${expected_length} ${tol_abs_length} ${tol_rel_length}
+checklength c_1 -l 107.39085794960783
 
 set log [dump c_1]
 if {[regexp {Trimmed +curve} ${log}]} {
index 3d4305f97c956a90451bf883d4c39e36b276dc76..4a8ea6d8731bbed3350fc3b0886acaa46aa6e24f 100755 (executable)
@@ -20,13 +20,7 @@ set MaxTol 1.e-7
 if {${Toler} > ${MaxTol}} {
   puts "Error: Tolerance is too big!"
 }
-
-regexp {The length c_1 is ([-0-9.+eE]+)} [length c_1] full Curve_Length
-
-set expected_length 0.52377379499528021
-set tol_abs_length 1.e-7
-set tol_rel_length 0.01
-checkreal "Curve length" ${Curve_Length} ${expected_length} ${tol_abs_length} ${tol_rel_length}
+checklength c_1 -l 0.52377379499528021
 
 # 2. BOP
 bclearobjects
index f472350ea39c5b3dc3900abe6e2e8ba7b621b7f7..7724446cc7053c706005e50df66e7bbfa2d86ab4 100755 (executable)
@@ -16,13 +16,7 @@ set MaxTol 1.e-11
 if {${Toler} > ${MaxTol}} {
   puts "Error: Tolerance is too big!"
 }
-
-regexp {The length c_1 is ([-0-9.+eE]+)} [length c_1] full Curve_Length
-
-set expected_length 1.614
-set tol_abs_length 1.e-3
-set tol_rel_length 0.01
-checkreal "Curve length" ${Curve_Length} ${expected_length} ${tol_abs_length} ${tol_rel_length}
+checklength c_1 -l 1.614
 
 smallview
 donly c_1 b1
index ec314f4b489874da5b297fd3f15e47cf37b74a88..f86fb92471304eb2e104d64d3aa766edd05483a9 100644 (file)
@@ -22,8 +22,7 @@ bnondestructive 1
 
 bop h0 f0
 bopsection result
-
-set length 145.692
+checkprops result -l 142.264
 
 set nbshapes_expected "
 Number of shapes in shape
index 1683d9377329adfec78f04e8719247d9012f2774..2552a9365581f64206588a8820fe477f3df14f67 100644 (file)
@@ -23,15 +23,8 @@ if {${Toler} > ${MaxTol}} {
 if {${NbCurv} != ${GoodNbCurv}} {
   puts "Error: Curve Number is bad!"
 }
-
-set expL1 3.0
-set expL2 3.0
-
-regexp {The length c_1 is ([-0-9.+eE]+)} [length c_1] full ll1
-regexp {The length c_2 is ([-0-9.+eE]+)} [length c_2] full ll2
-
-checkreal "length c_1 " ${ll1} $expL1 0.0 1.0e-6
-checkreal "length c_2 " ${ll2} $expL1 0.0 1.0e-6
+checklength c_1 -l 3.0
+checklength c_2 -l 3.0
 
 axo
 donly f* c_*
index 4e5979db9f8e48f66a006ef61761f724227cb78b..5c30838c68d33bcbbc29966232d88df6ca86e715 100755 (executable)
@@ -8,14 +8,5 @@ set len_ch 2513
 point p 1600 300
 line l 0 500 2000 500
 cirtang c p l 400
-
-set info1 [length $c_1]
-set info2 [length $c_2]
-regexp {The length c_1 is +([-0-9.+eE]+)} $info1 full len1
-regexp {The length c_2 is +([-0-9.+eE]+)} $info2 full len2
-set len_int1 [expr int($len1)]
-set len_int2 [expr int($len2)]
-
-if { ${len_int1} != ${len_ch} || ${len_int2} != ${len_ch} } {
-    puts "Error : Length is invalid"
-}
+checklength c_1 -l 2513.2741228718346
+checklength c_2 -l 2513.2741228718346
\ No newline at end of file
index 6d1ed6267d6cca1831b6758c26a62a7d5393e884..6cb36267040c11bd1724fff7a05db925b478e44b 100755 (executable)
@@ -6,54 +6,16 @@ puts ""
 puts "It takes visual check for this BUG"
 puts "=================================="
 puts ""
-set len_ch1 3568
-set len_ch2 9964
-set len_ch3 2082
-set len_ch4 32696
-set len_ch5 1681
-set len_ch6 3097
-set len_ch7 1545
-set len_ch8 772
 
 circle c1 0 0 100 
 circle c2 500 -400 300 
 circle c3 300 200 200 
 cirtang result c1 c2 c3
-
-set info1 [length $result_1]
-set info2 [length $result_2]
-set info3 [length $result_3]
-set info4 [length $result_4]
-set info5 [length $result_5]
-set info6 [length $result_6]
-set info7 [length $result_7]
-set info8 [length $result_8]
-
-regexp {The length result_1 is +([-0-9.+eE]+)} $info1 full len1
-regexp {The length result_2 is +([-0-9.+eE]+)} $info2 full len2
-regexp {The length result_3 is +([-0-9.+eE]+)} $info3 full len3
-regexp {The length result_4 is +([-0-9.+eE]+)} $info4 full len4
-regexp {The length result_5 is +([-0-9.+eE]+)} $info5 full len5
-regexp {The length result_6 is +([-0-9.+eE]+)} $info6 full len6
-regexp {The length result_7 is +([-0-9.+eE]+)} $info7 full len7
-regexp {The length result_8 is +([-0-9.+eE]+)} $info8 full len8
-
-set len_int1 [expr int($len1)]
-set len_int2 [expr int($len2)]
-set len_int3 [expr int($len3)]
-set len_int4 [expr int($len4)]
-set len_int5 [expr int($len5)]
-set len_int6 [expr int($len6)]
-set len_int7 [expr int($len7)]
-set len_int8 [expr int($len8)]
-
-if { ${len_int1} != ${len_ch1} 
-   || ${len_int2} != ${len_ch2}
-   || ${len_int3} != ${len_ch3}
-   || ${len_int4} != ${len_ch4}
-   || ${len_int5} != ${len_ch5}
-   || ${len_int6} != ${len_ch6}
-   || ${len_int7} != ${len_ch7}
-   || ${len_int8} != ${len_ch8} } {
-   puts "Error : Length is invalid"
-}
+checklength result_1 -l 3568.9587306060739
+checklength result_2 -l 9964.7111736227271
+checklength result_3 -l 2082.9371204466097
+checklength result_4 -l 32696.069757517998
+checklength result_5 -l 1681.9298517645602
+checklength result_6 -l 3097.3731840080009
+checklength result_7 -l 1545.2428620020787
+checklength result_8 -l 772.26646380656518
\ No newline at end of file
index 559ff290068a87ba5d644fb50e6a1be129685520..0e7586dd3f385c0d4fc2c6f047bd4749b3a66ae4 100755 (executable)
@@ -7,27 +7,11 @@ puts "It takes visual check for this BUG"
 puts "=================================="
 puts ""
 
-set len_ch1 2513
-set len_ch2 837
-set len_ch3 279
-
 circle c1 500 1800 500 
 circle c2 500 1900 400 
 circle c3 700 1900 200 
-cirtang result c1 c2 c3 
-
-set info1 [length $result_1]
-set info2 [length $result_2]
-set info3 [length $result_3]
-regexp {The length result_1 is +([-0-9.+eE]+)} $info1 full len1
-regexp {The length result_2 is +([-0-9.+eE]+)} $info2 full len2
-regexp {The length result_3 is +([-0-9.+eE]+)} $info3 full len3
-set len_int1 [expr int($len1)]
-set len_int2 [expr int($len2)]
-set len_int3 [expr int($len3)]
+cirtang result c1 c2 c3
 
-if { ${len_int1} != ${len_ch1} 
-   || ${len_int2} != ${len_ch2} 
-   || ${len_int3} != ${len_ch3} } {
-   puts "Error : Length is invalid"
-}
+checklength result_1 -l 2513.2741228703289
+checklength result_2 -l 837.75804095727631
+checklength result_3 -l 279.2526803190928
\ No newline at end of file
index 0ef8996c238f55d6a0523e946dd3404eb3752b18..6861fe6070ceef03ba13996daf49b7f13e76b872 100755 (executable)
@@ -7,40 +7,13 @@ puts "It takes visual check for this BUG"
 puts "=================================="
 puts ""
 
-set len_ch1 1570
-set len_ch2 785
-set len_ch3 785
-set len_ch4 523
-set len_ch5 523
-
 circle c3 500 3000 250
 circle c2 375 3000 125
 circle c1 625 3000 125
 cirtang result c1 c2 c3
 
-set info1 [length $result_1]
-set info2 [length $result_2]
-set info3 [length $result_3]
-set info4 [length $result_4]
-set info5 [length $result_5]
-
-regexp {The length result_1 is +([-0-9.+eE]+)} $info1 full len1
-regexp {The length result_2 is +([-0-9.+eE]+)} $info2 full len2
-regexp {The length result_3 is +([-0-9.+eE]+)} $info3 full len3
-regexp {The length result_4 is +([-0-9.+eE]+)} $info4 full len4
-regexp {The length result_5 is +([-0-9.+eE]+)} $info5 full len5
-
-set len_int1 [expr int($len1)]
-set len_int2 [expr int($len2)]
-set len_int3 [expr int($len3)]
-set len_int4 [expr int($len4)]
-set len_int5 [expr int($len5)]
-
-if { ${len_int1} != ${len_ch1} 
-   || ${len_int2} != ${len_ch2}
-   || ${len_int3} != ${len_ch3}
-   || ${len_int4} != ${len_ch4}
-   || ${len_int5} != ${len_ch5} } {
-   puts "Error : Length is invalid"
-}
-
+checklength result_1 -l 1570.7963267948965
+checklength result_2 -l 785.39816339744868
+checklength result_3 -l 785.39816339744823
+checklength result_4 -l 523.59877559829806
+checklength result_5 -l 523.59877559829806
\ No newline at end of file
index 9f1ec84c6ae552c867fcabb02ea2922d630f495b..976258b76f394230bdb19a221aa9a0397bf34b6f 100755 (executable)
@@ -15,10 +15,4 @@ circle test_circle 0 0 50
 ellipse test_ellipse 460 0 150 100
 
 BUC60843 result test_circle test_ellipse 0.1
-
-set info [length $result]
-regexp {The length result is +([-0-9.+eE]+)} $info full len
-
-if { ${len} != ${len_ch} } {
-    puts "Error : length is invalid"
-}
+checklength result -l 4.0000000000000001e+100
\ No newline at end of file
index 87b2cc3347cfb54f9ebc31aa2c600e5d29a53a26..5b8b8b043333cb6008ab573e952f370ad6cc9fbc 100755 (executable)
@@ -15,11 +15,4 @@ ellipse test_ellipse_1 0 0 50 50
 ellipse test_ellipse_2 460 0 150 100
 
 BUC60843 result test_ellipse_1 test_ellipse_2 1.0 1.0
-
-set info [length $result]
-regexp {The length result is +([-0-9.+eE]+)} $info full len
-
-if { ${len} != ${len_ch} } {
-    puts "Error : length is invalid"
-}
-
+checklength result -l 4.0000000000000001e+100
\ No newline at end of file
index 5c3093bb3339358aa69f98a87cb3b1bb8d581e39..8517199b80c1e1423d1da25d5cf4282a74ab4ce1 100755 (executable)
@@ -7,13 +7,7 @@ restore [locate_data_file buc60965-c.draw] c
 restore [locate_data_file buc60965-s.draw] s
 
 project result c s
-
-regexp {The+ length+ result+ is +([-0-9.+eE]+)} [length result] full len
-set y [expr 3.e5+int(1.e5*($len-round($len)))]
-
-if { $y != 314196.0 } {
-   puts "Results is incorrect"
-}
+checklength result -l 3.141968717040271
 
 set 2dviewer 0
 
index 00edf14d3238d099adf3601e31d7882073bc73a6..c866542050516abe1256194d6cf66dfed6f85eb2 100755 (executable)
@@ -6,38 +6,10 @@ puts ""
 # Extrema problems. Case: one of the Extrema arguments is an infinite face or an infinite edge.
 ###########################################################
 
-proc GetPercent {Value GoodValue} {
-   set Percent 0.
-   if {${GoodValue} != 0.} {
-      set Percent [expr abs(${Value} - ${GoodValue}) / abs(double(${GoodValue})) * 100.]
-   } elseif {${Value} != 0.} {
-      set Percent [expr abs(${GoodValue} - ${Value}) / abs(double(${Value})) * 100.]
-   } else {
-      set Percent 0.
-   }
-   return ${Percent}
-}
-
-set BugNumber OCC12522
-
 restore [locate_data_file OCC12522.brep] arc1
 explode arc1 e
 mkcurve curve1 arc1_1
-
 plane plane1 6400 -4000 -160 0 0 1 1 0 0
-
 extrema curve1 plane1
 
-set percent_max 0.1
-set good_length 2.9009126041478908
-
-set ext_1_length [lindex [length ext_1] 4]
-
-set length_percent [GetPercent ${ext_1_length} ${good_length}]
-puts "length_percent = ${length_percent}"
-
-if {${length_percent} > ${percent_max}} {
-   puts "${BugNumber}: Faulty"
-} else {
-   puts "${BugNumber}: OK"
-}
+checklength ext_1 -l 2.9009126041478908
\ No newline at end of file
index a76fd4a84ec33a7a491273148686ddf892561ea7..9a7c6ae8ee57d5c8e746b5f182f0c8144ab38bbe 100755 (executable)
@@ -9,10 +9,6 @@ puts ""
 
 set len_expected 4.e100
 line line_2d 0 0 1 1
-
 offset result line_2d 10 1 0
 
-set info [length $result]
-regexp {The length result is +([-0-9.+eE]+)} $info full len
-
-checkreal "Length" $len $len_expected 0. 1e-10
+checklength result -l 4.e100
\ No newline at end of file
index 1522cc32e841411c971a3c1491c776f3c975a894..65265a88c670c758a292010b91e0cae0fc940e8b 100755 (executable)
@@ -6,20 +6,6 @@ puts ""
 # Projection algorithm produces wrong results.
 #######################################################################
 
-set BugNumber OCC23201
-
-proc GetPercent {Value GoodValue} {
-   set Percent 0.
-   if {${GoodValue} != 0.} {
-      set Percent [expr abs(${Value} - ${GoodValue}) / abs(double(${GoodValue})) * 100.]
-   } elseif {${Value} != 0.} {
-      set Percent [expr abs(${GoodValue} - ${Value}) / abs(double(${Value})) * 100.]
-   } else {
-      set Percent 0.
-   }
-   return ${Percent}
-}
-
 restore [locate_data_file bug23201_Tool_1.brep] b2
 restore [locate_data_file bug23201_Tool_2.brep] b3
 
@@ -35,45 +21,8 @@ mkcurve c2 b2_2
 explode b3 e
 mkcurve c3 b3_2
 
-set BugStatus 0
-
-set percent_max 0.1
-set good_c23 3.1415926535897922
-set good_c32 3.1415926535897922
-
-if [catch { project c23 c2 s3 } ] {
-    set BugStatus 1
-} else {
-    set c23_length [lindex [length c23] end]
-    set length_percent [GetPercent ${c23_length} ${good_c23}]
-    puts "length_percent = ${length_percent}"
-    if {${length_percent} > ${percent_max}} {
-       puts "c23: Faulty"
-       set BugStatus 1
-    } else {
-       puts "c23: OK"
-    }
-}
-
-if [catch { project c32 c3 s2 } ] {
-    set BugStatus 1
-} else {
-    set c32_length [lindex [length c32] end]
-    set length_percent [GetPercent ${c32_length} ${good_c32}]
-    puts "length_percent = ${length_percent}"
-    if {${length_percent} > ${percent_max}} {
-       puts "c32: Faulty"
-       set BugStatus 1
-    } else {
-       puts "c32: OK"
-    }
-}
-
-# Resume
-puts ""
-if { ${BugStatus} != 0 } {
-    puts "Faulty ${BugNumber}"
-} else {
-    puts "OK ${BugNumber}"
-}
+project c23 c2 s3
+checklength c23 -l 3.1415926535897922
 
+project c32 c3 s2
+checklength c32 -l 3.1415926535897922
\ No newline at end of file
index 4ff15396243ef417441ef8e90cede1053dcd6a35..c3611286db3934ae90e737ad6e2c22a311ea9ef2 100755 (executable)
@@ -6,30 +6,8 @@ puts ""
 # Projection algorithm produces wrong results
 ##########################################################################################################
 
-set int_check 3
-set fract_check 1415927
-
 restore [locate_data_file bug23464_c41.draw] c41
 restore [locate_data_file bug23464_s46.draw] s46
 
 project result c41 s46
-set info [length result]
-regexp {is +([-0-9.+eE]+)} $info full num
-
-set int_part [expr round($num)]
-set y [expr $num - round($num)]
-set z [expr $y*10000000]
-set fract_part [expr round($z)]
-
-if { ${int_check} != ${int_part} } {
-    puts "Error : Integer part of result is incorrect"
-}
-
-if { ${fract_check} != ${fract_part} } {
-    puts "Error : Fractional part of result is incorrect"
-}
-
-
-
-
-
+checklength result -l 3.1415926535898007
\ No newline at end of file
index 2aac097032679a1f492a519b6d25c677f6e92944..ea2b2eb1d28af4fab4e62f24c1fd49ecf6b3ae7c 100755 (executable)
@@ -6,30 +6,8 @@ puts ""
 # Projection algorithm produces wrong results
 ##########################################################################################################
 
-set int_check 3
-set fract_check 1415927
-
 restore [locate_data_file bug23464_c50.draw] c50
 restore [locate_data_file bug23464_s37.draw] s37
 
 project result c50 s37
-set info [length result]
-regexp {is +([-0-9.+eE]+)} $info full num
-
-set int_part [expr round($num)]
-set y [expr $num - round($num)]
-set z [expr $y*10000000]
-set fract_part [expr round($z)]
-
-if { ${int_check} != ${int_part} } {
-    puts "Error : Integer part of result is incorrect"
-}
-
-if { ${fract_check} != ${fract_part} } {
-    puts "Error : Fractional part of result is incorrect"
-}
-
-
-
-
-
+checklength result -l 3.1415926535898002
\ No newline at end of file
index 104b8c3173053dd6f883b5379d81630f4c7e0d0d..7a52e04f13e339196770df618b518bdae6c1ee09 100755 (executable)
@@ -6,30 +6,8 @@ puts ""
 # Projection algorithm produces wrong results
 ##########################################################################################################
 
-set int_check 3
-set fract_check 1415927
-
 restore [locate_data_file bug23464_c57.draw] c57
 restore [locate_data_file bug23464_s37.draw] s37
 
 project result c57 s37
-set info [length result]
-regexp {is +([-0-9.+eE]+)} $info full num
-
-set int_part [expr round($num)]
-set y [expr $num - round($num)]
-set z [expr $y*10000000]
-set fract_part [expr round($z)]
-
-if { ${int_check} != ${int_part} } {
-    puts "Error : Integer part of result is incorrect"
-}
-
-if { ${fract_check} != ${fract_part} } {
-    puts "Error : Fractional part of result is incorrect"
-}
-
-
-
-
-
+checklength result -l 3.1415926535897993
\ No newline at end of file
index 20659972774c6164ed8e5710b17ca8538b0dfe03..e422ae8ab2300782c1336d9d6cfee7bef52fac71 100755 (executable)
@@ -6,30 +6,8 @@ puts ""
 # Projection algorithm produces wrong results
 ##########################################################################################################
 
-set int_check 3
-set fract_check 1415927
-
 restore [locate_data_file bug23464_c58.draw] c58
 restore [locate_data_file bug23464_s37.draw] s37
 
 project result c58 s37
-set info [length result]
-regexp {is +([-0-9.+eE]+)} $info full num
-
-set int_part [expr round($num)]
-set y [expr $num - round($num)]
-set z [expr $y*10000000]
-set fract_part [expr round($z)]
-
-if { ${int_check} != ${int_part} } {
-    puts "Error : Integer part of result is incorrect"
-}
-
-if { ${fract_check} != ${fract_part} } {
-    puts "Error : Fractional part of result is incorrect"
-}
-
-
-
-
-
+checklength result -l 3.1415926535898038
\ No newline at end of file
index 275d6d746f7f05a1f7f800fe66ca7f2d8d3b6296..a48792f8add0b58484324ab68515a2806e536354 100755 (executable)
@@ -6,30 +6,8 @@ puts ""
 # Projection algorithm produces wrong results
 ##########################################################################################################
 
-set int_check 3
-set fract_check 1415927
-
 restore [locate_data_file bug23464_c57.draw] c57
 restore [locate_data_file bug23464_s46.draw] s46
 
 project result c57 s46
-set info [length result]
-regexp {is +([-0-9.+eE]+)} $info full num
-
-set int_part [expr round($num)]
-set y [expr $num - round($num)]
-set z [expr $y*10000000]
-set fract_part [expr round($z)]
-
-if { ${int_check} != ${int_part} } {
-    puts "Error : Integer part of result is incorrect"
-}
-
-if { ${fract_check} != ${fract_part} } {
-    puts "Error : Fractional part of result is incorrect"
-}
-
-
-
-
-
+checklength result -l 3.1415926535897998
\ No newline at end of file
index 6e6990a84f13c0ecb738f432d4664296287c6b64..7d3c3a2d90a3f9806f9704d5422f0836a7fe8757 100755 (executable)
@@ -6,30 +6,8 @@ puts ""
 # Projection algorithm produces wrong results
 ##########################################################################################################
 
-set int_check 3
-set fract_check 1415927
-
 restore [locate_data_file bug23464_c58.draw] c58
 restore [locate_data_file bug23464_s46.draw] s46
 
 project result c58 s46
-set info [length result]
-regexp {is +([-0-9.+eE]+)} $info full num
-
-set int_part [expr round($num)]
-set y [expr $num - round($num)]
-set z [expr $y*10000000]
-set fract_part [expr round($z)]
-
-if { ${int_check} != ${int_part} } {
-    puts "Error : Integer part of result is incorrect"
-}
-
-if { ${fract_check} != ${fract_part} } {
-    puts "Error : Fractional part of result is incorrect"
-}
-
-
-
-
-
+checklength result -l 3.1415926535898016
\ No newline at end of file
index 5478ffbdf0fc765a7b2b849c90d111ee8f46a467..748df5a43b1322a4f5e71b790701c0d90e3be763 100755 (executable)
@@ -8,30 +8,14 @@ puts ""
 # Invalid conversion 2D periodic BSpline curve to Bezier segments
 #######################################################################################
 
-set BugNumber OCC7372
-
 OCC7372
 
-set mistake 0
 set len [llength [directory segment*]]
 if { ${len} != 5 } {
-    puts "Faulty ${BugNumber} : segment number is wrong"
-    set mistake 1
+    puts "Error: segment number is wrong"
 } else {
-    set good_length 73.3203
-    regexp {The length .* is ([-0-9.+eE]+)} [length segment_5] full current_length
-    if { [expr 1.*abs($good_length - $current_length)/$good_length * 100] > 0.1 } {
-       puts "Faulty ${BugNumber} : length is wrong for segment_5"
-       set mistake 1
-    }
+    checklength segment_5 -l 73.3203
     renamevar segment_5 result
 }
 
-if { ${mistake} != 0 } {
-    puts "Faulty ${BugNumber}"
-} else {
-    puts "OK ${BugNumber}"
-}
-
-set 2dviewer 0
-
+set 2dviewer 0
\ No newline at end of file
index 9510b568c9d52ece60b0514460245db7cd1c96d6..3ef549a941441711be482f02805978bb65d82129 100644 (file)
@@ -14,11 +14,7 @@ mksurface s a_2
 pcurve a_2
 
 project prj c s
-
-set prj_length [lindex [length prj] end]
-
-set good_length 7.2662499016218058
-checkreal "prj_length" ${prj_length} ${good_length} 0.01 0.01
+checklength prj -l 7.2662499016218058
 
 #v2d2
 view 1 -2D-  728 20 400 400
index 4d2c6bc52fd0a2351d5b02c2053c07d3a5faaae6..e5b72848b092dcc7c807460e5a7bd0f2091ba528 100644 (file)
@@ -14,11 +14,7 @@ mksurface s a_2
 pcurve a_2
 
 project prj c s
-
-set prj_length [lindex [length prj] end]
-
-set good_length 7.2662499016218058
-checkreal "prj_length" ${prj_length} ${good_length} 0.01 0.01
+checklength prj -l 7.2662499016218058
 
 #v2d2
 view 1 -2D-  728 20 400 400
index 50e8146299920a6db79c214f465bf0159bbfd651..663698f36b24a1a844c595706d229f3809e828c3 100644 (file)
@@ -10,11 +10,7 @@ restore [locate_data_file bug25084_c.draw] c
 restore [locate_data_file bug25084_s10.draw] s
 
 project cx c s
-
-regexp {The length cx is +([0-9.+eE]+)} [length cx] full cx_length
-
-set good_length 4.6201952691345385
-checkreal "length of cp1" ${cx_length} ${good_length} 0.01 0.01
+checklength cx -l 4.6201952691345385
 
 #v2d2
 view 1 -2D-  728 20 400 400
index 83726b7e1564fc08189bab74c4b953c3c78d9aa3..866452f65f119194411664c6c342ec58f711338c 100644 (file)
@@ -17,13 +17,8 @@ trim ct2 c_1 0.79929107016766343 7.0824763773472501
 
 project cp1 ct1 s1
 project cp2 ct2 s1
-
-regexp {The length cp1 is +([0-9.+eE]+)} [length cp1] full length1
-regexp {The length cp2 is +([0-9.+eE]+)} [length cp2] full length2
-
-set good_length 7.2783309522
-checkreal "length of cp1" ${length1} ${good_length} 0.01 0.01
-checkreal "length of cp2" ${length2} ${good_length} 0.01 0.01
+checklength cp1 -l 7.2783309522
+checklength cp2 -l 7.2783309522
 
 #v2d2
 view 1 -2D-  728 20 400 400
index 16e6df76e3f029a9bd6abb203fae5c3ce089fa34..f9a7344931d38c00053806c9cf5d156543c444ba 100755 (executable)
@@ -13,18 +13,10 @@ mksurface s f
 mkcurve c e
 
 extrema c s
-regexp {The length ext_1 is +([-0-9.+eE]+)} [length ext_1] full ext_1_length
-set good_length 1.0e-7
-set tol_abs 1.0e-6
-set tol_rel 1.0e-6
-checkreal "length of ext_1" ${ext_1_length} ${good_length} ${tol_abs} ${tol_rel}
+checklength ext_1 -l 8.8817841970012523e-016
 
 trim ct c 3.0050016686511065 3.2781836385284797
 extrema ct s
-regexp {The length ext_1 is +([-0-9.+eE]+)} [length ext_1] full ext_1_length
-set good_length 1.0e-7
-set tol_abs 1.0e-6
-set tol_rel 1.0e-6
-checkreal "length of ext_1" ${ext_1_length} ${good_length} ${tol_abs} ${tol_rel}
+checklength ext_1 -l 8.8817841970012523e-016
 
 xdistcs c s 3.140212946671221 3.142972360508366 10 1e-6
index b1359cdf5f3c30e7b005c7cb9a0ac9d06434b163..21db23d448405be856809c884180638538e5554c 100755 (executable)
@@ -13,10 +13,6 @@ mksurface s f
 mkcurve c e
 
 extrema c s
-regexp {The length ext_1 is +([-0-9.+eE]+)} [length ext_1] full ext_1_length
-set good_length 1.0e-7
-set tol_abs 1.0e-6
-set tol_rel 1.0e-6
-checkreal "length of ext_1" ${ext_1_length} ${good_length} ${tol_abs} ${tol_rel}
+checklength ext_1 -l 4.4408920985006262e-016
 
 xdistcs c s 1.57079 1.5708 10 1e-6
index 12b08f04e1d20b2ea636442954884cacb879068c..5c79da94d2729d7d5d95097b951c11cf45957e73 100644 (file)
@@ -17,8 +17,7 @@ set y -1206.50315237977
 set z 0
 
 proj c $x $y $z
-
-regexp {The length ext_12 is +([0-9.+eE]+)} [length ext_12] full l_12
+checklength ext_12 -l 29.450809988644483
 
 # 2
 
@@ -33,9 +32,5 @@ set distmin [dval d_val]
 
 set tol_abs 1.0e-07
 set tol_rel 0.01
-
-set expected_l_12 29.450809988644483
 set expected_distmin 3.1958945321254297e-12
-
-checkreal "Length l_12" ${l_12} ${expected_l_12} ${tol_abs} ${tol_rel}
 checkreal "Minimal distance" ${distmin} ${expected_distmin} ${tol_abs} ${tol_rel}
index 8114ae960a7fe5036b931612b98e6fb6325d62f1..c3392784422c7fb054d9ce663482a4e4a1c3d7fc 100644 (file)
@@ -9,7 +9,6 @@ puts ""
 
 set absTol 1.0e-6
 set relTol 0.001
-set expectedLength 1.0e-6
 set exp_x 12.700000
 set exp_y 16.8949999999593
 set exp_z  0.534684851975074
@@ -26,10 +25,7 @@ if {![regexp {ext_1} $info1]} {
   puts "Error: No extrema found in case 1"
 }
 # length check
-set case1Info [length ext_1]
-regexp {The length ext_1 is ([-0-9.+eE]+)} $case1Info full case1Length
-checkreal "case 1 extrema value" $case1Length $expectedLength $absTol $relTol
-
+checklength ext_1 -l 1.0e-6
 
 # case 2: Curve
 # existence check
@@ -39,9 +35,7 @@ if {![regexp {ext_1} $info2]} {
   puts "Error: No extrema found in case 2"
 }
 # length check
-set case2Info [length ext_1]
-regexp {The length ext_1 is ([-0-9.+eE]+)} $case2Info full case2Length
-checkreal "case 2 extrema value" $case2Length $expectedLength $absTol $relTol
+checklength ext_1 -l 1.0e-6
 
 #case 3: Point
 # existence check
index 050858cc1fc5632510dc46c618a516f266688c46..c62c3316f28d2ac98cf23e792aa283883fae1ccf 100755 (executable)
@@ -12,16 +12,7 @@ restore [locate_data_file bug22610_f1.brep] a
 mksurface s1 a
 
 proj s1 1500 1500 500 g
-set x [lindex [length ext_2] end]
-
+renamevar ext_2 res
 proj s1 1500 1500 500 t
-set y [lindex [length ext_1] end]
-
-# Resume
-puts ""
-if { $x == $y } {
-   puts "OK ${BugNumber}"
-} else {
-   puts "Faulty ${BugNumber}"
-}
 
+checklength res -l -equal ext_1
index 81399791755e1ff5169217672e3483e59faf76ce..4fb705ac10a40f70a34719345a5d327c2d0bcf89 100755 (executable)
@@ -9,12 +9,4 @@ if { [info exists imagedir] == 0 } {
 
 if { [info exists test_image ] == 0 } {
    set test_image photo
-}
-
-proc checklength {theShape theLength} {
-  set aLengthDump [uplevel lprops $theShape -full]
-  regexp {Mass\s*:\s*([-0-9.+eE]+)} $aLengthDump dummy aLength
-  if {abs($aLength - $theLength) > $theLength * 1e-14} {
-    puts "Error: result length is too different."
-  }
-}
+}
\ No newline at end of file
index 2fc3366594da50fd56a370995ec785c30c7fd4dc..a45f937fdf0be5a6a49574e7af255c0fbfe842d3 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 0.7
 
 checknbshapes  r  -vertex 3  -edge 3  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 9.054743851305652
+checkprops r -l 9.054743851305652
index c21ff3228977283cde6890ac5b61214b478a35a8..d9d41256eb85944b003599c2a4de09d3b17a239c 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1
 
 checknbshapes  r  -vertex 2  -edge 2  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 6.1622776601683791
+checkprops r -l 6.1622776601683791
index fd786b453232d605972b4320a4502b56144ccf0e..496f97fba4909bf88a1327c77b94ec6a420bea50 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1
 
 checknbshapes  r  -vertex 2  -edge 2  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 6.1622776601683791
+checkprops r -l 6.1622776601683791
index 1de5f1589ecaaeea7f380f2880dd30921308e422..3ca0eaefd9c0f2138d9f61add21ef89bb8f7cc9c 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1
 
 checknbshapes  r  -vertex 2  -edge 2  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 6.1622776601683791
+checkprops r -l 6.1622776601683791
index 88ac075aae7346edd78359f4b4277800493d07df..6ffaa1b2643afe191bf666a16bbe05ca6e187abc 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1.5
 
 checknbshapes  r  -vertex 1  -edge 1  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 1.4142135623730949
+checkprops r -l 1.4142135623730949
index 99953dbcf00e70e588a5c5d57e73db139053c870..91293935bb586c6f1b06ce5eece7f45cc7ccb342 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1.5
 
 checknbshapes  r  -vertex 1  -edge 1  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 1.4142135623730949
+checkprops r -l 1.4142135623730949
index 8db61405c06fd92611565d597744e87750d14238..a027db0f99298211f1287b4732c9dc8814ceb871 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1.5
 
 checknbshapes  r  -vertex 1  -edge 1  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 1.4142135623730949
+checkprops r -l 1.4142135623730949
index 6204ccb5eb493f5606138da6934bc4a3ad0ef2c7..38aa41dd37e4ec2a7a40583cb037ed2157862a9d 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1.5
 
 checknbshapes  r  -vertex 1  -edge 1  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 1.4142135623730949
+checkprops r -l 1.4142135623730949
index 32fd6b429accbed62d527cf2e5b6ce675eed6f9a..a14a3cfdf7027c19ddf1f42150e61d765273062a 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1.5
 
 checknbshapes  r  -vertex 1  -edge 1  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 1.4142135623730949
+checkprops r -l 1.4142135623730949
index 43704a85bc024c6a2b0d8333ff4249a11e267bd6..49681dbb552c283890aa90e687140bc3d14e94b0 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1.5
 
 checknbshapes  r  -vertex 1  -edge 1  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 1.4142135623730949
+checkprops r -l 1.4142135623730949
index 0c45b1188508d4788c2e7747c34913aa9912d2d3..2ec182c35654cb051df103dd3a134d564dc1cf23 100644 (file)
@@ -14,4 +14,4 @@ sewing s s1 s2 s3 s4
 fixshape  r  s  -maxtaila 10  -maxtailw 0.7
 
 checknbshapes  r  -vertex 5  -edge 7  -wire 4  -face 4  -shell 1  -solid 0  -compsolid 0  -compound 0
-checklength r 69.237606465667483
+checkprops r -l 69.237606465667483
index c5f079725dc97eaef9491fdc54e40e7560c16055..9011115eed2d881425afa059801a05f731cebb3d 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 0.7
 
 checknbshapes  r  -vertex 3  -edge 3  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 9.054743851305652
+checkprops r -l 9.054743851305652
index b2e4b0bf4bbf82eaf4492a4155a0092658624352..9ad508447fd6a5a9ab05d86e5ad0438a14be4ebd 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 0.7
 
 checknbshapes  r  -vertex 3  -edge 3  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 9.054743851305652
+checkprops r -l 9.054743851305652
index ad3c08c79ee8fbdfd4ad8c7813285a94c65304e0..b90bfcf5de847c500e2ddf41a780d7a37c00c408 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 0.7
 
 checknbshapes  r  -vertex 3  -edge 3  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 9.0547440573886373
+checkprops r -l 9.0547440573886373
index 2447239a5357bd89f64483b486ac6d355e1f369f..5d4985b3b2ca8a1d1942fe5a191101a7796b287a 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 0.7
 
 checknbshapes  r  -vertex 3  -edge 3  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 9.0547440573886373
+checkprops r -l 9.0547440573886373
index 17ea7c9a2d80bacc87f716855fe9eb813f181b2e..65fd93087f05f18d806ef1395e433ad60f0d8ec5 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 0.7
 
 checknbshapes  r  -vertex 3  -edge 3  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 9.0547440573886373
+checkprops r -l 9.0547440573886373
index d8eb4d234b9bb57c54a2f5857e77266ab0ca0ca0..90d942235059454fbd6a1c5a168f88f38093ffb1 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1
 
 checknbshapes  r  -vertex 2  -edge 2  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 6.1622776601683791
+checkprops r -l 6.1622776601683791
index 7e8ae51be0b3321bc4a7cd4848e8cbe3f87ede0d..fbc479fd1fac79831de6153da1bc0f15990aec0a 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1
 
 checknbshapes  r  -vertex 2  -edge 2  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 6.1622776601683791
+checkprops r -l 6.1622776601683791
index 11e5a58bc5025b99e629828dfcdff216ee2c5d3a..af17017b8e1f3146426976cf5b0fecfdb2040a0d 100644 (file)
@@ -6,4 +6,4 @@ mkplane s w
 fixshape  r  s  -maxtaila 10  -maxtailw 1
 
 checknbshapes  r  -vertex 2  -edge 2  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 6.1622776601683791
+checkprops r -l 6.1622776601683791
index ea3f42fff215d3eea5e1c9a6249e94f0f4158fd1..01982d2164d1f6652a21189d827c7a3e93bf93cf 100644 (file)
@@ -2,4 +2,4 @@ restore [locate_data_file  bug26261_a_2574.brep] s
 fixshape  r  s  -maxtaila 1  -maxtailw 6e-3
 
 checknbshapes  r  -vertex 16  -edge 16  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 17.514170299083325
+checkprops r -l 17.514170299083325
index 74c0bb967e36177adbe59ed3bd7bdd0213b0524e..c572d0391733a5226682745fb98b1f71afe28d2d 100644 (file)
@@ -2,4 +2,4 @@ restore [locate_data_file  bug26261_a_3380.brep] s
 fixshape  r  s  -maxtaila 1  -maxtailw 3e-3
 
 checknbshapes  r  -vertex 5  -edge 5  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 1.9646975436380054
+checkprops r -l 1.9646975436380054
index 7e25f52db924346c1a1ae706db353d0f6ba127f0..51931d3a2e48e869977895ca92055323bad61e2c 100644 (file)
@@ -2,4 +2,4 @@ restore [locate_data_file  bug26261_notched_1.brep] s
 fixshape  r  s  -maxtaila 1  -maxtailw 1e-4
 
 checknbshapes  r  -vertex 7  -edge 7  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 5.4302952062350922
+checkprops r -l 5.4302952062350922
index b69fba54249a1f690b534492811ef3576d47d885..9566ad9c8848afa4096a7e1781d3ee4d513a5846 100644 (file)
@@ -2,4 +2,4 @@ restore [locate_data_file  bug26261_notched_2.brep] s
 fixshape  r  s  -maxtaila 1  -maxtailw 1e-2
 
 checknbshapes  r  -vertex 3  -edge 3  -wire 1  -face 1  -shell 0  -solid 0  -compsolid 0  -compound 0
-checklength r 21.767418596938622
+checkprops r -l 21.767418596938622
index c0db940674a606a49e112a257c1ffa0886be90d1..54ac8da2c628b9403625ed96e4a1bfdcb139a125 100644 (file)
@@ -5,4 +5,4 @@ renamevar s_1 s
 fixshape  r  s  -maxtaila 1  -maxtailw 1e-3
 
 checknbshapes  r  -vertex 25951  -edge 42000  -wire 16519  -face 16205  -shell 51  -solid 1  -compsolid 0  -compound 2
-checklength r 127197.46264592493
+checkprops r -l 127197.46264592493
index b19706c0506f73c5deca15d7f77cd472648daa30..93e3c4d4cb9d468ed4d53c40ba38740848a16e36 100644 (file)
@@ -5,4 +5,4 @@ renamevar s_1 s
 fixshape  r  s  1e-3  1  -maxtaila 6  -maxtailw 1e-3
 
 checknbshapes  r  -vertex 257  -edge 395  -wire 146  -face 137  -shell 1  -solid 1  -compsolid 0  -compound 0
-checklength r 4611.0742231217555
+checkprops r -l 4611.0742231217555
index 9d596c294a7580d9cce052b36991a28d995fb547..bcfb3b70fb8f363ed0a5e0e5d8dce7974120de71 100644 (file)
@@ -5,4 +5,4 @@ renamevar s_1 s
 fixshape  r  s  1e-3  1  -maxtaila 6  -maxtailw 1e-3
 
 checknbshapes  r  -vertex 8494  -edge 13832  -wire 5955  -face 5466  -shell 1  -solid 1  -compsolid 0  -compound 0
-checklength r 69141.057126027736
+checkprops r -l 69141.057126027736