1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0033558: Modeling Algorithms - The solids does not preserve geometry topology after applying offset to all faces

Added an additional condition in order to preserve necessary shells.
Added a test case.
This commit is contained in:
astromko 2024-07-03 17:57:16 +01:00
parent 9fcfec881c
commit 32c5a79613
19 changed files with 60 additions and 51 deletions

View File

@ -3915,9 +3915,10 @@ TopoDS_Shape BRepOffset_Tool::Deboucle3D(const TopoDS_Shape& S,
continue;
}
}
if (!Boundary.Contains(anEdge) &&
!BRep_Tool::Degenerated(anEdge))
if (!Boundary.IsEmpty() && !Boundary.Contains(anEdge) && !BRep_Tool::Degenerated(anEdge))
{
JeGarde = Standard_False;
}
}
}
if (JeGarde) SS = S;

View File

@ -1,7 +1,4 @@
puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
puts "TODO OCC25925 ALL: Error: The command cannot be built"
puts "TODO OCC25925 ALL: TEST INCOMPLETE"
puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
puts "============"
puts "OCC5805"
@ -37,7 +34,7 @@ set distance -0.001
catch { OFFSETSHAPE $distance {} $calcul $type }
# Null result
checkprops result -s 495.635
checkprops result -s 234.792
set index [lsearch [whatis s] Closed]
if {$index == -1} {
@ -51,6 +48,6 @@ if {$index == -1} {
}
checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
checknbshapes result -vertex 6 -edge 6 -wire 3 -face 3 -shell 3 -solid 0 -compsolid 0 -compound 1 -shape 22
checkview -display result -2d -path ${imagedir}/${test_image}.png

View File

@ -1,6 +1,4 @@
puts "TODO OCC25925 ALL: Error: The command cannot be built"
puts "TODO OCC25925 ALL: TEST INCOMPLETE"
puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
puts "============"
puts "OCC5805"
@ -36,9 +34,9 @@ set distance -0.001
catch { OFFSETSHAPE $distance {} $calcul $type }
# Null result
checkprops result -s 495.635
checkprops result -s 356.089
checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
checknbshapes result -vertex 6 -edge 6 -wire 3 -face 3 -shell 3 -solid 0 -compsolid 0 -compound 1 -shape 22
set index [lsearch [whatis s] Closed]
if {$index == -1} {

View File

@ -1,5 +1,3 @@
puts "TODO OCC31845 All: ERROR: null result"
puts "============================================"
puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
puts "============================================"

View File

@ -0,0 +1,10 @@
puts "===================================================================="
puts "0033558: Modeling Algorithms - The solids does not preserve geometry topology after applying offset to all faces"
puts "===================================================================="
puts ""
pload MODELING
restore [locate_data_file bug33558.brep] bb
offsetshape r bb -50
checkshape r
checkview -display r -2d -path ${imagedir}/${test_image}.png

View File

@ -1,3 +1,5 @@
puts "TODO OCC25406 ALL: Error: bsection of the result and s is not equal to zero"
#old file ofc25
restore [locate_data_file CHE_bb60.rle] s
OFFSETSHAPE 0.37 {} $calcul $type

View File

@ -1,9 +1,5 @@
puts "TODO OCC23068 ALL: result is not a topological shape"
puts "TODO OCC23068 ALL: TEST INCOMPLETE"
puts "TODO OCC23068 ALL: Error: The command cannot be built"
ptorus s 10 10 0 45
OFFSETSHAPE 1 {} $calcul $type
checkprops result -v 0
checkprops result -v 18408.6

View File

@ -1,6 +1,5 @@
puts "TODO OCC23068 ALL: result is not a topological shape"
puts "TODO OCC23068 ALL: Error: The command cannot be built"
puts "TODO OCC23068 ALL: TEST INCOMPLETE"
puts "TODO OCC25983 ALL: Error : The volume of result shape is"
puts "TODO OCC25406 ALL: Error: bsection of the result and s is not equal to zero"
cpulimit 500

View File

@ -2,15 +2,12 @@
##puts "TODO OCC27414 ALL: Error : The area of result shape is"
##puts "TODO OCC27414 ALL: Faulty shapes in variables faulty_"
##puts "TODO OCC27414 ALL: Error : The area of face"
puts "TODO OCC27414 ALL: Error: The command cannot be built"
puts "TODO OCC27414 ALL: gives an empty result"
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
restore [locate_data_file bug26917_M2_trim33.brep] s
OFFSETSHAPE 5 {} $calcul $type
checkprops result -v 0
checkprops result -s 0
checkprops result -v 301442
checkprops result -s 39899.1
checknbshapes result -shell 1

View File

@ -1,12 +1,8 @@
puts "TODO OCC27414 ALL: Error: The command cannot be built"
puts "TODO OCC27414 ALL: gives an empty result"
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
restore [locate_data_file bug26917_input.dom7742_simple.brep] s
OFFSETSHAPE 10 {} $calcul $type
checkprops result -v 0
checkprops result -s 0
checkprops result -v 10375.5
checkprops result -s 7292.19
checknbshapes result -shell 1

View File

@ -6,6 +6,11 @@ puts "TODO CR27414 ALL: Error: operation with offset value 11 has failed"
puts "TODO CR27414 ALL: Error: operation with offset value 12 has failed"
puts "TODO CR27414 ALL: Operations with following offset values have failed: 7 8 9 10 11 12"
puts "TODO CR27414 ALL: Error : The offset cannot be built"
puts "TODO OCC25983 ALL: Error: number of wire entities in the result shape is"
puts "TODO OCC25983 ALL: Error: number of face entities in the result shape is"
puts "TODO OCC25983 ALL: Error: number of solid entities in the result shape is"
puts "TODO OCC25983 ALL: Error: The area of result shape is"
puts "TODO OCC25983 ALL: Error: The volume of result shape is"
puts "============================================================================================="
puts "0032333: Modeling Algorithms - Empty(wrong) result of offset operation in mode \"Complete\" join type \"Intersection\""

View File

@ -1,8 +1,11 @@
puts "TODO CR27414 ALL: Error: number of wire entities in the result"
puts "TODO CR27414 ALL: Error: number of face entities in the result"
puts "TODO CR27414 ALL: Error: number of solid entities in the result"
puts "TODO CR27414 ALL: Error: operation with offset value 9 has failed"
puts "TODO CR27414 ALL: Error: operation with offset value 10 has failed"
puts "TODO CR27414 ALL: Operations with following offset values have failed: 9 10"
puts "TODO OCC25983 ALL: Error: The area of result shape is"
puts "TODO OCC25983 ALL: Error: The volume of result shape is"
puts "============================================================================================="
puts "0032333: Modeling Algorithms - Empty(wrong) result of offset operation in mode \"Complete\" join type \"Intersection\""

View File

@ -1,5 +1,10 @@
puts "TODO CR27414 ALL: Error: operation with offset value 9 has failed"
puts "TODO CR27414 ALL: Operations with following offset values have failed: 9"
puts "TODO CR27414 ALL: Error: number of wire entities in the result"
puts "TODO CR27414 ALL: Error: number of face entities in the result"
puts "TODO CR27414 ALL: Error: number of solid entities in the result"
puts "TODO OCC25983 ALL: Error: The area of result shape is"
puts "TODO OCC25983 ALL: Error: The volume of result shape is"
puts "============================================================================================="
puts "0032333: Modeling Algorithms - Empty(wrong) result of offset operation in mode \"Complete\" join type \"Intersection\""

View File

@ -5,6 +5,12 @@ puts "TODO CR27414 ALL: Error: operation with offset value 10 has failed"
puts "TODO CR27414 ALL: Error: operation with offset value 11 has failed"
puts "TODO CR27414 ALL: Error: operation with offset value 12 has failed"
puts "TODO CR27414 ALL: Operations with following offset values have failed: 7 8 9 10 11 12"
puts "TODO CR27414 ALL: Error: number of wire entities in the result"
puts "TODO CR27414 ALL: Error: number of face entities in the result"
puts "TODO CR27414 ALL: Error: number of solid entities in the result"
puts "TODO OCC25983 ALL: Error: The area of result shape is"
puts "TODO OCC25983 ALL: Error: The volume of result shape is"
puts "============================================================================================="
puts "0032333: Modeling Algorithms - Empty(wrong) result of offset operation in mode \"Complete\" join type \"Intersection\""

View File

@ -1,6 +1,5 @@
puts "TODO OCC27414 ALL: Error: The command cannot be built"
puts "TODO OCC27414 ALL: gives an empty result"
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
puts "TODO OCC25983 ALL: Error : The area of result shape is"
puts "TODO OCC25983 ALL: Error : The volume of result shape is"
restore [locate_data_file bug26917_M2_trim32.brep] s

View File

@ -1,6 +1,5 @@
puts "TODO OCC27414 ALL: Error: The command cannot be built"
puts "TODO OCC27414 ALL: gives an empty result"
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
puts "TODO OCC25983 ALL: Error : The area of result shape is"
puts "TODO OCC25406 ALL: Error: bsection of the result and s is not equal to zero"
restore [locate_data_file bug26917_M2_trim34.brep] s

View File

@ -1,7 +1,5 @@
#puts "TODO CR27414 ALL: Error : The volume of result shape is"
puts "TODO OCC27414 ALL: Error: The command cannot be built"
puts "TODO OCC27414 ALL: gives an empty result"
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
puts "TODO CR27414 ALL: Error : The volume of result shape is"
puts "TODO OCC25406 ALL: Error: bsection of the result and s is not equal to zero"
restore [locate_data_file bug26917_M2_trim16.brep] s

View File

@ -1,6 +1,6 @@
puts "TODO OCC27414 ALL: Error: The command cannot be built"
puts "TODO OCC27414 ALL: gives an empty result"
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
puts "TODO CR27414 ALL: Error : The volume of result shape is"
puts "TODO OCC25983 ALL: Error : The area of result shape is"
puts "TODO OCC25406 ALL: Error: bsection of the result and s is not equal to zero"
restore [locate_data_file bug26917_fills_center.input_trim3.brep] s
@ -9,4 +9,4 @@ OFFSETSHAPE 6 {} $calcul $type
checkprops result -v 0
checkprops result -s 0
checknbshapes result -shell 1
checknbshapes result -shell 3

View File

@ -1,6 +1,6 @@
puts "TODO OCC27414 ALL: Error: The command cannot be built"
puts "TODO OCC27414 ALL: gives an empty result"
puts "TODO OCC27414 ALL: TEST INCOMPLETE"
puts "TODO CR27414 ALL: Error : The volume of result shape is"
puts "TODO OCC25983 ALL: Error : The area of result shape is"
restore [locate_data_file bug26917_input.dom7742.brep] s
@ -9,4 +9,4 @@ OFFSETSHAPE 15 {} $calcul $type
checkprops result -v 0
checkprops result -s 0
checknbshapes result -shell 1
checknbshapes result -shell 7