Skip to content

s_bend_length

s_bend_length(offset, radius=None, meander=True)

Compute the ideal S bend length for a given offset and radius.

Args

  • offset (float): S bend offset.
  • radius (float | None): Desired S bend radius. If None, look for deafult in config.default_kwargs.
  • meander (bool): If true, the resulting length will generate S bends that turn more than 90° per bend when offset >= 2 * radius. Otherwise, the length will be set to 2 * radius in that cases.

Returns

float: S bend length.

Note

If offset >= 4 * radius, returns 2 * radius.