Function buildLineGeometry

  • Parameters

    • lineData: {
          close?: boolean;
          epsilon?: number;
          lineStyle?: LineStyle;
          points: number[];
      }

      The graphics object containing all the necessary properties

      • Optional close?: boolean

        是否首尾相连。

        Default

        false

      • Optional epsilon?: number

        Minimal distance between points that are considered different. Affects line tesselation.

        Default

        1e-4

      • Optional lineStyle?: LineStyle

        The style of the line.

      • points: number[]

        The collection of points.

    • geometry: {
          indices: number[];
          points: number[];
      } = ...

      Geometry where to append output

      • indices: number[]

        The indices of the vertices

      • points: number[]

        An array of points to draw, 2 numbers per point

    Returns {
        indices: number[];
        points: number[];
    }

    • indices: number[]

      The indices of the vertices

    • points: number[]

      An array of points to draw, 2 numbers per point

Generated using TypeDoc