• Type Parameters

    • Type extends
          | "geometry"
          | "line"
          | "pbmMesh"
          | "pbmPointCloud"
    • ResultType = {
          geometry: BufferGeometry;
          line: Line<BufferGeometry, Material | Material[]>;
          pbmMesh: PBMMesh;
          pbmPointCloud: PBMPointCloud;
      }[Type]

    Parameters

    • url: string
    • options: {
          customPropertyMapping?: Record<string, {
              itemNames: string[];
              itemType:
                  | "float32"
                  | "uint32"
                  | "int32"
                  | "uint16"
                  | "int16"
                  | "uint8"
                  | "int8";
              normalized?: boolean;
          }>;
          fetcher?: Fetcher;
          light?: boolean;
          modelUpAxis?: "Y" | "Z";
          propertyNameMapping?: Record<string, string>;
          type?: Type;
          upAxis?: "Y" | "Z";
      } = {}
      • OptionalcustomPropertyMapping?: Record<string, {
            itemNames: string[];
            itemType:
                | "float32"
                | "uint32"
                | "int32"
                | "uint16"
                | "int16"
                | "uint8"
                | "int8";
            normalized?: boolean;
        }>
      • Optionalfetcher?: Fetcher
      • Optionallight?: boolean
      • OptionalmodelUpAxis?: "Y" | "Z"
      • OptionalpropertyNameMapping?: Record<string, string>
      • Optionaltype?: Type
      • OptionalupAxis?: "Y" | "Z"

    Returns Promise<LoadResultType<ResultType>>