What Is Slicing in 3D Printing?

Slicing is the step in 3D printing where software converts a digital 3D model into the layer-by-layer instructions a printer needs to build an object. Think of it like a translator sitting between your design and the machine: it takes a shape you created on a computer, cuts it into hundreds or thousands of thin horizontal cross-sections, and then writes out the exact movements, temperatures, and speeds the printer should follow for each layer. The output is typically a file of machine commands called G-code, and without it, your printer has no idea what to do with your model.

From 3D Model to Machine Instructions

The slicing process has been compared to a software compiler, where users design models in CAD tools that get lowered to polygon meshes and ultimately “compiled” into machine code by the slicer.1Proceedings of the ACM on Programming Languages. Formalizing Linear Motion G-Code for Invariant Checking and Differential Testing of Fabrication Tools That analogy captures the essence well. The slicer reads a 3D model, almost always stored as a mesh of tiny triangles describing the object’s surface. It then divides that shape into thin horizontal slices, generates the paths the print head should follow within each slice, and outputs a G-code file containing commands that control everything from nozzle position to fan speed.2CIRP Journal of Manufacturing Science and Technology. From CAD to G-code: Strategies to minimizing errors in 3D printing process – Section: Slicer

Popular slicer programs include Cura, PrusaSlicer, Simplify3D, and BambuStudio, among many others. Some are free and open-source, others commercial. Regardless of which one you use, the basic workflow is the same: import the model, adjust your settings, and hit “slice.” The software chews through the geometry and produces a file your printer can read. The whole process usually takes seconds to a few minutes, depending on model complexity and the computer doing the work.

The Settings That Shape Your Print

When people talk about slicing, they are really talking about the dozens of settings the slicer lets you control. These settings determine print quality, strength, speed, and material usage. The most consequential ones fall into a few broad categories.

Layer Height

Layer height is the thickness of each horizontal slice. Thinner layers produce smoother surfaces and finer details but take longer to print because the printer has to lay down more of them. One optimization study on PLA parts found that a layer height around 0.14 mm delivered the shortest printing time while still maintaining acceptable quality.3IOP Conference Series: Materials Science and Engineering. Study on optimization of 3D printing parameters Most desktop FDM printers let you choose layer heights between roughly 0.05 mm and 0.3 mm. Going thinner than 0.1 mm yields diminishing visual returns for most objects while dramatically increasing print time.

The effect of layer height goes well beyond cosmetics. In continuous fiber-reinforced composites, dropping layer height from 0.6 mm to 0.2 mm increased tensile stiffness and strength by roughly 210 percent, largely because thinner layers reduce internal porosity and improve fiber compaction.4Composites Part B. Tailoring the mechanical properties of 3D-printed continuous flax/PLA biocomposites by controlling the slicing parameters Even for standard thermoplastics, thinner layers generally mean better bonding between adjacent layers, which translates to stronger parts.

Print Speed and Temperature

Print speed governs how fast the nozzle moves while depositing material. Faster speeds save time but can degrade surface quality and weaken layer adhesion if the material doesn’t have time to bond properly. Temperature settings control how hot the nozzle and print bed get, which affects how the plastic flows and sticks to the layer below. These two settings interact with each other: if you increase speed, you often need to bump up the temperature so the material melts fully before being deposited.

Retraction settings also live in this cluster. When the print head travels from one part of the print to another without depositing material, the slicer can tell the extruder to pull filament back slightly, reducing the thin strings of plastic that otherwise trail behind. Getting retraction right is one of the trickier tuning challenges. Researchers have even developed needle-valve mechanisms integrated with slicer software to eliminate stringing during complex travel moves in pellet-based extrusion systems.5Additive Manufacturing. Integration of a needle valve mechanism with cura slicing software for improved retraction in pellet-based material extrusion

Wall Count and Perimeters

Walls, sometimes called perimeters or shells, are the outlines the printer traces around the edge of each layer before filling in the interior. More walls make the outer surface of the part stronger and smoother. Increasing wall perimeters along with infill density and layer height has been shown to increase the tensile elasticity of printed parts.6PubMed Central. Effects of Infill Density, Wall Perimeter and Layer Height in Fabricating 3D Printing Products For functional parts that need to resist stress, bumping up wall count from two to four often does more for strength than raising infill, because the outer walls bear most of the load in many geometries.

Infill Patterns and Why They Matter

Unless you’re printing a solid block, the interior of your object is filled with a repeating geometric pattern rather than solid material. This is infill, and the slicer gives you control over both the pattern shape and the density, expressed as a percentage. A vase at 10 percent infill is mostly hollow and uses little material; a structural bracket at 60 percent is substantially filled and much stronger.

The choice of pattern isn’t cosmetic. Different geometries distribute forces differently. Research comparing fourteen common infill patterns, including grid, triangle, gyroid, cubic, zigzag, and several others, found meaningful differences in compressive performance relative to material weight.7Procedia CIRP. Compressive Strength Assessment of 3D Printing Infill Patterns In separate testing, the grid pattern produced the highest compressive strength (about 72 MPa for PLA) because its lines align along the loading direction, while the triangular pattern absorbed the most energy under impact loading, making it better for applications where you expect sudden forces rather than steady compression.8Polymer Testing. Material Performance Investigation of infill-patterns on mechanical response of 3D printed poly-lactic-acid

For tensile loads, where a part is being pulled apart, grid again tends to outperform alternatives because the infill lines run parallel to the pulling direction.9Materials Today: Proceedings. Effect of infill density and infill pattern on the mechanical properties of 3D printed PLA parts In practice, this means the “best” infill pattern depends on how your part will actually be used. A gyroid infill offers decent all-around strength and prints without sharp direction changes, making it popular for general-purpose parts. Grid and triangles shine when you know which direction the force is coming from.

Increasing infill density always improves strength, but the relationship isn’t linear. Going from 20 to 40 percent infill uses roughly twice the material and time but doesn’t double the part’s strength. There’s a practical sweet spot, usually between 15 and 30 percent for decorative items and 40 to 60 percent for functional parts, where you get enough strength without wasting hours and filament.

How the Slicer Handles Support Structures

3D printers build upward, layer by layer. Any part of a design that juts out over empty space, like the roof of a window or the underside of a bridge, needs something underneath it to keep the molten plastic from drooping into thin air. The slicer automatically detects these overhangs and generates support structures: temporary scaffolding that gets printed alongside the part and broken or dissolved away afterward.

Traditional supports are dense columns or grids, and they work, but they use a lot of material and can be difficult to remove cleanly. Tree-style supports have become increasingly popular as an alternative. These branch upward like a tree trunk, touching the overhang only at a few points, which makes them easier to snap off and leaves fewer marks on the finished surface. Researchers have developed algorithms that generate these tree supports more efficiently and with less material waste than conventional approaches.10Computer-Aided Design. Local Barycenter Based Efficient Tree-Support Generation for 3D Printing Other work based on L-system branching rules has produced tree supports that are both stable and easy to remove while reducing material and time compared to what typical commercial slicers generate.11Graphical Models. Generation of a tree-like support structure for fused deposition modelling based on the L-system and an octree

You can also reduce the need for supports altogether by rotating the model on the build plate before slicing. Orientation optimization is an active research area: one hybrid algorithm combining genetic optimization with reinforcement learning reduced support material by about 2 percent, printing time by nearly 4 percent, and surface roughness by about 2 percent compared to a standard optimization approach.12International Journal on Smart Sensing and Intelligent Systems. 3D print orientation optimization and comparative analysis of NSGA-II versus NSGA-II with Q-learning Those numbers sound modest, but for large or batch-printed parts, even a few percent savings in material and time add up quickly.

File Formats Going Into the Slicer

The most common input format is STL, a decades-old file type that stores only the bare geometry of a model as a collection of triangles. It’s universal but limited: it carries no color, material, or unit information. Newer formats like 3MF, AMF, and OBJ were designed to address those gaps, carrying richer metadata alongside the geometry.

A natural question is whether the choice of file format affects print accuracy. Research comparing STL, OBJ, 3MF, AMF, and STEP formats found that tessellated formats like STL, OBJ, 3MF, and AMF produced essentially identical geometry when exported from the same CAD model, with overlapping deviation curves. The differences between them are really about how triangle data is stored, not about the shape itself. STEP files, which use exact mathematical surfaces instead of triangles, showed slightly different deviation characteristics, but the practical impact on most prints is small.13Additive Manufacturing. On the correlation between pre-processing workflow and dimensional accuracy of 3D printed parts in high-precision Material Jetting – Section: Deploying different 3D model formats

For most users, STL remains the default, and switching to 3MF or OBJ won’t make your prints more accurate. Where newer formats do help is workflow convenience: 3MF can bundle multiple parts, color information, and slicer profiles into a single file, which simplifies sharing and reduces the chance of misconfigured settings.

Non-Planar Slicing

Conventional slicing cuts a model into flat, horizontal layers. That works well for most shapes, but it creates a fundamental limitation: curved surfaces end up with visible staircase steps, and overhangs need support. Non-planar slicing takes a different approach. Instead of restricting every layer to a flat plane, it allows layers to follow curved paths, conforming to the surface of the object.

One approach generates curved outer layers using isothermal surface calculations, essentially letting a simulated heat field guide the shape of each layer so it wraps smoothly around the object’s contour. This reduces the staircase effect, improves surface finish, and can eliminate the need for supports in areas where flat slicing would require them.14Journal of Manufacturing Processes. Additive manufacturing of non-planar layers using isothermal surface slicing Another algorithm combines conventional flat layers for the interior of a part with non-planar layers for the outer shell, getting the speed benefits of standard slicing where they matter and the surface quality of curved layers where they’re visible. Experimental validation of this approach required a five-axis robotic printer rather than a standard three-axis desktop machine.15Additive Manufacturing. A fully automatic non-planar slicing algorithm for the additive manufacturing of complex geometries

Non-planar slicing is still mostly a research and enthusiast pursuit. Standard three-axis printers can do limited non-planar moves if the nozzle doesn’t collide with already-printed material, but the technique really comes into its own with multi-axis machines that can tilt and rotate the print head or the build platform. Some recent work uses neural networks to define a continuous scalar field around the model, extracting curved isosurfaces from that field to generate printing layers, which allows the technique to handle models with complex and varied topologies.16ACM Transactions on Graphics. Neural Slicer for Multi-Axis 3D Printing

Direct Slicing and Skipping the Triangle Mesh

There’s another way to rethink the slicing pipeline entirely. Standard slicing begins with an STL or similar triangle-based mesh, but for certain geometries, especially mathematically defined lattice structures, you can skip the mesh step altogether. Direct slicing, sometimes called STL-free slicing, generates layers and toolpaths directly from the mathematical functions that define the shape, avoiding the intermediate step of converting smooth surfaces into triangles.17Advances in Engineering Software. Tool Path Master Suite (TPMSuite): A Direct Slicing Software for Laser Additive Manufacturing of Triply Periodic Minimal Surface Lattices

This matters because triangle meshes are an approximation. For complex lattice structures used in medical implants and lightweight aerospace parts, the mesh can become enormous, slow to process, and introduce geometric errors. Direct slicing sidesteps those issues by working with the exact geometry. It’s a niche technique today, mostly relevant to laser-based additive manufacturing and highly complex lattice structures, but it illustrates how the slicing step continues to evolve beyond the triangle-mesh paradigm that has dominated 3D printing since its earliest days.

Slicing Beyond Desktop Plastic Printers

Everything discussed so far applies most directly to FDM printers that melt plastic filament, which is what most people picture when they think of 3D printing. But slicing is just as critical for other additive manufacturing technologies, and the challenges change with the material.

Metal 3D printing, for instance, requires slicers to account for welding parameters, heat buildup, and substrate cooling. An open-source adaptation of the CuraEngine slicer was developed specifically for gas metal arc welding (GMAW) printing, adding features like variable inter-layer pauses for cooling, GPIO pin control for turning the welder on and off, and optimization of wire feed speed and voltage based on printing speed and layer height.18Additive Manufacturing. Slicer and process improvements for open-source GMAW-based metal 3-D printing The core slicing concept is the same, but the slicer needs to understand welding physics instead of plastic extrusion physics.

Concrete 3D printing faces a different set of constraints: layers are thick, the material is heavy and partially fluid, and structural integrity demands attention to how layers interact under compression. Slicing frameworks for large-scale concrete printing incorporate adaptive layer generation, variable print heights, and user-defined bracing patterns, supporting planar, multi-planar, and non-planar approaches depending on the geometry of the structure being built.19Procedia Structural Integrity. An Integrated Geometry Slicing & 3D Scanning Framework for 3D Concrete Printing When you’re printing a wall or a load-bearing column, the slicer’s job expands to include structural analysis concerns that a desktop slicer never has to consider.

Common Misconceptions About Slicing

One widespread misunderstanding is that slicing is just the “export” step, a mechanical conversion that doesn’t require much thought. In reality, slicing is where most of the print quality and performance decisions happen. Two users can take the same model, the same printer, and the same filament and get dramatically different results purely based on slicer settings. Layer height, infill, speed, temperature, retraction, cooling, and support placement all interact, and dialing them in for a specific part is where experience shows.

Another misconception is that higher infill always means a stronger part. As discussed earlier, wall count and infill pattern often matter more than raw infill percentage. A part with four walls and 20 percent gyroid infill can outperform a part with two walls and 50 percent rectilinear infill, depending on the type of load. The slicer gives you these levers, but it doesn’t tell you which combination is best for your use case. That judgment still falls to the user.

People also tend to assume that all slicers produce equivalent output for the same settings. They don’t. Different slicers use different path-planning algorithms, different approaches to generating supports, and different default behaviors for things like seam placement, bridging strategies, and acceleration profiles. Switching from one slicer to another with “the same” settings can produce noticeably different prints. The G-code a slicer generates is affected by many factors including the model, the slicer itself, and the numerous user-configurable parameters that control the slicing process.20Proceedings of the ACM on Programming Languages. Formalizing Linear Motion G-Code for Invariant Checking and Differential Testing of Fabrication Tools

Tuning Your Slicer for Specific Materials

Material choice complicates every slicing decision. PLA, the most common desktop filament, is forgiving. It prints at relatively low temperatures, doesn’t warp much, and works fine with default slicer profiles. PETG is a bit trickier, requiring higher temperatures and slower retraction to avoid stringing. ABS warps aggressively and needs an enclosed build chamber and heated bed, which means your slicer’s cooling fan settings need to be dialed way down compared to PLA. TPU, a flexible filament, prints slowly and resists retraction, so most slicer profiles disable retraction entirely and slow the print speed to a crawl.

The influence of slicing parameters becomes even more pronounced with composite and specialty filaments. In continuous flax fiber composites, the number of deposited layers on top of each other affected strength by a remarkable amount: printing ten layers over the same area rather than one increased the tensile modulus by about 50 percent and strength by about 73 percent, purely due to the compaction effect each new layer exerts on the one beneath it.21Composites Part B. Tailoring the mechanical properties of 3D-printed continuous flax/PLA biocomposites by controlling the slicing parameters That kind of relationship between slicing parameters and mechanical performance goes far beyond what a default slicer profile can anticipate, and it highlights why understanding what the slicer is actually doing, rather than just accepting its defaults, matters for anything beyond decorative prints.

For anyone getting started, the best approach is to use your slicer’s built-in profiles as a starting point and then adjust one variable at a time. Print a calibration cube, measure it, tweak layer height or temperature, print again. The slicer is the single most powerful tool in the 3D printing workflow, and learning to use it well will improve your results more than any hardware upgrade.