mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0028964: Draw - need to have command to apply ShapeFix_FixSmallFace tool
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.
This commit is contained in:
@@ -1,22 +1,15 @@
|
||||
pload QAcommands
|
||||
|
||||
puts "==========="
|
||||
puts "OCC22586"
|
||||
puts "==========="
|
||||
puts "# ==================================================================="
|
||||
puts "# 0022586: ShapeFix_FixSmallFace mistakenly removes a non-small pipe-like face with a seam edge"
|
||||
puts "# ==================================================================="
|
||||
puts ""
|
||||
#######################################################################
|
||||
# ShapeFix_FixSmallFace mistakenly removes a non-small pipe-like face with a seam edge
|
||||
#######################################################################
|
||||
|
||||
set BugNumber OCC22586
|
||||
|
||||
restore [locate_data_file OCC22586.brep] shape
|
||||
|
||||
if { [catch { OCC22586 shape result } catch_result] } {
|
||||
puts "Faulty ${BugNumber}"
|
||||
} else {
|
||||
puts "${BugNumber} OK"
|
||||
}
|
||||
fixsmallfaces result shape 1.e-7
|
||||
|
||||
checkprops result -s 10975
|
||||
checkview -display result -3d -path ${imagedir}/${test_image}.png
|
||||
|
21
tests/bugs/modalg_7/bug28112_2
Normal file
21
tests/bugs/modalg_7/bug28112_2
Normal file
@@ -0,0 +1,21 @@
|
||||
puts "# ================================================================="
|
||||
puts "# 0028112: E x c e p t i o n during offset computation"
|
||||
puts "# ================================================================="
|
||||
|
||||
puts ""
|
||||
puts "# Fixing small faces on first shape..."
|
||||
restore [locate_data_file bug28112_1.brep] shape1
|
||||
fixsmallfaces fix1 shape1 -1
|
||||
checknbshapes fix1 -face 4
|
||||
|
||||
puts ""
|
||||
puts "# Fixing small faces on second shape..."
|
||||
restore [locate_data_file bug28112_2.brep] shape2
|
||||
fixsmallfaces fix2 shape2 -1
|
||||
checknbshapes fix2 -face 4
|
||||
|
||||
puts ""
|
||||
puts "# Trying offset on both shapes to ensure that it works after removal"
|
||||
puts "# of small faces"
|
||||
offsetshapesimple res1 fix1 10.
|
||||
offsetshapesimple res2 fix2 10.
|
Reference in New Issue
Block a user