sdf.Rotate
sdf.Rotate(sdf, axis, angle)
Rotate an SDF around an axis.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| sdf | SDF | The SDF to rotate | required |
| axis | str | Array | Vector | Rotation axis as Array [x, y, z], Vector parameter, or string (‘x’, ‘y’, ‘z’) | required |
| angle | float | Scalar | Rotation angle in radians (float or Scalar parameter) | required |
Methods
| Name | Description |
|---|---|
| patch_fields | Forward the child’s patch fields through the inverse rotation. |
| sdf | Pure function for rotation around arbitrary axis. |
patch_fields
sdf.Rotate.patch_fields()
Forward the child’s patch fields through the inverse rotation.
Query points map into the child frame exactly as :meth:sdf does (R.T @ p); rotation is an isometry, so field values — and with them patch ownership and feature edges — stay exact.
sdf
sdf.Rotate.sdf(child_sdf, p, axis, angle)
Pure function for rotation around arbitrary axis.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| child_sdf | SDF function to rotate | required | |
| p | Array | Query point(s) | required |
| axis | Array | Rotation axis [x, y, z] | required |
| angle | float | Rotation angle in radians | required |
Returns
| Name | Type | Description |
|---|---|---|
| Array | Rotated SDF value |