Function extrudePolyline

  • Parameters

    • polylines: any[]

      Polylines array that match GeoJSON MultiLineString geometry.

    • Optional opts: {
          bevelSegments?: number;
          bevelSize?: number;
          boundingRect?: {
              height: number;
              width: number;
              x: number;
              y: number;
          };
          depth?: number | ((idx) => number);
          excludeBottom?: boolean;
          fitRect?: {
              height?: number;
              width?: number;
              x?: number;
              y?: number;
          };
          isMapMode?: boolean;
          lineWidth?: number;
          miterLimit?: number;
          removeIntersections?: boolean;
          scale?: ArrayLike<number>;
          simplify?: number;
          smoothBevel?: boolean;
          smoothSide?: boolean;
          smoothSideThreshold?: number;
          translate?: ArrayLike<number>;
      }
      • Optional bevelSegments?: number

        default 2

      • Optional bevelSize?: number

        default 0

      • Optional boundingRect?: {
            height: number;
            width: number;
            x: number;
            y: number;
        }
        • height: number
        • width: number
        • x: number
        • y: number
      • Optional depth?: number | ((idx) => number)
      • Optional excludeBottom?: boolean

        default false

      • Optional fitRect?: {
            height?: number;
            width?: number;
            x?: number;
            y?: number;
        }

        translate and scale will be ignored if fitRect is set

        • Optional height?: number
        • Optional width?: number
        • Optional x?: number
        • Optional y?: number
      • Optional isMapMode?: boolean
      • Optional lineWidth?: number

        default 1

      • Optional miterLimit?: number

        default 2

      • Optional removeIntersections?: boolean
      • Optional scale?: ArrayLike<number>
      • Optional simplify?: number

        default 0

      • Optional smoothBevel?: boolean

        default false

      • Optional smoothSide?: boolean

        default 'auto'

      • Optional smoothSideThreshold?: number

        default 0.9

      • Optional translate?: ArrayLike<number>

    Returns {
        boundingRect: {
            height: number;
            width: number;
            x: number;
            y: number;
        };
        geometry: BufferGeometry<NormalBufferAttributes>;
        indices: Uint16Array | Uint32Array;
        normal: Float32Array;
        position: Float32Array;
        uv: Float32Array;
    }

    {indices, position, uv, normal, boundingRect}

    • boundingRect: {
          height: number;
          width: number;
          x: number;
          y: number;
      }
      • height: number
      • width: number
      • x: number
      • y: number
    • geometry: BufferGeometry<NormalBufferAttributes>
    • indices: Uint16Array | Uint32Array
    • normal: Float32Array
    • position: Float32Array
    • uv: Float32Array