1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0031148: Modeling Algorithms - Offset adjacent co-planar faces with different offset values

Extend the Offset operation (Join Type "Intersection", mode "Complete") to allow different offset values on adjacent co-planar faces.
The gap between adjacent faces is closed by creating artificial face perpendicular to the face.

Adding test cases.
This commit is contained in:
emv
2019-10-11 07:23:19 +03:00
committed by bugmaster
parent 34e7ac6817
commit 420b38fde9
63 changed files with 3050 additions and 369 deletions

View File

@@ -1,6 +1,4 @@
puts "TODO OCC27912 ALL: An exception was caught"
puts "TODO OCC27912 ALL: \\*\\* Exception \\*\\*.*"
puts "TODO OCC27912 ALL: TEST INCOMPLETE"
puts "TODO OCC27912 ALL: Error : The area of result shape is"
puts "========"
puts "OCC27912"
@@ -16,3 +14,5 @@ offsetparameter 1e-7 p i
offsetload s 10
offsetperform result
checkprops result -s 0

View File

@@ -2,6 +2,7 @@
cpulimit 900
if { [array get Draw_Groups "TOPOLOGY Feature commands"] == "" } {
pload TOPTEST
setfillhistory 0
}
if { [array get Draw_Groups "Shape Healing"] == "" } {
pload XSDRAW

View File

@@ -16,5 +16,6 @@
016 with_intersect_20
017 with_intersect_80
018 shape_type_i_c
019 simple
020 bugs
019 shape_type_i_c_multi
020 simple
021 bugs

View File

@@ -0,0 +1,44 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1 2 3} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 10 0 0 10 0 5 5 0 5 0 0 5 0 0 0
mkplane f p
prism s f 0 10 0
perform_offset_multi_with_ref r0_01 s 0 {3 4} {1 2} {470 650 8 8} 0
perform_offset_multi_with_ref r0_02 s 0 {3 4} {2 1} {470 650 8 8} 0
perform_offset_multi_with_ref r0_03 s 0 {3 4} {2 2} {480 700 7 7} 0
perform_offset_multi_with_ref r1_01 s 1 {3 4} {2 3} {708 1224 8 8} 0
perform_offset_multi_with_ref r1_02 s 1 {3 4} {3 2} {708 1224 8 8} 0
perform_offset_multi_with_ref r2_01 s 2 {3 4} {4 4} {1008 2156 7 7} 0
perform_offset_multi_with_ref r2_02 s 2 {} {} {896 1764 7 7} 0
perform_offset_multi_with_ref r2_03 s 2 {3 4} {0 1} {826 1470 8 8} 0
perform_offset_multi_with_ref r2_04 s 2 {3 4} {1 1} {840 1568 7 7} 0
perform_offset_multi_with_ref r3_01 s 3 {4} {5} {1312 3072 8 8} 0
# display all created shapes
foreach val {0 1 2 3} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r3_01 result
copy r3_01_unif result_unif

View File

@@ -0,0 +1,53 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1 3} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 5 0 0 5 0 5 5 0 10 0 0 10 0 0 5 0 0 0
mkplane f p
prism s f 0 10 0
# right side: faces 2 and 3
# left side: faces 5 and 6
perform_offset_multi_with_ref r0_01 s 0 {2 3 5 6} {1 2 3 4} {620 1000 10 10} 0
perform_offset_multi_with_ref r0_02 s 0 {3 5} {2 3} {550 750 10 10} 0
perform_offset_multi_with_ref r0_03 s 0 {3 6} {2 3} {550 750 10 10} 0
perform_offset_multi_with_ref r0_04 s 0 {2 6} {2 3} {550 750 10 10} 0
perform_offset_multi_with_ref r0_05 s 0 {2 5} {2 3} {550 750 10 10} 0
perform_offset_multi_with_ref r0_06 s 0 {2 3 5 6} {2 2 3 3} {600 1000 8 8} 0
perform_offset_multi_with_ref r0_07 s 0 {2 3 5 6} {3 3 2 2} {600 1000 6 6} 1
perform_offset_multi_with_ref r1_01 s 1 {2 3 5 6} {0 1 2 3} {696 1152 10 10} 0
perform_offset_multi_with_ref r1_02 s 1 {2 3 5 6} {0 2 0 2} {672 1008 10 10} 0
perform_offset_multi_with_ref r1_03 s 1 {2 3 5 6} {2 0 2 0} {672 1008 10 10} 0
perform_offset_multi_with_ref r1_04 s 1 {3 5} {2 2} {696 1152 10 10} 0
perform_offset_multi_with_ref r1_05 s 1 {} {} {624 1008 8 8} 0
perform_offset_multi_with_ref r1_06 s 1 {2 3 5 6} {3 3 2 2} {768 1440 6 6} 1
perform_offset_multi_with_ref r3_01 s 3 {2 6} {0 0} {1120 2048 10 10} 0
perform_offset_multi_with_ref r3_02 s 3 {3 5} {1 1} {1152 2304 10 10} 0
perform_offset_multi_with_ref r3_03 s 3 {2 5} {2 2} {1184 2560 10 10} 0
perform_offset_multi_with_ref r3_04 s 3 {3 6} {0 0} {1120 2048 10 10} 0
# display all created shapes
foreach val {0 1 3} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,57 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
polyline p 0 0 0 10 0 0 10 0 2 8 0 2 6 0 2 6 0 5 6 0 8 4 0 8 4 0 5 4 0 2 2 0 2 0 0 2 0 0 0
mkplane f p
prism s f 0 10 0
# right top side: faces 3 and 4
# right side: faces 5 and 6
# left side: faces 8 and 9
# left top side: faces 10 and 11
# unset draw variables for all offset values
foreach val {0 1 2 3 4} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
perform_offset_multi_with_ref r0_01 s 0 {3 4 5 6 8 9 10 11} {1 2 1 2 2 1 2 1} {516 580 18 18} 0
perform_offset_multi_with_ref r0_02 s 0 {3 6 8 11} {4 3 3 4} {688 640 22 18} 1
perform_offset_multi_with_ref r0_03 s 0 {3 6 8 11} {4 5 5 4} {748 740 22 18} 1
perform_offset_multi_with_ref r0_04 s 0 {3 6 8 11} {10 5 6 8} {918 890 30 26} 1
perform_offset_multi_with_ref r0_05 s 0 {3 6 8 11} {2 4 4 2} {728 640 18 18} 1
perform_offset_multi_with_ref r1_01 s 1 {} {} {672 864 14 14} 0
perform_offset_multi_with_ref r1_02 s 1 {3 6 8 11} {2 2 2 2} {796 1032 18 18} 1
perform_offset_multi_with_ref r1_03 s 1 {3 6 8 11} {3 2 2 3} {856 1104 22 18} 1
perform_offset_multi_with_ref r1_04 s 1 {3 6 8 11} {4 3 3 4} {880 1248 22 18} 1
perform_offset_multi_with_ref r1_05 s 1 {3 6 8 11} {4 5 5 4} {904 1392 18 14} 1
perform_offset_multi_with_ref r1_06 s 1 {3 6 8 11} {4 6 6 4} {968 1488 22 18} 1
perform_offset_multi_with_ref r1_07 s 1 {3 6 8 11} {6 6 6 6} {968 1488 22 18} 1
perform_offset_multi_with_ref r1_08 s 1 {3 6 8 11} {8 6 6 10} {1088 1632 30 26} 1
perform_offset_multi_with_ref r2_01 s 2 {} {} {968 1680 12 12} 0
perform_offset_multi_with_ref r2_02 s 2 {6 8} {4 4} {1120 1960 14 14} 1
perform_offset_multi_with_ref r2_03 s 2 {3 11} {4 4} {1000 1904 10 10} 0
perform_offset_multi_with_ref r2_04 s 2 {3 6 8 11} {4 7 7 4} {1140 2492 10 10} 1
perform_offset_multi_with_ref r3_01 s 3 {} {} {1312 2816 10 10} 0
perform_offset_multi_with_ref r4_01 s 4 {} {} {1704 4320 10 10} 0
foreach val {0 1 2 3 4} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,46 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 10 0 0 10 0 2 8 0 2 6 0 2 6 0 5 6 0 8 4 0 8 4 0 5 4 0 2 2 0 2 0 0 2 0 0 0
mkplane f p
prism s f 0 10 0
# right top side: faces 3 and 4
# right side: faces 5 and 6
# left side: faces 8 and 9
# left top side: faces 10 and 11
perform_offset_multi_with_ref r0_01 s 0 {3 6 8 11} {3 2 2 3} {672 560 22 18} 1
perform_offset_multi_with_ref r0_02 s 0 {3 6 8 11} {3 3 3 3} {684 620 22 18} 1
perform_offset_multi_with_ref r0_03 s 0 {3 6 8 11} {4 2 2 4} {680 600 22 18} 1
perform_offset_multi_with_ref r0_04 s 0 {3 6 8 11} {3 4 4 3} {696 680 18 14} 1
perform_offset_multi_with_ref r0_05 s 0 {3 6 8 11} {3 5 5 3} {748 740 22 18} 1
perform_offset_multi_with_ref r1_01 s 1 {3 6 8 11} {3 2 2 3} {856 1104 22 18} 1
perform_offset_multi_with_ref r1_02 s 1 {3 6 8 11} {4 2 2 4} {868 1176 22 18} 1
perform_offset_multi_with_ref r1_03 s 1 {3 6 8 11} {3 3 3 3} {872 1200 22 18} 1
perform_offset_multi_with_ref r1_04 s 1 {3 6 8 11} {3 4 4 3} {888 1296 22 18} 1
perform_offset_multi_with_ref r1_05 s 1 {3 6 8 11} {3 5 5 3} {904 1392 18 14} 1
perform_offset_multi_with_ref r1_06 s 1 {3 6 8 11} {7 2 2 7} {904 1392 18 14} 1
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r1_02 result
copy r1_02_unif result_unif

View File

@@ -0,0 +1,65 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1 2 3} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 10 0 0 10 0 1 8 0 1 8 0 4 8 0 7 7 0 7 7 0 4 7 0 1 3 0 1 3 0 4 3 0 7 2 0 7 2 0 4 2 0 1 0 0 1 0 0 0
mkplane f p
prism s f 0 10 0
perform_offset_multi_with_ref r0_01 s 0 {4 5 7 8 10 11 13 14} {0 1 0 1 0 1 0 1} {568 340 22 22} 1
perform_offset_multi_with_ref r0_02 s 0 {4 5 7 8 10 11 13 14} {1 0 1 0 1 0 1 0} {568 340 22 22} 1
perform_offset_multi_with_ref r0_03 s 0 {8 10} {1 1} {516 280 18 18} 1
perform_offset_multi_with_ref r0_04 s 0 {8 10} {2 2} {468 340 14 14} 1
perform_offset_multi_with_ref r0_05 s 0 {8 10} {3 3} {468 340 14 14} 1
perform_offset_multi_with_ref r0_06 s 0 {8 11} {1 1} {536 280 18 18} 1
perform_offset_multi_with_ref r0_07 s 0 {8 11} {2 2} {568 340 20 18} 1
perform_offset_multi_with_ref r0_08 s 0 {8 11} {3 3} {560 400 20 18} 1
perform_offset_multi_with_ref r0_09 s 0 {7 10} {1 1} {536 280 18 18} 1
perform_offset_multi_with_ref r0_10 s 0 {7 10} {2 2} {568 340 20 18} 1
perform_offset_multi_with_ref r0_11 s 0 {7 10} {3 3} {560 400 20 18} 1
perform_offset_multi_with_ref r0_12 s 0 {7 11} {2 2} {548 340 16 14} 1
perform_offset_multi_with_ref r0_13 s 0 {7 11} {3 3} {548 340 16 14} 1
perform_offset_multi_with_ref r1_01 s 1 {4 5 7 8 10 11 13 14} {0 1 0 1 0 1 0 1} {816 720 22 22} 1
perform_offset_multi_with_ref r1_02 s 1 {4 5 7 8 10 11 13 14} {1 0 1 0 1 0 1 0} {816 720 22 22} 1
perform_offset_multi_with_ref r1_03 s 1 {8 10} {1.5 1.5} {796 888 18 18} 1
perform_offset_multi_with_ref r1_04 s 1 {8 10} {2 2} {752 912 14 14} 1
perform_offset_multi_with_ref r1_05 s 1 {8 10} {3 3} {752 912 14 14} 1
perform_offset_multi_with_ref r1_06 s 1 {8 11} {1.5 1.5} {810 900 18 18} 1
perform_offset_multi_with_ref r1_07 s 1 {8 11} {2 2} {828 936 20 18} 1
perform_offset_multi_with_ref r1_08 s 1 {8 11 7 10} {3 3 0 0} {828 936 20 18} 1
perform_offset_multi_with_ref r1_09 s 1 {7 10} {1.5 1.5} {810 900 18 18} 1
perform_offset_multi_with_ref r1_10 s 1 {7 10} {2 2} {828 936 20 18} 1
perform_offset_multi_with_ref r1_11 s 1 {7 10 8 11} {3 3 0 0} {828 936 20 18} 1
perform_offset_multi_with_ref r1_12 s 1 {7 11} {2 2} {760 960 16 14} 1
perform_offset_multi_with_ref r1_13 s 1 {7 11} {3 3} {760 960 16 14} 1
perform_offset_multi_with_ref r2_01 s 2 {4 5 7 8 10 11 13 14} {0 1 1 0 0 1 1 0} {1184 1428 22 22} 1
perform_offset_multi_with_ref r2_02 s 2 {4 5 7 8 10 11 13 14} {1 0 0 1 1 0 0 1} {1040 1204 22 22} 1
perform_offset_multi_with_ref r2_03 s 2 {4 5 7 8 10 11 13 14} {1 0 2 1 1 2 0 1} {996 1484 20 18} 1
perform_offset_multi_with_ref r3_01 s 3 {4 5 7 8 10 11 13 14} {0 1 1 0 0 1 1 0} {1416 2368 14 14} 1
perform_offset_multi_with_ref r3_02 s 3 {4 5 7 8 10 11 13 14} {1 0 0 1 1 0 0 1} {1368 1984 14 14} 1
perform_offset_multi_with_ref r3_03 s 3 {4 5 7 8 10 11 13 14} {1 0 2 1 1 2 0 1} {1224 2368 10 10} 1
# display all created shapes
foreach val {0 1 2 3} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r1_01 result
copy r1_01_unif result_unif

View File

@@ -0,0 +1,44 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 10 0 0 10 0 1 8 0 1 8 0 4 8 0 7 7 0 7 7 0 5 7 0 1 3 0 1 3 0 3 3 0 7 2 0 7 2 0 4 2 0 1 0 0 1 0 0 0
mkplane f p
prism s f 0 10 0
perform_offset_multi_with_ref r0_01 s 0 {4 5 7 8 10 11 13 14} {0 1 0 1 0 1 0 1} {568 360 22 22} 1
perform_offset_multi_with_ref r0_02 s 0 {7 10} {2 2} {560 300 18 18} 1
perform_offset_multi_with_ref r0_03 s 0 {7 10} {4 2} {568 340 18 16} 1
perform_offset_multi_with_ref r0_04 s 0 {7 10} {4 4} {536 380 16 14} 1
perform_offset_multi_with_ref r0_05 s 0 {7 10} {5 3} {572 360 18 16} 1
perform_offset_multi_with_ref r0_06 s 0 {7 11} {2 2} {568 340 18 16} 1
perform_offset_multi_with_ref r0_07 s 0 {7 11} {3 2} {568 340 18 16} 1
perform_offset_multi_with_ref r0_08 s 0 {7 11} {3 3} {572 360 18 16} 1
perform_offset_multi_with_ref r0_09 s 0 {7 11} {0 4} {536 380 16 14} 1
perform_offset_multi_with_ref r1_01 s 1 {4 5 7 8 10 11 13 14} {0 1.5 0 1.5 0 1.5 0 1.5} {858 828 22 22} 1
perform_offset_multi_with_ref r1_02 s 1 {7 10} {2 2} {824 912 18 18} 1
perform_offset_multi_with_ref r1_03 s 1 {7 10} {4 4} {760 960 16 14} 1
perform_offset_multi_with_ref r1_04 s 1 {7 11} {0 4} {740 984 16 14} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,35 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 10 0 0 10 0 1 8 0 1 8 0 4 8 0 7 7 0 7 7 0 5 7 0 1 3 0 1 3 0 3 3 0 7 2 0 7 2 0 4 2 0 1 0 0 1 0 0 0
mkplane f p
prism s f 0 10 0
perform_offset_multi_with_ref r1_01 s 1 {7 10} {4 2} {782 948 18 16} 1
perform_offset_multi_with_ref r1_02 s 1 {7 10} {5 3} {760 960 16 14} 1
perform_offset_multi_with_ref r1_03 s 1 {7 11} {2 2} {784 960 18 16} 1
perform_offset_multi_with_ref r1_04 s 1 {7 11} {3 2} {784 960 18 16} 1
perform_offset_multi_with_ref r1_05 s 1 {7 11} {3 3} {740 984 16 14} 1
# display all created shapes
foreach val {1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r1_03 result
copy r1_03_unif result_unif

View File

@@ -0,0 +1,64 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1 2 3} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 11 0 0 11 0 1 9 0 1 9 0 4 9 0 7 8 0 7 8 0 4 8 0 1 6 0 1 5 0 1 3 0 1 3 0 4 3 0 7 2 0 7 2 0 4 2 0 1 0 0 1 0 0 0
mkplane f p
prism s f 0 10 0
perform_offset_multi_with_ref r0_01 s 0 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 2 1 1 2 2 1} {686 630 26 26} 1
perform_offset_multi_with_ref r0_02 s 0 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 3 1 1 2 2 1} {708 640 30 26} 1
perform_offset_multi_with_ref r0_03 s 0 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 4 1 1 2 2 1} {690 650 30 26} 1
perform_offset_multi_with_ref r0_04 s 0 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 8 1 1 2 2 1} {698 690 30 26} 1
perform_offset_multi_with_ref r0_05 s 0 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2.1 1 1 4 1 1 2.1 2 1} {690.8 654 30 26} 1
perform_offset_multi_with_ref r0_06 s 0 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2.5 1 1 4 1 1 2.5 2 1} {654 670 26 22} 1
perform_offset_multi_with_ref r0_07 s 0 {4 5 7 8 9 10 11 12 13 15 16} {1 2 3 1 1 4 1 1 3 2 1} {654 670 26 22} 1
perform_offset_multi_with_ref r0_08 s 0 {8 10 12} {2 1 2} {532 360 18 18} 1
perform_offset_multi_with_ref r0_09 s 0 {8 10 12} {2.2 1 2.2} {533.6 368 18 18} 1
perform_offset_multi_with_ref r0_10 s 0 {8 10 12} {2.5 1 2.5} {496 380 14 14} 1
perform_offset_multi_with_ref r0_11 s 0 {8 10 12} {3 3 3} {496 380 14 14} 1
perform_offset_multi_with_ref r0_12 s 0 {7 10 13} {2 3 2} {696 380 26 22} 1
perform_offset_multi_with_ref r0_13 s 0 {7 10 13} {2 5 2} {660 400 26 22} 1
perform_offset_multi_with_ref r0_14 s 0 {7 10 13} {2.5 3 2.5} {642 410 22 18} 1
perform_offset_multi_with_ref r0_15 s 0 {7 10 13} {2.5 5 2.5} {642 410 22 18} 1
perform_offset_multi_with_ref r0_16 s 0 {7 10 13} {3 5 3} {642 410 22 18} 1
perform_offset_multi_with_ref r1_01 s 1 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 2 1 1 2 2 1} {976 1104 26 26} 1
perform_offset_multi_with_ref r1_02 s 1 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 3 1 1 2 2 1} {1002 1116 30 26} 1
perform_offset_multi_with_ref r1_05 s 1 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2.1 1 1 4 1 1 2.1 2 1} {981.2 1135.2 30 26} 1
perform_offset_multi_with_ref r1_06 s 1 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2.5 1 1 4 1 1 2.5 2 1} {914 1164 26 22} 1
perform_offset_multi_with_ref r1_07 s 1 {4 5 7 8 9 10 11 12 13 15 16} {1 2 3 1 1 4 1 1 3 2 1} {914 1164 26 22} 1
perform_offset_multi_with_ref r1_08 s 1 {8 10 12} {2 2 2} {808 960 18 18} 1
perform_offset_multi_with_ref r1_09 s 1 {8 10 12} {2.2 1 2.2} {831.6 957.6 18 18} 1
perform_offset_multi_with_ref r1_10 s 1 {8 10 12} {2.5 1 2.5} {786 972 14 14} 1
perform_offset_multi_with_ref r1_11 s 1 {8 10 12} {3 3 3} {786 972 14 14} 1
perform_offset_multi_with_ref r1_12 s 1 {7 10 13} {2 3 2} {938 1020 26 22} 1
perform_offset_multi_with_ref r1_15 s 1 {7 10 13} {2.5 5 2.5} {850 1068 22 18} 1
perform_offset_multi_with_ref r1_16 s 1 {7 10 13} {3 5 3} {850 1068 22 18} 1
perform_offset_multi_with_ref r2_01 s 2 {} {} {1166 1890 14 14} 1
perform_offset_multi_with_ref r3_01 s 3 {5 15} {6 6} {1490 3728 10 10} 1
# display all created shapes
set i 1
foreach val {0 1 2 3} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
incr i
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,35 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
polyline p 0 0 0 11 0 0 11 0 1 9 0 1 9 0 4 9 0 7 8 0 7 8 0 4 8 0 1 6 0 1 5 0 1 3 0 1 3 0 4 3 0 7 2 0 7 2 0 4 2 0 1 0 0 1 0 0 0
mkplane f p
prism s f 0 10 0
perform_offset_multi_with_ref r1_01 s 1 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 4 1 1 2 2 1} {980 1128 30 26} 1
perform_offset_multi_with_ref r1_02 s 1 {4 5 7 8 9 10 11 12 13 15 16} {1 2 2 1 1 8 1 1 2 2 1} {940 1176 30 26} 1
perform_offset_multi_with_ref r1_03 s 1 {7 10 13} {2 5 2} {894 1044 26 22} 1
perform_offset_multi_with_ref r1_04 s 1 {7 10 13} {2.5 3 2.5} {850 1068 22 18} 1
# display all created shapes
foreach val {1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r1_03 result
copy r1_03_unif result_unif

View File

@@ -0,0 +1,37 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_box_iso_face_top.brep] s
perform_offset_multi_with_ref r0_01 s 0 {7} {2} {416 508 12 11} 1
perform_offset_multi_with_ref r0_02 s 0 {6 7} {1 2} {448 604 12 11} 1
perform_offset_multi_with_ref r0_03 s 0 {6 7} {2 1} {488 696 12 11} 1
perform_offset_multi_with_ref r0_04 s 0 {6} {2} {496 692 12 11} 1
perform_offset_multi_with_ref r1_01 s 1 {7} {2} {632 1012 12 11} 1
perform_offset_multi_with_ref r1_02 s 1 {6 7} {2 3} {680 1156 12 11} 1
perform_offset_multi_with_ref r1_03 s 1 {6 7} {3 2} {728 1292 12 11} 1
perform_offset_multi_with_ref r1_04 s 1 {6} {3} {736 1288 12 11} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,55 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_box_top_split1.brep] s
perform_offset_multi_with_ref r0_01 s 0 {6 7 8 9 10} {1 1 1 1 1} {440 600 6 6} 1
perform_offset_multi_with_ref r0_02 s 0 {6} {1} {420 524 11 11} 1
perform_offset_multi_with_ref r0_03 s 0 {6 9} {1 2} {460 572 16 16} 1
perform_offset_multi_with_ref r0_04 s 0 {6 8} {1 1} {432 548 12 12} 1
perform_offset_multi_with_ref r0_05 s 0 {6 8} {1 2} {452 572 14 14} 1
perform_offset_multi_with_ref r0_06 s 0 {6 7 8} {1 2 2} {484 620 17 17} 1
perform_offset_multi_with_ref r0_07 s 0 {6 8 9} {1 2 3} {496 644 17 17} 1
perform_offset_multi_with_ref r0_08 s 0 {6 8 9 7} {1 2 3 4} {544 740 18 18} 1
perform_offset_multi_with_ref r0_09 s 0 {6 8 9 7} {1 2 3 2} {512 692 18 18} 1
perform_offset_multi_with_ref r0_10 s 0 {6 8 9 7 10 } {1 2 3 2 5} {520 712 18 18} 1
perform_offset_multi_with_ref r0_11 s 0 {6 8 9 7 10 } {1 2 3 4 5} {544 760 18 18} 1
perform_offset_multi_with_ref r0_12 s 0 {10} {2} {416 508 12 11} 1
perform_offset_multi_with_ref r1_01 s 1 {6 7 8 9 10} {2 2 2 2 2} {672 1152 6 6} 1
perform_offset_multi_with_ref r1_02 s 1 {6} {2} {648 1043 11 11} 1
perform_offset_multi_with_ref r1_03 s 1 {6 9} {2 3} {696 1113 16 16} 1
perform_offset_multi_with_ref r1_04 s 1 {6 8} {2 2} {662 1078 12 12} 1
perform_offset_multi_with_ref r1_05 s 1 {6 8} {2 3} {686 1113 14 14} 1
perform_offset_multi_with_ref r1_06 s 1 {6 7 8} {2 3 3} {724 1183 17 17} 1
perform_offset_multi_with_ref r1_07 s 1 {6 8 9} {2 3 4} {738 1218 17 17} 1
perform_offset_multi_with_ref r1_08 s 1 {6 8 9 7} {2 3 4 5} {794 1358 18 18} 1
perform_offset_multi_with_ref r1_09 s 1 {6 8 9 7} {2 3 4 3} {756 1288 18 18} 1
perform_offset_multi_with_ref r1_10 s 1 {6 8 9 7 10 } {2 3 4 3 5} {756 1304 18 18} 1
perform_offset_multi_with_ref r1_11 s 1 {6 8 9 7 10 } {2 3 4 5 6} {794 1378 18 18} 1
perform_offset_multi_with_ref r1_11 s 1 {6 8 9 7 10 } {2 3 4 5 2.5} {784 1364 20 20} 1
perform_offset_multi_with_ref r1_12 s 1 {10} {2} {632 1012 12 11} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_11 result
copy r0_11_unif result_unif

View File

@@ -0,0 +1,55 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_box_top_split2.brep] s
perform_offset_multi_with_ref r0_01 s 0 {6 7 8 9 10} {1 1 1 1 1} {440 600 6 6} 1
perform_offset_multi_with_ref r0_02 s 0 {6} {1} {420 524 9 9} 1
perform_offset_multi_with_ref r0_03 s 0 {6 9} {1 2} {460 572 12 12} 1
perform_offset_multi_with_ref r0_04 s 0 {6 8} {1 1} {432 548 10 10} 1
perform_offset_multi_with_ref r0_05 s 0 {6 8} {1 2} {452 572 12 12} 1
perform_offset_multi_with_ref r0_06 s 0 {6 7 8} {1 2 2} {484 620 14 14} 1
perform_offset_multi_with_ref r0_07 s 0 {6 8 9} {1 2 3} {496 644 15 15} 1
perform_offset_multi_with_ref r0_08 s 0 {6 8 9 7} {1 2 3 4} {544 740 17 17} 1
perform_offset_multi_with_ref r0_09 s 0 {6 8 9 7} {1 2 3 2} {512 692 16 16} 1
perform_offset_multi_with_ref r0_10 s 0 {6 8 9 7 10 } {1 2 3 2 5} {520 712 16 16} 1
perform_offset_multi_with_ref r0_11 s 0 {6 8 9 7 10 } {1 2 3 4 5} {544 760 15 15} 1
perform_offset_multi_with_ref r0_12 s 0 {10} {2} {416 508 12 11} 1
perform_offset_multi_with_ref r1_01 s 1 {6 7 8 9 10} {2 2 2 2 2} {672 1152 6 6} 1
perform_offset_multi_with_ref r1_02 s 1 {6} {2} {648 1043 9 9} 1
perform_offset_multi_with_ref r1_03 s 1 {6 9} {2 3} {696 1113 12 12} 1
perform_offset_multi_with_ref r1_04 s 1 {6 8} {2 2} {662 1078 10 10} 1
perform_offset_multi_with_ref r1_05 s 1 {6 8} {2 3} {686 1113 12 12} 1
perform_offset_multi_with_ref r1_06 s 1 {6 7 8} {2 3 3} {724 1183 14 14} 1
perform_offset_multi_with_ref r1_07 s 1 {6 8 9} {2 3 4} {738 1218 15 15} 1
perform_offset_multi_with_ref r1_08 s 1 {6 8 9 7} {2 3 4 5} {794 1358 17 17} 1
perform_offset_multi_with_ref r1_09 s 1 {6 8 9 7} {2 3 4 3} {756 1288 16 16} 1
perform_offset_multi_with_ref r1_10 s 1 {6 8 9 7 10 } {2 3 4 3 5} {756 1304 16 16} 1
perform_offset_multi_with_ref r1_11 s 1 {6 8 9 7 10 } {2 3 4 5 6} {794 1378 15 15} 1
perform_offset_multi_with_ref r1_12 s 1 {6 8 9 7 10 } {2 3 4 5 2.5} {784 1364 16 16} 1
perform_offset_multi_with_ref r1_13 s 1 {10} {2} {632 1012 12 11} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_11 result
copy r0_11_unif result_unif

View File

@@ -0,0 +1,40 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_box_top_split3.brep] s
perform_offset_multi_with_ref r0_01 s 0 {6 7 8 9 10 11 12 13 14} {1 1 1 1 1 1 1 1 1} {440 600 6 6} 1
perform_offset_multi_with_ref r0_02 s 0 {7 8 11 12} {1 1 1 1} {448 532 26 26} 1
perform_offset_multi_with_ref r0_03 s 0 {6 9 10 13 14} {1 1 1 1 1} {472 568 26 26} 1
perform_offset_multi_with_ref r0_04 s 0 {14} {1} {408 504 12 11} 1
perform_offset_multi_with_ref r0_05 s 0 {6 7 8 9 10 11 12 13} {1 1 1 1 1 1 1 1} {448 596 12 11} 1
perform_offset_multi_with_ref r1_01 s 1 {6 7 8 9 10 11 12 13 14} {2 2 2 2 2 2 2 2 2} {672 1152 6 6} 1
perform_offset_multi_with_ref r1_02 s 1 {7 8 11 12} {2 2 2 2} {680 1048 26 26} 1
perform_offset_multi_with_ref r1_03 s 1 {6 9 10 13 14} {2 2 2 2 2} {712 1112 26 26} 1
perform_offset_multi_with_ref r1_04 s 1 {14} {2} {632 1012 12 11} 1
perform_offset_multi_with_ref r1_05 s 1 {14} {0} {632 1004 12 11} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_02 result
copy r0_02_unif result_unif

View File

@@ -0,0 +1,35 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_box_top_split4.brep] s
perform_offset_multi_with_ref r0_01 s 0 {2 5 6 8} {1 2 3 4} {530 750 12 12} 1
perform_offset_multi_with_ref r0_02 s 0 {5 6} {1 1} {440 550 13 13} 1
perform_offset_multi_with_ref r0_03 s 0 {5 6} {1 2} {460 575 13 13} 1
perform_offset_multi_with_ref r1_01 s 1 {2 5 6 8} {2 3 4 5} {780 1368 12 12} 1
perform_offset_multi_with_ref r1_02 s 1 {5 6} {2 2} {672 1080 13 13} 1
perform_offset_multi_with_ref r1_03 s 1 {5 6} {2 3} {696 1116 13 13} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,85 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_plate_split.brep] s
perform_offset_multi_with_ref r0_01 s 0 {10} {3} {428 204 18 18} 1
perform_offset_multi_with_ref r0_02 s 0 {10} {4} {432 212 18 18} 1
perform_offset_multi_with_ref r0_03 s 0 {10} {5} {432 212 18 18} 1
perform_offset_multi_with_ref r0_04 s 0 {6 14} {1 1} {464 220 18 18} 1
perform_offset_multi_with_ref r0_05 s 0 {6 10 14} {1 2 1} {464 236 26 26} 1
perform_offset_multi_with_ref r0_06 s 0 {6 10 14} {1 3 1} {464 240 26 26} 1
perform_offset_multi_with_ref r0_07 s 0 {6 10 14} {1 4 1} {464 244 26 26} 1
perform_offset_multi_with_ref r0_08 s 0 {9 11} {3 3} {440 228 22 22} 1
perform_offset_multi_with_ref r0_09 s 0 {9 11} {4 4} {448 244 24 23} 1
perform_offset_multi_with_ref r0_10 s 0 {6 9 11 14} {1 2 2 1} {464 252 34 34} 1
perform_offset_multi_with_ref r0_11 s 0 {6 9 11 14} {1 3 3 1} {464 260 34 34} 1
perform_offset_multi_with_ref r0_12 s 0 {6 9 11 14} {1 4 4 1} {464 268 36 35} 1
perform_offset_multi_with_ref r0_13 s 0 {8 10 12} {3 3 3} {452 252 22 22} 1
perform_offset_multi_with_ref r0_14 s 0 {8 10 12} {4 4 4} {464 276 22 20} 1
perform_offset_multi_with_ref r0_15 s 0 {6 8 10 12 14 } {1 3 3 3 1} {464 280 30 30} 1
perform_offset_multi_with_ref r0_16 s 0 {6 8 10 12 14 } {1 4 3 4 1} {464 288 28 27} 1
perform_offset_multi_with_ref r0_17 s 0 {6 8 10 12 14 } {1 3 4 3 1} {464 284 30 30} 1
perform_offset_multi_with_ref r0_18 s 0 {6 8 10 12 14 } {1 4 4 4 1} {464 292 30 28} 1
perform_offset_multi_with_ref r0_19 s 0 {7 10 13} {1 2 1} {424 228 22 22} 1
perform_offset_multi_with_ref r0_20 s 0 {7 10 13} {1 3 1} {424 228 22 22} 1; # Questionable result: shouldn't s_10 material cover s_7 and s_13?
perform_offset_multi_with_ref r0_21 s 0 {7 9 11 13} {1 2 2 1} {424 236 28 27} 1
perform_offset_multi_with_ref r0_22 s 0 {7 8 10 12 13} {1 2 2 2 1} {424 244 26 24} 1
perform_offset_multi_with_ref r0_23 s 0 {8 9 10 11 12} {1 2 3 4 4} {392 292 18 18} 1
perform_offset_multi_with_ref r1_01 s 1 {10} {3} {672 728 18 18} 1
perform_offset_multi_with_ref r1_02 s 1 {10} {5} {672 736 18 18} 1
perform_offset_multi_with_ref r1_03 s 1 {10} {6} {672 736 18 18} 1
perform_offset_multi_with_ref r1_04 s 1 {6 14} {1.5 1.5} {702 756 18 18} 1
perform_offset_multi_with_ref r1_05 s 1 {6 10 14} {1.5 2 1.5} {698 760 26 26} 1
perform_offset_multi_with_ref r1_06 s 1 {6 10 14} {1.5 3 1.5} {696 762 26 26} 1
perform_offset_multi_with_ref r1_07 s 1 {6 10 14} {1.5 5 1.5} {692 766 26 26} 1
perform_offset_multi_with_ref r1_08 s 1 {9 11} {3 3} {672 736 22 22} 1
perform_offset_multi_with_ref r1_09 s 1 {9 11} {5 5} {672 752 24 23} 1
perform_offset_multi_with_ref r1_10 s 1 {6 9 11 14} {1.5 2 2 1.5} {694 764 34 34} 1
perform_offset_multi_with_ref r1_11 s 1 {6 9 11 14} {1.5 4 4 1.5} {686 772 34 34} 1
perform_offset_multi_with_ref r1_12 s 1 {6 9 11 14} {1.5 5 5 1.5} {682 776 36 35} 1
perform_offset_multi_with_ref r1_13 s 1 {8 10 12} {3 3 3} {664 752 22 22} 1
perform_offset_multi_with_ref r1_14 s 1 {8 10 12} {5 5 5} {656 784 22 20} 1
perform_offset_multi_with_ref r1_15 s 1 {6 8 10 12 14 } {1.5 3 3 3 1.5} {672 780 30 30} 1
perform_offset_multi_with_ref r1_16 s 1 {6 8 10 12 14 } {1.5 5 4 5 1.5} {654 794 28 27} 1
perform_offset_multi_with_ref r1_17 s 1 {6 8 10 12 14 } {1.5 4 5 4 1.5} {660 790 30 30} 1
perform_offset_multi_with_ref r1_18 s 1 {6 8 10 12 14 } {1.5 5 5 5 1.5} {652 796 30 28} 1
perform_offset_multi_with_ref r1_19 s 1 {6 10 14} {0 2 0} {660 652 22 22} 1
perform_offset_multi_with_ref r1_20 s 1 {6 10 14} {0 3 0} {660 652 22 22} 1
perform_offset_multi_with_ref r1_21 s 1 {6 9 11 14} {0 2 2 0} {660 656 28 27} 1
perform_offset_multi_with_ref r1_22 s 1 {7 8 10 12 13} {1.5 2 2 2 1.5} {664 740 26 24} 1
perform_offset_multi_with_ref r1_23 s 1 {8 9 10 11 12} {1 2 3 4 5} {640 768 20 20} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,49 @@
puts "TODO OCC31200 All: Error: operation with offset value"
puts "TODO OCC31200 All: Error: The area of result shape is"
puts "TODO OCC31200 All: Error: The volume of result shape is"
puts "TODO OCC31200 All: Error: number of "
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_plate_split.brep] s
perform_offset_multi_with_ref r0_01 s 0 {6 10 14} {1 5 1} {464 244 26 26} 1; # BAD (null shape)
perform_offset_multi_with_ref r0_02 s 0 {9 11} {5 5} {448 244 24 23} 1; # BAD (filled part)
perform_offset_multi_with_ref r0_03 s 0 {6 9 11 14} {1 5 5 1} {464 268 36 35} 1; # BAD (mostly removed)
perform_offset_multi_with_ref r0_04 s 0 {8 10 12} {5 5 5} {464 276 22 20} 1; # BAD (out of borders)
perform_offset_multi_with_ref r0_05 s 0 {6 8 10 12 14 } {1 5 5 5 1} {464 292 30 28} 1
perform_offset_multi_with_ref r0_06 s 0 {7 9 11 13} {1 3 3 1} {424 236 28 27} 1
perform_offset_multi_with_ref r0_07 s 0 {7 8 10 12 13} {1 3 3 3 1} {424 244 26 24} 1
perform_offset_multi_with_ref r0_08 s 0 {8 9 10 11 12} {1 2 3 4 5} {392 292 18 18} 1
perform_offset_multi_with_ref r1_01 s 1 {6 10 14} {1.5 6 1.5} {692 766 26 26} 1
perform_offset_multi_with_ref r1_02 s 1 {9 11} {6 6} {672 752 24 23} 1
perform_offset_multi_with_ref r1_03 s 1 {6 9 11 14} {1.5 6 6 1.5} {682 776 36 35} 1
perform_offset_multi_with_ref r1_04 s 1 {8 10 12} {6 6 6} {656 784 22 20} 1
perform_offset_multi_with_ref r1_05 s 1 {6 9 11 14} {0 3 3 0} {660 656 28 27} 1
perform_offset_multi_with_ref r1_06 s 1 {8 9 10 11 12} {2 3 4 5 6} {622 786 18 18} 1
# display all created shapes
foreach val {0 1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_02 result
copy r0_02_unif result_unif

View File

@@ -0,0 +1,31 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_U_shape_split1.brep] s
perform_offset_multi_with_ref r0_01 s 0 {6} {3} {708 340 14 14} 1
perform_offset_multi_with_ref r0_02 s 0 {6 10} {3 3} {798 418 16 16} 1
perform_offset_multi_with_ref r0_03 s 0 {9 6 11 8 1 3 30 32 27 25 22 24 19 17 14 16} {2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2} {1132 860 58 58} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,32 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_U_shape_split2.brep] s
perform_offset_multi_with_ref r0_01 s 0 {8 11} {3 3} {816 499 16 16} 1
perform_offset_multi_with_ref r0_02 s 0 {7 11} {3 3} {804 448 17 17} 1
perform_offset_multi_with_ref r0_03 s 0 {2 6 10 14 18 22 26 30} {2 2 2 2 2 2 2 2} {932 544 30 28} 1
perform_offset_multi_with_ref r0_04 s 0 {2 6 10 18 22 26} {3 3 3 2 2 2} {968 584 26 26} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,33 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_U_shape_split3.brep] s
perform_offset_multi_with_ref r0_01 s 0 {2 6} {3 3} {810 478 18 18} 1
perform_offset_multi_with_ref r0_02 s 0 {6 7 17} {3 3 3} {816 508 18 18} 1
perform_offset_multi_with_ref r0_03 s 0 {6 7 17} {3 3 2} {812 485 20 20} 1
perform_offset_multi_with_ref r0_04 s 0 {20 21 22 29 31} {2 2 2 2 2} {712 474 20 20} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,12 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
restore [locate_data_file bug31148_plate_offset_parallel.brep] s
perform_offset_multi_with_ref result s 0 {22 24} {3 3} {472 260 34 34} 1
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png

View File

@@ -0,0 +1,14 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
restore [locate_data_file bug31148_box_iso_face_top.brep] s
perform_offset_multi_with_ref r1 s 0 {7} {2} {416 508 12 11} 1
perform_offset_multi_with_ref res1 r1_unif 1 {} {} {656 1040 12 11} 1
perform_offset_multi_with_ref r2 s 0 {6} {2} {496 692 12 11} 1
perform_offset_multi_with_ref result r2_unif 0.5 {} {} {602 966 12 11} 1

View File

@@ -0,0 +1,34 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
setfillhistory 1
restore [locate_data_file bug31148_box_iso_face_top.brep] s
explode s f
offsetparameter 1.e-7 c i r
offsetload s 0
offsetonface s_6 1
offsetonface s_7 2
offsetperform result
savehistory h
generated gf6 h s_6
checkprops gf6 -equal s_6
generated gf7 h s_7
checkprops gf7 -equal s_7
foreach e [explode s_7 e] {
generated ge_$e h $e
checknbshapes ge_$e -face 1 -m "History information"
}
foreach v [explode s_7 v] {
generated gv_$v h $v
checknbshapes gv_$v -edge 1 -m "History information"
}

View File

@@ -0,0 +1,40 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
setfillhistory 1
polyline p 0 0 0 10 0 0 10 0 1 8 0 1 8 0 4 8 0 7 7 0 7 7 0 4 7 0 1 3 0 1 3 0 4 3 0 7 2 0 7 2 0 4 2 0 1 0 0 1 0 0 0
mkplane f p
prism s f 0 10 0
explode s f
offsetparameter 1.e-7 c i r
offsetload s 0
offsetonface s_7 3
offsetonface s_11 3
offsetperform result
savehistory h
if {[regexp "Not deleted" [isdeleted h s_7]]} {
puts "Error: History information is wrong"
}
if {[regexp "Not deleted" [isdeleted h s_11]]} {
puts "Error: History information is wrong"
}
explode s_7 e
generated ge1 h s_7_2
checknbshapes ge1 -face 2 -m "History information"
explode s_11 e
generated ge2 h s_11_1
checknbshapes ge2 -face 2 -m "History information"
compound ge1 ge2 ge
checknbshapes ge -face 3 -m "History information"

View File

@@ -0,0 +1,41 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_0.brep] s
perform_offset_multi_with_ref r0_01 s 0 {20 23 26 29 19 22 25 28} {5 5 5 5 5 5 5 5} {1.77792e+06 3.198e+07 38 38} 1
perform_offset_multi_with_ref r0_02 s 0 {20 23 26 29 19 22 25 28} {43 43 43 43 43 43 43 43} {1.84032e+06 4.708e+07 32 26} 1
perform_offset_multi_with_ref r0_03 s 0 {20 23 26 29 19 22 25 28} {50 50 50 50 50 50 50 50} {1.85712e+06 4.778e+07 32 26} 1
perform_offset_multi_with_ref r0_04 s 0 {16 13 10 7 17 14 11 8} {5 5 5 5 5 5 5 5} {1.74272e+06 3.318e+07 38 38} 1
perform_offset_multi_with_ref r0_05 s 0 {16 13 10 7 17 14 11 8} {43 43 43 43 43 43 43 43} {1.35936e+06 5.734e+07 26 26} 1
perform_offset_multi_with_ref r10_01 s 10 {20 23 26 29 19 22 25 28} {5 5 5 5 5 5 5 5} {1.89232e+06 4.58432e+07 38 38} 1
perform_offset_multi_with_ref r10_02 s 10 {20 23 26 29 19 22 25 28} {25 25 25 25 25 25 25 25} {2.05232e+06 5.49952e+07 38 38} 1
perform_offset_multi_with_ref r10_03 s 10 {20 23 26 29 19 22 25 28} {43 43 43 43 43 43 43 43} {1.88804e+06 6.31176e+07 32 26} 1
perform_offset_multi_with_ref r10_04 s 10 {20 23 26 29 19 22 25 28} {50 50 50 50 50 50 50 50} {1.90568e+06 6.39184e+07 32 26} 1
perform_offset_multi_with_ref r10_05 s 10 {16 13 10 7 17 14 11 8} {5 5 5 5 5 5 5 5} {1.93072e+06 4.50112e+07 38 38} 1
perform_offset_multi_with_ref r10_06 s 10 {16 13 10 7 17 14 11 8} {25 25 25 25 25 25 25 25} {1.93712e+06 5.74912e+07 38 38} 1
perform_offset_multi_with_ref r10_07 s 10 {16 13 10 7 17 14 11 8} {43 43 43 43 43 43 43 43} {1.51172e+06 6.85672e+07 26 26} 1
# display all created shapes
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,35 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 20} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_01.brep] s
perform_offset_multi_with_ref r0_01 s 0 {5 7 9 15 16 19 22 31} {5 10 15 20 25 30 35 40} {367820 6.96255e+06 42 42} 1
perform_offset_multi_with_ref r0_02 s 0 {27 28 29 30 31 32 33 34 35} {5 10 15 20 25 30 35 40 45} {325505 6.3725e+06 30 30} 1
perform_offset_multi_with_ref r0_03 s 0 {27 28 29 30 31 32 33 34 35 26 36} {5 10 15 20 25 30 35 40 45 50 50} {314340 7.034e+06 10 10} 1
perform_offset_multi_with_ref r20_01 s 20 {5 7 9 15 16 19 22 31} {5 10 15 20 25 30 35 40} {494610 1.39435e+07 42 42} 1
perform_offset_multi_with_ref r20_02 s 20 {27 28 29 30 31 32 33 34 35} {5 10 15 20 25 30 35 40 45} {476125 1.39614e+07 30 30} 1
perform_offset_multi_with_ref r20_03 s 20 {27 28 29 30 31 32 33 34 35 26 36} {5 10 15 20 25 30 35 40 45 50 50} {453540 1.46808e+07 10 10} 1
# display all created shapes
foreach val {0 20} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,37 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_02.brep] s
perform_offset_multi_with_ref r0_01 s 0 {2 50} {40 40} {1.18693e+06 1.99372e+07 56 54} 1
perform_offset_multi_with_ref r0_02 s 0 {18 20 26 32 24 29 36} {10 10 10 10 10 10 10} {1.2113e+06 2.08809e+07 60 60} 1
perform_offset_multi_with_ref r0_03 s 0 {36 39 15 21 27 33 45 17 24 29 41 47} {20 20 20 20 20 20 20 20 20 20 20 20} {1.1742e+06 2.35232e+07 60 50} 1
perform_offset_multi_with_ref r0_04 s 0 {18 23 30 35 42 48} {10 10 10 10 10 10} {1.19178e+06 2.06028e+07 58 58} 1
perform_offset_multi_with_ref r10_01 s 10 {2 50} {40 40} {1.40737e+06 3.28873e+07 56 54} 1
perform_offset_multi_with_ref r10_02 s 10 {18 20 26 32 24 29 36} {20 20 20 20 20 20 20} {1.4087e+06 3.3851e+07 60 56} 1
perform_offset_multi_with_ref r10_03 s 10 {36 39 15 21 27 33 45 17 24 29 41 47} {20 20 20 20 20 20 20 20 20 20 20 20} {1.26845e+06 3.49235e+07 60 50} 1
perform_offset_multi_with_ref r10_04 s 10 {18 23 30 35 42 48} {20 20 20 20 20 20} {1.41101e+06 3.34373e+07 58 58} 1
# display all created shapes
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,35 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_02.brep] s
perform_offset_multi_with_ref r0_01 s 0 {12} {10} {1.18636e+06 1.99964e+07 48 48} 1
perform_offset_multi_with_ref r0_02 s 0 {52} {10} {1.18579e+06 1.9974e+07 48 48} 1
perform_offset_multi_with_ref r0_03 s 0 {12 52} {10 10} {1.18716e+06 2.00392e+07 49 49} 1
perform_offset_multi_with_ref r0_04 s 0 {66 72} {10 10} {1.18396e+06 1.99776e+07 49 49} 1
perform_offset_multi_with_ref r0_05 s 0 {67 69 71} {10 10 10} {1.18733e+06 2.00265e+07 50 50} 1
perform_offset_multi_with_ref r0_06 s 0 {2 8 50 10 58} {10 10 10 10 10} {1.18501e+06 1.99966e+07 60 58} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_06 result
copy r0_06_unif result_unif

View File

@@ -0,0 +1,32 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_03.brep] s
perform_offset_multi_with_ref r0_01 s 0 {39 41} {10 10} {4.21228e+06 2.66736e+08 54 54} 1
perform_offset_multi_with_ref r0_02 s 0 {39 41 64 62 23 58 56 52 50 68 70 11 17 29} {10 10 15 15 15 15 15 15 15 15 15 15 15 15} {4.26538e+06 2.67336e+08 86 86} 1
perform_offset_multi_with_ref r10_01 s 10 {11 17 63 69} {15 15 15 15} {4.38533e+06 3.08911e+08 66 66} 1
# display all created shapes
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_02 result
copy r0_02_unif result_unif

View File

@@ -0,0 +1,32 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {1} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_04.brep] s
perform_offset_multi_with_ref r0_01 s 1 {332 309} {5 5} {1.07351e+07 5.85648e+08 72 62} 1
perform_offset_multi_with_ref r0_01 s 1 {197} {5} {1.07345e+07 5.8564e+08 70 60} 1
perform_offset_multi_with_ref r0_01 s 1 {147 149 171} {5 5 5} {1.07353e+07 5.85674e+08 78 68} 1
# display all created shapes
foreach val {1} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,115 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
restore [locate_data_file bug31148_case_04.brep] s
explode s f
offsetparameter 1e-7 c i
offsetload s 5
offsetonface s_168 15
offsetonface s_99 15
offsetonface s_145 15
offsetonface s_122 15
offsetonface s_169 15
offsetonface s_100 15
offsetonface s_146 15
offsetonface s_123 15
offsetonface s_170 15
offsetonface s_101 15
offsetonface s_147 15
offsetonface s_124 15
offsetonface s_171 15
offsetonface s_102 15
offsetonface s_148 15
offsetonface s_125 15
offsetonface s_172 15
offsetonface s_103 15
offsetonface s_149 15
offsetonface s_126 15
offsetonface s_173 15
offsetonface s_104 15
offsetonface s_150 15
offsetonface s_127 15
offsetonface s_174 15
offsetonface s_105 15
offsetonface s_151 15
offsetonface s_128 15
offsetonface s_175 15
offsetonface s_106 15
offsetonface s_152 15
offsetonface s_129 15
offsetonface s_176 15
offsetonface s_107 15
offsetonface s_153 15
offsetonface s_130 20
offsetonface s_177 20
offsetonface s_108 20
offsetonface s_154 20
offsetonface s_131 20
offsetonface s_178 20
offsetonface s_109 20
offsetonface s_155 20
offsetonface s_132 20
offsetonface s_179 20
offsetonface s_110 20
offsetonface s_156 20
offsetonface s_133 20
offsetonface s_180 20
offsetonface s_111 20
offsetonface s_157 20
offsetonface s_134 20
offsetonface s_181 20
offsetonface s_112 20
offsetonface s_158 20
offsetonface s_135 20
offsetonface s_182 20
offsetonface s_113 20
offsetonface s_159 20
offsetonface s_136 20
offsetonface s_183 20
offsetonface s_114 20
offsetonface s_160 20
offsetonface s_137 20
offsetonface s_184 20
offsetonface s_115 20
offsetonface s_161 20
offsetonface s_138 10
offsetonface s_185 10
offsetonface s_116 10
offsetonface s_162 10
offsetonface s_139 10
offsetonface s_186 10
offsetonface s_117 10
offsetonface s_163 10
offsetonface s_140 10
offsetonface s_187 10
offsetonface s_118 10
offsetonface s_164 10
offsetonface s_141 10
offsetonface s_188 10
offsetonface s_119 10
offsetonface s_165 10
offsetonface s_142 10
offsetonface s_189 10
offsetonface s_120 10
offsetonface s_166 10
offsetonface s_143 10
offsetonface s_190 10
offsetonface s_121 10
offsetonface s_167 10
offsetonface s_144 10
offsetonface s_928 10
offsetperform result
unifysamedom result_unif result
checkprops result -s 1.04375e+07 -v 6.31578e+08
checknbshapes result_unif -wire 98 -face 68 -shell 1 -solid 1
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png

View File

@@ -0,0 +1,115 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
restore [locate_data_file bug31148_case_04.brep] s
explode s f
offsetparameter 1e-7 c i
offsetload s 0
offsetonface s_168 15
offsetonface s_99 15
offsetonface s_145 15
offsetonface s_122 15
offsetonface s_169 15
offsetonface s_100 15
offsetonface s_146 15
offsetonface s_123 15
offsetonface s_170 15
offsetonface s_101 15
offsetonface s_147 15
offsetonface s_124 15
offsetonface s_171 15
offsetonface s_102 15
offsetonface s_148 15
offsetonface s_125 15
offsetonface s_172 15
offsetonface s_103 15
offsetonface s_149 15
offsetonface s_126 15
offsetonface s_173 15
offsetonface s_104 15
offsetonface s_150 15
offsetonface s_127 15
offsetonface s_174 15
offsetonface s_105 15
offsetonface s_151 15
offsetonface s_128 15
offsetonface s_175 15
offsetonface s_106 15
offsetonface s_152 15
offsetonface s_129 15
offsetonface s_176 15
offsetonface s_107 15
offsetonface s_153 15
offsetonface s_130 20
offsetonface s_177 20
offsetonface s_108 20
offsetonface s_154 20
offsetonface s_131 20
offsetonface s_178 20
offsetonface s_109 20
offsetonface s_155 20
offsetonface s_132 20
offsetonface s_179 20
offsetonface s_110 20
offsetonface s_156 20
offsetonface s_133 20
offsetonface s_180 20
offsetonface s_111 20
offsetonface s_157 20
offsetonface s_134 20
offsetonface s_181 20
offsetonface s_112 20
offsetonface s_158 20
offsetonface s_135 20
offsetonface s_182 20
offsetonface s_113 20
offsetonface s_159 20
offsetonface s_136 20
offsetonface s_183 20
offsetonface s_114 20
offsetonface s_160 20
offsetonface s_137 20
offsetonface s_184 20
offsetonface s_115 20
offsetonface s_161 20
offsetonface s_138 10
offsetonface s_185 10
offsetonface s_116 10
offsetonface s_162 10
offsetonface s_139 10
offsetonface s_186 10
offsetonface s_117 10
offsetonface s_163 10
offsetonface s_140 10
offsetonface s_187 10
offsetonface s_118 10
offsetonface s_164 10
offsetonface s_141 10
offsetonface s_188 10
offsetonface s_119 10
offsetonface s_165 10
offsetonface s_142 10
offsetonface s_189 10
offsetonface s_120 10
offsetonface s_166 10
offsetonface s_143 10
offsetonface s_190 10
offsetonface s_121 10
offsetonface s_167 10
offsetonface s_144 10
offsetonface s_928 10
offsetperform result
unifysamedom result_unif result
checkprops result -s 1.06617e+07 -v 5.80288e+08
checknbshapes result_unif -wire 89 -face 68 -shell 1 -solid 1
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png

View File

@@ -0,0 +1,41 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_05.brep] s
perform_offset_multi_with_ref r0_01 s 0 {22 28 34 37 31 25} {15 15 15 15 15 15} {1.32646e+06 2.29124e+07 58 58} 1
perform_offset_multi_with_ref r0_02 s 0 {22 28 34 37 31 25} {20 20 20 20 20 20} {1.33071e+06 2.33084e+07 64 58} 1
perform_offset_multi_with_ref r0_03 s 0 {1 4 18} {20 20 20} {1.27581e+06 2.21593e+07 49 49} 1
perform_offset_multi_with_ref r0_04 s 0 {1 4 19} {20 20 20} {1.30573e+06 2.23156e+07 52 51} 1
perform_offset_multi_with_ref r0_05 s 0 {14 16 18 19 21 30 39 50 34 23 43} {5 5 5 5 5 5 5 5 5 5 5} {1.30617e+06 2.23637e+07 58 58} 1
perform_offset_multi_with_ref r10_01 s 10 {22 28 34 37 31 25} {15 15 15 15 15 15} {1.53928e+06 3.62401e+07 58 58} 1
perform_offset_multi_with_ref r10_02 s 10 {22 28 34 37 31 25} {20 20 20 20 20 20} {1.54352e+06 3.66785e+07 64 58} 1
perform_offset_multi_with_ref r10_03 s 10 {1 4 18} {20 20 20} {1.51232e+06 3.59638e+07 49 49} 1
perform_offset_multi_with_ref r10_04 s 10 {1 4 19} {20 20 20} {1.53304e+06 3.61209e+07 52 51} 1
# display all created shapes
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,30 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_06.brep] s
perform_offset_multi_with_ref r0_01 s 0 {50 56 62 28 22 16} {5 5 5 5 5 5} {3.6552e+06 2.29024e+08 74 74} 1
perform_offset_multi_with_ref r0_02 s 0 {1 10 16 22 28 34 45 67 69 61 63 55 57 49 51 41} {5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5} {3.66906e+06 2.29716e+08 90 90} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,30 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_07.brep] s
perform_offset_multi_with_ref r0_01 s 0 {14 16 18 19 21 30 39 50 34 23 43} {5 5 5 5 5 5 5 5 5 5 5} {3.21582e+06 2.31469e+08 45 45} 1
perform_offset_multi_with_ref r0_02 s 0 {15 20 18 9 4 6 24 26 29 35 40 38 46 44 49} {7 7 7 7 7 7 7 7 7 7 7 7 7 7 7} {3.2663e+06 2.31907e+08 71 71} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,12 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
restore [locate_data_file bug31148_case_08.brep] s
perform_offset_multi_with_ref result s 0 {21 28 14 10 16 24} {10 10 10 10 10 10} {3.39098e+07 2.69762e+09 32 32} 1
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png

View File

@@ -0,0 +1,12 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
restore [locate_data_file bug31148_case_09.brep] s
perform_offset_multi_with_ref result s 0 {87 80 67 47 19 11 62 50 34} {10 10 10 10 10 10 10 10 10} {239234 3.80107e+06 46 46} 1
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png

View File

@@ -0,0 +1,33 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_10.brep] s
perform_offset_multi_with_ref r0_01 s 0 {19 21 23} {10 10 10} {4.882e+06 3.6973e+08 42 36} 1
perform_offset_multi_with_ref r0_02 s 0 {20 22 24} {10 10 10} {4.8508e+06 3.71377e+08 42 36} 1
perform_offset_multi_with_ref r10_01 s 10 {19 21 23} {30 30 30} {5.282e+06 4.20405e+08 42 36} 1
perform_offset_multi_with_ref r10_02 s 10 {20 22 24} {30 30 30} {5.2148e+06 4.23051e+08 42 36} 1
# display all created shapes
foreach val {0 10} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,31 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_11.brep] s
perform_offset_multi_with_ref r0_01 s 0 {62 66 64 60 9 51} {15 15 15 15 15 15} {3.2808e+06 1.35876e+08 72 69} 1
perform_offset_multi_with_ref r0_02 s 0 {29 52} {10 10} {3.27787e+06 1.35539e+08 58 55} 1
perform_offset_multi_with_ref r0_03 s 0 {29 52} {10 70} {3.2781e+06 1.35539e+08 57 54} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_01 result
copy r0_01_unif result_unif

View File

@@ -0,0 +1,40 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
# unset draw variables for all offset values
foreach val {0} {
foreach x [directory r${val}*_unif] {
unset $x
}
}
restore [locate_data_file bug31148_case_12.brep] s
perform_offset_multi_with_ref r0_01 s 0 {48 49 50 38 1 39 40 35 25 14 15 18 9} {5 5 5 5 5 5 5 5 5 5 5 5 5} {3.28398e+06 2.29158e+08 52 52} 1
perform_offset_multi_with_ref r0_02 s 0 {4 10 14 20 24 30 34 40 44 50} {4 4 4 4 4 4 4 4 4 4} {3.2691e+06 2.26799e+08 46 46} 1
perform_offset_multi_with_ref r0_03 s 0 {4 10 14 20 24 30 34 40 44 50} {7 7 7 7 7 7 7 7 7 7} {3.2691e+06 2.26799e+08 46 46} 1
perform_offset_multi_with_ref r0_04 s 0 {16 18 15 19 14 20} {10 10 7 7 5 5} {3.24265e+06 2.27026e+08 42 42} 1
perform_offset_multi_with_ref r0_05 s 0 {6 16 26 36 46 8 18 28 38 48} {10 10 10 10 10 10 10 10 10 10} {3.24429e+06 2.27638e+08 56 56} 1
perform_offset_multi_with_ref r0_06 s 0 {5 15 25 35 45 9 19 29 39 49} {7 7 7 7 7 7 7 7 7 7} {3.3322e+06 2.27616e+08 76 76} 1
perform_offset_multi_with_ref r0_07 s 0 {6 16 26 36 46 8 18 28 38 48 5 15 25 35 45 9 19 29 39 49 4 14 24 34 44 10 20 30 40 50} \
{10 10 10 10 10 10 10 10 10 10 7 7 7 7 7 7 7 7 7 7 5 5 5 5 5 5 5 5 5 5} {3.22947e+06 2.28977e+08 66 66} 1
# display all created shapes
foreach val {0} {
foreach x [directory r${val}*_unif] {
if {[isdraw $x]} {
checkview -display $x -2d -path ${imagedir}/${test_image}_$x.png
}
}
}
copy r0_07 result
copy r0_07_unif result_unif

View File

@@ -0,0 +1,12 @@
puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""
pload MODELING
restore [locate_data_file bug31148_case_13.brep] s
perform_offset_multi_with_ref result s 0 {17 20 21 22 23} {5 10 15 20 25} {795175 2.50687e+07 22 22} 1
checkview -display result_unif -2d -path ${imagedir}/${test_image}.png

View File

@@ -0,0 +1,113 @@
# Mode - Complete
set calcul "c"
# Join type - Intersection
set type "i"
proc compare_prop_values {prop m_res m_ref} {
if { ($m_ref != 0 && abs (($m_ref - $m_res) / double($m_ref)) > 1.e-2) || ($m_res == 0 && $m_ref != 0) } {
puts "Error: The $prop of result shape is $m_res, expected $m_ref"
return 0
} else {
puts "OK: The $prop of result shape is as expected"
return 1
}
}
proc compare_nbs {entity nb_res nb_ref} {
if {$nb_res != $nb_ref} {
puts "Error: number of $entity entities in the result shape is $nb_res, expected $nb_ref"
return 0
} else {
puts "OK: number of $entity entities in the result shape is as expected"
return 1
}
}
proc perform_offset_multi {theResult theShape theValue theFaceIds theFaceValues} {
upvar $theShape TheShape
global ${theResult}
global ${theResult}_unif
tcopy TheShape sx
offsetparameter 1.e-7 c i r
offsetload sx ${theValue}
set nbFaces [llength $theFaceIds]
if {$nbFaces > 0} {
explode sx f
}
for {set i 0} {$i < $nbFaces} {incr i} {
set face_id [lindex $theFaceIds $i]
set face_offset [lindex $theFaceValues $i]
offsetonface sx_${face_id} ${face_offset}
}
offsetperform ${theResult}
if {![catch { checkshape ${theResult} } ] } {
unifysamedom ${theResult}_unif ${theResult}
return 1
}
return 0
}
proc perform_offset_multi_with_ref {theResult theShape theValue theFaceIds theFaceValues theRefValues theUnified} {
upvar $theShape TheShape
global ${theResult}
global ${theResult}_unif
set operation_done [perform_offset_multi ${theResult} TheShape ${theValue} ${theFaceIds} ${theFaceValues}]
if {${operation_done} == 0} {
puts "Error: operation with offset value ${theValue} has failed"
return 0
}
set check_res {}
if { $theUnified == 1} {
set nbshapes_value [nbshapes ${theResult}_unif]
} else {
set nbshapes_value [nbshapes ${theResult}]
}
if { [llength $theRefValues] == 4} {
set area_value [lindex [sprops ${theResult}] 2]
set volume_value [lindex [vprops ${theResult}] 2]
set nbwires_value [lindex $nbshapes_value 13]
set nbfaces_value [lindex $nbshapes_value 16]
lappend checks_res [compare_prop_values "area" ${area_value} [lindex ${theRefValues} 0]]
lappend checks_res [compare_prop_values "volume" ${volume_value} [lindex ${theRefValues} 1]]
lappend checks_res [compare_nbs "wire" $nbwires_value [lindex ${theRefValues} 2]]
lappend checks_res [compare_nbs "face" $nbfaces_value [lindex ${theRefValues} 3]]
}
set nbshells_value [lindex $nbshapes_value 19]
set nbsolids_value [lindex $nbshapes_value 22]
lappend checks_res [compare_nbs "shell" $nbshells_value 1]
lappend checks_res [compare_nbs "solid" $nbsolids_value 1]
set OK 1
foreach x $checks_res {
if {$x == 0} {
set OK 0
break
}
}
set status "OK"
if {$OK == 0} {
puts "Error: operation with offset value ${theValue} produced incorrect result"
set status "KO"
}
puts "Offset value ${theValue} - $status: area - ${area_value}; volume - ${volume_value}; wires - ${nbwires_value}; faces - ${nbfaces_value} (${area_value} ${volume_value} ${nbwires_value} ${nbfaces_value})"
checkmaxtol ${theResult} -ref 1.e-6
}

View File

@@ -1,6 +1,6 @@
puts "TODO OCC26578 All:An exception was caught"
puts "TODO OCC26578 All:\\*\\* Exception \\*\\*"
puts "TODO OCC26578 All:TEST INCOMPLETE"
puts "TODO OCC26578 All: Error : is WRONG because number of"
puts "TODO OCC26578 All: Faulty shapes in variables faulty_1 to faulty_"
restore [locate_data_file bug26663_test_offset_L3.brep] s
OFFSETSHAPE ${off_param} {} ${calcul} ${type}
checknbshapes result -ref [lrange [nbshapes s] 8 19]

View File

@@ -1,6 +1,6 @@
puts "TODO OCC26578 All:An exception was caught"
puts "TODO OCC26578 All:\\*\\* Exception \\*\\*"
puts "TODO OCC26578 All:TEST INCOMPLETE"
puts "TODO OCC26578 All: Error : is WRONG because number of"
puts "TODO OCC26578 All: Faulty shapes in variables faulty_1 to faulty_"
restore [locate_data_file bug26663_test_offset_L9.brep] s
OFFSETSHAPE ${off_param} {} ${calcul} ${type}
checknbshapes result -ref [lrange [nbshapes s] 8 19]

View File

@@ -1,6 +1,6 @@
puts "TODO OCC26578 All:An exception was caught"
puts "TODO OCC26578 All:\\*\\* Exception \\*\\*"
puts "TODO OCC26578 All:TEST INCOMPLETE"
puts "TODO OCC26578 All: Error : is WRONG because number of"
puts "TODO OCC26578 All: Faulty shapes in variables faulty_1 to faulty_"
restore [locate_data_file bug26663_test_offset_N1.brep] s
OFFSETSHAPE ${off_param} {} ${calcul} ${type}
checknbshapes result -ref [lrange [nbshapes s] 8 19]