]> OCCT Git - occt.git/commitdiff
0029329: Low performance of the General Fuse algorithm
authornbv <nbv@opencascade.com>
Fri, 12 Jan 2018 14:15:02 +0000 (17:15 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 7 Nov 2018 15:11:57 +0000 (18:11 +0300)
Creation of test case.

tests/perf/modalg/bug29329 [new file with mode: 0644]

diff --git a/tests/perf/modalg/bug29329 b/tests/perf/modalg/bug29329
new file mode 100644 (file)
index 0000000..680a823
--- /dev/null
@@ -0,0 +1,29 @@
+puts "========"
+puts "0029329: Modeling Algorithms - Low performance of the General Fuse algorithm"
+puts "========"
+puts ""
+
+puts "TODO CR29596 ALL: Warning: Intersection of pair of shapes has failed"
+
+restore [locate_data_file bug29329_objects.brep] a
+restore [locate_data_file bug29329_tools.brep] b
+
+bnondestructive 1
+
+dchrono timer restart
+
+bfuse result a b
+
+dchrono timer stop counter OCC29329Fuse
+dchrono timer show
+
+checkshape result
+checknbshapes result -solid 1 -shell 1 -face 40 -wire 40
+
+if {![regexp "This shape seems to be OK" [bopcheck result]]} {
+  puts "Error: The result is a self-intersecting shape."
+}
+
+checkprops result -s 6483.69 -v 21609.6
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file