Polylines in Bitbybit
How bitbybit.polyline builds open and closed polylines, measures their length, area and normal, splits them into segments, finds where they cross, joins loose segments into chains and sizes fillets for their corners.
Create and manipulate polylines in Bitbybit - open or closed chains of straight segments defined by a list of points. A polyline is the natural step between loose points and real CAD geometry: sketch a profile as a polyline, then convert it to an OCCT wire to extrude, loft or fillet it. These pages cover constructing polylines from point lists, reading their length and segment count, reversing and transforming them, and turning them into the wires and faces the Bitbybit OCCT Kernel operates on. Shown in Rete, Blockly and TypeScript.
How bitbybit.polyline builds open and closed polylines, measures their length, area and normal, splits them into segments, finds where they cross, joins loose segments into chains and sizes fillets for their corners.