sdf.Capsule
sdf.Capsule(radius, height, material=None)
Capsule (cylinder with spherical caps) along Z-axis.
Parameters
| radius |
float | Scalar |
Capsule radius (float or Scalar) |
required |
| height |
float | Scalar |
Half-height of cylindrical section (float or Scalar) |
required |
Methods
| patch_fields |
Single smooth patch: the capsule surface is C1 (no feature edges). |
| sdf |
Pure SDF function for capsule. |
patch_fields
sdf.Capsule.patch_fields()
Single smooth patch: the capsule surface is C1 (no feature edges).
sdf
sdf.Capsule.sdf(p, radius, height)
Pure SDF function for capsule.
Parameters
| p |
Array |
Point(s) to evaluate, shape (…, 3) |
required |
| radius |
float |
Capsule radius |
required |
| height |
float |
Half-height of cylindrical section |
required |
Returns
|
Array |
Signed distance to capsule surface |