feat: harden CAD showcase skill and delivery pipeline
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
# CAD to Web Building Showcase Pipeline
|
||||
|
||||
Prefer `scripts/cad_showcase.py` for source inspection and the resumable post-config pipeline. Use the individual commands below when diagnosing or iterating a specific stage.
|
||||
|
||||
## Contents
|
||||
|
||||
1. Inventory and conversion
|
||||
2. CAD read report
|
||||
3. Layer mapping
|
||||
4. Floor detection and alignment
|
||||
5. Spec extraction
|
||||
6. Audit and overlays
|
||||
7. Blender generation
|
||||
8. Web showcase
|
||||
9. Verification and IFC proof
|
||||
|
||||
## 1. Inventory and Conversion
|
||||
|
||||
Start by listing source files and preserving names. CAD drawing names often encode floor numbers, building zones, and drawing type.
|
||||
@@ -88,6 +102,7 @@ Example:
|
||||
|
||||
```json
|
||||
{
|
||||
"config_version": 1,
|
||||
"project_name": "Main Building",
|
||||
"scale": 0.001,
|
||||
"origin_strategy": "center",
|
||||
@@ -157,6 +172,13 @@ Example:
|
||||
}
|
||||
```
|
||||
|
||||
Validate before extraction:
|
||||
|
||||
```bash
|
||||
python3 <skill>/scripts/showcase_schema.py config work/cad_showcase/config.json \
|
||||
--dxf-dir work/cad_showcase/dxf_sanitized
|
||||
```
|
||||
|
||||
In the A208 test project, 1F and 2F were on the same sheet and the second floor required an X shift of about `-158029.255 mm` to align the grids. Treat this as an example, not a constant.
|
||||
|
||||
Use `origin_strategy: "center"` for large CAD coordinates. It mirrors the A208 proven workflow and keeps Blender/Web coordinates numerically stable.
|
||||
@@ -297,10 +319,12 @@ Run the Blender-free QA pass first, then eyeball the previews before opening the
|
||||
python3 <skill>/scripts/verify_showcase.py \
|
||||
--spec work/cad_showcase/building_spec.json \
|
||||
--glb outputs/<project>/variants/overview.glb outputs/<project>/variants/standard.glb outputs/<project>/variants/detail.glb \
|
||||
--out outputs/<project>/verify_previews.png --budget-mb 0.6
|
||||
--out outputs/<project>/verify_previews.png --budget-mb 25 --strict
|
||||
```
|
||||
|
||||
It prints per-floor segment/cap/glazing-continuity counts and a GLB size-budget pass/fail, and writes front/side/plan orthographic previews. Use these to catch missing floors, a lying-down (wrong up-axis) model, uncapped columns, or discontinuous glazing **before** declaring the model done — early visual verification avoids most rework.
|
||||
It prints per-floor segment/cap/glazing-continuity counts and a GLB size-budget pass/fail, and writes front/side/plan previews from the spec. Use those previews for stacking and footprint gaps. Use an actual GLB render/browser screenshot to verify Y-up orientation, caps, materials, and slab fins; a spec preview cannot prove exported geometry orientation.
|
||||
|
||||
Finish with `verify_delivery.py` and retain its `evidence_manifest.json`; for formal Web delivery include the passing report from `web_smoke_test.mjs`.
|
||||
|
||||
Minimum verification:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user