mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
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