1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_2/bug5805_41
astromko 32c5a79613 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.
2024-07-29 16:24:03 +01:00

54 lines
1.3 KiB
Plaintext
Executable File

puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
puts "============"
puts "OCC5805"
puts "============"
#######################################################################
# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
#######################################################################
set BugNumber OCC5805
set z1 5
set z2 -5
# beziercurve1
beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
mkedge e1 bc1
wire UpCover e1
# beziercurve2
beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2}
mkedge e2 bc2
wire BottomCover e2
set issolid 1
set isruled 1
if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
puts "Faulty ${BugNumber} : thrusections is wrong"
}
set distance -0.001
catch { OFFSETSHAPE $distance {} $calcul $type }
# Null result
checkprops result -s 356.089
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 "Faulty ${BugNumber} : s is not Closed shape"
}
set index [lsearch [whatis result] Closed]
if {$index == -1} {
puts "Faulty ${BugNumber} : result is not Closed shape"
}
checkview -display result -2d -path ${imagedir}/${test_image}.png