0025858: Incorrect result of open offset on single edge based on BSpline curve
authorjgv <jgv@opencascade.com>
Thu, 12 Mar 2015 09:27:32 +0000 (12:27 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 12 Mar 2015 09:28:14 +0000 (12:28 +0300)
Test-case for issue #25883

src/BRepFill/BRepFill_PipeShell.cxx
tests/bugs/modalg_5/bug25883 [new file with mode: 0644]

index e08bb5a..c1ee6b9 100644 (file)
@@ -227,7 +227,7 @@ BRepFill_PipeShell::BRepFill_PipeShell(const TopoDS_Wire& Spine)
   SetTolerance();
 
   myMaxDegree = 11;
-  myMaxSegments = 30;
+  myMaxSegments = 100;
 
   // Attention to closed non-declared wire !
   if (!mySpine.Closed()) {
diff --git a/tests/bugs/modalg_5/bug25883 b/tests/bugs/modalg_5/bug25883
new file mode 100644 (file)
index 0000000..1d25852
--- /dev/null
@@ -0,0 +1,27 @@
+puts "========"
+puts "OCC25883"
+puts "========"
+puts ""
+#######################################################
+# BRepOffsetAPI_MakePipeShell produces invalid result
+#######################################################
+
+restore [locate_data_file OCC25883_shape.brep] a
+
+smallview
+
+explode a
+
+mksweep a_1
+addsweep a_2
+buildsweep res
+
+donly res
+fit
+
+set bug_info [checkshape res]
+if {[string compare $bug_info "This shape seems to be valid"] != 0} {
+  puts "ERROR: OCC25883 is reproduced."
+}
+
+set only_screen_axo 1