]> OCCT Git - occt.git/commitdiff
0026578: Modeling Algorithm - Exceptions in offset operation with intersection
authorakaftasev <akaftasev@opencascade.com>
Wed, 2 Aug 2023 11:36:55 +0000 (12:36 +0100)
committerjokwajeb <jokwajeb@opencascade.com>
Mon, 7 Aug 2023 10:19:24 +0000 (11:19 +0100)
Added test cases

tests/bugs/modalg_8/bug26578_1 [new file with mode: 0644]
tests/bugs/modalg_8/bug26578_2 [new file with mode: 0644]
tests/bugs/modalg_8/bug26578_3 [new file with mode: 0644]
tests/bugs/modalg_8/bug26578_4 [new file with mode: 0644]
tests/bugs/modalg_8/bug26578_5 [new file with mode: 0644]
tests/bugs/modalg_8/bug26578_6 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_8/bug26578_1 b/tests/bugs/modalg_8/bug26578_1
new file mode 100644 (file)
index 0000000..4e7a202
--- /dev/null
@@ -0,0 +1,14 @@
+puts "================================"
+puts "0026578: Modeling Algorithm - Exceptions in offset operation with intersection"
+puts "================================"
+puts ""
+
+restore [locate_data_file bug26578_plate1.brep] s
+
+offsetparameter 1e-7 p i
+offsetload s 100
+offsetperform r
+
+checkshape r
+checknbshapes r -vertex 22 -edge 32 -wire 11 -face 11
+checkview -display r -2d -path ${imagedir}/${test_image}.png  
diff --git a/tests/bugs/modalg_8/bug26578_2 b/tests/bugs/modalg_8/bug26578_2
new file mode 100644 (file)
index 0000000..6bd8576
--- /dev/null
@@ -0,0 +1,12 @@
+puts "REQUIRED ALL: ERROR. Can not trim edges."
+
+puts "================================"
+puts "0026578: Modeling Algorithm - Exceptions in offset operation with intersection"
+puts "================================"
+puts ""
+
+restore [locate_data_file bug26578_plate2.brep] s
+
+offsetparameter 1e-7 p i
+offsetload s -30
+offsetperform r
diff --git a/tests/bugs/modalg_8/bug26578_3 b/tests/bugs/modalg_8/bug26578_3
new file mode 100644 (file)
index 0000000..905310c
--- /dev/null
@@ -0,0 +1,14 @@
+puts "================================"
+puts "0026578: Modeling Algorithm - Exceptions in offset operation with intersection"
+puts "================================"
+puts ""
+
+restore [locate_data_file bug26578_plate3.brep] s
+
+offsetparameter 1e-7 p i
+offsetload s 4
+offsetperform r
+
+checkshape r
+checknbshapes r -vertex 25 -edge 36 -wire 12 -face 12
+checkview -display r -2d -path ${imagedir}/${test_image}.png
diff --git a/tests/bugs/modalg_8/bug26578_4 b/tests/bugs/modalg_8/bug26578_4
new file mode 100644 (file)
index 0000000..84c1788
--- /dev/null
@@ -0,0 +1,14 @@
+puts "================================"
+puts "0026578: Modeling Algorithm - Exceptions in offset operation with intersection"
+puts "================================"
+puts ""
+
+restore [locate_data_file bug26578_plate4.brep] s
+
+offsetparameter 1e-7 p i
+offsetload s 2
+offsetperform r
+
+checkshape r
+checknbshapes r -vertex 22 -edge 31 -wire 10 -face 10
+checkview -display r -2d -path ${imagedir}/${test_image}.png  
diff --git a/tests/bugs/modalg_8/bug26578_5 b/tests/bugs/modalg_8/bug26578_5
new file mode 100644 (file)
index 0000000..d6f60f4
--- /dev/null
@@ -0,0 +1,14 @@
+puts "================================"
+puts "0026578: Modeling Algorithm - Exceptions in offset operation with intersection"
+puts "================================"
+puts ""
+
+restore [locate_data_file bug26578_plate5.brep] s
+
+offsetparameter 1e-7 p i
+offsetload s 2
+offsetperform r
+
+checkshape r
+checknbshapes r -vertex 39 -edge 57 -wire 19 -face 19
+checkview -display r -2d -path ${imagedir}/${test_image}.png
diff --git a/tests/bugs/modalg_8/bug26578_6 b/tests/bugs/modalg_8/bug26578_6
new file mode 100644 (file)
index 0000000..e7698f2
--- /dev/null
@@ -0,0 +1,14 @@
+puts "================================"
+puts "0026578: Modeling Algorithm - Exceptions in offset operation with intersection"
+puts "================================"
+puts ""
+
+restore [locate_data_file bug26578_plate7.brep] s
+
+offsetparameter 1e-7 p i
+offsetload s 60
+offsetperform r
+
+checkshape r
+checknbshapes r -vertex 15 -edge 21 -wire 7 -face 7
+checkview -display r -2d -path ${imagedir}/${test_image}.png