0029868: Draw Harness - help message for readstl command is unclear
authorkgv <kgv@opencascade.com>
Thu, 14 Jun 2018 15:45:58 +0000 (18:45 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 6 Jul 2018 12:53:48 +0000 (15:53 +0300)
readstl syntax has been modified, so that it creates a single-face triangulation by default.
The argument "trinagulation" is no more supported.
The new argument "-brep" has been introduced to generate
a compound of per-triangle faces instead (old default behavior of the command).

70 files changed:
src/RWStl/RWStl_Reader.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
tests/bugs/fclasses/bug23192_1
tests/bugs/fclasses/bug23192_2
tests/bugs/modalg_7/bug29524
tests/bugs/stlvrml/bug26338
tests/bugs/stlvrml/bug27622
tests/bugs/stlvrml/bug28680
tests/bugs/xde/bug22670_1
tests/bugs/xde/bug22670_2
tests/bugs/xde/bug22898
tests/bugs/xde/bug6384
tests/de_mesh/shape_write_stl/A1
tests/de_mesh/shape_write_stl/A10
tests/de_mesh/shape_write_stl/A11
tests/de_mesh/shape_write_stl/A12
tests/de_mesh/shape_write_stl/A2
tests/de_mesh/shape_write_stl/A3
tests/de_mesh/shape_write_stl/A4
tests/de_mesh/shape_write_stl/A5
tests/de_mesh/shape_write_stl/A6
tests/de_mesh/shape_write_stl/A7
tests/de_mesh/shape_write_stl/A8
tests/de_mesh/shape_write_stl/A9
tests/de_mesh/stl_read/A1
tests/de_mesh/stl_read/A10
tests/de_mesh/stl_read/A11
tests/de_mesh/stl_read/A12
tests/de_mesh/stl_read/A13
tests/de_mesh/stl_read/A14
tests/de_mesh/stl_read/A15
tests/de_mesh/stl_read/A2
tests/de_mesh/stl_read/A3
tests/de_mesh/stl_read/A4
tests/de_mesh/stl_read/A5
tests/de_mesh/stl_read/A6
tests/de_mesh/stl_read/A7
tests/de_mesh/stl_read/A8
tests/de_mesh/stl_read/A9
tests/de_mesh/stl_read/B1
tests/de_mesh/stl_read/B10
tests/de_mesh/stl_read/B11
tests/de_mesh/stl_read/B12
tests/de_mesh/stl_read/B13
tests/de_mesh/stl_read/B14
tests/de_mesh/stl_read/B15
tests/de_mesh/stl_read/B2
tests/de_mesh/stl_read/B3
tests/de_mesh/stl_read/B4
tests/de_mesh/stl_read/B5
tests/de_mesh/stl_read/B6
tests/de_mesh/stl_read/B7
tests/de_mesh/stl_read/B8
tests/de_mesh/stl_read/B9
tests/de_mesh/stl_read/C1
tests/de_mesh/stl_read/C10
tests/de_mesh/stl_read/C11
tests/de_mesh/stl_read/C12
tests/de_mesh/stl_read/C13
tests/de_mesh/stl_read/C14
tests/de_mesh/stl_read/C15
tests/de_mesh/stl_read/C2
tests/de_mesh/stl_read/C3
tests/de_mesh/stl_read/C4
tests/de_mesh/stl_read/C5
tests/de_mesh/stl_read/C6
tests/de_mesh/stl_read/C7
tests/de_mesh/stl_read/C8
tests/de_mesh/stl_read/C9
tests/de_mesh/stl_read/D1

index cb49a57..19e22a3 100644 (file)
@@ -416,7 +416,7 @@ Standard_Boolean RWStl_Reader::ReadBinary (Standard_IStream& theStream,
       const std::streamsize aDataToRead = aNbFacesInBuffer * aFaceDataLen;
       if (theStream.read (aBuffer, aDataToRead).gcount() != aDataToRead)
       {
-        Message::DefaultMessenger()->Send ("Error: read filed", Message_Fail);
+        Message::DefaultMessenger()->Send ("Error: binary STL read failed", Message_Fail);
         return false;
       }
       aBufferPtr = aBuffer;
index fe80118..c42e931 100644 (file)
@@ -105,36 +105,61 @@ static Standard_Integer readstl(Draw_Interpretor& theDI,
                                 Standard_Integer theArgc,
                                 const char** theArgv)
 {
-  if (theArgc < 3)
-  {
-    theDI << "wrong number of parameters" << "\n";
-    return 1;
-  }
-  else
+  TCollection_AsciiString aShapeName, aFilePath;
+  bool toCreateCompOfTris = false;
+  for (Standard_Integer anArgIter = 1; anArgIter < theArgc; ++anArgIter)
   {
-    if (theArgc == 4 &&
-        strcmp("triangulation", theArgv[3]) == 0)
+    TCollection_AsciiString anArg (theArgv[anArgIter]);
+    anArg.LowerCase();
+    if (aShapeName.IsEmpty())
     {
-      // Read STL file to the triangulation.
-      Handle(Draw_ProgressIndicator) aProgress = new Draw_ProgressIndicator (theDI, 1);
-      Handle(Poly_Triangulation) aTriangulation = RWStl::ReadFile (theArgv[2], aProgress);
-
-      TopoDS_Face aFace;
-      BRep_Builder aB;
-      aB.MakeFace(aFace);
-      aB.UpdateFace(aFace, aTriangulation);
-      DBRep::Set(theArgv[1], aFace);
+      aShapeName = theArgv[anArgIter];
+    }
+    else if (aFilePath.IsEmpty())
+    {
+      aFilePath = theArgv[anArgIter];
+    }
+    else if (anArg == "-brep")
+    {
+      toCreateCompOfTris = true;
+      if (anArgIter + 1 < theArgc
+       && ViewerTest::ParseOnOff (theArgv[anArgIter + 1], toCreateCompOfTris))
+      {
+        ++anArgIter;
+      }
     }
     else
     {
-      TopoDS_Shape aShape;
-      Standard_DISABLE_DEPRECATION_WARNINGS
-      StlAPI::Read(aShape, theArgv[2]);
-      Standard_ENABLE_DEPRECATION_WARNINGS
-      DBRep::Set(theArgv[1], aShape);
+      std::cout << "Syntax error: unknown argument '" << theArgv[anArgIter] << "'\n";
+      return 1;
     }
   }
+  if (aFilePath.IsEmpty())
+  {
+    std::cout << "Syntax error: not enough arguments\n";
+    return 1;
+  }
 
+  TopoDS_Shape aShape;
+  if (!toCreateCompOfTris)
+  {
+    // Read STL file to the triangulation.
+    Handle(Draw_ProgressIndicator) aProgress = new Draw_ProgressIndicator (theDI, 1);
+    Handle(Poly_Triangulation) aTriangulation = RWStl::ReadFile (aFilePath.ToCString(), aProgress);
+
+    TopoDS_Face aFace;
+    BRep_Builder aB;
+    aB.MakeFace (aFace);
+    aB.UpdateFace (aFace, aTriangulation);
+    aShape = aFace;
+  }
+  else
+  {
+    Standard_DISABLE_DEPRECATION_WARNINGS
+    StlAPI::Read(aShape, aFilePath.ToCString());
+    Standard_ENABLE_DEPRECATION_WARNINGS
+  }
+  DBRep::Set (aShapeName.ToCString(), aShape);
   return 0;
 }
 
@@ -1233,7 +1258,12 @@ void  XSDRAWSTLVRML::InitCommands (Draw_Interpretor& theCommands)
 
   theCommands.Add ("writevrml", "shape file [version VRML#1.0/VRML#2.0 (1/2): 2 by default] [representation shaded/wireframe/both (0/1/2): 1 by default]",__FILE__,writevrml,g);
   theCommands.Add ("writestl",  "shape file [ascii/binary (0/1) : 1 by default] [InParallel (0/1) : 0 by default]",__FILE__,writestl,g);
-  theCommands.Add ("readstl",   "shape file [triangulation: no by default]",__FILE__,readstl,g);
+  theCommands.Add ("readstl",
+                   "readstl shape file [-brep]"
+                   "\n\t\t: Reads STL file and creates a new shape with specified name."
+                   "\n\t\t: When -brep is specified, creates a Compound of per-triangle Faces."
+                   "\n\t\t: Single triangulation-only Face is created otherwise (default).",
+                   __FILE__, readstl, g);
   theCommands.Add ("loadvrml" , "shape file",__FILE__,loadvrml,g);
 
   theCommands.Add ("meshfromstl",     "creates MeshVS_Mesh from STL file",            __FILE__, createmesh,      g );
index caf6ad7..56a7b16 100755 (executable)
@@ -22,7 +22,7 @@ writestl res ${aFile} ${anASCIImode}
 catch {exec chmod 777 ${aFile}}
 
 if { [file exists ${aFile}] } {
-  readstl result ${aFile}
+  readstl result ${aFile} -brep
 
 checknbshapes result -vertex 8 -edge 18 -wire 12 -face 12 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 51
   # Check file size
index 73fbd35..3081072 100755 (executable)
@@ -22,7 +22,7 @@ writestl res ${aFile} ${anASCIImode}
 catch {exec chmod 777 ${aFile}}
 
 if { [file exists ${aFile}] } {
-  readstl result ${aFile}
+  readstl result ${aFile} -brep
 
 checknbshapes result -vertex 8 -edge 18 -wire 12 -face 12 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 51
   # Check file size
index 49e5b39..058c5f3 100644 (file)
@@ -4,7 +4,7 @@ puts "========"
 puts ""
 
 pload VISUALIZATION XDE MODELING
-readstl m [locate_data_file model_stl_045.stl] triangulation
+readstl m [locate_data_file model_stl_045.stl]
 vclear
 vinit View1
 vdisplay -dispMode 1 m
index 4281732..2a1a0f1 100644 (file)
@@ -16,7 +16,7 @@ incmesh comp 1.
 writestl comp $imagedir/${casename}.stl 1
 
 # load STL
-readstl result $imagedir/${casename}.stl
+readstl result $imagedir/${casename}.stl -brep
 
 # check that bounding box is 
 bounding -s result -save Xmin Ymin Zmin Xmax Ymax Zmax -nodraw
index f6df1c9..a19f4d2 100644 (file)
@@ -6,7 +6,7 @@ puts ""
 # Data Exchange - STL file having less than 4 triangles cannot be read
 ########################################################################
 
-readstl result [locate_data_file bug27622_Design1.stl]
+readstl result [locate_data_file bug27622_Design1.stl] -brep
 
 set nbshapes_expected "
 Number of shapes in result
index 03d360b..f71256f 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file bug28680_sample01b.stl] triangulation
+readstl m [locate_data_file bug28680_sample01b.stl]
 
 # Number of triangles check
 checktrinfo m -tri 62075 -nod 31879
index 59705c7..1718c22 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 
 set BugNumber OCC22670
 
-readstl res_mesh [locate_data_file OMF6391_box.stl]
+readstl res_mesh [locate_data_file OMF6391_box.stl] -brep
 
 set aFile ${imagedir}/OCC22670.stl
 file delete ${aFile}
@@ -19,7 +19,7 @@ set anASCIImode 0
 writestl res_mesh ${aFile} ${anASCIImode}
 catch {exec chmod 777 ${aFile}}
 
-readstl result ${aFile}
+readstl result ${aFile} -brep
 
 checknbshapes result -vertex 8 -edge 18 -wire 12 -face 12 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 51
 checkview -display result -2d -path ${imagedir}/${test_image}.png
index dbee0d8..d9d4938 100755 (executable)
@@ -18,7 +18,7 @@ puts ""
 set BugNumber OCC22670
 
 set filepath [locate_data_file OMF6391_box.stl]
-if { [catch { readstl res_mesh $filepath } catch_result] } {
+if { [catch { readstl res_mesh $filepath -brep } catch_result] } {
     puts "Faulty ${BugNumber}: here is reading problem"
 } else {
     set aFile $imagedir/${test_image}.stl
@@ -30,7 +30,7 @@ if { [catch { readstl res_mesh $filepath } catch_result] } {
     writestl res_mesh ${aFile} ${anASCIImode}
     catch {exec chmod 777 ${aFile}}
 
-    readstl result ${aFile}
+    readstl result ${aFile} -brep
 
     checknbshapes result -vertex 8 -edge 18 -wire 12 -face 12 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 51
 }
index e6bbf4f..eb57743 100644 (file)
@@ -43,7 +43,7 @@ checkarea step_1 3.978e8 1e6 0.001
 # STL
 incmesh hammer 38.9076
 writestl hammer $imagedir/hammer.stl 
-readstl stl $imagedir/hammer.stl
+readstl stl $imagedir/hammer.stl -brep
 checkshape stl
 tolerance stl
 checkarea stl 3.978e8 1e6 0.001
index aa5bc90..17c5e0a 100755 (executable)
@@ -6,10 +6,8 @@ puts ""
 # StlAPI_Reader still use old Sewing algorithm
 #######################################################################################
 
-## readstl command from XSDRAWSTLVRML.cxx file !!!!!
-
 set BugNumber OCC6384
 
-readstl res_mesh [locate_data_file OMF6391_box.stl]
+readstl res_mesh [locate_data_file OMF6391_box.stl] -brep
 
 
index 56c8d9f..02b9698 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 22748 -nod 11376
index 49e1f03..7742f52 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 130 -nod 67
index 8e34164..129b48d 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 150 -nod 77
index 8c5a21f..e85d6a7 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 4396  -nod 2200
index 98ba1d9..efd25eb 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 290 -nod 147
index fb4900b..37d90b4 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 200 -nod 102
index c8494c0..ad125c7 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 146 -nod 75
index 83367a1..26b708e 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 13102 -nod 6553
index 83d7ece..f8d423f 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 2398 -nod 1201
index ec1cedd..72d9e6a 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 40 -nod 22
index 0546cf0..0511e34 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 58 -nod 31
index 9284f43..5acc70b 100644 (file)
@@ -6,7 +6,7 @@ incmesh m 1.0
 
 # Save, read and delete file
 writestl m $imagedir/${casename}
-readstl res $imagedir/${casename} triangulation
+readstl res $imagedir/${casename}
 file delete $imagedir/${casename}
 
 checktrinfo res -tri 56 -nod 30
index 05b7c6b..7f5980f 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_001.stl] triangulation
+readstl m [locate_data_file model_stl_001.stl]
 
 # Number of triangles check
 checktrinfo m -tri 3609 -nod 1807
index e92d07b..b1eccdb 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_010.stl] triangulation
+readstl m [locate_data_file model_stl_010.stl]
 
 # Number of triangles check
 checktrinfo m -tri 26582 -nod 13346
index f653e32..c02e3c3 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_011.stl] triangulation
+readstl m [locate_data_file model_stl_011.stl]
 
 # Number of triangles check
 checktrinfo m -tri 9170 -nod 4595
index c669896..09d8b2b 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_012.stl] triangulation
+readstl m [locate_data_file model_stl_012.stl]
 
 # Number of triangles check
 checktrinfo m -tri 10059 -nod 5036
index b2fe449..b020f8b 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_013.stl] triangulation
+readstl m [locate_data_file model_stl_013.stl]
 
 # Number of triangles check
 checktrinfo m -tri 8773 -nod 4406
index 563490b..c98aed1 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_014.stl] triangulation
+readstl m [locate_data_file model_stl_014.stl]
 
 # Number of triangles check
 checktrinfo m -tri 18462 -nod 9272
index 7e4b226..7b0e95b 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_015.stl] triangulation
+readstl m [locate_data_file model_stl_015.stl]
 
 # Number of triangles check
 checktrinfo m -tri 7662 -nod 3836
index 4554070..d7b3bb6 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_002.stl] triangulation
+readstl m [locate_data_file model_stl_002.stl]
 
 # Number of triangles check
 checktrinfo m -tri 19034 -nod 9535
index 27b3c5f..a07092b 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_003.stl] triangulation
+readstl m [locate_data_file model_stl_003.stl]
 
 # Number of triangles check
 checktrinfo m -tri 3236 -nod 1620
index 50a38c2..5f6a3d2 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_004.stl] triangulation
+readstl m [locate_data_file model_stl_004.stl]
 
 # Number of triangles check
 checktrinfo m -tri 15479 -nod 7793
index 5afc02d..b2c51d7 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_005.stl] triangulation
+readstl m [locate_data_file model_stl_005.stl]
 
 # Number of triangles check
 checktrinfo m -tri 10526 -nod 5265
index 0e48971..bd4d9c9 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_006.stl] triangulation
+readstl m [locate_data_file model_stl_006.stl]
 
 # Number of triangles check
 checktrinfo m -tri 14447 -nod 7264
index f12fbce..ab6db8e 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_007.stl] triangulation
+readstl m [locate_data_file model_stl_007.stl]
 
 # Number of triangles check
 checktrinfo m -tri 4199 -nod 2109
index 90f24f7..302242e 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_008.stl] triangulation
+readstl m [locate_data_file model_stl_008.stl]
 
 # Number of triangles check
 checktrinfo m -tri 22149 -nod 11118
index 29414da..8bc8b29 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_009.stl] triangulation
+readstl m [locate_data_file model_stl_009.stl]
 
 # Number of triangles check
 checktrinfo m -tri 5678 -nod 2841
index 7471f26..35debdf 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_016.stl] triangulation
+readstl m [locate_data_file model_stl_016.stl]
 
 # Number of triangles check
 checktrinfo m -tri 68 -nod 36
index dc37f45..b8bf452 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_025.stl] triangulation
+readstl m [locate_data_file model_stl_025.stl]
 
 # Number of triangles check
 checktrinfo m -tri 54364 -nod 24452
index 8d13a7e..71a2ff4 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_026.stl] triangulation
+readstl m [locate_data_file model_stl_026.stl]
 
 # Number of triangles check
 checktrinfo m -tri 41113 -nod 18457
index d964b25..c74e251 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_027.stl] triangulation
+readstl m [locate_data_file model_stl_027.stl]
 
 # Number of triangles check
 checktrinfo m -tri 7440 -nod 3720
index 55170fc..32db62f 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_028.stl] triangulation
+readstl m [locate_data_file model_stl_028.stl]
 
 # Number of triangles check
 checktrinfo m -tri 10956 -nod 5238
index 9ec0c22..f4f08fd 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_029.stl] triangulation
+readstl m [locate_data_file model_stl_029.stl]
 
 # Number of triangles check
 checktrinfo m -tri 33313 -nod 15442
index f50053b..1d0eacf 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_030.stl] triangulation
+readstl m [locate_data_file model_stl_030.stl]
 
 # Number of triangles check
 checktrinfo m -tri 38380 -nod 19158
index 29aee49..d4c2d4f 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_017.stl] triangulation
+readstl m [locate_data_file model_stl_017.stl]
 
 # Number of triangles check
 checktrinfo m -tri 1 -nod 3
index 7e9a968..dea1307 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_018.stl] triangulation
+readstl m [locate_data_file model_stl_018.stl]
 
 # Number of triangles check
 checktrinfo m -tri 2 -nod 5
index aafd933..3cedd16 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_019.stl] triangulation
+readstl m [locate_data_file model_stl_019.stl]
 
 # Number of triangles check
 checktrinfo m -tri 509952 -nod 254992
index b331d21..37030b0 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_020.stl] triangulation
+readstl m [locate_data_file model_stl_020.stl]
 
 # Number of triangles check
 checktrinfo m -tri 26840 -nod 13432
index cfe3e9e..040e6a8 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_021.stl] triangulation
+readstl m [locate_data_file model_stl_021.stl]
 
 # Number of triangles check
 checktrinfo m -tri 63268 -nod 31445
index 1e90521..128bff4 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_022.stl] triangulation
+readstl m [locate_data_file model_stl_022.stl]
 
 # Number of triangles check
 checktrinfo m -tri 4388 -nod 2194
index 60a64f3..e03dd63 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_023.stl] triangulation
+readstl m [locate_data_file model_stl_023.stl]
 
 # Number of triangles check
 checktrinfo m -tri 288 -nod 144
index 0d301f0..278ad3a 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_024.stl] triangulation
+readstl m [locate_data_file model_stl_024.stl]
 
 # Number of triangles check
 checktrinfo m -tri 116 -nod 60
index 724a954..59402d9 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_031.stl] triangulation
+readstl m [locate_data_file model_stl_031.stl]
 
 # Number of triangles check
 checktrinfo m -tri 29606 -nod 14817
index b19ade9..ed77395 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_040.stl] triangulation
+readstl m [locate_data_file model_stl_040.stl]
 
 # Number of triangles check
 checktrinfo m -tri 5720 -nod 2864
index d101554..f8f8f7c 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_041.stl] triangulation
+readstl m [locate_data_file model_stl_041.stl]
 
 # Number of triangles check
 checktrinfo m -tri 6082 -nod 3052
index 33a3506..4551264 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_042.stl] triangulation
+readstl m [locate_data_file model_stl_042.stl]
 
 # Number of triangles check
 checktrinfo m -tri 10131 -nod 5068
index fbaa132..2bf0ce3 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_043.stl] triangulation
+readstl m [locate_data_file model_stl_043.stl]
 
 # Number of triangles check
 checktrinfo m -tri 17780 -nod 8954
index 3b2304e..e7dc762 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_044.stl] triangulation
+readstl m [locate_data_file model_stl_044.stl]
 
 # Number of triangles check
 checktrinfo m -tri 5998 -nod 3002
index 380b0c7..3c6fce8 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_045.stl] triangulation
+readstl m [locate_data_file model_stl_045.stl]
 
 # Number of triangles check
 checktrinfo m -tri 19011 -nod 9598
index 92e960f..58459f5 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_032.stl] triangulation
+readstl m [locate_data_file model_stl_032.stl]
 
 # Number of triangles check
 checktrinfo m -tri 4340 -nod 2172
index 91c2b3a..65cee8a 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_033.stl] triangulation
+readstl m [locate_data_file model_stl_033.stl]
 
 # Number of triangles check
 checktrinfo m -tri 25560 -nod 12928
index 550104d..2e2bf50 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_034.stl] triangulation
+readstl m [locate_data_file model_stl_034.stl]
 
 # Number of triangles check
 checktrinfo m -tri 10762 -nod 5387
index 0a8e5b5..e9b284d 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_035.stl] triangulation
+readstl m [locate_data_file model_stl_035.stl]
 
 # Number of triangles check
 checktrinfo m -tri 21778 -nod 10963
index 6be3e8f..77c6534 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_036.stl] triangulation
+readstl m [locate_data_file model_stl_036.stl]
 
 # Number of triangles check
 checktrinfo m -tri 7806 -nod 3907
index 3ac2724..f7d0b48 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_037.stl] triangulation
+readstl m [locate_data_file model_stl_037.stl]
 
 # Number of triangles check
 checktrinfo m -tri 8286 -nod 4164
index dcf04b7..87eb51a 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_038.stl] triangulation
+readstl m [locate_data_file model_stl_038.stl]
 
 # Number of triangles check
 checktrinfo m -tri 6811 -nod 3408
index 3d85f51..fc17298 100644 (file)
@@ -1,4 +1,4 @@
-readstl m [locate_data_file model_stl_039.stl] triangulation
+readstl m [locate_data_file model_stl_039.stl]
 
 # Number of triangles check
 checktrinfo m -tri 19651 -nod 9862
index 2161e54..e712b80 100644 (file)
@@ -19,7 +19,7 @@ set fd [open ${imagedir}/${casename}_one_ascii_dos.stl w]
 fconfigure $fd -translation crlf
 puts $fd $minimal_ascii_stl
 close $fd
-readstl res_one_ascii_dos ${imagedir}/${casename}_one_ascii_dos.stl
+readstl res_one_ascii_dos ${imagedir}/${casename}_one_ascii_dos.stl -brep
 checknbshapes res_one_ascii_dos -face 1
 
 puts "\n#======================================================================"
@@ -29,7 +29,7 @@ set fd [open ${imagedir}/${casename}_one_ascii_unix.stl w]
 fconfigure $fd -translation lf
 puts $fd $minimal_ascii_stl
 close $fd
-readstl res_one_ascii_unix ${imagedir}/${casename}_one_ascii_unix.stl
+readstl res_one_ascii_unix ${imagedir}/${casename}_one_ascii_unix.stl -brep
 checknbshapes res_one_ascii_unix -face 1
 
 puts "\n#======================================================================"
@@ -39,7 +39,7 @@ set fd [open ${imagedir}/${casename}_one_ascii_noeol.stl w]
 fconfigure $fd -translation lf
 puts -nonewline $fd $minimal_ascii_stl
 close $fd
-readstl res_one_ascii_noeol ${imagedir}/${casename}_one_ascii_noeol.stl
+readstl res_one_ascii_noeol ${imagedir}/${casename}_one_ascii_noeol.stl -brep
 checknbshapes res_one_ascii_noeol -face 1
 
 puts "\n#======================================================================"
@@ -49,7 +49,7 @@ set fd [open ${imagedir}/${casename}_zero_ascii_dos.stl w]
 fconfigure $fd -translation crlf
 puts $fd "solid \nendsolid"
 close $fd
-readstl res_zero_ascii_dos ${imagedir}/${casename}_zero_ascii_dos.stl
+readstl res_zero_ascii_dos ${imagedir}/${casename}_zero_ascii_dos.stl -brep
 
 puts "\n#======================================================================"
 puts "# Ascii file with no facets, LF"
@@ -58,7 +58,7 @@ set fd [open ${imagedir}/${casename}_zero_ascii_unix.stl w]
 fconfigure $fd -translation lf
 puts $fd "solid \nendsolid"
 close $fd
-readstl res_zero_ascii_unix ${imagedir}/${casename}_zero_ascii_unix.stl
+readstl res_zero_ascii_unix ${imagedir}/${casename}_zero_ascii_unix.stl -brep
 
 puts "\n#======================================================================"
 puts "# Binary file with single facet"
@@ -68,7 +68,7 @@ fconfigure $fd -translation binary
 puts -nonewline $fd "stl [string repeat { } 76]"
 puts -nonewline $fd [binary format if3f3f3f3t 1 {0 0 1} {0 0 0} {1 0 0} {0 1 0} 0]
 close $fd
-readstl res_one_binary ${imagedir}/${casename}_one_binary.stl
+readstl res_one_binary ${imagedir}/${casename}_one_binary.stl -brep
 checknbshapes res_one_binary -face 1
 
 puts "\n#======================================================================"
@@ -79,7 +79,7 @@ set fd [open ${imagedir}/${casename}_zero_binary.stl w]
 fconfigure $fd -translation binary
 puts -nonewline $fd "stl [string repeat { } 76][binary format i 0]"
 close $fd
-readstl res_zero_binary ${imagedir}/${casename}_zero_binary.stl
+readstl res_zero_binary ${imagedir}/${casename}_zero_binary.stl -brep
 
 puts "\n#======================================================================"
 puts "# Empty file"
@@ -87,5 +87,5 @@ puts "#======================================================================"
 puts "REQUIRED ALL: Error: unexpected format of facet at line 2"
 set fd [open ${imagedir}/${casename}_empty.stl w]
 close $fd
-readstl res_empty ${imagedir}/${casename}_empty.stl
+readstl res_empty ${imagedir}/${casename}_empty.stl -brep