]> OCCT Git - occt-copy.git/commitdiff
Test for 0024215: Error in offset (bad curve) CR24215
authorapv <apv@opencascade.com>
Tue, 25 Jul 2017 14:09:06 +0000 (17:09 +0300)
committerapv <apv@opencascade.com>
Tue, 25 Jul 2017 14:09:06 +0000 (17:09 +0300)
tests/bugs/modalg_7/bug24215 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_7/bug24215 b/tests/bugs/modalg_7/bug24215
new file mode 100644 (file)
index 0000000..71319ff
--- /dev/null
@@ -0,0 +1,27 @@
+puts "TODO OCC24215 ALL: ERROR: OCC24215 is reproduced."
+
+puts "========"
+puts "OCC24215"
+puts "========"
+puts ""
+###############################
+# Error in offset (bad curve)
+###############################
+
+restore [locate_data_file bug24215_face-10-012.brep] f
+
+mkoffset o f 1 0.4
+
+set bug_info [lprops o_1]
+
+# Length of o_1 SHOULD be less 58.8412 because offset is wrong and consists loop
+# "if" statement SHOULD be corrected than issue will be fixed
+if {[lindex $bug_info 2] == 58.8412} {
+  puts "ERROR: OCC24215 is reproduced."
+}
+
+vinit
+vdisplay f
+vdisplay o_1
+vfit
+checkview -screenshot -3d -path ${imagedir}/${test_image}.png