fillet_g2
Blends · api.md § fillet_g2 · all operations
definition
fillet_g2(s: Solid, edges: list<Point3>, offset: Length, center: Length) -> Solid
Rounds edges by a curvature-continuous blend sized by two lengths. The first is its tangent offset, the radius of the ball whose contacts the blend shares: the blend meets each face where a ball of offset rolling along the edge touches that face. The second is its center radius, the blend's radius of curvature at its middle. Between planes, the section of the blend across the edge is the blend section of order 2 between the two contacts, with its apex on the edge, at the thumbweight that gives the middle of the section the center radius. The blend shares each face's tangent plane and the face's curvature too, so the blend starts as straight as the face. A circular fillet bends at once by 1/offset, and so fails to share the face's curvature. The section at the equal-area thumbweight takes off what the ball's round takes off. At a square edge, the center radius of that section is about 1.389 times the offset.
Both lengths must be positive, a ball of offset must fit as fillet requires, and center must be a radius that the section takes at some thumbweight between 0 and 1.
Example. Solid 1 is a 10 × 20 × 30 mm box with one corner at the origin.
> {"cmd": "fillet_g2", "s": 1, "edges": [[0, 0, 15]], "offset": 2, "center": 1.5}
< {"ok": 2}common to blends
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.
| Function | Fields | Returns |
|---|---|---|
fillet | s, edges, radius | Solid |
fillet_radii | s, edges, radii | Solid |
fillet_variable | s, edge, from, r_from, r_to | Solid |
fillet_conic | s, edges, setback, rho | Solid |
fillet_g2 | s, edges, offset, center | Solid |
fillet_setback | s, edges, radius, setback | Solid |
fillet_setback_g2 | s, edges, radius, setback | Solid |
fillet_faces | s, face_a, face_b, radius | Solid |
full_round | s, side_a, middle, side_b | Solid |
chamfer | s, edges, distance | Solid |
chamfer_two | s, edge, face, d1, d2 | Solid |
chamfer_distances | s, edges, distances | Solid |