Function extrudeGeoJSON

  • Parameters

    • geojson: any
    • 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;
          scale?: ArrayLike<number>;
          simplify?: number;
          smoothBevel?: boolean;
          smoothSide?: boolean;
          smoothSideThreshold?: number;
          translate?: ArrayLike<number>;
      }
      • Optional bevelSegments?: number
      • Optional bevelSize?: number
      • 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
      • 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 scale?: ArrayLike<number>
      • Optional simplify?: number
      • Optional smoothBevel?: boolean
      • Optional smoothSide?: boolean
      • Optional smoothSideThreshold?: number

        default 0.9

      • Optional translate?: ArrayLike<number>

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

    {polyline: {indices, position, uv, normal}, polygon: {indices, position, uv, normal}}

    • polygon: {
          boundingRect: {
              height: number;
              width: number;
              x: number;
              y: number;
          };
          geometry: BufferGeometry<NormalBufferAttributes>;
          indices: Uint16Array | Uint32Array;
          normal: Float32Array;
          position: Float32Array;
          uv: Float32Array;
      }
      • 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
    • polyline: {
          boundingRect: {
              height: number;
              width: number;
              x: number;
              y: number;
          };
          geometry: BufferGeometry<NormalBufferAttributes>;
          indices: Uint16Array | Uint32Array;
          normal: Float32Array;
          position: Float32Array;
          uv: Float32Array;
      }
      • 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