BetaBetaBetaFolds a flat region along a line across it, or jogs it with an offset, two opposite bends that
land the far side parallel.
The line through from and to may cross the outline at any angle. The fixed side stays; the
band the bend takes is laid out at the K-factor. Role moved holds the faces that moved.
The part, the inside face, the line and the bend's shape
The folded part
const insideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: base, region: "base" });
const folded = await bitbybit.occt.fabrication.sheetMetal.bend({ part: base, insideFace, from: [20, 0, -40], to: [20, 0, 40], angle: 45 });
const jogged = await bitbybit.occt.fabrication.sheetMetal.bend({ part: base, insideFace, from: [-20, 0, -40], to: [-20, 0, 40], angle: 30, offset: 6 });
BetaCuts a tongue free on three sides of a hinge line and bends it out of the region, as a lanced tab.
The hinge runs from from to to on the face's plane; the tongue is depth long on the side
that moves, freed by a slot one kerf wide. Role walls holds the slot's faces.
The part, the inside face, the hinge and the tongue's shape
The lanced part
BetaJoins two plates drawn where they lie with one bend between them: cylindrical, or conical where
endRadius differs from bendRadius.
Each plate is cut back or extended to the bend. The second part's default names that the first
uses are renumbered; given names must differ. Role reliefs holds any reliefs.
The two parts with their inside faces and edges, and the bend's radii
One part of both
const firstEdge = await bitbybit.occt.fabrication.sheetMetal.insideEdgeToward({ part: floor, region: "floor", direction: [0, 1, 0] });
const secondEdge = await bitbybit.occt.fabrication.sheetMetal.insideEdgeToward({ part: wall, region: "wall", direction: [0, 0, 1] });
const firstInsideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: floor, region: "floor" });
const secondInsideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: wall, region: "wall" });
const joined = await bitbybit.occt.fabrication.sheetMetal.join({ first: floor, firstInsideFace, firstEdge, second: wall, secondInsideFace, secondEdge, bendRadius: 2 });
BetaCloses the corner between two flanges by extending their ends: one overlapping the other's edge, or both meeting on the corner's miter.
Each flange is given by its inside face and its end face at the corner, as endFaceToward
picks it. Bends stopping short of the corner are carried to it, the plate's corner cut back; a
seam records it.
The part, both flanges' inside and end faces, and the kind of closure
The part with the corner closed
const firstInsideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: box, region: "front" });
const secondInsideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: box, region: "side" });
const firstEndFace = await bitbybit.occt.fabrication.sheetMetal.endFaceToward({ part: box, region: "front", direction: [1, 0, 0] });
const secondEndFace = await bitbybit.occt.fabrication.sheetMetal.endFaceToward({ part: box, region: "side", direction: [0, 1, 0] });
const closed = await bitbybit.occt.fabrication.sheetMetal.closeCorner({ part: box, firstInsideFace, firstEndFace, secondInsideFace, secondEndFace, kind: Bit.Inputs.OCCT.sheetMetalClosureEnum.overlap });
BetaChecks that a part and its record still make a sheet of one thickness.
It reports rather than refuses. A record no longer matching the shape's faces, as after a
boolean, is one problem; otherwise problems names each region, bend or face out of place. warnings, such as a bend below minimumRadius, leave it a sheet.
The part
Whether it is a sheet, its problems and its warnings
BetaRips a slot gap wide through a region along a line, in from its outline or a hole.
One end lies off the material; an end inside it is where the slit stops. A rip that parts the
region makes the far side a region of its own, joined by a seam. Role walls holds the slot's
faces.
The part, the inside face, the line and the slot's width
The ripped part
BetaRips two regions apart along the edge where they meet, splitting the corner on its miter.
The edge is a straight edge of the part lying on a face of each region, as where two walls of a
box meet. The two regions are recorded as joined by a rip seam. Role walls holds the slot's
faces.
The part, the edge and the slot's width
The ripped part
BetaAdds a flat face drawn on a region's plane to the region as a tab of the sheet's thickness.
The face touches or overlaps the region's inside face, and holes in it stay holes; a tab that
would run into a bend is refused. Role walls holds the tab's faces through the thickness.
The part, the inside face and the tab's face
The part with the tab
const insideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: base, region: "base" });
const tab = await bitbybit.occt.shapes.face.createRectangleFace({ width: 20, length: 20, center: [-55, 0, 0], direction: [0, 1, 0] });
const tabbed = await bitbybit.occt.fabrication.sheetMetal.tab({ part: base, insideFace, tab });
BetaCuts closed profiles drawn on a region's face square through the sheet, or pockets them to a
depth.
A profile may notch the outline, never reach a bend; on a formed region the cut follows the
surface. A pocket is recorded as a form, name; a cut through records nothing. Roles walls
and floors.
The part, the face, the profiles and the depth
The cut part
const insideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: base, region: "base" });
const hole = await bitbybit.occt.shapes.wire.createCircleWire({ radius: 5, center: [0, 0, 0], direction: [0, 1, 0] });
const drilled = await bitbybit.occt.fabrication.sheetMetal.cut({ part: base, face: insideFace, profiles: [hole] });
BetaRounds or bevels the blank corners of a region's outline: the edges through the thickness where two of its sides meet.
A round is a cylinder along the region's normal, never a bend; corners where a side runs into a
bend are left alone. Role rounds holds the faces each corner became.
The part, the inside face and the corners' finish
The part with its corners finished
BetaMoves, turns or mirrors a part together with its record, as a pattern's copy or a mirrored twin needs.
The record's frames and axes move with the shape, so the result is a sheet like the part. A matrix that scales is refused, since it would change the thickness. The part has no roles.
The part and the matrix
The moved part
BetaBends a flange off a straight edge of a region's inside face.
The extents shorten or widen it along the edge, with reliefs where it stops short. Side angles
or offsets slant its ends, profile adds bends for Z shapes and returns, and outline draws its
last run. Roles end, sides, legEnds, reliefs and rim.1 on.
The part, the inside face and edge, and the flange's shape
The flanged part
const insideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: base, region: "base" });
const edge = await bitbybit.occt.fabrication.sheetMetal.insideEdgeToward({ part: base, region: "base", direction: [1, 0, 0] });
const bracket = await bitbybit.occt.fabrication.sheetMetal.flange({ part: base, insideFace, edge, angle: 90, length: 30, extentStart: 10, extentEnd: 10 });
BetaBends a flange off each of several straight edges of one inside face, flanges sharing a corner meeting mitered there, with a corner relief where their bends meet.
Each runs its whole edge. Role corners holds the reliefs' faces; each flange's roles hold its
own faces alone, numbered from 1 in edges order, as 1.end and 2.legEnds.
The part, the inside face, the edges and the flanges' shape
The flanged part
const insideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: base, region: "base" });
const edges = await bitbybit.occt.shapes.edge.getEdges({ shape: insideFace });
const tray = await bitbybit.occt.fabrication.sheetMetal.flanges({ part: base, insideFace, edges, angle: 90, length: 25, cornerRelief: Bit.Inputs.OCCT.sheetMetalCornerReliefEnum.circular });
BetaFolds a straight edge of a region back over the sheet as a hem: closed flat on it, open with a gap, a teardrop, a rolled edge or a double hem that hides the raw edge.
Extents, reliefs and roles work as a flange's. A teardrop given no length runs as far as fits
before it meets the sheet.
The part, the inside face and edge, and the hem's shape
The hemmed part
const insideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: base, region: "base" });
const edge = await bitbybit.occt.fabrication.sheetMetal.insideEdgeToward({ part: base, region: "base", direction: [-1, 0, 0] });
const hemmed = await bitbybit.occt.fabrication.sheetMetal.hem({ part: base, insideFace, edge, style: Bit.Inputs.OCCT.sheetMetalHemStyleEnum.open, length: 8, gap: 1 });
BetaStamps forms into a region's face: dimples, louvers, bridges or extruded holes at points, embosses along closed profiles or beads along paths.
Each kind takes its own sizes and refuses another kind's. Each form is recorded, and has a role,
as name, a dot and its number, such as louver1.2; role forms holds every new face.
The part, the face, the kind, where to press and the sizes
The formed part
const insideFace = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: base, region: "base" });
const vented = await bitbybit.occt.fabrication.sheetMetal.form({ part: base, face: insideFace, kind: Bit.Inputs.OCCT.sheetMetalFormEnum.louver, points: [[0, 0, -10], [0, 0, 10]], along: [1, 0, 0], length: 40, width: 8, height: 4 });
const dimpled = await bitbybit.occt.fabrication.sheetMetal.form({ part: base, face: insideFace, kind: Bit.Inputs.OCCT.sheetMetalFormEnum.dimple, points: [[30, 0, 0]], diameter: 20, depth: 6, draft: 20 });
BetaPresses gussets across a cylindrical bend to stiffen it, at positions along the bend.
Each is a chord across the bend's inside, depth in from its inner face, closed by two walls of
the sheet's thickness, and is recorded, with a role, as name, a dot and its number, such as
gusset1.2. Role forms holds every new face.
The part, the bend's name, the positions and the gussets' size
The stiffened part
BetaLists the names of a part's flat regions, in the order its record holds them, to pick faces and edges by.
The part
The regions' names
BetaLists the names of a part's bends, in the order its record holds them, as gusset takes one.
The part
The bends' names
BetaPicks a region's inside face by the region's name: the face its flanges, hems, folds and cuts start from. Where the region has several, the largest.
The part and the region's name
The inside face
BetaPicks a region's outside face by the region's name: the face across the thickness from its inside face. Where the region has several, the largest.
The part and the region's name
The outside face
BetaPicks the edge of a region's inside face whose middle lies nearest a point, the edge a flange, a hem or a join starts from.
The part, the region's name and the point
The nearest edge
BetaPicks the edge of a region's inside face that lies furthest along a direction, judged by its middle; where several lie as far, the longest.
A direction keeps naming the same side when sizes change: [1, 0, 0] is the edge at the largest
x.
The part, the region's name and the direction
The furthest edge
BetaPicks the planar face through the thickness at a region's outline that lies furthest along a
direction, judged by its center: a flange's end, which closeCorner takes as a leg's end, or
its rim.
A flange's ends picked so are its role legEnds, which only the part it returned still holds.
The part, the region's name and the direction
The furthest end face
BetaPicks the edge where the faces of two regions meet, such as the inner corner of two walls
closed against each other, which ripEdge parts; the longest where they share several.
The part and the two regions' names
The shared edge
BetaPicks the faces the operation that made a part names by a role, such as a flange's end or a
cut's walls, as the part's roles lists them: in the order of the faces, which says nothing of
where each lies, so pick one of several by where it lies, as endFaceToward does.
The part and the role
The role's faces, an empty list for a role with none
BetaGives a part an appearance read from its record: each kind of face in a color, the edges where bends meet their regions in another, and each side of the material in one when given.
The part stays a part for the next operation, which reads no appearance and returns its part without one.
The part and the colors of each kind
The part with its appearance
BetaDraws a part's bend lines as straight wires along each bend's axis, across the bend's whole width: where it meets its flat regions, or halfway round it.
Tangent lines come two to a bend, the fixed region's first; center lines one. With bend given,
only that bend's lines, to label or measure each by its bend's name.
The part, which lines, how far they stand off the part and, optionally, one bend's name
The lines, bend after bend in the order bendNames lists them
const [name] = await bitbybit.occt.fabrication.sheetMetal.bendNames({ part: bracket });
const tangents = await bitbybit.occt.fabrication.sheetMetal.bendLines({ part: bracket, bend: name });
const centers = await bitbybit.occt.fabrication.sheetMetal.bendLines({ part: bracket, kind: Bit.Inputs.OCCT.sheetMetalBendLineEnum.insideCenter });
BetaStarts a sheet metal part from a flat face, given its thickness.
The face is the plate's outline, holes included. With side back it stays the inside face,
so flanges that bend up rise the way it faces. The sheet's settings given here, such as
bendRadius, kFactor and relief, are recorded for every later operation to inherit.
The face, the thickness, the side it grows to and the sheet's settings
The new part, its role walls the faces around its outline
const face = await bitbybit.occt.shapes.face.createRectangleFace({ width: 100, length: 60, center: [0, 0, 0], direction: [0, 1, 0] });
const base = await bitbybit.occt.fabrication.sheetMetal.plate({ face, thickness: 2, bendRadius: 2, name: "base" });
await bitbybit.draw.drawAnyAsync({ entity: base });
BetaStarts a part as a contour flange: an open profile of straight lines given a thickness and run along a direction, every corner a bend of the sheet's radius.
Each segment becomes a region, name, name.2 and on. Roles start and end hold the faces at
the profile's ends, sides those where the run starts and stops.
The profile, the direction and length to run it, the thickness and the sheet's settings
The new part
const profile = await bitbybit.occt.shapes.wire.createPolylineWire({ points: [[0, 30, 0], [0, 0, 0], [50, 0, 0], [50, 30, 0]] });
const channel = await bitbybit.occt.fabrication.sheetMetal.contour({ profile, direction: [0, 0, 1], length: 100, thickness: 2, name: "channel" });
const web = await bitbybit.occt.fabrication.sheetMetal.insideFace({ part: channel, region: "channel.2" });
BetaStarts a part as a lofted flange between two profiles, such as a square-to-round transition.
bent splits each curved edge into facetsPerBend flat facets joined by bends, opening a closed
loft along a seam; formed rules open profiles of lines and arcs into one smooth region. Roles
start, end, sides, seam and reliefs.
The two profiles, the thickness, the method and the sheet's settings
The new part
const square = await bitbybit.occt.shapes.wire.createSquareWire({ size: 60, center: [0, 0, 0], direction: [0, 1, 0] });
const circle = await bitbybit.occt.shapes.wire.createCircleWire({ radius: 20, center: [0, 40, 0], direction: [0, 1, 0] });
const hood = await bitbybit.occt.fabrication.sheetMetal.loft({ first: square, second: circle, thickness: 1, facetsPerBend: 4 });
BetaStarts a part by carrying an open profile of straight lines along a path of straight segments, its runs meeting mitered at each corner of the path.
The profile is drawn square to the path's first segment at its start; its segment along the
path's plane becomes one web, name, round every corner. Role mitres holds the miters' faces.
The profile, the path, the thickness and the sheet's settings
The new part
const profile = await bitbybit.occt.shapes.wire.createPolylineWire({ points: [[0, 0, 0], [0, 0, -30], [0, 20, -30]] });
const path = await bitbybit.occt.shapes.wire.createPolylineWire({ points: [[0, 0, 0], [100, 0, 0], [100, 0, -80]] });
const rim = await bitbybit.occt.fabrication.sheetMetal.sweep({ profile, path, thickness: 2, name: "rim" });
Sheet metal parts as a shop makes them: flat regions of one thickness joined by bends, with flanges, hems, folds, joins, cuts and stamped forms. Each operation returns a new part, whose record names its regions and bends.
A region's inside face is the face it was drawn on; a bend that turns
uprises toward the side it looks at. Pick faces and edges by name withinsideFaceand the other pickers;createmakes bend table rows and flange segments. Lengths are in model units, angles in degrees. An operation records what it adds undername, by default its word and the lowest free number, asflange2.Experimental: the operations and the record may still change.