Skip to content
brep-conformancegithub

fillet_radii

Blends · api.md § fillet_radii · all operations

fillet_radii(s: Solid, edges: list<Point3>, radii: list<Length>) -> Solid

Rounds edges as fillet does, in one operation, with each point's chain at its own radius, so that fillets of unequal radii meet at shared corners. radii must give one radius for each point, and each radius must be as fillet requires. Away from those corners, each edge is as fillet makes it at that edge's radius. The corner itself is open within limits. The result lies, point for point, between the solid filleted at the largest of the corner's radii and the solid filleted at the smallest: the result holds every point of the first solid and no point outside the second. The surface of the result is closed and has no crease: the corner joins every fillet and face it meets with their tangent planes. The pieces, tunnels and voids of the result are those of s.

Example. Solid 1 is a 10 × 20 × 30 mm box with one corner at the origin.

> {"cmd": "fillet_radii", "s": 1, "edges": [[0, 0, 15], [10, 0, 15]], "radii": [1, 2]}
< {"ok": 2}

An edge is named by a point on it. Each point names the edge of s that passes within 10·ε of the point, where ε is the suite's tolerance of 1e-7 mm. A call with a point that names no edge refuses. Naming an edge by a point does not depend on how any kernel numbers or labels its topology, and a test can compute such a point from the solid's definition.

A blend runs along the whole tangent chain of its edge. The chain is the named edge and every edge reached from it through vertices where the next edge leaves in the direction in which the last edge arrived. The top loop of a prism on a rounded rectangle is one chain, so a point on any edge of that loop blends the whole loop. Following the chain is the work of the function, and so of the kernel. An adapter passes on the edge the point names and no other edge.

FunctionFieldsReturns
fillets, edges, radiusSolid
fillet_radiis, edges, radiiSolid
fillet_variables, edge, from, r_from, r_toSolid
fillet_conics, edges, setback, rhoSolid
fillet_g2s, edges, offset, centerSolid
fillet_setbacks, edges, radius, setbackSolid
fillet_setback_g2s, edges, radius, setbackSolid
fillet_facess, face_a, face_b, radiusSolid
full_rounds, side_a, middle, side_bSolid
chamfers, edges, distanceSolid
chamfer_twos, edge, face, d1, d2Solid
chamfer_distancess, edges, distancesSolid