0028974: Test cases for STL reader/writer
[occt.git] / tests / de_mesh / shape_write_stl / A8
diff --git a/tests/de_mesh/shape_write_stl/A8 b/tests/de_mesh/shape_write_stl/A8
new file mode 100644 (file)
index 0000000..0546cf0
--- /dev/null
@@ -0,0 +1,15 @@
+# Read brep file
+restore [locate_data_file bug28840_8.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 58 -nod 31
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png