Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Assembly authoring foundation
Implemented slice: readable rigid placement, named frames, definition-owned ports, keyed finite occurrence patterns, and Fixed seating. These extend the existing semantic binder, finite Record/Set frontend, exact materializer, and frame solver. No user-defined Lower language or second placement solver is introduced.
For complete-component ownership and finite linear/reflected mounting rows, see Components and mounting sites.
Readable placement
<Part Base = Post<H:14mm>>
Placement { From: Origin; To: World; TranslateLocal: [10mm,20mm,30mm];
RotateLocal: { Axis: Z; Angle: 90deg } }
</Part>
FrameTransform Tilt {
From: Demo.Base.Top.Frame;
TranslateLocal: [0mm,0mm,2mm];
RotateLocal: { Axis: X; Angle: 15deg }
}
<Part Child = Post<H:14mm>>
Placement { From: Bottom.Frame; To: Tilt.Frame; }
</Part>
Place Parts inside the assembly tree and FrameTransform declarations in the
owning assembly. Origin is the current occurrence origin, Parent the immediate
parent origin, and World the current assembly root. Relative ports resolve on
the current occurrence, then its parent; qualified paths obey public boundaries.
Named transforms are referenced as Name.Frame.
Translations require finite mm lengths; checked scalar Static/Record fields can supply translation and dimensionless basis components. Rotation requires X/Y/Z and finite deg. Manufacturing requirements belong to their declaring Part or Assembly and explicit PMI, rather than Assembly frame values. Part PMI is not inherited by assembly export: declare assembly PMI explicitly in the root .firmasm. Mates do not infer tolerance requirements. See PMI ownership and assembly notes.
Optional paired Normal/Up vectors are dimensionless and expressed in the target
frame. Normal supplies Z, projected Up supplies Y, and Y cross Z supplies X.
Zero/parallel vectors fail. Rotation applies in that constructed basis,
translation in the referenced frame, then the frame composes with its owner's
resolved transform. Translation is not rotated by RotateLocal.
AuthoredFrame placement lowers to compiler-owned exact frame constraints through the existing solver, with no mechanical joint. Anchoring, explicit placement and a moving Interface assignment cannot also drive authored placement. Unresolved dependencies and cycles fail. LegacyExplicit/ImportedOccurrence remain supported.
Definition-owned ports
Template<H: Length> Struct Post {
Circle2 Outline { Center: [0mm,0mm]; Radius: 4mm }
Profile P { Loop Outer { Outline |> TraceLoop } }
Extrude Body { Profile: P; From: 0mm; To: H }
Expose {
Semantic Bottom { DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }
Semantic Top { DatumFrame Frame = [0mm,0mm,H] x [1,0,0] y [0,1,0] z [0,0,1]; }
}
}
Ports specialize through the geometry's typed template frontend. Occurrences
share exact definitions. Publication creates no new body and infers no arbitrary
BRep face name. Published DatumFrame origins accept finite length arithmetic after
template specialization, for example [0mm,0mm,H / 2] or [0mm,0mm,H + 2mm].
Bare numeric literals retain the legacy millimetre convention. Wrong dimensions,
division by zero, and non-finite origins reject with assembly-port-frame-origin-invalid.
Existing DatumFrame/Axis/Plane/Point/Dimension members are admitted;
malformed and duplicate members fail.
SectionChain-file Models can publish their authored section frames:
Expose { Semantic NutMount { DatumFrame Frame = Neck.Section.S5.Frame; } }
The chain and section must exist. This aliases the section's exact frame rather than a tessellation sample. Concrete authored part ports are now published before reusable local solving, through typed template specialization and the existing SectionChain binder without body materialization. Exact geometry is still built in the later materialization stage. See the multi-file guitar for the motivating case.
Keyed finite patterns
Record Site { X: Length }
Static Sites: Set<Site> {
Left => Site { X: -5mm }
Right => Site { X: 5mm }
}
Assembly Demo {
<Assembly Demo>
Pattern Posts Over Sites {
site => <Part Post = Post<H:14mm>>
Placement { From: Origin; To: World; TranslateLocal: [site.X,0mm,0mm]; }
</Part>
}
</Assembly>
Anchor: Demo;
}
The existing checked Set/Record frontend binds fields and units. Patterns yield
ordinary Parts/Assemblies, not a public text macro facility. Paths include pattern,
key and member: Demo.Posts.Left.Post. Reordering rows preserves IDs/placements.
Inspection retains expanded occurrences, associations, keys, values and source-row
provenance; geometry definitions remain shared.
Limits: 1024 keys per pattern, 4096 expanded keys per source, unique pattern names, no nested assembly patterns or dynamic collections. Group-node identity placement is compiler-owned. A mapping can also contain a bounded declaration block: one or more Part/Assembly occurrences with local Concept Struct, Interface and Mate declarations. Each key owns a distinct declaration scope and occurrence paths. Other statements reject; nested Patterns and dynamic collections remain unsupported.
Pattern Cylinders over cylinderConfigs {
config => {
<Assembly Cylinder = Units.cylinder<config: config>></Assembly>
Concept Struct Installation {
Axis Mount { origin: [0mm,0mm,config.z]; direction: [0,0,1]; reference: [config.bankCos,-config.bankSin,0]; }
}
Interface<Fixed> Seat { datum: Installation.Mount; members: [Cylinder.Mount]; }
Mate Install: Seat { member: Cylinder.Mount; at: 0mm; clocking: 0deg; }
}
}
This fragment belongs inside an Assembly occurrence tree and requires the typed
Inventory/configuration declarations. Cylinder.Mount is the complete unit's
public Axis/Frame endpoint. Axis seating may name a visible nested occurrence,
including a complete encapsulated Subassembly; private descendants stay private.
Concept axes accept checked finite scalar expressions. A station requires Length,
clocking requires Angle, and direction/reference components are dimensionless.
Only one placement may drive an occurrence. A dimensional-only fit Interface
checks physical endpoints without adding a placement driver.
Fixed seating
Interface<Fixed> Seat {
A: Demo.Base.Top.Frame;
B: Demo.Child.Bottom.Frame;
Gap: 2mm;
Clocking: 90deg;
Orientation: OpposedDirection;
}
Gap moves the seated origin along A's positive Z; Clocking rotates about A's positive Z. OpposedDirection also flips B by 180 degrees around local X. SameDirection and zero Gap/Clocking are defaults. This remains one zero-DOF relationship. Placement, world-space residual checks and zero-pose kinematics use the same transform, including reversed anchoring.
Seating is Fixed-only. Roles must be declared, unique, complete, reachable and capability-compatible; seating requires an exact frame binding. Bad units, nonfinite values, duplicate fields and invalid orientation fail diagnostically.
Guitar reassessment
The fixture has zero authored LegacyExplicit matrices. Neck NutMount/HeelMount publish section ports; NutWorld/HeadTilt place the headstock; VeneerSeat seats the veneer. Six keyed assembly patterns now cover saddles, tuner rows, controls, frets and inlays; the two pickups share a functional part definition with feature patterns. The current witness has 91 visible parts, 53 shared definitions, six WireForms and four SectionChains.
Python now only reproduces CLI artifacts without changing authored source. Body and neck profiles and section recipes live in Firmament. Fret spacing and widths live in pure
Function declarations and a bounded Concept point series, with placement local
to the nut's published frame. See Concept points and Functions.
The six strings now use point-driven routes; Firmament
derives their lengths, angles and forming frames. Pearl inlays use explicit linear
stations seated on the board's published MarkerOrigin. Physical Material selects
its default Appearance, with explicit with finish overrides; procedural Cycles
shading remains downstream. See source-owned guitar authoring
and the updated checkpoint.
Ground truth:
dotnet Aetheris.CLI/bin/Release/net10.0/aetheris.dll asm inspect fixtures/Canonical/AssemblyInterfaces/GuitarX0/guitar.firmasm --json --profile
./scripts/qualify-guitar-x0.ps1 -OutDir artifacts/local/guitar-foundation -Render -Viewport
Generated reports, STEP/USD and Cycles artifacts go under ignored artifacts/local.
Qualification on 2026-09-30
The motivating guitar uses these constructs through exact materialization, STEP export, shared USD prototypes and downstream rendering. This is the original foundation qualification; subsequent authoring slices are recorded in the session checkpoint above.
- Release solution build: passed (existing WebAssembly interop warnings).
- Core fast lane: 1005 passed; serial full solution gate: 4034 passed.
- New authoring foundation cases: 22 passed, covering specialization, shared geometry, keyed reorder stability, local reusable scopes, seating/zero pose, unknown roles/members, malformed fields, cycles and placement authority conflicts.
- Fresh-process cold compilation: 9.653 s; same-process warm recompilation: 4.603 s. These include JIT/library initialization as applicable, exclude process startup and dotnet build, and use no persistent model cache.
- Display preparation: 0.470 s cold / 0.375 s warm; USD serialization: 0.079 / 0.077 s.
- All 55 definition position/normal/index buffers are exactly equal to the prior guitar export. All 107 visible transforms match within 0.000001 mm; maximum component delta is 0.000000496067, from authored coordinate rounding.
- usdchecker passes; external USD composition has no errors, with 55 shared prototypes and maximum world-transform error 1.23e-15.
- usdview: 36 orbits, identical before/after geometry hashes, zero stage changes, compiler calls and geometry rebuilds; mean orbit plus readback 20.49 ms. This is evidence for the standalone downstream viewer; it does not qualify Helios browser interaction.
- Blender Cycles qualification: five refreshed images and a saved scene; imported product topology remains unchanged. Hero rendering took 205.22 s on this run, versus 26.17 s in the prior artifact. That offline rendering slowdown is not diagnosed here and must not be represented as a compiler or viewport timing.
Evidence: artifacts/local/guitar-x0/foundation-{build,fast,full}.log and
artifacts/local/guitar-foundation/ containing timings.json, display.json,
baseline-comparison.json, usd-validation.json, viewport/viewer.json,
guitar.step, guitar.usda, and the Cycles scene/images.
The guitar remains suitable as a presentation witness against the supplied Zoo example. This qualification establishes Aetheris behavior and preserves its visual geometry; it does not measure Zoo's build times or certify an independent head-to-head performance ratio.
Typed rest-frame data and Assembly-owned ports
The editable V8 uses named RestFrame Records rather
than serializing anonymous matrices into occurrence declarations. Assembly frame
consumers use the existing lexical data binder and typed scalar dependency graph.
Unknown fields and dimensionally invalid Record values reject before placement.
An Assembly occurrence may declare its own Semantic datums. These belong to that
occurrence, including during a Subassembly's local solve; descendant Part ports
are not copied onto its root. Expose continues to publish selected internal
endpoints. Semantic DatumFrame and Axis origins accept finite millimetre lengths;
bare numeric origins retain their legacy millimetre interpretation. Bases remain
dimensionless.
Concrete WireForm Parts publish their compiler-derived winding Axis, Frame and ClearDiameter before the local solve. The source AIR and post-build report share one datum factory; adding a Subassembly boundary does not require hand-copying a coil axis or materializing the wire before semantic binding.