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