Rounds the corners of a flat wire or face with arcs of a given radius.
Without indexes every corner is rounded with radius. With indexes, counted from 1 along
the outline, only those corners are rounded, each with radius or the matching entry of
radiusList, as long as indexes. Wires with free-form edges use fillet3DWire.
The flat wire or face, the radius or radius list, and the optional 1-based corner indexes
The rounded wire or face
const rectangle = await bitbybit.occt.shapes.wire.createRectangleWire({ width: 10, length: 5, center: [0, 0, 0], direction: [0, 1, 0] });
const rounded = await bitbybit.occt.fillets.fillet2d({ shape: rectangle, radius: 1 });
const twoCorners = await bitbybit.occt.fillets.fillet2d({ shape: rectangle, radiusList: [1, 2], indexes: [1, 3] });
Rounds the corners of several flat wires or faces, as fillet2d does for one, with the same
radius and corner indexes for all.
The flat wires or faces, the radius or radius list, and the optional 1-based corner indexes
The rounded wires or faces, in the same order
Joins two edges that lie in one plane with a rounding arc of the given radius, trimming the edges to meet it, and returns the three pieces as one wire.
The plane is given by planeOrigin and planeDirection, its normal. When several arcs fit,
solution picks one by index; -1 takes the one nearest planeOrigin.
The two edges, the plane they lie in, the radius and the solution index
The wire of first edge, arc and second edge
Bevels the corners of a flat wire or face: each corner is cut back by distance along one
edge, at angle degrees to it.
Without indexes every corner is beveled; with them, counted from 1 along the outline, only
those corners are.
The flat wire or face, the distance, the angle and the optional 1-based corner indexes
The beveled wire or face
Bevels the edges of a shape by a distance, in model units, cutting each sharp edge back to a flat strip.
Without indexes every edge is beveled with distance. With indexes, counted from 0 in
the order shapes.edge.getEdges lists them, only those edges are beveled, each with
distance or the matching entry of distanceList, in edge order.
The shape, the distance or the distance list, and the optional 0-based edge indexes
The shape with beveled edges
Bevels the given edges of a shape, each by its own distance.
The edges must belong to the shape; distanceList pairs with them by position and must have
the same length, or an error is thrown.
The shape, its edges to bevel and one distance per edge
The shape with beveled edges
Bevels one edge of a shape with an uneven chamfer: distance1 is measured on face, one of
the two faces meeting at the edge, and distance2 on the other.
The face decides which side gets which distance; swap them to flip the bevel.
The shape, the edge, the face the first distance applies to, and the two distances
The shape with the beveled edge
Bevels several edges of a shape with the same uneven chamfer: distance1 is measured on each
edge's paired face and distance2 on the other face.
faces pairs with edges by position and must have the same length, or an error is thrown.
The shape, the edges, one paired face per edge, and the two distances
The shape with beveled edges
Bevels several edges of a shape, each with its own uneven chamfer: for each edge distances1
is measured on its paired face and distances2 on the other face.
faces, distances1 and distances2 pair with edges by position and must all have the
same length, or an error is thrown.
The shape, the edges, one paired face per edge, and the two distance lists
The shape with beveled edges
Bevels one edge of a shape by a distance measured on face and an angle in degrees from that
face.
The bevel starts distance away from the edge on the given face and leaves it at angle; 45
degrees gives an even chamfer.
The shape, the edge, the face the distance is measured on, the distance and the angle
The shape with the beveled edge
Bevels several edges of a shape by the same distance and angle, the distance measured on each edge's paired face and the angle in degrees from it.
faces pairs with edges by position and must have the same length, or an error is thrown.
The shape, the edges, one paired face per edge, the distance and the angle
The shape with beveled edges
Bevels several edges of a shape, each by its own distance and angle, the distance measured on the edge's paired face and the angle in degrees from it.
faces, distances and angles pair with edges by position and must all have the same
length, or an error is thrown.
The shape, the edges, one paired face per edge, the distances and the angles
The shape with beveled edges
Rounds the edges of a shape with a fillet radius, in model units.
Without indexes every edge is rounded with radius. With indexes, counted from 0 in the
order shapes.edge.getEdges lists them, only those edges are rounded, each with radius or
the matching entry of radiusList, paired with the selected edges in edge order.
The shape, the radius or the radius list, and the optional 0-based edge indexes
The shape with rounded edges
const box = await bitbybit.occt.shapes.solid.createBox({ width: 10, length: 20, height: 5, center: [0, 0, 0] });
const rounded = await bitbybit.occt.fillets.filletEdges({ shape: box, radius: 1 });
const twoEdges = await bitbybit.occt.fillets.filletEdges({ shape: box, radiusList: [1, 2], indexes: [0, 3] });
Rounds the given edges of a shape, each with its own radius.
The edges must belong to the shape; radiusList pairs with them by position and must have
the same length, or an error is thrown.
The shape, its edges to round and one radius per edge
The shape with rounded edges
Rounds the given edges of a shape, all with the same radius.
The edges must belong to the shape; an empty list throws an error.
The shape, its edges to round and the radius
The shape with rounded edges
Rounds one edge of a shape with a radius that changes along it.
paramsU are positions along the edge as fractions from 0 at its start to 1 at its end, and
radiusList gives the radius at each; the kernel blends smoothly between them. The two lists
must have the same length, or an error is thrown.
The shape, its edge, the radii and the positions along the edge they apply at
The shape with the rounded edge
Rounds several edges of a shape, each with the same radius profile that changes along it.
paramsU are positions along each edge as fractions from 0 to 1 and radiusList the radius
at each; the lists must have the same length, or an error is thrown.
The shape, its edges, the radii and the positions along each edge they apply at
The shape with the rounded edges
Rounds several edges of a shape, each with its own radius profile that changes along it.
radiusLists and paramsULists hold one list per edge, in edge order; within each pair the
positions are fractions from 0 to 1 along the edge and the radii apply there. All three lists
must have the same length, or an error is thrown.
The shape, its edges, one radius list per edge and one position list per edge
The shape with the rounded edges
Rounds the corners of a wire that does not lie in one plane.
The kernel has no direct 3D wire fillet, so the wire is extruded along direction into a
shell, the shell is filleted and the rounded wire is read back off it; direction must not
be parallel to the wire and must leave room for the fillets.
The wire, the radius or radius list, the optional 0-based corner indexes and the extrusion direction
The rounded wire
Rounds the corners of several wires that do not lie in one plane, as fillet3DWire does for
one, with the same radius, indexes and direction for all.
The wires, the radius or radius list, the optional corner indexes and the extrusion direction
The rounded wires, in the same order
Rounding and beveling the edges of OpenCascade shapes: a fillet replaces a sharp edge with a rounded surface of a given radius, a chamfer with a flat bevel of a given distance. Edges are chosen by 0-based index in the order
shapes.edge.getEdgeslists them, or passed in directly; flat outlines and faces are rounded at their corners withfillet2d, whose corner indexes start at 1. A radius that does not fit, for instance larger than a neighbouring face, makes the kernel fail, so start small. Every method returns a new shape.