shapeField.analytic3d
A true 3D solid (sphere, torus, knot…) from its baked distance function, rotated by the shape's live rotation so the swarm follows the surface as it turns.
shapeField.analytic3d(layout: RotatedFieldLayout, baked: ShapeField3): ShapeField3
Import sim from shaders/std and use sim.shapeFields.shapeField.analytic3d.
Parameters
| Name | Type | Notes |
|---|---|---|
layout | RotatedFieldLayout | |
baked | ShapeField3 |
Example
shapeField.analytic3d(setup3d.layout, setup3d.sdfFn as ShapeField3)
See also
shapeField.analyticExtruded— A flat shape given depth: the 2D distance of a circle, polygon or star, extruded in z byparams.halfDepth.shapeField.svgLifted3d— An SVG outline lifted into a 3D solid, rotated by the shape's live rotation.