Skip to content

BREPcode v0.2.2

Latest

Choose a tag to compare

@RandoTechNerd RandoTechNerd released this 30 Jul 23:28

Kernel builds moved off the main thread, meshes too heavy for the kernel can be simplified in the app, and the drill finally reaches the models it was always meant to cut.

Builds in a Web Worker. The geometry kernel no longer blocks the page, so a heavy model builds while the app stays usable — no more "this tab is unresponsive". Worst measured stall on a monster model dropped from 4.9s to 75ms.

Simplify a too-dense import. A 200k-triangle mesh the kernel refuses can now be decimated in-app (meshoptimizer, quadric-error edge collapse) to something it can build — per part, so colour boundaries survive, with drift capped at about 1% of each part's size. A 202k-triangle terrain becomes an editable solid in 22 seconds.

The drill. Its subtraction was always correct; what was wrong is that on a heavy import the tool was never reached — arming it offered a "Build it now" button for a mesh the kernel had already refused, which is a dead end wearing the costume of an action. It now names the real problem and offers Simplify, both in the hint and under the editor. Two genuine bugs went with it: faces wound the wrong way by mesh repair were unpickable (culling is a rendering decision, never a picking one), and a click that did land on one drilled the wrong way, leaving the cutter hanging in mid-air.

That orange rod was never a drill bit. It is the negative-shape overlay — the picture of what got drilled out — drawn over everything and running the full length of the cutter, which is deliberately longer than the material. It is now clipped to the part, and it says what it is.

Export is a dialog with a preview of what each format actually gives you: grey for formats that drop colour, line art for the blueprint, your source text for .bcode, and the real packing for the new parts export. 3MF gains a "model only, no colour" option for single-material printing.

3MF — parts laid out. Every physically separate piece packed side by side on the bed, each standing on z=0, spilling onto numbered files when one plate is not enough. Connectivity decides what a part is, so a two-colour cap stays one piece.

In-browser AI. A model that runs on your own GPU via WebGPU — no key, no install, nothing leaving the machine.

Alt+Up/Down cycles word options — texture patterns, faces, sides, axes, repair levels, true/false — the same key that already nudged numbers.

STEP import verified end to end, and it now warns when a file comes back as an open shell rather than letting it fail later somewhere less explicable.

Also: label wrap around a cylinder, 45-degree fin sprues, 3MF exports centred on your build plate, and pictures in the model stash.

Windows: download BREPcode.exe and run it, no install. Self-hosting: BREPcode-site.zip is the whole static site.