1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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:
emv
2018-03-15 17:02:46 +03:00
committed by rnv
parent 90850b69d3
commit 2c277b838e
16 changed files with 277 additions and 87 deletions

View File

@@ -1,12 +1,10 @@
# Original bug : buc60127
# Date : 18mar98
puts "TODO #22911 ALL: Faulty shapes in variables faulty_1 to faulty_"
puts "TODO #22911 ALL: Error : The area of result shape is"
puts "TODO #22911 ALL: Error : The command is not valid. The area is 0."
restore [locate_data_file buc60127-part.rle] part
restore [locate_data_file buc60127-tool.rle] tool
bcut result part tool
checkprops result -s 0
checkview -display result -2d -s -otherwise { part tool } -path ${imagedir}/${test_image}.png

View File

@@ -1,8 +1,6 @@
puts "TODO 0026789 ALL: Error : The area of result shape is"
puts "TODO 0026789 ALL: Error : The volume of result shape is"
puts "TODO 0026789 ALL: Error : is WRONG because number of SOLID entities in shape"
puts "TODO 0026789 ALL: Error : is WRONG because number of SHELL entities in shape"
puts "TODO 0026789 ALL: Faulty shapes in variables faulty_"
puts "TODO 0026789 ALL: Error : is WRONG because number of"
puts "========"
puts "OCC26789"

View 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

View File

@@ -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

View 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

View 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