kapy academy

What a slicer does

14 min readUpdated Nov 2026

Your printer cannot read your model. It reads a list of moves written for one particular machine, nozzle and material. That list is the G-code, and the slicer writes it from your model and three profiles (Printer, filament and process profiles). The workflow never changes: load the file, place and orient the part, pick the profiles, slice, read the preview, then send the G-code. A fault caught in the preview costs you seconds and one found on the printer, hours and plastic: read the preview before you print.

diagram
Each stage works on what the previous one left, and the profiles feed three of them. If the preview shows a fault, you fix the model or the settings and slice again from the start, never at the printer.

The slicer starts from a mesh, not your solid

The slicer almost always receives a mesh. An STL or 3MF stores the surface as flat triangles, so a curve arrives already broken into straight chords. The chords sit inside the arc, which means an export with too few triangles shrinks your holes before slicing has even begun (Why holes print small). A STEP file does carry the exact solid, but the slicer triangulates it on import. PrusaSlicer, Orca and Bambu Studio open STEP directly; Cura does not out of the box. Which format to send is covered in STL, 3MF or STEP for the slicer.

The mesh has to be closed: no holes, no flipped faces, no surfaces cutting through each other. The slicer works out what is inside and outside each section from the triangles, and with a gap in the mesh it has to guess. Current slicers repair small faults on import and tell you so. Treat that warning as a question about your export, not a solved problem.

Placement is already part of slicing. The slicer sets the part down on the plate, and the orientation you choose here decides the supports it needs, its strength and its finish. That decision has its own article: Orientation and overhangs.

Cutting the layers

This is the step the slicer is named after. It cuts the mesh with horizontal planes, one per layer, and in the common slicers the plane passes through the middle of each layer's height. Each cut gives one or more closed outlines: the part's outer boundary and one for each hole. With a 0.4 mm nozzle the default layer is 0.20 mm, so a part 20 mm tall has 100 layers.

The first layer has settings of its own: it is wider and slower, squashed into the plate so it sticks. First-layer height and width, and the slicer's elephant's-foot compensation (which shows it a little smaller than the rest in the preview), are in Layer height and line width.

For your design, this means that in Z the part can only have heights that land on the layer grid. A 0.5 mm step with 0.20 mm layers comes out at 0.4 or 0.6 mm, depending on where it falls relative to the middle of a layer. Anything shorter than one layer in Z gets rounded or vanishes. Variable layer height refines slopes at the cost of extra time.

What each layer is made of

With a layer's outlines in hand, the slicer decides which type of line goes in each region.

Walls (Prusa calls them perimeters). The outer wall gives the finish; the inner ones give the strength. Every slicer already offsets the toolpath by half a line width into the material, away from the hole: the edge of the bead lands on the drawn edge. If a hole prints small, the cause lies elsewhere (Why holes print small).

PrusaSlicer and Cura default to variable-width walls (the Arachne generator); in Bambu Studio and Orca you pick it under "Wall generator", and in PrusaSlicer the option is "Perimeter generator". With Arachne, a region narrower than one line prints widened, and only the very finest detail is lost; with the classic generator, anything narrower than a line disappears. Either way, one line is not a wall (Walls, perimeters and infill).

Solid top and bottom layers. The slicer compares each layer with those above and below. A region that will be exposed, top or bottom, within the next N layers is printed as solid infill. The count matters because the first top layer bridges across the gaps in the infill, and it takes several more to leave the surface flat.

Infill. A pattern at the density you choose fills what is left inside. It holds the walls in place and carries the top layers, but the strength comes mostly from the walls.

Bridges and overhangs. The slicer finds regions printed over thin air with support at both ends (bridges) and regions where the bead rests only partly on the layer below (overhangs), and grades the latter by how far they stick out. Bridges get their own direction, speed and cooling; overhanging walls get slower speeds the further they hang (Overhang and bridge settings).

Supports. The slicer generates them under overhangs that lean further from vertical than the threshold angle; the safe rule is 45° from vertical. In most stock profiles they are off: turn them on yourself. Every current slicer offers tree or organic supports, which touch less of the surface and come away more cleanly; normal supports still do better under large flat faces (Support settings).

this layeroverhangsupportw/2model outlineouter wallinner wallinfillseamretractiontravel
The slicer offsets the outer wall by half a line width into the material, so the edge of the bead lands on the model's outline, in the hole too. The seam and the retracted travel move belong to the same layer.

Order, travel and the seam

Within each layer the slicer picks an order. The usual one is inner walls, then the outer wall, then infill; some profiles print the outer wall first for better dimensional accuracy. The order decides which bead the next one leans on, and that shows in your dimensions and on overhangs (Walls, perimeters and infill).

Every closed loop starts and ends at a point, and that point is the seam. You cannot remove it, only choose where it goes: nearest or hidden corner, aligned, rear, random or painted by hand. Orca and Bambu Studio also offer the scarf seam, which overlaps the start and end on a ramp to hide it on smooth walls (Where the seam goes).

Between regions the nozzle travels without extruding. Molten plastic keeps oozing during the move, so the slicer retracts the filament, can lift the nozzle (Z hop) and can route the move inside the part so it does not cross walls: Cura does this by default; in PrusaSlicer, Orca and Bambu Studio it is an option. A travel move crossing open air in the preview is where strings can form (Stringing and blobs).

Speed, flow, temperature and fan

Every line gets a speed, an acceleration, an amount of plastic, a nozzle temperature and a fan value, all taken from the profiles. For a sense of scale (an order of magnitude, not a target): the Bambu X1C's 0.20 Standard profile prints the outer wall at 200 mm/s, inner walls at 300 and infill at 270, with 10,000 mm/s² acceleration (5,000 on the outer wall).

The speed ceiling is the hotend's flow, not the speed box: speed = flow / (line width × layer height) (Volumetric flow sets the speed). The filament profile sets that flow ("Max volumetric speed"), and when a line would need more, the slicer lowers the speed without telling you.

The amount of plastic follows from the geometry. The slicer multiplies each line's cross-section by its length and converts that to millimeters of 1.75 mm filament, whose cross-section is about 2.41 mm². If the flow ratio in the filament profile is wrong, every line carries the same relative error (Flow ratio and max flow tests).

A small layer prints in seconds and has no time to cool before the next one lands. The slicer enforces a minimum layer time and, to meet it, slows down, raises the fan or both. That is why a tall, narrow part takes longer per layer than its speeds suggest (Speed and cooling).

The G-code

G-code is a text file of commands: moves with coordinates, an amount of filament and a feed rate, plus temperature and fan commands. Speed (F) is in mm/min, so 200 mm/s is F12000. The values below are illustrative, in relative extrusion (the mode Prusa, Bambu and Orca profiles use):

M83                        ; relative extrusion: each E is the amount added
M104 S220                  ; nozzle to 220 °C, no wait
M106 S255                  ; part-cooling fan at 100 % (0–255)
G1 E-0.8 F2400             ; retraction: 0.8 mm of filament at 40 mm/s
G1 X120 Y95 F18000         ; travel without extruding at 300 mm/s
G1 E0.8 F2400              ; undo the retraction
G1 X130 Y95 E0.374 F12000  ; 10 mm of wall at 200 mm/s

The last line follows from the formula above: a 0.45 × 0.20 mm bead is 0.09 mm³ per millimeter, about 0.037 mm of filament per millimeter traveled (ignoring the bead's rounded ends).

The printer profile adds start and end G-code: heat up, home the axes, probe the bed and lay a purge line; at the end, park the head and cool down. A G-code file belongs to one printer: it carries the plate dimensions, the firmware dialect (Marlin, Klipper or a closed one), the temperatures and the start sequence. Sent to another machine, it can drive the nozzle into the bed or print at another material's temperature (Firmware: Marlin, Klipper and closed systems).

In late 2026 you will come across three formats: plain-text .gcode; Prusa's .bgcode, a smaller binary G-code that carries a thumbnail and metadata; and Bambu's .gcode.3mf, which packages the G-code with the plate data and is what Bambu Studio and Orca send to Bambu printers. Most current slicers also label each object inside the G-code, and Prusa and Bambu firmware, and Marlin with M486, use that to cancel a failed part without stopping the rest; Klipper does too, if its configuration enables it.

Time and material: where the estimate comes from

The grams come from multiplying the total extruded volume by the density in the filament profile, about 1.24 g/cm³ for PLA. The figure is only as good as that density and the flow ratio.

The time is not length divided by speed. Each slicer simulates the printer's motion planner in its own way, with its acceleration and cornering limits. PrusaSlicer reproduces the firmware's planner, and recent versions also model junction deviation when the printer profile enables it; Orca and Bambu Studio have their own estimators.

The physics is the same in all of them. At 5,000 mm/s², the head needs 9 mm to reach 300 mm/s (v² ÷ 2a) and another 9 to brake. A segment shorter than 18 mm between two sharp corners never reaches the speed you set: a 10 mm one peaks at about 224 mm/s. On a smooth curve the planner blends segments without braking to zero, but every sharp corner pays for the ramp again. That is why a small, detailed part takes far longer than its speeds suggest.

speedtime300 mm/sset speedacceleration ramp9 mm · 5 000 mm/s²peak≈224 mm/slong segment40 mmshort segment10 mm
With finite acceleration, a long segment reaches the set speed and holds it; a 10 mm segment between two corners starts braking before it gets there and peaks at about 224 mm/s.

The estimate is only as reliable as the printer profile. If its speed and acceleration limits do not match the firmware's, the estimate drifts. PrusaSlicer's preview legend breaks the time down by line type: use it to see where the time really goes.

Reading the preview before you print

The preview draws the G-code, not your model: what you see is what the nozzle will do. It has two sliders. The vertical one steps through layers; the horizontal one through the moves within each layer. Together they replay the print move by move.

Switch between several color schemes. By line type you see walls, infill, top surfaces, bridges, overhangs and supports. By speed, volumetric flow, layer time, fan and temperature you see what the slicer decided line by line. If flow sits pinned at the profile's maximum, flow is what is limiting the speed. The layer-time view marks the layers the slicer slows down so they can cool. PrusaSlicer adds actual speed and flow views, which already account for acceleration: those tell you what the machine will really do.

Before printing, check in this order:

  1. First layer: complete and touching the plate across the whole base.
  2. Thin walls and small details: nothing missing, nothing widened. Step through the layers where the model is thinnest.
  3. Supports: only where needed, and note which faces they touch.
  4. Bridges: marked as bridge, not as infill or wall.
  5. Top surfaces: enough solid layers above the infill.
  6. Seam: where it lands.
  7. Travel: if it crosses open air, expect strings.
  8. Time and grams, and how much of it goes on support.

Every time you change a profile or the orientation, slice again and check the same layers.

When it fails

Symptom, cause and fix
Symptom Cause Fix
A thin wall, rib or text stroke is missing, or prints thicker than modeled It is narrower than one line width (0.45 mm on a 0.4 nozzle): the classic generator drops it, and Arachne widens it off-size Thicken it in the model to two line widths (0.9 mm) or use a finer nozzle (Minimum features and text)
A detail prints shorter, or a step lands at the wrong height In Z only the heights on the layer grid exist, counted from the first layer Model those heights on the layer grid, or use variable layer height
Mesh error warnings, empty layers or a "floating" part Open or self-intersecting mesh, or a part not resting on the plate Export again from the CAD solid (or as STEP); a finer mesh does not fix an open one. Set the part down on the plate, and on a functional part do not trust auto-repair without checking the preview
An overhang prints onto thin air with nothing under it Supports are off (the default), or the slicer does not count it as an overhang at the current threshold angle Turn supports on or add them by hand there; better still, reorient or redesign (Designing out supports)
Holes print small even though the preview looks fine Mesh chords, the bead squashing on tight curves and shrinkage; not the wall offset Export finer or as STEP, use hole compensation ("X-Y hole compensation" in Orca and Bambu Studio, "Hole Horizontal Expansion" in Cura; in PrusaSlicer, the general XY compensation) and print a test coupon (Why holes print small)
The estimated time is far from the real one The printer profile's limits are not the firmware's, or the profile is not the manufacturer's Use the manufacturer's profile for your exact printer model
The nozzle hits the bed, the temperature is wrong for the material or the part lands off the plate G-code sliced with another printer's profile Slice again with the right profile; never reuse G-code between printers
The preview is clean and the print fails The slicer did its job: the problem is the machine, the material or the calibration Reading a failed print

See also

Design it in KapyCAD

Many of these problems are cheaper to fix in the model than in the slicer: wall thickness, overhangs, the face the part stands on.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?