Function round_corner

  • Create a function that modifies a diagram by rounding the corners of a polygon or curve

    Parameters

    • radius: number | number[] = 1

      radius of the corner

    • Optionalpoint_indices: number[]

      indices of the points to be rounded

    • count: number = 40

    Returns modifierFunction

    function that modifies a diagram

    let s = square(5).apply(mod.round_corner(2, [0,2]))