]> OCCT Git - occt.git/commitdiff
0031191: Data Exchange - STEP import returns empty shape for a file written by SolidW...
authordpasukhi <dpasukhi@opencascade.com>
Sun, 13 Sep 2020 10:05:04 +0000 (13:05 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 18 Sep 2020 15:10:03 +0000 (18:10 +0300)
Add a test case to verify that the .STEP is read correctly

tests/bugs/step/bug31191 [new file with mode: 0644]

diff --git a/tests/bugs/step/bug31191 b/tests/bugs/step/bug31191
new file mode 100644 (file)
index 0000000..fcb5458
--- /dev/null
@@ -0,0 +1,15 @@
+puts "========================"
+puts "0031191: Data Exchange - STEP import returns empty shape for a file written by SolidWorks 2018"
+puts "========================"
+
+# Read file
+stepread [locate_data_file bug31191.stp] res *
+
+# Checking
+set state [data c]
+if { [regexp "309733 Entities, of which 9046 Root" $state] != 1 } {
+   puts "Error : wrong count of transferred roots"
+}
+
+checknbshapes res_1 -face 4494 -shell 26 -solid 26
+checkshape res_1 f
\ No newline at end of file