mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0029580: Regression: invalid result of BOP Fuse
Boolean Operation - avoid creation of INTERNAL solid from unclassified faces in Solid Builder algorithm. Instead warn the user that some of the faces have been unclassified and not used for solids creation. Adjustment of the test cases. Test cases for the issue.
This commit is contained in:
30
tests/bugs/modalg_7/bug25983_1
Normal file
30
tests/bugs/modalg_7/bug25983_1
Normal file
@@ -0,0 +1,30 @@
|
||||
puts "TODO OCC25983 ALL: Error : is WRONG because number of"
|
||||
puts "TODO OCC25983 ALL: Error : The area of result shape is"
|
||||
puts "TODO OCC25983 ALL: Error : The volume of result shape is"
|
||||
|
||||
puts "========"
|
||||
puts "OCC25983"
|
||||
puts "========"
|
||||
puts ""
|
||||
##########################################
|
||||
# Fusion of sweep and its mirror invalid
|
||||
##########################################
|
||||
|
||||
restore [locate_data_file bug25983_deform-fusion1-tcl-BSpline.brep] BSpline
|
||||
wire Knurling-0-spine BSpline
|
||||
mksweep Knurling-0-spine
|
||||
setsweep -FR
|
||||
polyline DWire 0 0 0 1 -0.9999999999999998 0 1.0000000000000002 0.9999999999999998 0 0 0 0
|
||||
trotate DWire 0 0 0 1 0 0 134.99999999999693
|
||||
ttranslate DWire 9 0 0
|
||||
addsweep DWire
|
||||
buildsweep Knurling -C -S
|
||||
copy Knurling Clone
|
||||
tmirror Clone 0 0 0 1 0 0
|
||||
bfuse result Knurling Clone
|
||||
|
||||
checkshape result
|
||||
checknbshapes result -wire 24 -face 24 -shell 1 -solid 1
|
||||
checkprops result -s 262.476 -v 54.0383
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
@@ -1,5 +1,3 @@
|
||||
puts "TODO OCC25983 ALL: Faulty shapes in variables faulty_1 to faulty_"
|
||||
|
||||
puts "========"
|
||||
puts "OCC25983"
|
||||
puts "========"
|
||||
@@ -19,6 +17,12 @@ addsweep DWire
|
||||
buildsweep Knurling -C -S
|
||||
copy Knurling Clone
|
||||
tmirror Clone 0 0 0 1 0 0
|
||||
|
||||
bfuzzyvalue 1.e-3
|
||||
bfuse result Knurling Clone
|
||||
|
||||
checkshape result
|
||||
checknbshapes result -wire 24 -face 24 -shell 1 -solid 1
|
||||
checkprops result -s 262.476 -v 54.0383
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
18
tests/bugs/modalg_7/bug29580_1
Normal file
18
tests/bugs/modalg_7/bug29580_1
Normal file
@@ -0,0 +1,18 @@
|
||||
puts "========"
|
||||
puts "OCC29580"
|
||||
puts "========"
|
||||
puts ""
|
||||
#################################################
|
||||
# Regression: invalid result of BOP Fuse
|
||||
#################################################
|
||||
|
||||
restore [locate_data_file bug29580_Cylinder.brep] b1
|
||||
restore [locate_data_file bug29580_Solid.brep] b2
|
||||
|
||||
bfuse result b1 b2
|
||||
|
||||
checkshape result
|
||||
checknbshapes result -wire 14 -face 13 -shell 1 -solid 1
|
||||
checkprops result -s 865.851 -v 1622.19
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
37
tests/bugs/modalg_7/bug29580_2
Normal file
37
tests/bugs/modalg_7/bug29580_2
Normal file
@@ -0,0 +1,37 @@
|
||||
puts "========"
|
||||
puts "OCC29580"
|
||||
puts "========"
|
||||
puts ""
|
||||
#################################################
|
||||
# Regression: invalid result of BOP Fuse
|
||||
#################################################
|
||||
|
||||
|
||||
circle c1 0 -5 0 1 0 0 10
|
||||
circle c2 0 5 0 1 0 0 10
|
||||
mkedge e1 c1
|
||||
mkedge e2 c2
|
||||
wire w1 e1
|
||||
wire w2 e2
|
||||
mkplane f1 w1
|
||||
mkplane f2 w2
|
||||
bcut f12 f1 f2
|
||||
revol b1 f12 0 0 0 0 0 1 180
|
||||
ttranslate b1 0 31.358955689999998 0
|
||||
|
||||
plane pln 0 0 0 0 0 1 1.1102230246251565e-016 -1 0
|
||||
psphere b2 pln 8.6602540399999999 180
|
||||
ttranslate b2 0 31.358955689999998 0
|
||||
|
||||
bclearobjects
|
||||
bcleartools
|
||||
baddobjects b1
|
||||
baddtools b2
|
||||
bfillds
|
||||
bbuild result
|
||||
|
||||
checkshape result
|
||||
checknbshapes result -vertex 4 -edge 14 -wire 10 -face 10 -shell 3 -solid 3 -t
|
||||
checkprops result -s 3879.55 -v 6295.15
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
Reference in New Issue
Block a user