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_7/bug29334
abv 090ef04012 0029334: Simple offsets complicate geometry
Method BRepOffset::Surface() is used in simple offset algorithm to create offset surface, instead of direct and unconditional construction of new Geom_OffsetSurface instance.

Added test bugs modalg_7 bug29334
2019-09-02 08:08:37 +03:00

29 lines
883 B
Plaintext

puts "# ======================================================================"
puts "# 0029334: Simple offsets complicate geometry"
puts "# ======================================================================"
puts "Make box, fillet one of its edges, and extract two planar faces connected by fillet"
box b 10 10 10
explode b e
blend r b 1 b_5
explode r f
compound r_1 r_3 r_6 shape
puts "Offset these faces using simple offset algo"
offsetshapesimple result shape 1
puts "Verify that all faces of the result are either planes or cylinders"
set i 1
foreach f [explode result f] {
mksurface surf_$i $f
set surf_dump [dump surf_$i]
if { [regexp {Offset} $surf_dump] } {
puts "Error: surface $i is offset, should be plane or cylinder"
}
if { ! [regexp {Plane|CylindricalSurface} $surf_dump] } {
puts "Error: surface $i is not plane or cylinder"
}
incr i
}