offset()
Offsets sketch geometry by the given distance. With no targets, offsets
the whole sketch (or the last select(...) result if one precedes it).
Returns: Offset
tip
See the guide for detailed usage examples.
Signatures
offset(distance?: NumberParam, removeOriginal?: BooleanParam, ...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).
| Parameter | Type | Description |
|---|---|---|
distance | NumberParam | The offset distance (defaults to 1) (optional) |
removeOriginal | BooleanParam | Whether to remove the original geometry (optional) |
...targets | (ISceneObject | EdgeFilterBuilder)[] | Optional geometries, edge accessors (r.edge('top')), or edge filters (edge().arc()) to offset instead of the whole sketch (optional) |
offset(distance: NumberParam, ...targets: (ISceneObject | EdgeFilterBuilder)[]): Offset
Offsets the given targets by the given distance.
| Parameter | Type | Description |
|---|---|---|
distance | NumberParam | The offset distance |
...targets | (ISceneObject | EdgeFilterBuilder)[] | Geometries, edge accessors, or edge filters to offset (optional) |