Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-4223

STL file exported with OpenSCAD not detected correctly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.1
    • 2.9.2, 3.0.0
    • None
    • None

    Description

      STL files can be in ASCII or in binary format. Exporting this file (https://github.com/openscad/openscad/blob/master/examples/Basics/linear_extrude.scad) with OpenSCAD into STL the ASCII result file is detected as text/plain.

      Also the binary STL is detected with application/vnd.ms-pki.stl which differs from the model/stl mime-type Wikipedia lists for those files.

       

      Used commands for attached files

      openscad.exe --export-format asciistl -o result\linear_extrude_ascii.stl examples\Basics\linear_extrude.scad 
      openscad.exe --export-format binstl -o result\linear_extrude_binary.stl examples\Basics\linear_extrude.scad
      

      Refs:

      https://en.wikipedia.org/wiki/STL_(file_format)

      Attachments

        1. linear_extrude_binary.stl
          83 kB
          Robin Schimpf
        2. linear_extrude_ascii.stl
          313 kB
          Robin Schimpf

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rschimpf Robin Schimpf
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: