sdf.Twist
sdf.Twist(sdf, strength, axis='z')
Twist deformation around an arbitrary axis.
Rotates points progressively based on their projection along the axis. Note: This produces an approximation, not an exact SDF.
Parameters
| sdf |
|
The SDF to twist |
required |
| strength |
float | Scalar |
Twist amount (radians per unit length along axis) |
required |
| axis |
str | Array | Vector |
Twist axis as Array [x, y, z], Vector, or string (‘x’, ‘y’, ‘z’). Defaults to ‘z’. |
'z' |
Methods
| sdf |
Pure function for twist deformation around an arbitrary axis. |
sdf
sdf.Twist.sdf(child_sdf, p, strength, axis)
Pure function for twist deformation around an arbitrary axis.
Parameters
| child_sdf |
|
SDF function to twist |
required |
| p |
Array |
Query point(s) |
required |
| strength |
float |
Twist strength in radians per unit length along axis |
required |
| axis |
Array |
Normalized twist axis [x, y, z] |
required |
Returns
|
Array |
Twisted SDF value (approximate) |