Documentation & page contents

Get a Pattern in · 07 · from_sketch

Annotate a sketch, then revise

You have a drawing. Annotate, revise the cut, drape a blank.

You have

a drawing

You want

Annotate, revise the cut, drape a blank

You have a drawing. You want a Pattern, then a measured change to the cut (here: drop the front neck 1.5 cm).

Stops on a draped blank. Dye and print are dress_blank.

Steps

  1. pattern.annotate_sketch pattern
  2. pattern.revise pattern
  3. pattern.preflight
  4. construction.propose construction
  5. body.select body
  6. material.get material
  7. garment.drape run

Sample inputs

KeyValue
sketchsamples/patterns/sketch/hoodie_front_sketch.png
bodysamples/bodies/male_m_native_straight.json
material_idfleece_250gsm

Expected fixture checks

These are the checks declared by this sample, not a captured production result. Referenced sample files are included in the gated SDK checkout.

{
  "run.phase": "draped"
}

Run

Obtain and install the SDK before running this example from its root directory.

python examples/run_workflow.py from_sketch