fillet_variable
Blends · api.md § fillet_variable · all operations
definition
fillet_variable(s: Solid, edge: Point3, from: Point3, r_from: Length, r_to: Length) -> Solid
Rounds one edge as fillet does, but by a ball whose radius changes evenly with length along the edge, from r_from at the end nearest from to r_to at the other end. Both radii must be positive, the ball must fit all along the edge, and from must be nearer one end of the edge than the other. The ball touches each face along the line where the foot of the ball's centre falls, and the blend meets each face there tangentially. The surface of the blend between those two lines is open within limits. The blend has no crease. A ball reaches no farther along the edge than its radius. So at each point along the edge, the result lies between the edge filleted at the least radius and the edge filleted at the greatest radius that the ball has within a distance of the larger of r_from and r_to from that point.
Example. Solid 1 is a 10 × 20 × 30 mm box with one corner at the origin.
> {"cmd": "fillet_variable", "s": 1, "edge": [0, 0, 15], "from": [0, 0, 0], "r_from": 1, "r_to": 2}
< {"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 |