Skip to content

fix(saved-mesh): retry witnessed planar trim corners - #2259

Draft
shifatrHtH wants to merge 1 commit into
DrunkOnJava:mainfrom
shifatrHtH:codex/witnessed-planar-corner
Draft

shifatrHtH wants to merge 1 commit into
DrunkOnJava:mainfrom
shifatrHtH:codex/witnessed-planar-corner

Conversation

@shifatrHtH

Copy link
Copy Markdown
Contributor

Summary

A Saved planar carrier with a disconnected trim corner can now be retried in the research reader. The retry accepts a replacement only when the complete triangle shell closes with opposite directed incidences. Use SavedMeshRecovery::SharedBoundaryWithPlanarCorner for scoped attachment or RVT_RESEARCH_PLANAR_CORNER=1 in a research build without an explicit policy. The default and existing policies keep their previous behavior.

Source and checks

The public BIM4LCA Housing Concrete As-Built model has a 0.00002373 ft gap where three stored planar faces meet. Both stored sides of a reciprocal edge corroborate the intersection of the three incident planes. The retry shares each edge's ordered stations across its two faces. It rejects ambiguous rings, unwitnessed intersections, distant adjustments, or open shells.

The public BIM4LCA files are identified by SHA-256 in the Measure registry. The witness has 66 triangles in both the repaired mesh and Revit's IFC. Sampled vertices, edge midpoints and triangle centroids stay within 0.000007912 ft toward Revit and 0.000003979 ft in reverse. The replacement repeats exactly. The other 60 selected refusal rows across the 12 public BIM4LCA pairs reproduce their mesh fingerprints and diagnostics.

cargo build --locked --profile ci -p rvt-probes --example probe_planar_saved_corner
python3 -B tools/re/replay_planar_saved_corner.py \
  target/ci/examples/probe_planar_saved_corner \
  ARK_NordicLCA_Housing_Concrete_As-Built.rvt \
  ARK_NordicLCA_Housing_Concrete_As-Built_Revit.ifc

@oguzhanakk @DrunkOnJava Could you review whether this carrier-local opt-in is the right boundary and run Measure with recovery enabled on the public housing and office pairs?

Contribution hygiene

This Apache-2.0 contribution uses the already-decoded planar geometry of a public fixture. It contains no Autodesk or ODA source, decompiled implementation, NDA material, copied Revit IFC exporter code, or model files.

Follow-up to the public planar reproduction discussed in #2246.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant