sdf.Offset
sdf.Offset(sdf, distance)
Offset (grow/shrink) a shape’s surface: f(p) - distance.
Positive distances grow the shape outward; negative distances shrink it.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| sdf | Child shape (SDF node or plain callable). | required | |
| distance | float | Scalar | Offset distance. | required |
Methods
| Name | Description |
|---|---|
| sdf | Pure function for the offset operation. |
sdf
sdf.Offset.sdf(child_sdf, p, distance)
Pure function for the offset operation.