Skip to content

BREPcode v0.1.9

Choose a tag to compare

@RandoTechNerd RandoTechNerd released this 27 Jul 08:02
· 156 commits to main since this release

⚠️ Replaces v0.1.8

v0.1.8 would start and never open a window. Every boot step was gated on require.main === module, which silently stopped being true — "type": "module" means Electron 43 loads even a .cjs entry through the ESM loader. No window, no error, three live processes. Use this build instead.

Colour that a slicer actually reads

Multi-colour 3MFs now come into OrcaSlicer as separate parts on separate extruders — verified in stock Orca. We were emitting the textbook <m:colorgroup>, and Orca ignores it entirely; taking apart a working Bambu 4-colour Benchy showed colour is per part with an extruder number in Metadata/model_settings.config.

Deliberately not included: printer presets, BambuStudio:3mfVersion, plate thumbnails. Those produce a stack of dialogs and carry nothing colour needs. Geometry, parts, extruder numbers. Nothing else.

A colour 3MF also wouldn't reimport — "non-manifold". Vertices were never welded on that path (6,585 vertices for 1,719 distinct positions), so triangles sharing an edge referenced different vertices. Fixed.

Save your work — .bcode

Plain text: your source at the top, scene and undo history in a comment below. 1.5 KB where the same part is 81 KB as STL, and it stays parametric. Opens in Notepad, diffs in git.

Crash recovery keeps a rolling snapshot as you type — desktop writes real files to a temp folder with an Open the folder button; browser keeps them locally. (i) → Recovered files.

Drag and drop a .bcode, .stl, .3mf, .obj or .svg anywhere on the window.

Desktop

  • Open in slicer — one click into OrcaSlicer
  • Double-clicking a .bcode opens it in the running window
  • The taskbar shows BREPcode's icon instead of Electron's

Fixes

  • Clicking a subtracted shape did nothing. Cutters were never in the pick set.
  • Handles on a cutter sat at the wrong height — a cylinder({h: 35.3}) biting a 12 mm plate measured 12 tall.
  • Drill and Fins only worked on imports. Any model with const or return armed the tool and then silently did nothing.
  • return alone on a line threw your model away (JavaScript inserts a semicolon). Now repaired, and stacked shapes tell you to use union()/group().
  • Material presets appeared to stop working once shapes had their own colour — the panel now says so and offers one-click clearing.
  • Export menu no longer runs off the bottom of the screen.

New

Shade slider for auto-colour — Neon, Glow, Very light … Very dark, All. Hue still spreads, so a QR code is multi-coloured within one family. With a shape selected, only that one is recoloured.


31 test suites + 31 desktop checks, all green.