Viewer - Drawing Tools
    Preparing search index...

    Function removeClosingPoint

    • Remove the closing point of a polyline: as in Rhino, a closed polyline repeats its first point as the last point. The drawing tools store the points without this repetition (a closed loop is a flag), so a value with a closing point (e.g. a default value exported from Grasshopper) has to be normalized before it is compared with or loaded into the drawing tools.

      Type Parameters

      • T extends ArrayLike<number>

      Parameters

      • points: readonly T[]

        The points of the polyline.

      Returns readonly T[]

      The points without a closing point (a new array when a closing point was removed, the given array otherwise).