sdf.Plane
sdf.Plane(height=0.0, material=None)
Infinite horizontal plane at y = height.
SDF: p.y - height (positive above the plane, negative below). Normal always points +Y.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| height | float | Scalar | Y-coordinate of the plane (float or Scalar parameter). | 0.0 |
| material | Surface material. | None |
Example
ground = Plane(height=-1.0, material=Material(color=[0.4, 0.4, 0.4]))
Methods
| Name | Description |
|---|---|
| patch_fields | Single smooth patch: an infinite plane has no feature edges. |
| sdf | Pure SDF for an infinite horizontal plane. |
patch_fields
sdf.Plane.patch_fields()
Single smooth patch: an infinite plane has no feature edges.
sdf
sdf.Plane.sdf(p, height)
Pure SDF for an infinite horizontal plane.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| p | Array | Point to evaluate, shape (3,). | required |
| height | Array | Y-coordinate of the plane. | required |
Returns
| Name | Type | Description |
|---|---|---|
| Array | Signed distance (positive above the plane). |