Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ Recognized and rebuilt on the current release:
- **Diagnostics**: `freecad/meshtofeatures_wb/scripts/probe_bore_placement.py` runs the full
pipeline headlessly inside FreeCAD's Python console and prints
quantitative per-feature checks (useful when reporting bugs).
- **Per-feature deviation report**: every rebuild ends (Report view) with
a FEATURE REPORT table — one line per planned feature with its status
(rebuilt / deferred / retried / geometrically dressed / SKIPPED) and the
correction volume measured next to it, plus the overall body/corrected
volume ratios. Nothing is silently missing from the rebuilt part.

## Limitations (please read before filing bugs)

Expand Down Expand Up @@ -169,8 +174,9 @@ modules for the whole session).
for comparing against the snapped result.
- **MeshToFeatures panel…** — task panel with options and progress.
4. Watch the **Report view** (View → Panels → Report view): it lists
every recognized pattern/feature, every snap decision, and any
feature the executor had to retry or skip.
every recognized pattern/feature, every snap decision, and — at the
end of a rebuild — the per-feature deviation report (status + measured
deviation for every planned feature, and the overall volume ratios).

## Project layout

Expand Down
6 changes: 5 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ Exit criteria: the report renders for a corpus part and for the corner
bracket; numbers agree with the probe script's output; no new pipeline
math — plumbing only.

Status: not started.
Status: **in development** — branch `feature/deviation-report`
(2026-11-08): `core/status.py` (execution ledger + attribution + table
builder, headless-tested), wired into `build_body` (prints the table to
the Report view, attaches `plan.feature_report` to the plan),
smoke-asserted row-per-feature invariant.

## Phase 4 — Dimensioned, constrained sketches

Expand Down
137 changes: 106 additions & 31 deletions freecad/meshtofeatures_wb/build.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions freecad/meshtofeatures_wb/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def Activated(self): # noqa: N802
feats = detect_features(report, patches)
plan = plan_history(report, feats, detect_patterns(feats),
patches)
plan.src_volume = float(tm.volume) # feature-report ratio denom
try:
from .core.solidify import add_corrections
add_corrections(plan, tm)
Expand Down
4 changes: 4 additions & 0 deletions freecad/meshtofeatures_wb/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
from .solidify import (CorrectionOp, add_corrections, apply_corrections,
boolean_engine_available, plan_corrections,
plan_to_mesh)
from .status import (ExecutionLedger, FeatureRow, attribute_corrections,
feature_report, format_feature_report)

__version__ = "0.18.0"
__all__ = [
Expand All @@ -47,4 +49,6 @@
"split_by_planes", "split_by_channels",
"CorrectionOp", "boolean_engine_available", "plan_to_mesh",
"plan_corrections", "apply_corrections", "add_corrections",
"ExecutionLedger", "FeatureRow", "attribute_corrections",
"feature_report", "format_feature_report",
]
Loading
Loading