Roadmap 0.13, Market watch builds

MW.31 Offset to both sides at once, with the ends closed flat or round

  • Feature
  • Built · in the lab
  • CadCraft

From MWClaim #2132 (offset a curve to both sides at once with flat or round caps, giving a slot or wall outline). OFFSET in CadCraft makes one copy on the side you click; a slot or a wall outline round a centre line takes two offsets and two closing pieces drawn by hand. Build: an option Both in OFFSET: after the distance, the picked line, arc, circle or polyline gets a copy on each side with no side click. An option Cap chooses None (two separate copies), Flat (straight ends) or Round (half circles); with Flat or Round an open object gives one closed polyline round it, so a line gives a slot and a polyline a wall outline, and a closed object or a circle gives the inside and the outside copy. The corner setting (OFFSETGAPTYPE) is used on both sides; the copies go on the layer OFFSET already uses; one undo step per object; where the inner side cannot be made at that distance the command says so and makes nothing for that object. The choices are remembered for the session. CadCraft. Untested: splines and ellipses (OFFSET does not take them), polylines with width, self-crossing results on tight curves, touch, Studio windows.

BUILT IN LAB 2026-12-03: offsetBoth in edit-depth.js (one-side OFFSET called twice, so gap types and refusals are OFFSET's own); OFFSET options Both (B) and Cap (C, then N/F/R) at the object prompt, state shown in the prompt, kept on the engine for the session; preview under the pointer; one undo step per pick; not offered with Through (said once). Tests: bin/test-edit-depth.mjs 51/0; real browser run tools/cadcraft-test/browser-offset-both.mjs against /lab/cadcraft 22/0 (steps 1-8). Untested: splines and ellipses, polylines with width, self-crossing results on tight curves, touch, Studio windows. Arc, L-polyline and circle objects in the browser run were put in with the document call, not drawn.

From: a Discord member

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.