]> OCCT Git - occt.git/commitdiff
0023575: Bounding box for a planar edge has non-zero dimension in direction orthogona...
authorapv <apv@opencascade.com>
Wed, 14 Jun 2017 13:42:49 +0000 (16:42 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Jun 2017 08:41:24 +0000 (11:41 +0300)
# Test case bugs/moddata_3/bug23575 creation

tests/bugs/moddata_3/bug23575 [new file with mode: 0644]

diff --git a/tests/bugs/moddata_3/bug23575 b/tests/bugs/moddata_3/bug23575
new file mode 100644 (file)
index 0000000..0e08a8c
--- /dev/null
@@ -0,0 +1,18 @@
+puts "========"
+puts "OCC23575"
+puts "========"
+puts ""
+##################################################################################################
+# Bounding box for a planar edge has non-zero dimension in direction orthogonal to an edge plane
+##################################################################################################
+
+bsplinecurve c 3 2 0 4 1 4 0 0 0 1 0 1 0 1 1 1 0 1 1 0 0 1
+mkedge e c
+set boundResult [bounding e]
+
+checkreal Xmin [lindex $boundResult 0] 0. 0.1 0.
+checkreal Ymin [lindex $boundResult 1] 0. 0.1 0.
+checkreal Zmin [lindex $boundResult 2] 0. 0.1 0.
+checkreal Xmax [lindex $boundResult 3] 1. 0.1 0.
+checkreal Ymax [lindex $boundResult 4] 1. 0.1 0.
+checkreal Zmax [lindex $boundResult 5] 0. 0.1 0.