Fitting and decomposition
Fit turns a painted region into one shape. Auto decomposes a concave region into several convex elements. Both run on background workers with progress and Cancel, and neither changes the asset until you bake.
Fit a primitive or a convex hull
Set the hull’s type and press Fit (X); Fit All (Alt+X) fits every hull. The shape is fitted to the vertices of exactly the painted triangles.
| Type | Result |
|---|---|
| Box | A box element. Dimensions are full side lengths. Use Axis Aligned Box keeps it aligned to the mesh axes. |
| Sphere | A sphere element. |
| Capsule | A capsule element. Its length excludes the end caps. |
| Cylinder | A convex element with 8 to 24 sides (Cylinder Sides, default 16). Chaos has no separate cylinder shape. |
| Convex | One convex hull, capped at Max Vertices (default 64) while still containing every painted vertex. |
| Auto Decompose | Several convex elements from the selected backend. Use Auto (Y). |
Fit settings: Max Vertices (4 to 255, default 64), Inflate (cm, default 0), Tolerance (cm, default 0.01), Use Axis Aligned Box and Cylinder Sides.
Decompose a concave part
Set the type to Auto Decompose and press Auto. Decomposition settings show a Preset selector and a Backend drop-down; the stats bar reports the backend that actually ran and the solve time.
Presets
A preset changes only the quality values (and, for Turbo, the backend). Your other settings are kept. When the values match no preset, the selector shows a read-only Custom.
| Preset | Threshold | Max Hulls | Sample Resolution | Search Iterations | Search Depth | Backend |
|---|---|---|---|---|---|---|
| Draft | 0.1 | 12 | 500 | 20 | 3 | CoACD |
| Balanced | 0.05 | 32 | 2,000 | 60 | 3 | CoACD |
| Precise | 0.025 | 64 | 10,000 | 150 | 4 | CoACD |
| Turbo (GPU) | 0.05 | 32 | 2,000 | 60 | 3 | CuACD |
Lower thresholds and larger budgets usually mean more solver work and more elements. A hull-count budget can trade away the requested concavity accuracy; read the returned warnings.
Backends
| Backend | Where | What it does |
|---|---|---|
| CoACD | Editor and runtime | The default editor solver: patched, source-built CoACD on the CPU. |
| Native | Editor and runtime | Unreal’s own convex decomposition. Selected automatically when negative-space or walkable-clearance protection is requested. |
| Primitives | Editor and runtime | Spatial subdivision guided by measured surface error, with bounded primitive replacement and convex residuals. |
| PrimitiveFirst | Runtime default | Fits whole connected solids as boxes, spheres or capsules when they pass containment and sampled error checks, then runs CoACD on what is left, under one budget. |
| CuACD | Editor only, optional | GPU decomposition through the separately built CuACD library (NVIDIA, Windows and Linux). |
Unavailable backends stay in the drop-down, greyed out, with the reason and the fallback that will be used. A stored backend name that is neither built in nor registered is kept and shown with a warning.
The Native fallback
CoACD refuses a closed part whose surfaces pass through each other (“The mesh is not a 2-manifold!”), which is common on Geometry Collection pieces. When a backend refuses the geometry itself, the request is retried with Native Unreal and a warning names both: “CoACD could not decompose this mesh (...), so Native Unreal was used”. The request did not fail. If Native fails too, the result reports the first backend’s error. A budget the backend cannot meet is never retried, because another backend could only meet it by dropping parts.
GPU fallback
CuACD falls back to CPU CoACD, with a stated reason, for meshes with disconnected parts, for results over the hull limit and after CUDA launch failures. Different CPU and GPU hull counts are expected. In the final benchmark on an RTX 4090 laptop GPU, CuACD ran on the GPU for 3 of 12 test meshes and fell back to the CPU for the other 9.
Several parts in one region
- Separate closed shells in one request share Max Hulls, smallest shell first, so hulls a small part does not need go to the larger ones. Max Hulls must be at least the number of shells; a part is never silently dropped.
- A tight budget over several shells still fits loosely: Draft’s 12 hulls on a two-shell mug left a convex up to about 6 cm outside it. Give each part its own hull for a closer fit.
- Separate shells may overlap; each is validated on its own. Cavities are not inferred from inward-facing nested shells.
Open selections and cleanup
CoACD and CuACD expect closed, oriented, manifold geometry. Before solving, an independent cleanup welds vertices, removes bad and duplicate faces, orients closed parts and fills simple boundary loops.
- Painted hulls: Auto accepts open selections. Ragged edges, holes and one-sided strokes are closed along the paint (an open tube closes across its ends, a one-sided stroke along its chord), so a painted handle keeps its opening.
- Auto follows only what was painted. To keep a cup’s cavity open, paint inside it too, or press Grow until the whole part is selected.
- Every painted triangle gets collision. Paint with no volume of its own (a single face) becomes a thin layer just inside the mesh; thin spots extend a neighbouring convex or get a thin convex of their own. If Max Hulls leaves no room, a warning says how many triangles have no collision.
- Recipes and runtime requests still need geometry that can be closed. Whole meshes close their open holes and split vertices where parts touch at one point.
Decomposition settings
| Setting | Default | Meaning |
|---|---|---|
| Backend Name | CoACD | The solver. Runtime settings default to PrimitiveFirst. |
| Threshold | 0.05 | Concavity tolerance, 0.001 to 1. Lower is closer and slower. |
| Max Hulls | 32 | Element budget, 1 to 1,024. |
| Max Vertices | 64 | Vertex cap per convex, 4 to 255. |
| Sample Resolution | 2,000 | Surface samples, 100 to 1,000,000. |
| Search Iterations | 60 | Solver search budget, 1 to 10,000. |
| Search Depth | 3 | Solver search depth, 1 to 10. |
| Seed | 42 | Random seed, for repeatable results. |
| Preprocess | On | Run the cleanup pass first. |
| Prefer Primitives | Off | Post-process: replace convex elements by primitives when they fit within the tolerance. |
| Primitive Tolerance | 0.25 cm | How far a replacing primitive may differ. |
| Merge Tolerance | 0 | Merge neighbouring convex elements, 0 to 1. Check openings after changing it. |
| Min Volume | 0.001 | Drop elements smaller than this. |
| Protect Negative Space | Off | Keep sampled free space clear (uses Native). |
| Negative Space Radius | 5 cm | Radius of the protected samples. |
| Protect Walkable Clearance | Off | Keep sampled space above upward-facing surfaces clear through every post-pass (uses Native, one closed part at a time). |
| Walkable Slope Degrees | 45° | Steepest surface counted as walkable, 0 to 89. |
| Walkable Clearance Tolerance | 0.25 cm | How far collision may intrude into the clearance. |
| Walkable Clearance Height | 180 cm | Height of the protected space. |
| Walkable Max Samples | 1,024 | Sample cap, 64 to 262,144. |
Cancelling
Cancellation is cooperative and applies no partial result. A running CUDA kernel or a deep third-party call must return to a checkpoint first; in walkable Native decomposition the wait can be as long as one uninterruptible engine call. Lower the search and mesh budgets when cancel latency matters.