Premium apps Part of Threadsmith

Threadsmith Marker Layout

Lay sewing pattern pieces on your fabric width with the grain respected; get length and efficiency.

More options

Array of {name, polygon: [[x, y], …] or path: "M … Z", grain (degrees, 90 = along +y), quantity, pair (true = half mirrored), fold: [[x1, y1], [x2, y2]]}. The whole result of threadsmith-pattern-block ({"pieces": […]}, in mm) is accepted too.

Blocks (when drafting)

Empty = 1.5 cm or 5/8 in.

Empty = 4 cm or 1 1/2 in.

Selvage to selvage minus edges you cannot use. Empty = 140 cm or 54 in.

Empty = 0.

Try an example: Known optimum: four 50 × 25 cm rectangles on 100 cm fill it completely · Skirt and bodice blocks on 140 cm folded fabric · Own pieces: a yoke on the fold and a pair of pocket bags (inches)

More about this tool

How it works

Places pattern pieces on a fabric of the width you have, as tightly as a deterministic bottom-left fill can: every piece keeps its grainline along the selvage (turned 180° when allowed, 90° only for cross-grain cutting, never for napped or one-way fabric), pairs get a mirrored copy, and pieces cut on the fold are unfolded on open fabric or put against the fold of folded fabric. You get the marker length — how much fabric to buy — the efficiency (piece area ÷ fabric area), the lower bound, the position and turn of every piece, a picture of the layout and an SVG or DXF of the marker. Pieces come from a JSON list or are drafted on the spot from bust, waist and hip.

  • Every piece is turned so its grainline runs along the selvage (the marker length). Allowed turns: 0° and 180° (only 0° on napped or one-way fabric), plus 90° and 270° when cross-grain cutting is allowed. Pairs get a mirrored copy for every second piece; on folded fabric each placement cuts two layers, so pairs need half the copies, and fold pieces must lie with their fold edge on the fabric fold.
  • Fabric and pieces are rasterised (2, 5 or 10 mm cells). A piece’s footprint is conservative: every cell the polygon (dilated by half the gap) touches is taken, so placed pieces never overlap. Bottom-left fill: each piece goes to the position with the smallest marker end, then the leftmost, then the lowest free spot, over all its allowed turns.
  • Three deterministic orders are tried (by area, by length, by width, largest first) and the shortest marker is kept. The result is verified exactly: no two cutting lines cross or contain each other and every piece lies within the usable width.
  • Efficiency = sum of piece areas ÷ (marker length × usable width). The lower bound (area ÷ width) shows how far any layout could get; real shapes rarely reach it.

Lay the pieces out on the real fabric before cutting: check the print direction, stripes and checks (matching is not planned), and buy a little extra for shrinkage and straightening the grain.

Sources

Part of Threadsmith

Related tools

How to use the Threadsmith Marker Layout

Lay sewing pattern pieces on your fabric width with the grain respected and find out how much fabric to buy and how efficiently it is used.

What it is for

Before you buy fabric you want to know how much you need. The pattern envelope gives one figure for many sizes and widths; your own pattern (or your size) needs its own answer. In production the same question is called a marker: the plan of where every piece sits on the fabric.

This tool lays the pieces out on the width you have. Every piece keeps its grainline along the selvage; it may be turned 180° unless the fabric is napped or has a one-way print, and 90° only when you allow cross-grain cutting. Pairs get a mirrored copy, pieces cut on the fold are unfolded on open fabric or put against the fold of folded fabric. You get the marker length — the fabric to buy — and the efficiency, the share of the fabric that ends up in pieces.

Pieces come either from a JSON list (polygons or SVG paths in cm or inches, or the whole result of the Pattern Block Drafter) or are drafted on the spot from bust, waist and hip. The layout is a fast deterministic heuristic, not a mathematically optimal nesting, and it does not match stripes or checks.

Worked example

The first example is a known answer: four 50 × 25 cm rectangles on 100 cm wide fabric. They fill the fabric completely, and the tool finds it — marker length 50 cm, efficiency 100 %, lower bound 50 cm.

For a real garment we drafted skirt, bodice and sleeve blocks for bust 104, waist 88, hip 112 cm and laid them on 150 cm fabric:

  • open, single layer: 162.8 cm, efficiency 69.61 %, 7 pieces (the skirt back and the sleeve twice, one mirrored);
  • folded lengthwise: 163.1 cm on a 75 cm usable width, 69.5 %, 5 placements because each cut goes through two layers;
  • open with cross-grain allowed: 151.1 cm, 75.02 %.

So for this outfit about 1.65 m of 150 cm fabric is enough, and a fabric without a direction would save another 12 cm.

How to read the result

  • Marker length is what you buy (add a little for shrinkage and straightening the grain).
  • Efficiency = area of all pieces ÷ (length × usable width). Garment pieces with curves typically land between 65 and 85 %.
  • Lower bound = piece area ÷ width. No layout can be shorter; the gap to the real length shows how much the shapes waste.
  • Placements give the corner position and the turn of every piece, with (R) marking mirrored copies in the picture.
  • The exact check confirms that no two cutting lines overlap and every piece lies within the width.

Tips and common mistakes

  • Enter the usable width: selvage to selvage minus the edges you will not cut into.
  • Use folded fabric when your pattern has pieces on the fold — it saves cutting each pair separately.
  • Tick Napped or one-way fabric for velvet, corduroy, satin with sheen or directional prints; the layout gets longer but every piece points the same way.
  • A finer raster (2 mm) packs a little tighter but takes longer; 5 mm is a good default.
  • A gap of a few millimetres makes the cutting easier with scissors.

FAQ

Can I paste the result of the Pattern Block Drafter?

Yes. Paste the whole result object; its cutting lines are in millimetres and the fold lines and pairs are taken over.

Why are some pieces shown once although I cut two?

On folded fabric one placement cuts both layers. On open fabric you see every copy.

Why is my piece rejected as too wide?

With the grain along the selvage, its width across the grain must fit the usable width. Allow cross-grain placement or use wider fabric.

Is the layout optimal?

No — it is a deterministic bottom-left fill that tries three piece orders and keeps the shortest result.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://threadsmithmarkerlayout.usefulweb.app/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://threadsmithmarkerlayout.usefulweb.app/mcp · tool name threadsmith_marker_layout
Example request
curl -s -X POST https://threadsmithmarkerlayout.usefulweb.app/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"source":"pieces","units":"cm","pieces":"[{\"name\":\"Panel\",\"polygon\":[[0,0],[50,0],[50,25],[0,25]],\"grain\":0,\"quantity\":4}]","fabricWidth":100}'
Feedback · ideas & bug reports welcome