Skip to content
brep-conformancegithub

fillet_setback_g2

Blends · api.md § fillet_setback_g2 · all operations

fillet_setback_g2(s: Solid, edges: list<Point3>, radius: Length, setback: Length) -> Solid

Rounds edges as fillet_setback does, and requires what fillet_setback requires, but with the fillets and the patch curvature-continuous throughout. Each fillet is the fillet_g2 blend of tangent offset radius at the equal-area thumbweight, so the fillet meets its faces with their curvature and takes off what the round of radius does. Each fillet holds that section until setback from the corner. The patch meets the three fillets and the three faces with their curvature as well as their tangent planes. Where fillet i ends, on its section square to its edge setback from the corner, the boundary bends by the section's center radius round the edge and not along it, on both sides of the seam. Across the whole corner, which is its faces, fillets and patch, the boundary's curvature changes without a jump. Circular fillets cannot be closed this way. They meet their faces with a jump in curvature, and no patch matches both the fillet and the face where a fillet's end section meets a face.

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

> {"cmd": "fillet_setback_g2", "s": 1, "edges": [[5, 0, 0], [0, 10, 0], [0, 0, 15]],
   "radius": 1, "setback": 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