Class PathGeometry

PathGeometry

Hierarchy (view full)

Constructors

  • Parameters

    • initData: Number | {
          options: Record<string, any>;
          pathPointList: PathPointList;
          usage: Usage;
      } = 3000

      If initData is number, geometry init by empty data and set it as the max vertex. If initData is Object, it contains pathPointList and options.

    • Optional generateUv2: Boolean = false

    Returns PathGeometry

Methods

  • Parameters

    • pathPointList: any
    • options: {} = {}
      • usage: any
      • generateUv2: any

      Returns void

    • Parameters

      • maxVertex: any
      • generateUv2: any

      Returns void

    • Parameters

      • name: any
      • len: any

      Returns void

    • Parameters

      • len: any

      Returns void

    • Parameters

      • position: any
      • normal: any
      • uv: any
      • uv2: any
      • indices: any

      Returns void

    • Update geometry by PathPointList instance

      Parameters

      • pathPointList: PathPointList
      • options: {
            arrow?: Boolean;
            progress?: number;
            side?: "left" | "right" | "both";
            width?: number;
        } = {}
        • Optional arrow?: Boolean
        • Optional progress?: number
        • Optional side?: "left" | "right" | "both"

          "left"/"right"/"both"

        • Optional width?: number

      Returns void