0025220: Using BRepFill_OffsetWire withs wires containing arc edges throws exception...
authorbugmaster <bugmaster@opencascade.com>
Fri, 26 Aug 2016 12:19:19 +0000 (15:19 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 1 Sep 2016 08:21:49 +0000 (11:21 +0300)
Adding testing case

tests/bugs/modalg_6/bug25220 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_6/bug25220 b/tests/bugs/modalg_6/bug25220
new file mode 100644 (file)
index 0000000..2290eab
--- /dev/null
@@ -0,0 +1,25 @@
+puts "============"
+puts "OCC25220"
+puts "============"
+puts ""
+######################################################
+# Using BRepFill_OffsetWire withs wires containing arc edges throws exception "Standard_NullValue"
+######################################################
+
+restore [locate_data_file bug25220.brep] a
+
+mkoffset r a 1 -5
+
+checkprops r_1 -l 939.882
+
+set info [checksection r_1]
+
+if { [regexp "nb alone Vertices : 0" ${info}] != 1 } {
+  puts "Error: Result of offset is incorrect"
+} else {
+  puts "OK : Result of offset is correct"
+} 
+
+smallview
+fit
+checkview -screenshot -2d -path ${imagedir}/${casename}.png
\ No newline at end of file