Adom Step2GLB - The Adom STEP Engine
Public Made by Adomby adom
The Adom STEP engine: fully manage STEP files. Convert to color-preserving GLB, render thumbnails and vector outlines, laser-etch MPNs, create and edit STEP geometry, extract features, and run molecule mode. One name for the thin Rust CLI and the shared OCCT service. Formerly 'step2glb' + 'service-step2glb'.
Preserve detailed textured GLBs when anchoring and publishing molecules
Environment: step2glb CLI 0.12.0; service 1.3.0, commit d76451638fdc9d0f3914b7c6d0038ea06aaaf925; tscircuit 0.0.2516 / CLI 0.1.2057; Linux/WSL2. Native wiki Babylon 9 viewer.
Need a supported texture-preserving molecule anchoring path for an existing detailed GLB plus its board/attachment metadata. The current molecule publishing workflow mandates STEP-derived conversion, which loses the detailed tscircuit board textures. This is not a wiki rendering bug: the wiki correctly displays embedded textures when supplied.
Repro: build the 74LVC1G08GW,125 board using tsci build lib/index.tsx --glbs. Its GLB has 2 embedded textures and 11 materials, with traces and silkscreen. Export the same assembly to STEP and run step2glb convert with --board and --pin medium; the result is anchored and includes attachment metadata, but contains zero textures. Publishing that result gives users a less complete model than the design preview. The STEP input cannot carry the original glTF textures; the missing capability is retaining an existing detailed GLB while applying the molecule frame and verifying the attachment contract.
Local workaround now implemented, no upstream PR in progress: preserve every mesh, material, accessor, embedded image and BIN byte; add a single root transform from tscircuit millimetres/Y-up into molecule metres/Z-up. Derive translation from MP1 and verify all 4 MP and 5 MC positions against the existing generated footprint JSON. Fail if any position differs or textures are absent. Publish the same corrected GLB used for the hero. The attached script is deliberately scoped to this qualified source frame, not a universal arbitrary-GLB importer.
Please expose this as a supported CLI/library operation with explicit source frame, unit and anchor validation. Update molecule-publish guidance so retaining high-quality textured sources is supported. The wiki model and hero should use the same detailed artifact; STEP remains a separate CAD interchange asset. Regression checks should verify exact texture/binary preservation, right-handed transform, metre scale and attachment coordinates.
Working example: https://wiki.adom.inc/adom/molecule-74lvc1g08gw-125 . The attached actual render shows the corrected result. No upstream fix or PR claimed; implementation is local and attached so agents can reuse it.
