furti / FreeCAD-Lithophane

FreeCAD Workbench to convert an image to a Lithophane for 3D Printing
MIT License
32 stars 8 forks source link

Exported .stl file from lithophane workbench contains one line: #39

Open udsd007 opened 2 years ago

udsd007 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

FreeCAD Version Info:

udsd007 commented 2 years ago

FreeCAD 20, recent install, with Furti’s lithophane workbench installed tonight.

Click the "Import Image" button

========== ——-DONE

==========

Import Image A file selector will be shown. Select the image and click "Open" Depending on the image and your machine, it might take a while for the import to finish. On my 8 years old Intel i7-2670QM it takes about 8 seconds to import the windmill image (814x1000 pixels) FreeCAD might be unresponsive during the import Switch to the TreeView and select the imported image

========== ———DONE

==========

Select Image Click the "Create Box" button

========== ———DONE

Import Image Depending on the image and your machine it might take a while to compute the geometry. On my machine the testimage needed about 2 Seconds to compute. FreeCAD might be unresponsive during the import Now you should see the image in the TreeView and the Viewport. You can pan and zoom to look on the image from different sides.

========== ———DONE; it works.

Select the generated mesh in the TreeView and click on File -> Export. Choose STL Mesh (Or anything your slicer software could handle) as file format and save the file somewhere on your machine.

========== ——DONE

Select Image Fire Up your slicer (e.g. Cura) and load the exported file. Adapt the settings according to your 3D Printer and save the gcode. Load the gcode in your printer and let it

========== EXPECTED BEHAVIOR: Cura opens .stl file and displays it as valid .stl file. ACTUAL BEHAVIOR: —— Cura gripes about file content. It is right to gripe: file contains repeated "MESH—MESH—" in top line, and no more lines.

Problem is repeatable with multiple different image files.

luzpaz commented 1 year ago

@furti ping