Edge · 3D graphics

On this page 8

In 3D graphics, an edge is the straight line segment that connects two vertices of a polygon mesh. Edges form the boundaries of faces, so every triangle has three edges and every quad has four. In the field of 3D graphics & animation, the edge is one of the three basic mesh components, together with the vertex and the face, and it carries much of the information that decides how a surface is shaded, subdivided, deformed and unwrapped.

An edge has no thickness and no surface of its own. It is a topological link: it records which two vertices belong together and which faces lie on either side. That small piece of connectivity data is what turns a cloud of points into a continuous, editable surface.

How an edge is defined in a polygon mesh

An edge is defined by an unordered pair of vertex indices, and its geometric position follows entirely from the coordinates of those two vertices. Moving either vertex moves the edge; the edge itself stores no position. Mesh data structures differ in how explicitly they store edges, which affects how quickly a program can answer questions such as which faces share a given edge.

Simple file formats such as OBJ store only vertices and faces, so edges are implicit and must be derived when the file is loaded. Modeling applications usually build an explicit edge list or a half-edge structure, in which each edge is split into two directed halves, one for each adjacent face. The half-edge approach makes neighborhood queries fast, which is essential for tools such as loop selection and subdivision.

The table below compares common ways of representing edges in mesh data.

Data structureHow edges are storedTypical use
Face-vertex listImplicit, derived from face cornersFile exchange, GPU index buffers
Edge listExplicit pairs of vertex indicesWireframe display, simple editors
Half-edge structureTwo directed half-edges per edgeModeling tools, subdivision
Winged-edge structureOne record linking faces and neighborsOlder solid modelers, research
Edge representation in common mesh data structures

Edge types by the number of adjacent faces

The most important property of an edge is how many faces share it, because that count decides whether the surface is a clean, closed shell. A well-formed edge inside a surface has exactly two adjacent faces. Any other count signals an open border or a topology problem that can break later steps of the 3D pipeline.

Edge typeAdjacent facesMeaningConsequence
Manifold edge2Normal interior edgeSafe for all operations
Boundary edge1Open border of a surfaceHole or intended opening
Non-manifold edge3 or moreFaces fan out like book pagesFails booleans and 3D printing
Wire edge0Edge without any faceInvisible in renders, causes errors
Edge classification by face adjacency

A closed, watertight mesh contains only manifold edges. Boundary edges are acceptable on intentionally open objects such as a plane, a leaf card or a sleeve opening, but non-manifold and wire edges are almost always mistakes left by deleted faces, careless extrusions or imported data.

How edges control shading and surface detail

Edges decide where a surface looks hard or soft when it is rendered. With smooth shading, vertex normals are averaged across an edge, so light flows over it without a visible break. Marking an edge as sharp or split keeps separate normals on each side, which produces a crisp crease even on a low-poly model.

Several per-edge attributes carry this information. The dihedral angle, the angle between the two faces that meet at an edge, is the basis of auto-smoothing: edges with an angle above a threshold, commonly about 30 to 60 degrees, are treated as hard. Other attributes control subdivision and texturing.

AttributeTypical valuesWhat it affects
Sharp or hard edgeOn or offSplit normals and visible crease
Crease weight0.0 to 1.0Tightness after subdivision
UV seamOn or offWhere the mesh is cut for unwrapping
Bevel weight0.0 to 1.0Width of a procedural bevel
Auto-smooth angleAbout 30 to 60 degreesWhich edges shade as hard
Common edge attributes and their effect

In game engines, a hard edge or UV seam duplicates vertices on the GPU, because each side needs its own normal or texture coordinate. Artists therefore align hard edges with UV seams to avoid unnecessary vertex splits and the extra memory they cost.

Edges compared with vertices and faces

Vertices, edges and faces are three levels of the same mesh, and each one answers a different question about the shape. Vertices hold position, edges hold connectivity, and faces hold the surface that is actually rendered. Most modeling tools offer a separate selection mode for each level.

ComponentDimensionStoresTypical edits
Vertex0D pointPosition, normals, UVs, weightsMove, merge, weld
Edge1D segmentConnectivity, crease, seam flagsBevel, loop cut, slide, mark sharp
Face2D surfaceNormal, material assignmentExtrude, inset, delete
Vertex, edge and face as mesh components

For a closed mesh without holes, the counts follow the Euler characteristic: vertices minus edges plus faces equals 2 for a sphere-like shape. A cube has 8 vertices, 12 edges and 6 faces. When the formula fails on a mesh that should be closed, it often reveals hidden holes or stray edges.

Working with edges in practice

Edge-level editing is the core of polygon modeling, because adding and moving edges is how detail is introduced where it is needed. Most structural decisions on a model are expressed through edges rather than individual vertices.

  • Edge loops and rings select connected chains of edges, which makes it quick to add or remove resolution across a whole section of a model.
  • Bevel and chamfer replace a single sharp edge with narrow faces, so highlights catch the corner as they would on a real object.
  • Edge slide moves an edge along its neighboring faces without changing the silhouette.
  • Support edges placed close to a border keep the shape tight when a subdivision surface is applied.
  • Wireframe view displays only edges, which is the fastest way to judge density and flow.

The distribution of edges, often called edge flow, matters most on models that deform. Edges that follow the direction of muscles and joints let a character bend cleanly, while poorly placed edges cause pinching and collapsing volume during animation.

Common edge problems and how to fix them

Most edge problems come from modeling operations that leave stray geometry behind. They are often invisible in a shaded viewport and appear only when the model is subdivided, baked, exported or printed.

SymptomLikely causeFix
Dark seam across a smooth surfaceEdge marked sharp or split normalsClear sharp flag, recalculate normals
Boolean or print failureNon-manifold edgesSelect non-manifold, rebuild faces
Visible slit in the renderDuplicate vertices along an edgeMerge by distance
Rounded corners after subdivisionMissing support edgesAdd edge loops or crease weight
Shading streaks on flat areasLong thin triangles from bad edgesReroute or dissolve edges
Typical edge errors, causes and fixes

Explained without jargon

Imagine a 3D model as a wire sculpture covered with fabric. The points where wires meet are the vertices, the patches of fabric are the faces, and each straight wire between two points is an edge.

Edges decide where the shape bends and where it stays sharp. A cube looks crisp because its edges mark clear corners, while a ball looks round because many small edges blend together. Getting the edges right is a large part of making a model look clean.

A typical use case

A product visualization artist is modeling a smartphone for a marketing render. The base shape is a simple box of about 200 faces, but at render resolution the corners look unnaturally razor-sharp and the side buttons blend into the frame.

The artist selects the outer frame edges and applies a two-segment bevel of about 0.3 mm, then marks the edges around the camera opening as sharp so the auto-smooth angle of 40 degrees keeps them crisp. Support edges are added near the screen border so a subdivision surface keeps the glass flat. A quick check for non-manifold edges finds two stray wire edges left over from an earlier cut, which are deleted.

The final model renders with soft, believable highlights along every corner, and the clean edge structure lets the same file be exported to a real-time viewer without shading artifacts.