0026673: BOPTools_AlgoTools::ComputeVV incorrectly checks two vertices for intersection
[occt.git] / tests / bugs / modalg_6 / bug26673
diff --git a/tests/bugs/modalg_6/bug26673 b/tests/bugs/modalg_6/bug26673
new file mode 100644 (file)
index 0000000..c39576c
--- /dev/null
@@ -0,0 +1,15 @@
+puts "============"
+puts "OCC26673"
+puts "============"
+puts ""
+##################################
+#  BOPTools_AlgoTools::ComputeVV incorrectly checks two vertices for intersection
+##################################
+
+box b -1 -1 0 2 2 2e-7+1e-14
+set out [bopargcheck b /RFPCS #F]
+if [regexp {Self-Intersections *: YES} $out] {
+  puts "OK: bopargcheck found the shape self-intersecting"
+} else {
+  puts "Error: bopargcheck must report self-intersections, but it did not"
+}