Repository navigation
feat(create): LandXML station equations as IfcReferent; profiles read through them (mapping v1.3) (#5634) - #5932
Conversation
|
Warning Review limit reached
This review includes 21 billable files and costs up to $5.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 50 minutes for your next included review. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Review configuration: ⚙️ Run configurationConfiguration used: Repository: LTplus-AG/ifc-lite/.coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (21)
Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_021b1e85-860c-4d19-9e87-e7b156f9cae8) |
Claude review - no findings for
|
…ofiles through them (#5634) Mapping v1.3 (spec section 14). Each StaEquation on a written alignment becomes an IfcReferent/.STATION. carrying Pset_Stationing (Station, IncomingStation, HasIncreasingStation), linearly placed at its distance along the alignment's composite curve and nested with the start referent in order along the alignment. An alignment's equations are refused all or none, by name, when one cannot be placed. A vertical profile on an alignment with station equations is no longer refused: its PVI stations are read as displayed stations and placed through the written stationing (rust/landxml's distances_for_station); only a station in an equation gap or displayed at more than one place is refused. Section 14.3 re-argues 9.3: CgPoints stay IfcAnnotation/.SURVEY. IfcOpenShell reads the referents back (check_referents.py), and check_vertical.py grades the profile authored in displayed stations on the fixture's station-equation alignment. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
6364d36 to
b6cefe7
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_7e16da93-4415-44d2-8ef0-503665ee100b) |
Part of #5634 (LandXML → IFC follow-ups): station equations, profiles on alignments that have station equations, and the
CgPoint→IfcReferentquestion from §9.3. Rebased onto #5930 (vertical profiles, main96b04045f).What changed
Spec first. Mapping document and
LANDXML_IFC_MAPPING_VERSIONgo to 1.3. There is a new §14, and §11.5, §12.2, §12.4 and §12.6 are updated so they no longer say station equations or profiles on such alignments are refused. §13 is left free for cant.Station equations →
IfcReferent/.STATION.(§14.1–14.2).For every written alignment, each
StaEquationbecomes anIfcReferentwithPset_Stationing:Station=staAheadIncomingStation=staBack. IfstaBackis absent, it is derived from the running stationing using the same rule asrust/landxml'sstation_mapping, including adecreasingrun.HasIncreasingStation=staIncrement, written only when authored.The property definitions come from the IFC 4.3 template IfcOpenShell 0.8.5 bundles (the buildingSMART docs site returned 403).
Placement.
IfcLinearPlacementwhoseIfcPointByDistanceExpressionmeasuresstaInternal − staStarton the alignment'sIfcCompositeCurve, with the evaluated point and tangent asCartesianPosition. This is the same structure as the start referent and IfcOpenShell'sadd_stationing_referent. With a vertical layout, the composite curve is theFootPrintcurve, which is also what IfcOpenShell'sget_basis_curvereturns.Nesting. Start referent first, then equations in order along the alignment. IfcOpenShell's helper sorts by
Station, which gives a different order after a backward jump;HasIncreasingStationis defined over the order along the alignment.Refusal is all or none per alignment. If any equation is malformed, at or before the start, past the end, or out of order (Rust's
LXMLA207), all of that alignment's equations are refused by name. The alignment itself is still written.Profiles through station equations (§14.5, lifts #5930's refusal).
distancesForStation, a port ofrust/landxml'sdistances_for_station).CgPoint(§14.3): re-argued, stillIfcAnnotation/.SURVEY., output unchanged.CgPointcarries no alignment and no station.Code. New files:
landxml/station-equations.ts(mapping anddistancesForStation) andifc-creator-alignment-referents.ts(emitter; the start referent moved here with unchanged output).profile-mapping.tsgains an optionalstationingparameter. Edits to shared files are additive:collectRefusalskeeps feat(create): map LandXML vertical profiles to IfcAlignmentVertical (#5634) #5930's positional order and appendsstationing.writeAlignmentsappendsstationing.Fixture and evidence
Fixture (
make_alignment_fixture.py/alignment_fixture.json):IncomingStation.IfcOpenShell checks:
check_vertical.py(feat(create): map LandXML vertical profiles to IfcAlignmentVertical (#5634) #5930's): 2 vertical layouts checked, 0 problems. IfcOpenShell evaluates P-Left, read through the equation, to the generator's heights.check_referents.py(new): 7 referents checked, 0 problems. It uses IfcOpenShell's API to check nest order,Pset_Stationingvalues,DistanceAlongon the basis curve, and the kernel-evaluated point against the generator's own integration, plusCartesianPositionand tangent. Fault injection (shifting each equation 1 km) fails it with named problems.check_alignment.py: 3 alignments checked, 0 problems.ifcopenshell.validate(express_rules=True): 0 issues.Tests:
landxml-to-ifc.station-equations.test.ts: values, order, derived back station, GlobalIds, units, one test per §14.2 refusal reason, and the creator-level guard.landxml-to-ifc-vertical-stationing.test.ts: the fixture profile is placed at 300 m, not 350 m; a forward-jump placement; gap and double-display refusals.Results (at
1ea5c085b, on main96b04045f)packages/createvitest withIFCOPENSHELL_PYTHONset: 53 files, 848 tests passed, none skipped.Viewer LandXML export tests (
ExportDialog.landxml,landXmlIfcPlan,landXmlIfcDownload): 38 passed, 0 failed.Revert oracle (
--base HEAD~1, over the three touched test files): OBSERVED. The baseline passes 25 of 25. With production reverted, every file fails by assertion:The oracle restored the tree cleanly.
Gates:
pnpm lint: 0 errorscheck-module-size: OKcheck-unused-locals: no new unused localsapi-surface:update: adds onlyStationEquationParamscheck-changeset-bump: OKcheck-changesets: OKcheck-mkdocs-nav: OKdocs:check-samples: 1 failure, from main and not this branch.docs/guide/bcf.md:235importsBCFOverlayRenderer, which@ifc-lite/bcfno longer exports.Deliberately left out
IfcReferentforCgPoint(§14.3).IfcRelPositionsfor equation referents, since they position no product.🤖 Generated with Claude Code