puts "The expected square is $square"
}
#check of change of square is < 1%
- if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
- puts "Error : The square of reult shape is $m"
+ if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+ puts "Error : The square of result shape is $m"
}
if { $m > 0 } {
clear
-puts "TODO OCC22817 Mandriva2010: Error : The square of reult shape is"
+puts "TODO OCC22817 Mandriva2010: Error : The square of result shape is"
#########################
# bug sewing #
-puts "TODO OCC22817 Mandriva2010: Error : The square of reult shape is"
+puts "TODO OCC22817 Mandriva2010: Error : The square of result shape is"
#########################
# bug sewing #
## cts21139
puts "TODO #22911 ALL: Faulty shapes in variables faulty_1 to faulty_"
-
+puts "TODO OCC22911 ALL: Error : The square of result shape is"
restore [locate_data_file shape.brep] a
restore [locate_data_file tool_1.brep] b
puts "TODO ${inst}#22911 ${os}: Faulty shapes in variables faulty_1 to faulty_"
}
+if { [string compare $os "CentOS55-64"] == 0
+ || [string compare $os "Debian40"] == 0
+ || [string compare $os "Debian40-64"] == 0
+ || [string compare $os "Mandriva2008"] == 0
+ || [string compare $os "Mandriva2008-64"] == 0
+ || [string compare $os "SL51-64"] == 0
+} {
+ puts "TODO OCC22911 $os: Error : The square of result shape is"
+}
+
ptorus a0 100 20
tcopy a0 a1
tcopy a0 a2
puts "The expected $prop is $mass"
}
#check of change of square is < 1%
- if { ($mass != 0 && [expr abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+ if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
puts "Error : The $prop of result shape is $m"
}
#E3----------------------------------------------
puts "TODO OCC22803 All:Faulty shapes in variables faulty_1 to faulty_2"
-puts "TODO OCC22803 All:Error : The square of reult shape is"
+puts "TODO OCC22803 All:Error : The square of result shape is"
ptorus pt 25 24 90
plane p 20 20 10 0 0 1
# Date : 23 Nov 98
puts "TODO OCC22803 All:Faulty shapes in variables faulty_1 to faulty_2"
+puts "TODO ?OCC22803 ALL: Error : The square of result shape is"
restore [locate_data_file cts20194_base.brep] base
puts "The expected square is $square"
}
#check of change of square is < 1%
- if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
- puts "Error : The square of reult shape is $m"
+ if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+ puts "Error : The square of result shape is $m"
}
if { [string compare $ch "This shape seems to be valid"] == 0 } {
#check if tolerance is less 1.
puts "The expected square is $square"
}
#check of change of square is < 1%
- if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
- puts "Error : The square of reult shape is $m"
+ if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+ puts "Error : The square of result shape is $m"
}
if { $m > 0 } {
clear
puts "*"
#puts "TODO OCC22810 All:Faulty .*"
puts "TODO OCC22810 ALL:Faulty shapes in variables faulty_1 to faulty_3"
-puts "TODO OCC22810 ALL:Error : The square of reult shape is"
+puts "TODO OCC22810 ALL:Error : The square of result shape is"
ttranslate cont 0 0 -100
#
regexp { *VERTEX +: +MAX=([-0-9.+eE]+)} $tolerance full maxv
if { [info exists MaxFTol ] } {
- if { $MaxFTol != 0 && $maxf > $MaxFTol && [expr abs($MaxFTol - $maxf)/$MaxFTol] > 0.01 } {
+ if { $MaxFTol != 0 && $maxf > $MaxFTol && [expr 1.*abs($MaxFTol - $maxf)/$MaxFTol] > 0.01 } {
puts "Error : Result shape is WRONG. MAX tolerance of FACE should be equal $MaxFTol instead of $maxf"
} elseif { $MaxFTol == 0 && $maxf != 0 } {
puts "Error : Result shape is WRONG."
}
if { [info exists MaxETol ] } {
- if { $MaxETol != 0 && $maxe > $MaxETol && [expr abs($MaxETol - $maxe)/$MaxETol] > 0.01 } {
+ if { $MaxETol != 0 && $maxe > $MaxETol && [expr 1.*abs($MaxETol - $maxe)/$MaxETol] > 0.01 } {
puts "Error : Result shape is WRONG. MAX tolerance of EDGE should be equal $MaxETol instead of $maxe"
} elseif { $MaxETol == 0 && $maxe != 0 } {
puts "Error : Result shape is WRONG."
}
if { [info exists MaxVTol ] } {
- if { $MaxVTol != 0 && $maxv > $MaxVTol && [expr abs($MaxVTol - $maxv)/$MaxVTol] > 0.01 } {
+ if { $MaxVTol != 0 && $maxv > $MaxVTol && [expr 1.*abs($MaxVTol - $maxv)/$MaxVTol] > 0.01 } {
puts "Error : Result shape is WRONG. MAX tolerance of VERTEX should be equal $MaxVTol instead of $maxv"
} elseif { $MaxVTol == 0 && $maxv != 0 } {
puts "Error : Result shape is WRONG."
puts "The expected $prop is $mass"
}
#check of change of length is < 1%
- if { ($mass != 0 && [expr abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+ 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 { [string compare $length "empty"] != 0 } {
puts "The expected length is $length"
#check of change of length is < 1%
- if { ($length != 0 && [expr abs($length - $m)/$length] > 0.01) || ($length == 0 && $m != 0) } {
+ if { ($length != 0 && [expr 1.*abs($length - $m)/$length] > 0.01) || ($length == 0 && $m != 0) } {
puts "Error : The length of result shape is $m"
}
} else {
puts "The expected volume is $volume"
}
#check of change of volume is < 1%
- if { ($volume > 0 && [expr abs($volume - $m)/$volume] > 0.01) || ($volume == 0 && $m != 0 && $sm != $m) } {
+ if { ($volume > 0 && [expr 1.*abs($volume - $m)/$volume] > 0.01) || ($volume == 0 && $m != 0 && $sm != $m) } {
puts "Error : The volume of result shape is $m"
}
}
puts "The expected square is $square"
}
#check of change of square is < 1%
- if { ($square != 0 && [expr abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
+ if { ($square != 0 && [expr 1.*abs($square - $m)/$square] > 0.01) || ($square == 0 && $m != 0) } {
puts "Error : The square of result shape is $m"
}
if { $m > 0 } {
puts "The expected $prop is $mass"
}
#check of change of square is < 1%
- if { ($mass != 0 && [expr abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+ 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 {