1

Is it possible to convert the first layer of the G-code to a 2D print so I can use a 2D printer for a quick size reference?

The G-code (or STL) already contains the exact sizes so I think it shouldn't be hard, yet I could not find any easy solution for this.

Like this, but in realistic size: STL first layer preview

So since most 2D printers use standardized A4 paper and PDF can also use A4 standardized size. It would be very helpful for many 3D prints to have a tool that can quickly take a G-code and generate a PDF of the first layer so that I can use a 2D printer for a quick print size preview when printed in actual size.

This is helpful for example when comparing it to a physical object, and saves wasted filament and time by waiting for the first layer or the whole print to finish and to find out the size wasn't (exactly) right.

Bob Ortiz
  • 1,255
  • 1
  • 10
  • 44

1 Answers1

1

This suggestion may be more convoluted than your solution, but one can use OpenSCAD to import an STL, use projection() to create a slice of the first layer of the desired thickness, then export it as an SVG.

Additionally, Prusa Slicer (among others) when configured for a resin printer will generate a series of .PNG files representing the layers to be sent to the printer to expose the resin. The resulting file will have a proprietary extension, but when changed to .ZIP, can have the individual layers extracted and the images processed in the desired manner. Still convoluted, less programming involved.

fred_dot_u
  • 12,140
  • 1
  • 13
  • 26