Add new test grid for STL read/write.
--- /dev/null
+cpulimit 1000
--- /dev/null
+puts ""
+puts "TEST COMPLETED"
+puts ""
--- /dev/null
+001 stl_read
+002 shape_write_stl
--- /dev/null
+# 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
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_10.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 130 -nod 67
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_11.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 150 -nod 77
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_12.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 4396 -nod 2200
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_2.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 290 -nod 147
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# 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
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_4.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 146 -nod 75
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_5.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 13102 -nod 6553
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_6.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 2398 -nod 1201
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_7.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 40 -nod 22
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+# 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
--- /dev/null
+# Read brep file
+restore [locate_data_file bug28840_9.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 56 -nod 30
+
+# Visual check
+checkview -display res -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+pload XDE
+pload MODELING
+
--- /dev/null
+readstl m [locate_data_file model_stl_001.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 3609 -nod 1807
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_010.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 26582 -nod 13346
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_011.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 9170 -nod 4595
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_012.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 10059 -nod 5036
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_013.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 8773 -nod 4406
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_014.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 18462 -nod 9272
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_015.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 7662 -nod 3836
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_002.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 19034 -nod 9535
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_003.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 3236 -nod 1620
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_004.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 15479 -nod 7793
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_005.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 10526 -nod 5265
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_006.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 14447 -nod 7264
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_007.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 4199 -nod 2109
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_008.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 22149 -nod 11118
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_009.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 5678 -nod 2841
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_016.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 68 -nod 36
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_025.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 54364 -nod 24452
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_026.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 41113 -nod 18457
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_027.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 7440 -nod 3720
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_028.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 10956 -nod 5238
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_029.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 33313 -nod 15442
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_030.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 38380 -nod 19158
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_017.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 1 -nod 3
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_018.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 2 -nod 5
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_019.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 509952 -nod 254992
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_020.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 26840 -nod 13432
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_021.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 63268 -nod 31445
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_022.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 4388 -nod 2194
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_023.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 288 -nod 144
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_024.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 116 -nod 60
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_031.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 29606 -nod 14817
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_040.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 5720 -nod 2864
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_041.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 6082 -nod 3052
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_042.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 10131 -nod 5068
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_043.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 17780 -nod 8954
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_044.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 5998 -nod 3002
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_045.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 19011 -nod 9598
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_032.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 4340 -nod 2172
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_033.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 25560 -nod 12928
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_034.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 10762 -nod 5387
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_035.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 21778 -nod 10963
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_036.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 7806 -nod 3907
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_037.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 8286 -nod 4164
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_038.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 6811 -nod 3408
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+readstl m [locate_data_file model_stl_039.stl] triangulation
+
+# Number of triangles check
+checktrinfo m -tri 19651 -nod 9862
+
+# Visual check
+checkview -display m -2d -path ${imagedir}/${test_image}.png
\ No newline at end of file
--- /dev/null
+pload XDE
+pload MODELING
+