offset()
Offsets sketch geometry by the given distance. With no targets, offsets
the whole sketch (or the last select(...) result if one precedes it).
Outside a sketch, targets may be one or more coplanar faces (a
select(face()...) result or a solid op's face accessor like
body.endFaces()); with no targets the preceding select(...) is used.
The offset outlines are created on the face plane — a positive distance
offsets outward and shrinks holes — and the result is extrudable like
any sketch.
Returns: Offset
See the guide for detailed usage examples.
Signatures
offset(distance?: NumberParam, ...targets: (ISceneObject | EdgeFilterBuilder)[]): Offset
Offsets sketch geometry by the given distance. With no targets, offsets
the whole sketch (or the last select(...) result if one precedes it).
Outside a sketch, targets may be one or more coplanar faces (a
select(face()...) result or a solid op's face accessor like
body.endFaces()); with no targets the preceding select(...) is used.
The offset outlines are created on the face plane — a positive distance
offsets outward and shrinks holes — and the result is extrudable like
any sketch.
| Parameter | Type | Description |
|---|---|---|
distance | NumberParam | The offset distance (defaults to 1) (optional) |
...targets | (ISceneObject | EdgeFilterBuilder)[] | Optional geometries, edge accessors (r.edge('top')), edge filters (edge().arc()), or (outside a sketch) coplanar face selections to offset instead of the whole sketch (optional) |