mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
DRAW command fixsmallfaces is added to fix (remove) small faces in the shape. Command OCC22586 is removed (replaced by fixsmallfaces). Test bug28112_2 using that command is added for the two last shapes in issue #28112; test bug28112 is renamed to bug28112_1. Test bug22586 is changed to use the new command.
23 lines
684 B
Plaintext
23 lines
684 B
Plaintext
puts "========"
|
|
puts "OCC28112"
|
|
puts "========"
|
|
puts ""
|
|
####################################################################################
|
|
## Exception during offset computation
|
|
####################################################################################
|
|
|
|
restore [locate_data_file bug28112.brep] s
|
|
|
|
regexp {Mass +: +([-0-9.+eE]+)} [lprops s 1.e-4] full s_len
|
|
regexp {Mass +: +([-0-9.+eE]+)} [sprops s 1.e-4] full s_area
|
|
|
|
for {set i -5} {$i <= 5} {incr i} {
|
|
set offsetvalue [expr 6. * $i]
|
|
offsetshapesimple result s ${offsetvalue}
|
|
|
|
checkshape result
|
|
checkprops result -l ${s_len}
|
|
checkprops result -s ${s_area}
|
|
checknbshapes result -vertex 12 -edge 15 -face 3
|
|
}
|