Upload docs/convex_decomposition_spec.md with huggingface_hub
Browse files
docs/convex_decomposition_spec.md
CHANGED
|
@@ -101,6 +101,42 @@ num_faces
|
|
| 101 |
|
| 102 |
Use `logs/parts_summary.csv` to find parts that are too small, too large, or unexpectedly complex before using them as collision geometry.
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
### `metadata.yaml`
|
| 105 |
|
| 106 |
Minimum fields:
|
|
|
|
| 101 |
|
| 102 |
Use `logs/parts_summary.csv` to find parts that are too small, too large, or unexpectedly complex before using them as collision geometry.
|
| 103 |
|
| 104 |
+
### Decomposition granularity controls
|
| 105 |
+
|
| 106 |
+
CoACD does not directly support a target physical bbox size such as "each part should be about 5 cm". Part size is controlled indirectly through decomposition granularity parameters:
|
| 107 |
+
|
| 108 |
+
```text
|
| 109 |
+
--threshold Lower value -> stricter convex approximation -> usually more/smaller parts.
|
| 110 |
+
--max-convex-hull Caps the number of convex hulls. Lower cap -> fewer/larger parts.
|
| 111 |
+
--no-merge Disables hull merge. Usually keeps more/smaller parts.
|
| 112 |
+
--mcts-max-depth Higher value allows deeper recursive splitting.
|
| 113 |
+
--mcts-nodes
|
| 114 |
+
--mcts-iterations More search can find finer/better splits, with higher runtime.
|
| 115 |
+
--preprocess-resolution
|
| 116 |
+
--resolution Higher values preserve more geometric detail before decomposition.
|
| 117 |
+
--max-ch-vertex Controls complexity of each convex hull, not physical size directly.
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
Practical presets:
|
| 121 |
+
|
| 122 |
+
```bash
|
| 123 |
+
# Coarser collision: fewer/larger parts, faster simulation
|
| 124 |
+
python scripts/run_convex_decomposition.py <raw_asset_dir> \
|
| 125 |
+
--mesh <mesh.obj> \
|
| 126 |
+
--threshold 0.08 \
|
| 127 |
+
--max-convex-hull 8
|
| 128 |
+
|
| 129 |
+
# Finer collision: more/smaller parts, more accurate but heavier
|
| 130 |
+
python scripts/run_convex_decomposition.py <raw_asset_dir> \
|
| 131 |
+
--mesh <mesh.obj> \
|
| 132 |
+
--threshold 0.02 \
|
| 133 |
+
--max-convex-hull 32 \
|
| 134 |
+
--no-merge \
|
| 135 |
+
--mcts-max-depth 4
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
After generation, inspect `logs/parts_summary.csv` to decide whether the resulting part sizes are acceptable for the target task.
|
| 139 |
+
|
| 140 |
### `metadata.yaml`
|
| 141 |
|
| 142 |
Minimum fields:
|