Makes one row of a bend table: the K-factor, bend allowance or bend deduction that a bend of this thickness, inner radius and angle takes.
A list of rows is the bendTable a part starts with, which every later bend of the part reads.
The thickness, the inner radius and the angle the row is for, what it gives and the value
The row
const tight = await bitbybit.occt.fabrication.sheetMetal.create.bendTableRow({ thickness: 2, radius: 2, angle: 90, gives: Bit.Inputs.OCCT.sheetMetalBendTableValueEnum.kFactor, value: 0.42 });
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, bendTable: [tight] });
Makes one segment of a flange's profile: a further bend of an angle and the straight run after it, turning Z shapes, clips, returns and steps into one flange.
Left out, bendRadius is the part's.
The bend's angle, the run's length and the bend's radius
The segment
const step = await bitbybit.occt.fabrication.sheetMetal.create.flangeSegment({ angle: -90, length: 12 });
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 zFlange = await bitbybit.occt.fabrication.sheetMetal.flange({ part: base, insideFace, edge, angle: 90, length: 20, profile: [step] });
Making the pieces a sheet metal operation takes in a list, one at a time: rows of a bend table and segments of a flange's profile. Each method returns one piece as plain data, the same object a script can write by hand, so a list of them is what
bendTableor a flange'sprofiletakes.