fill()
Makes a surface of one face inside a closed boundary of edges and curves: a cap on an opening of a surface, a patch between curves that no extrude, revolve, sweep or loft describes (three sides, five, a wavy outline), or a flat face inside a closed sketch.
The boundary is one closed loop: its pieces, in any order, must join end to end and close. Ends that nearly meet are joined; an edge given twice counts once. An open boundary is refused, naming its open ends; so are several loops, pieces that branch, and a curve lying on another piece of the boundary.
By default the fill meets the faces beside its boundary in position
only. Chain .continuity('g1') for a tangent join or
.continuity('g2') for a curvature-continuous one, .adjacent(…) to
say which faces to be continuous with, and .guides(…) for points
and curves the surface must pass through. A flat loop with none of
these is filled with its plane exactly.
Where the boundary runs along the rim of a surface — the opening
deleteFace(…).mode('open') leaves, the end of a tube — the fill is
joined to that surface: one body, still a surface while it has a rim,
a solid once none is left. Every surface with a rim edge in the
boundary is joined; an edge between two faces of a surface, an edge
of a solid and a free curve join nothing. Chain .new() to keep the
fill a surface of its own. A sketch or a curve of the boundary is
hidden and stays readable, a solid whose edges it runs along stays as
it is: the fill is never fused with a solid.
Returns: Fill
See the guide for detailed usage examples.
Signatures
fill(...boundary: (SceneObject | SceneObject[])[]): Fill
Makes a surface of one face inside a closed boundary of edges and curves: a cap on an opening of a surface, a patch between curves that no extrude, revolve, sweep or loft describes (three sides, five, a wavy outline), or a flat face inside a closed sketch.
The boundary is one closed loop: its pieces, in any order, must join end to end and close. Ends that nearly meet are joined; an edge given twice counts once. An open boundary is refused, naming its open ends; so are several loops, pieces that branch, and a curve lying on another piece of the boundary.
By default the fill meets the faces beside its boundary in position
only. Chain .continuity('g1') for a tangent join or
.continuity('g2') for a curvature-continuous one, .adjacent(…) to
say which faces to be continuous with, and .guides(…) for points
and curves the surface must pass through. A flat loop with none of
these is filled with its plane exactly.
Where the boundary runs along the rim of a surface — the opening
deleteFace(…).mode('open') leaves, the end of a tube — the fill is
joined to that surface: one body, still a surface while it has a rim,
a solid once none is left. Every surface with a rim edge in the
boundary is joined; an edge between two faces of a surface, an edge
of a solid and a free curve join nothing. Chain .new() to keep the
fill a surface of its own. A sketch or a curve of the boundary is
hidden and stays readable, a solid whose edges it runs along stays as
it is: the fill is never fused with a solid.
| Parameter | Type | Description |
|---|---|---|
...boundary | (SceneObject | SceneObject[])[] | Curves forming one closed loop: selections of edges of solids or surfaces, curve objects, sketches, or lists of those. At least one. (optional) |