Added an additional condition in order to preserve necessary shells.
Added a test case.
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;
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"
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} {
}
-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
-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"
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} {
-puts "TODO OCC31845 All: ERROR: null result"
-
puts "============================================"
puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
puts "============================================"
--- /dev/null
+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
+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
-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
-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
##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
-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
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\""
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\""
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\""
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\""
-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
-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
-#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
-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
checkprops result -v 0
checkprops result -s 0
-checknbshapes result -shell 1
+checknbshapes result -shell 3
-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
checkprops result -v 0
checkprops result -s 0
-checknbshapes result -shell 1
+checknbshapes result -shell 7