PatchFlow

AFX LAB in Modeling


User documentation

PatchFlow Version 0.1

1. Requirements

  • Blender 5.1 and up
  • Windows 64-bit.
  • The distributed ZIP includes the tested CPython 3.13 SciPy runtime.
Platform scope
The current release package is built for Windows x64. Do not install this package on macOS or Linux.

2. Installation

  1. Download the PatchFlow ZIP. Do not extract it.
  2. In Blender, open Edit → Preferences → Add-ons.
  3. Choose Install from Disk and select the ZIP.
  4. Enable PatchFlow – Pattern-Based Patches.
  5. Open a 3D Viewport, press N, and choose the Patch tab.

Restart Blender after replacing an older PatchFlow installation. This ensures the bundled native Python dependencies are released and reloaded cleanly.

3. Starting a new retopology

  1. Select the sculpt, scan, or other reference mesh in Object Mode.
  2. Open the Patch sidebar and click Start Sketch Session.
  3. PatchFlow creates PatchFlow_Retopo, activates it, and enters Edit Mode.
  4. Select the Boundary tool and Ctrl+drag on the model to draw connected sides.
  5. Close a valid 2–6 sided region to generate its quadrangulation preview.
  6. Click the patch to activate it, inspect or change its pattern, then press M or click Apply.
Surface binding
The selected source is used as the drawing and projection surface. The Generate section shows the active Surface object and allows it to be replaced.

4. Continuing an existing retopology mesh

  1. Select the existing retopology object and enter Edit Mode before starting PatchFlow.
  2. Start the session. PatchFlow reuses the active Edit Mode mesh and preserves its existing geometry.
  3. Confirm the detected reference object in Generate → Surface. Detection checks the saved binding, a Shrinkwrap target, another selected mesh, then the densest visible mesh.
  4. To continue from an open border, select a non-branching boundary edge chain and click Trace Selected Boundary.
  5. Draw the remaining sides. New stroke endpoints can snap to vertices already in the retopology mesh.
  6. Apply the finished patch. Its border is welded using Apply Weld Distance.
Trace requirements
The selected edges must form one or more open or closed, non-branching boundary chains. A selection with a vertex connected to more than two selected edges is skipped.

5. Boundaries, dividers, and edge counts

Drawing

Ctrl+drag always creates the active Boundary or Flow stroke. Plain dragging edits existing controls. Input is sampled in screen space for consistent drawing at different model scales.

Valid regions

  • A patch must have 2–6 logical sides.
  • The total boundary edge count must be even.
  • Boundaries must not self-intersect or fold over themselves.
  • A stroke drawn from one boundary sample to another can divide a large region into smaller patches.

Changing counts

Hold Shift while hovering a stroke count to reveal its arrows. Click the number to type an exact value from 1 to 50. Hold Alt while changing it to synchronize the corresponding loop chain through adjacent patches. Before drawing, hold F and drag horizontally to change the active tool’s starting count.

Split pieces of one original side are treated as a logical chain. Their combined count is distributed proportionally so a divider does not invalidate an otherwise compatible patch.

6. Pattern libraries and selection

Library Purpose
PatchFlow Recipes PatchFlow-authored procedural families plus generated flow-query variants. This is the default general-purpose library.
Research 20 Families The compact pattern families from Pattern-Based Quadrangulation for N-Sided Patches, included with written permission.
DDQ Learned Collection 30,000+ validated convex 2–6 sided learned templates from Data-Driven Interactive Quadrangulation, included with written permission and queried through a compact SQLite index.

Choosing a pattern

Hovering previews a patch in yellow. Click the patch to make it active in orange. Use the scrubber arrows, wheel inside the control, or horizontal center drag to browse compatible results. Clicking the center without dragging opens exact pattern-number entry. Tab remains a secondary shortcut for the active patch.

DDQ does not expose all 36,260 entries as a linear list. PatchFlow queries boundary-compatible candidates and presents a bounded, quality-ranked result set. Flow guides further filter that set by compatible polychord structure and guide fit.

7. Flow guides

Select Flow from the toolbar or press Q to switch between Boundary and Flow. Draw a guide with Ctrl+drag. A guide may cross one patch, continue across several connected patches, form a loop, or end inside a region when the selected pattern supports it.

Pink is the artist-drawn guide. Amber paths show the matching quad-strip centerline. PatchFlow filters candidates by polychord compatibility, fits the candidate on the reference surface, and ranks the result using guide error and quad quality. Shared crossings are canonicalized so guides can continue through patch seams.

Guide samples
The dense drawn trace keeps the line visually smooth. The guide’s editable sample count is a smaller solver representation. Increasing it can describe complex curvature, but six well-placed boundary samples can still produce clean results when the region and pattern are compatible.

8. Symmetry and the center seam

Enable local X, Y, or Z symmetry in Generate. PatchFlow reflects strokes, patch previews, matched flow paths, and applied geometry without solving the mirrored side a second time.

  • Center Seam Lock controls capture distance. 0 disables it, 1.0 uses 12 pixels, and 2.0 uses 24 pixels.
  • New and moved endpoints snap exactly to the symmetry plane.
  • Junctions already on the seam remain locked while moved.
  • A Bézier handle belonging to a seam endpoint stays in the symmetry plane, maintaining a continuous mirrored tangent.
  • Mirrored faces reverse their winding before Apply, and coincident seam vertices are welded.
  • Symmetry Opacity independently fades the mirrored preview. Its default is 35% of the source preview alpha.

9. Pole and singularity controls

Orange points identify irregular vertices in the generated topology. Drag a pole or supported gold pair handle to translate the singularity structure through local topological moves. Patterns with two supported pairs can expose a cyan center control for changing their separation. Press P over a regular patch to request a pole-bearing alternative where supported.

These controls change the topology layout rather than merely offsetting displayed vertices. Boundaries and guide connectivity remain constrained.

10. Relax brush and even spacing

Even spacing after fitting performs pattern-aware row fairing after projection. It preserves boundary samples, guide constraints, explicit pole edits, and valid quad orientation.

For local correction, select Relax and paint over the active preview:

  • F+drag changes brush radius.
  • Shift+F+drag changes brush strength.
  • Radius, Strength, and Steps are also available in the sidebar.
  • The brush moves only affected interior vertices, rejects folded proposals, and projects accepted movement back to the reference surface.
  • One brush drag creates one undo step.

11. Apply, welding, and mesh ownership

Apply commits only the active orange patch. Other patches remain preview geometry. Applied quads are appended to the active Edit Mode output and welded to coincident existing vertices within the configured distance.

PatchFlow tags geometry created by the current saved session. Custom sketch undo and redo can therefore rebuild those patches without clearing geometry that existed before the session. The add-on does not reinterpret or regenerate arbitrary pre-existing topology.

Weld distance
Use the smallest distance that reliably joins intended borders. An excessive value can collapse small features; PatchFlow rejects an applied patch when welding would destroy its quad structure.

12. Viewport display and preferences

Viewport toggles

Quad preview, faces, vertices, strokes, labels, guide points, poles, and matched flow paths.

Appearance

Face opacity, symmetry opacity, quad wire width, boundary width, and flow-guide width.

On-screen controls

Pattern scrubber placement, panel opacity, scrubber scale, and count-control scale.

Add-on preferences

Theme, top or bottom toolbar placement, and simplified tool hints.

W toggles preview faces. V toggles preview vertices.

13. Hotkey reference

Input Action
Ctrl + drag Draw the active boundary or flow stroke.
Plain left-drag Move a stroke, endpoint, junction, curve handle, pole, or supported pole-pair control.
Q Switch between Boundary and Flow.
F + drag Change the next stroke count; in Relax, change brush radius.
Shift + F + drag Change Relax strength.
Shift + hover count Reveal the stroke count editor.
Alt while changing count Synchronize the matching loop chain.
Tab Choose the next compatible pattern for the active patch.
P Request supported pole controls for the hovered patch.
M Apply the active patch.
X / Delete Delete the hovered stroke.
Backspace Remove the last stroke.
Ctrl+Z Undo a PatchFlow edit.
Ctrl+Shift+Z Redo a PatchFlow edit.
W Toggle preview faces.
V Toggle preview vertices.
Esc End the session and save its editable state in the .blend.
Right-click Cancel the current drag; when idle, end and save the session.

14. Undo, saving, and resuming

Each completed manipulation, brush drag, count edit, pattern change, and Apply operation creates a PatchFlow history checkpoint. The history is separate from viewport redraw and does not trigger work while a control is moving.

Ending the modal session stores editable state in the active Scene. Save the .blend normally. Starting PatchFlow again offers Resume Saved Sketch, restoring strokes, guides, curve handles, pattern choices, poles, relax settings, output binding, reference surface, and applied-patch records.

Discard Saved Sketch removes the editable session record. It does not delete ordinary mesh work.

15. Viewport diagnostics

PatchFlow places an issue message beside the affected region and renders the responsible strokes in red. Common causes include:

  • Odd total boundary count.
  • Unsupported side count.
  • Self-intersecting or folded boundary.
  • No non-folding pattern fit for the current counts and geometry.
  • A flow guide that no compatible candidate can follow.
  • A weld distance that collapses a generated feature.

Adjust the marked stroke, change its count, divide the region, simplify the guide, or select another pattern. The warning clears automatically after a valid solution is found.

16. Performance behavior

PatchFlow avoids topology solving during live drawing and direct dragging. While the pointer moves, it updates lightweight controls and keeps the last preview frozen. Region detection, database queries, pattern fitting, surface projection, spacing, and snapping finalization run when the edit is placed.

Unchanged regions reuse topology, boundary, projection, flow-query, spacing, and GPU caches. DDQ queries expand a bounded set of indexed candidates rather than loading the complete collection into memory. The private surface BVH is built when projection is first needed.

For dense scans
Keep unrelated heavy objects hidden, divide very large regions into manageable patches, and avoid unnecessarily high boundary or guide sample counts. Applied geometry becomes normal mesh data and is excluded from future patch solving.

17. Known limitations

  • Patches require 2–6 logical sides and an even total boundary count.
  • Strongly concave, self-intersecting, or folded regions may need internal dividers.
  • Thin or tightly folded surfaces can make nearest-surface projection ambiguous.
  • Boundary samples remain fixed during automatic spacing, so incompatible counts can limit uniformity.
  • Not every flow sketch has a compatible topology in every selected library.
  • Trace Selected Boundary accepts non-branching boundary chains; it does not convert an arbitrary existing mesh into a complete PatchFlow stroke graph.
  • The current release package supports Windows x64 only.

18. Troubleshooting

No patch appears

Confirm the boundary is closed, has 2–6 logical sides, and has an even total count. Look for red strokes and the viewport issue message. Try adding a divider on a highly concave region.

The wrong model is used as the surface

Choose the correct object in Generate → Surface. If continuing an existing mesh, a Shrinkwrap modifier targeting the sculpt provides the strongest automatic hint.

Apply does not weld to existing topology

Ensure the new border samples actually coincide with existing vertices. Trace the selected border or snap endpoints to its vertices. Increase Apply Weld Distance only slightly.

A flow guide produces distorted or irregular quads

Reduce Flow fitting, simplify the guide, try another compatible pattern, or divide the patch. Verify that the boundary counts leave enough rows for the requested crossing.

Drawing feels slow on the first completed patch

The first patch operation may build the reference-surface projection index and query a pattern library. Subsequent edits reuse those structures. The initial freehand stroke itself uses Blender’s evaluated raycast and should remain responsive.

The add-on fails after an update

Disable PatchFlow, restart Blender, remove the previous add-on folder, install the new ZIP, and restart once more. 

19. Research attribution and third-party components

Pattern-Based Quadrangulation for N-Sided Patches
Kenshi Takayama, Daniele Panozzo, and Olga Sorkine-Hornung.
https://igl.ethz.ch/projects/patch-quad/

PatchFlow includes a selectable implementation of the twenty compact pattern families with written permission from the authors.

Data-Driven Interactive Quadrangulation
Giorgio Marcias, Kenshi Takayama, Nico Pietroni, Daniele Panozzo, Olga Sorkine-Hornung, Enrico Puppo, and Paolo Cignoni.
https://igl.ethz.ch/projects/ddq/

PatchFlow includes a compact converted index of 36,260 learned templates with written permission from the complete author group and database creator. PatchFlow supplies its own Blender integration, query layer, topology expansion, fitting, caching, and interaction code. Original repository source, executable binaries, artist meshes, and the original large database are not distributed.

The Windows package includes SciPy 1.16.3 and its license notices. NumPy is supplied by Blender. Consult THIRD_PARTY_NOTICES.md in the add-on package for the complete notices.

PatchFlow documentation · Replace all PLACEHOLDER-DOC-*.gif sources with final media before publication.
$29$18.85

Have questions about this product?
Login to message

Details
Sales 10
Published about 17 hours ago
Blender Version 5.1 - 5.3
Extension Type N/A
License GPL
Discover more products like this

quads patchflow patches modeling retopology sketch quadrangulation