0028974: Test cases for STL reader/writer
[occt.git] / tests / de_mesh / shape_write_stl / A1
diff --git a/tests/de_mesh/shape_write_stl/A1 b/tests/de_mesh/shape_write_stl/A1
new file mode 100644 (file)
index 0000000..56c8d9f
--- /dev/null
@@ -0,0 +1,15 @@
+# Read brep file
+restore [locate_data_file bug28840_1.brep] m
+
+# Mesh it
+incmesh m 1.0
+
+# Save, read and delete file
+writestl m $imagedir/${casename}
+readstl res $imagedir/${casename} triangulation
+file delete $imagedir/${casename}
+
+checktrinfo res -tri 22748 -nod 11376
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png