]> OCCT Git - occt.git/commitdiff
Test for 0021414: GeomAPI_IntCS fails to find all intersections between line and...
authorapv <apv@opencascade.com>
Thu, 29 Jun 2017 08:46:35 +0000 (11:46 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 29 Jun 2017 11:24:54 +0000 (14:24 +0300)
tests/bugs/modalg_7/bug21414 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_7/bug21414 b/tests/bugs/modalg_7/bug21414
new file mode 100644 (file)
index 0000000..04979d4
--- /dev/null
@@ -0,0 +1,24 @@
+puts "TODO OCC21414 ALL: ERROR: OCC21414 is reproduced."
+
+puts "========"
+puts "OCC21414"
+puts "========"
+puts ""
+########################################################################################
+# GeomAPI_IntCS fails to find all intersections between line and surface of revolution
+########################################################################################
+
+restore [locate_data_file bug21414_wave.brep] a
+
+mksurface s a
+line l 0 2.5 0 1 0 0
+
+set theResList [intersect res l s]
+
+if {[llength $theResList] != 100} {
+  puts "ERROR: OCC21414 is reproduced. Total number of intersections is [llength $theResList] but should be 100."
+}
+
+smallview
+fit
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png