Skip to content

1.4.1

Choose a tag to compare

@info-bitbybit-dev info-bitbybit-dev released this 02 Oct 07:54
· 127 commits to master since this release
f3fa06d

Release Notes v1.4.1

A small release on top of 1.4.0. It adds a pen sketcher to OCCT and fixes create-app's interactive menus. There are 18 new functions, 1,919 in all.

Nothing was removed, and no existing method behaves differently. The OCCT kernels and engine versions are the same as in 1.4.0, so upgrading is a version bump.


New: the pen sketcher, bitbybit.occt.sketch

Draw a flat outline the way you would describe it: start here, go 40 to the right, go up 10, round that corner, close. Lines come out as true lines and arcs as true circles, so an extruded sketch has exact planar and cylindrical faces.

  • sketch.pen - draws an outline from a list of commands and returns a wire, or a face when the outline closes and makeFace is set. The commands are:

    • lines: absolute or relative, horizontal, vertical, polar and tangent;
    • arcs: three-point, tangent, sagitta and bulge;
    • quadratic and cubic Bezier curves;
    • close;
    • corner fillets and chamfers between lines and arcs.

    The face's normal always follows the frame's normal, whichever way the outline runs. An outline that crosses itself is refused with a message that names the command at fault, as is any command that cannot be drawn.

  • sketch.penWithSegments - draws the same outline and also reports which edges each command drew, by the command's id. Use it to fillet or select the edges of a named segment.

  • sketch.stroke - outlines a wire with a given width, for slots and traces. Caps are flat, round or square (strokeCapEnum), and a closed wire gives a ring.

  • sketch.hull - the exact convex hull of vertices, lines, circles and arcs, such as a lever drawn as the hull of two circles.

  • sketch.commands.* - 14 builders, one per command, each returning a command object.

  • Frames: a sketch lies on the ground by default, or on any frame. That includes a frame taken from a face with shapes.face.frameOnUV or frameNearestPoint, to sketch a boss or pocket profile directly on a part.

A new learn page, Pen Sketcher, walks through the commands, frames, segments, stroke and hull.


Fixes

  • create-app: every interactive menu shows its choices again, where it had fallen back to asking for a typed answer. The app template menu now shows all templates at once.
  • OCCT worker: a call that arrives before the kernel has loaded is now answered instead of being left waiting.

Docs and tooling

  • The help text for the new functions is translated into all 17 languages.
  • The CAD Cloud SDK pipeline types include the sketch operations.
  • New blog post: the Bitbybit CAD MCP and a jet engine assembly built with it.

Dependencies

  • No engine or kernel changes: BabylonJS 9.26, three.js 0.186, PlayCanvas 2.22, Manifold 3.5.3, JSCAD 2.13, and the same OCCT kernels as in 1.4.0.