An STL file describes only the surface of an object: a list of triangles, each with three corners. A 3D printer cannot use that directly. It needs to be told, line by line, where to move the nozzle and how much plastic to push while it moves. The program that bridges the two is the slicer, and this page describes step by step what this particular slicer does with your model. It is a small engine written for the browser, and every stage below is the actual method used, not a generic textbook description.
1. Cutting the model into layers
The model is first placed on the bed: rotated in quarter turns, scaled, centred and lowered until its lowest point touches the plate. Then it is cut by horizontal planes, one per layer. Each layer is a slab between two heights, and the cut is made at the middle of the slab, not at its top or bottom. With a 0.2 mm first layer, the first cut is at 0.1 mm; the second layer spans 0.2 to 0.4 mm and is cut at 0.3 mm, and so on. Cutting at mid-height means each printed layer follows the cross-section halfway through the slab it replaces, which keeps slopes and domes from growing or shrinking by half a layer. A layer is only produced while its cutting plane is still below the top of the model.
Every triangle that crosses a plane contributes one short segment to that layer's outline. The important detail is how those segments are joined into closed loops. Two neighbouring triangles share an edge, and where the plane crosses that shared edge both triangles must produce exactly the same point. Here each crossing point is identified by the mesh edge it lies on and computed once, so the loops are chained by that edge rather than by searching for points that happen to be close together. This is also why a watertight mesh matters: if the surface has a hole, some edge has a triangle on only one side, the chain has nowhere to go and the loop stays open. Small gaps (up to two line widths) are closed by joining the open ends; larger ones are dropped and the tool warns you which layers were affected. If you see that warning, run the file through the STL printability checker to find the hole.
Finally the loops of each layer are combined by their direction. Each loop keeps the direction given by the surface it came from, with the material always on the same side, so an outer boundary runs one way and a hole runs the other. The layer's solid area is every point that the loops wind around at least once. That is why two bodies that overlap, or a shell that was accidentally duplicated, merge into one solid outline instead of cancelling each other out, while a real hole stays empty.
2. Walls: offsetting the outline inwards
A printed line has a width, normally the nozzle diameter. If the nozzle followed the outline exactly, half of every line would stick out beyond the model and the part would come out one line width too big. So the outer wall runs along the outline shifted inwards by half a line width, which puts its outside edge exactly on the model's surface. Each inner wall is shifted a further full line width inwards. With the default two walls and a 0.4 mm line, the wall centrelines sit 0.2 mm and 0.6 mm inside the surface, and whatever is left more than 0.8 mm inside is handed on to the skin and infill stage. If a feature is so thin that not even the outer wall fits, the tool warns you instead of silently printing nothing there.
Offsetting a polygon sounds trivial but is the hardest part of any slicer: corners have to be joined, and when a shape shrinks, parts of it can collide, split into two or vanish. This engine has its own offset routine that shifts every edge, joins the corners and then keeps only the area that is genuinely inside, so a narrow waist in a part correctly splits into two separate wall loops.
3. Top and bottom skins
The inside of a part is normally printed sparsely, but the surfaces you see and touch must be solid. The question for each point of a layer is: is this close to a top or bottom surface? The answer here is decided line by line. The area inside the walls is scanned with parallel lines, and for each line the tool checks the outlines of the N layers above and the N layers below (N is your "top layers" and "bottom layers" setting, 3 by default). Any stretch of the line that is covered by all of those layers is buried deep inside the part and gets sparse infill. Any stretch that is not covered, because the model ends within N layers above or below that spot, becomes skin: solid lines spaced one line width apart. Because the check is done per stretch of line rather than per layer, a stepped part gets a solid roof exactly over each step, not on the whole layer. Skin lines alternate between 45° and 135° from one layer to the next so each layer bridges across the one below.
4. Infill and how density becomes spacing
Sparse infill uses the same scanlines with a wider spacing. For the lines pattern, the spacing is the line width divided by the density: 20 % with a 0.4 mm line gives a line every 2 mm, in one direction per layer, alternating like the skin. For the grid pattern, each layer prints both directions, so each direction is spaced twice as far apart (2 × 0.4 ÷ 0.2 = 4 mm) to keep the same amount of plastic. At 100 % infill the lines simply become solid. Scanlines are placed on a fixed grid, so layers printed at the same angle put their infill lines exactly on top of each other.
5. Putting the paths in order
Within each layer the order is fixed: the skirt (a loop around the part on the first layer, to prime the nozzle), then the walls from the innermost to the outer one, then the skin, then the infill. Printing the outer wall last lets it lean on the walls already laid inside it, which gives a cleaner surface; this is also the default of the popular desktop slicers. Inside each group the nozzle always goes to the nearest remaining path, and each loop starts at the point closest to where the nozzle already is, to keep travel short. Before a long travel move the filament is retracted so it does not ooze across the part.
6. How much plastic each line needs
For every extruding move, the volume of the line is its width × layer height × length. The printer is told how much filament to feed, so that volume is divided by the cross-section of the filament (π × (1.75 ÷ 2)² ≈ 2.405 mm² for 1.75 mm filament). A 10 mm line 0.4 mm wide and 0.2 mm high is 0.8 mm³, which is about 0.33 mm of filament. The G-code uses relative extrusion (the M83 command), so each move carries the amount for that move alone rather than a running total. The printer's own start sequence, copied from the Cura definition of your machine, runs first in absolute mode, and the tool switches to relative mode right after it.
Walls, skin and skirt are printed at half the print speed and infill at full speed; the whole first layer uses the slower first-layer speed. The time estimate walks the same list of moves that is written to the file and assumes each move accelerates and decelerates at your printer's acceleration setting, which is why it is an estimate and not a guarantee.
When not to use this tool
This is a focused slicer for single, self-supporting parts on Marlin printers. It does not generate supports, so overhangs steeper than your printer can bridge will droop. It has no brim or raft, only a skirt. It slices one model at a time rather than a plate of several different parts, and it writes G-code for Marlin firmware only. If you need any of those, use a full desktop slicer such as Ultimaker Cura or PrusaSlicer. The STL printability checker is still worth running before either one.
| This online slicer | Desktop slicers (Cura, PrusaSlicer) |
| Installation | None, opens in a browser tab | Download, install and keep updated |
| Where the model is processed | On your device, never uploaded | On your device |
| Supports, brim, raft | Not available | Available |
| Several parts on one plate | One model at a time | Yes |
| Firmware | Marlin | Marlin, RepRap/RepRapFirmware and others; Klipper via printer profiles |
| Best for | Quick, simple parts on any computer | Complex parts and fine-tuning |
After slicing, the cost panel under the summary prices the print from its grams and time with your own filament, electricity and hourly rates; if you already know those figures from another slicer, the 3D print cost calculator does the same sum without a model.
Want to print a picture rather than a model? Depth Map to STL turns an image or a depth map into a flat-backed relief that you can slice here.
For a logo, a drawing or a silhouette, Image to STL traces the shape into a flat part, a keychain or a plate with a raised drawing, and hands it to this slicer with one click.
Already have a G-code file, from this slicer or another one? Open it in the online G-code viewer to check its layers, time and filament before printing.