Sub topic 4
Marking Seams to Cut the Mesh
This chapter assumes you can move around the 3D viewport, switch between Object Mode and Edit Mode, and select vertices, edges and faces. It also assumes you know what a material is. The previous chapters covered what UV coordinates are and how the Image Texture node uses them. Here you decide where the mesh gets cut so that it can lie flat.
Why a mesh must be cut
A UV map is a flat 2D layout, so every part of the surface needs a flat position in it. Some shapes can be flattened without cutting. A cylinder's side wall is one example, once you open it along its length. Most shapes cannot. You can't press a sphere flat without stretching or tearing it, which is why world maps distort the polar regions.
A seam is an edge that you mark to tell Blender: "Cut here when unwrapping." Seams control where the surface is split into pieces, called UV islands. Each island is a patch of faces that stays connected and flattens as one unit. Edges that are not seams stay joined in the UV layout.
A seam does not change the 3D mesh. No vertices are split and no geometry is added. A seam only changes how the unwrap treats the edge. The mesh stores the flag on the edge itself, and the unwrap operation reads it later.
What a seam changes in the UV map
Recall that UV coordinates belong to face corners (loops), not to vertices. A vertex on a seam can therefore have two or more different UV positions, one for each face corner around it. On one side of the seam, the corner sits at the edge of one island. On the other side, the same 3D vertex appears at the edge of a different island.
When you look at the textured model in the viewport, the image looks continuous across a seam only if the two island borders show matching pixels. If they don't, you see a visible line in the texture. Seams that are placed badly or textured carelessly show up as lines in the final render.
Marking and clearing seams
Work in Edit Mode, with the edge you want to cut selected.
- Select the object and press
Tabto enter Edit Mode. - Press
2to switch to Edge Select mode. In vertex or face mode you can still mark seams, but you get the edges around the selection, which is harder to predict. - Select the edges that form the cut.
Alt+click on an edge selects the whole edge loop. This is the fastest way to cut around a cylinder or along a ring.Shift+click adds edges to the selection. - Open the Edge menu in the 3D Viewport header, or press
Ctrl+E, and choose Mark Seam.
Seams show up as red lines. If you don't see them, open the Overlays popover and check that Seams is enabled in the Mesh Edit Mode section.
To remove a seam, select the same edges and choose Edge > Clear Seam. You can also select edges and use Select > Select Similar > Seam to select every edge that is already a seam. This is useful when you want to inspect or clear them all at once.
Use these two checks while you work:
- Seams can be marked in the UV Editor too. In the UV Editor, with sync selection on, you can select edges and mark a seam from the UV menu. Marking in the 3D viewport is easier to understand because you see the cut on the model itself.
- Seams are not the same as sharp edges. Mark Sharp affects shading, and Mark Seam affects UV unwrapping. They are separate flags. An edge can have one, both or neither.
Letting Blender generate seams from an existing layout
If you already have a UV layout and want seam marks that match it, select the faces and use UV > Seams from Islands in the UV Editor. Blender marks each island border as a seam. This helps when you inherit a model whose seams were never marked and you want to keep the existing layout when you unwrap again.
Where the cuts go
A good seam does two jobs. It lets the surface open up enough that it flattens with little stretching. It also hides the visible line that appears at the border of two islands. The rules below cover both goals.
| Situation | Where to put the seam | Reason |
|---|---|---|
| Cylinder or tube | One edge loop-free cut along the length, plus a loop at each cap | The side wall opens into a rectangle and each cap becomes a disc |
| Cube or box | Seven edges that form a cross-shaped net | A cube needs 7 cuts to flatten into six connected squares |
| Sphere | One cut from pole to pole, like a meridian on a globe | Opens the sphere into a long shape, with some stretch near the poles |
| Character or organic shape | Along the inside of arms and legs, under the chin, behind the head | These areas are out of the way of the camera |
| Hard-surface object | Along sharp edges and creases | The surface already changes direction, so a break in the texture looks natural |
| A texture that changes at a border | Where the material or color changes | The visible break hides inside the existing change |
Two general principles apply to all of these.
- Cut where the surface is hidden or already has an edge. Seams on flat, visible, uniform areas are the most noticeable.
- Cut less when you can, but not at the cost of heavy stretching. Fewer seams mean fewer visible lines and larger islands with more usable pixels. Too few seams force the unwrap to stretch the surface to flatten it.
A cube needs seven cuts
A cube has six faces and twelve edges. To get all six faces connected in one flat piece, you keep five edges joined and cut the other seven. Any set of seven cuts that leaves the faces connected as a tree works, and the usual choice is a cross-shaped net. You can mark every one of the twelve edges instead. That is a valid choice, but it produces six separate squares. Each is stretch-free and easy to paint, but the borders are many and the texture cannot flow from one face to the next.
Unwrapping with seams
With the seams in place, select the faces you want to unwrap and press U in the 3D viewport, then pick Unwrap. The default method is Angle Based, and Blender cuts along every marked seam. Chapter 5 covers the methods in depth. For now, the point is that the seam flags are the only cut information the unwrap uses. If no seams are marked, Blender tries to flatten the whole selection as one island and the result is often badly distorted.
The unwrap only affects selected faces. If you select a subset, only that part is re-laid out and the rest of the UV map stays as it was. This lets you refine one area without redoing the whole model.
Doing the same in Python
The seam flag is exposed as use_seam on each edge of mesh data, and as seam on a bmesh edge while the mesh is in Edit Mode. The script below marks a seam on every edge where two faces meet at more than 60 degrees. That rule finds hard creases on box-like shapes.
import bpy
import bmesh
from math import radians
obj = bpy.context.active_object
if obj is None or obj.type != 'MESH':
raise RuntimeError("Select a mesh object first.")
bpy.ops.object.mode_set(mode='EDIT')
bm = bmesh.from_edit_mesh(obj.data)
threshold = radians(60)
count = 0
for edge in bm.edges:
angle = edge.calc_face_angle(None)
if angle is not None and angle > threshold:
edge.seam = True
count += 1
bmesh.update_edit_mesh(obj.data)
bpy.ops.object.mode_set(mode='OBJECT')
print(f"Marked {count} seams")calc_face_angle(None) returns None for edges that don't have exactly two faces, such as boundary edges, so the script skips them. On the default cube, every edge is 90 degrees, so all twelve are marked. On a model with beveled or curved areas, only the real creases are marked.
After you leave Edit Mode, you can read the result from the mesh data:
import bpy
mesh = bpy.context.active_object.data
seam_edges = [e.index for e in mesh.edges if e.use_seam]
print(len(seam_edges), "seam edges:", seam_edges)Both scripts need a mesh object to be active. Run them from the Scripting workspace's Text Editor.
Common errors
- The unwrap looks stretched or crumpled. There are too few seams, or the seams don't open the shape. Add a cut where the surface curves around, then unwrap again.
- Visible lines on the model. Seams sit in the open, or the texture on the two sides of the seam does not match. Move the seam to a hidden spot or paint the texture so that matching edges line up.
- A seam is marked, but nothing changed in the UV Editor. You marked it after unwrapping. Seams only take effect the next time you unwrap. Select the faces and unwrap again.
- Seams are not visible in the viewport. The Seams overlay is off, or you are in Object Mode. Seams show only in Edit Mode.
- The seam doesn't split the island. The seam does not fully separate two regions. A seam that is a closed loop cuts a region off. A seam with a gap lets the faces stay connected through the gap. Check for a missing edge in the loop.
- Seams marked on the wrong edges because of the selection mode. Mark Seam in vertex or face mode applies to the edges of the selection. Switch to edge mode and check the selection before you mark.
Summary of the workflow
- Look at the shape and decide how it would open if it were made of paper.
- In Edge Select mode, select the cut edges, using
Alt+click for loops. - Choose Edge > Mark Seam and confirm the red lines.
- Select the faces and unwrap with
U. - Check the result with a test grid, and adjust the seams where the stretch is.
Exercise
You mark a seam on a mesh that is already unwrapped, and the UV Editor does not change. Why not, and what do you do? Also, why does a vertex on a seam have more than one UV position?
Show answer
A seam is only a flag on an edge. It takes effect when you run the unwrap, so an existing UV layout stays the same until you select the faces and unwrap again (U > Unwrap). UVs are stored per face corner (loop), not per vertex. A vertex on a seam belongs to faces in different islands, so each of its face corners has its own UV position, one per island.
Exercise
A default cube has twelve edges. How many must be marked as seams for the six faces to unwrap as one connected piece, and what happens if you mark all twelve?
Show answer
Seven edges, arranged as a net such as a cross shape, leave the faces connected through five uncut edges. If you mark all twelve, each face becomes its own square island, which is valid but creates more borders where the texture can show lines.