import { IGLTF_v2 } from "@shapediver/viewer.data-engine.shared-types"; import { GeometryData, MaterialVariantsData } from "@shapediver/viewer.shared.node-tree"; import { AccessorLoader } from "./AccessorLoader"; import { BufferViewLoader } from "./BufferViewLoader"; import { MaterialLoader } from "./MaterialLoader"; export declare class GeometryLoader { private readonly _content; private readonly _accessorLoader; private readonly _bufferViewLoader; private readonly _materialLoader; private readonly _dracoModule; private readonly _logger; private readonly _attributeNameCache; private readonly _digitRegex; private _dracoDecoder; private _materialVariantsData; private _loaded; constructor(_content: IGLTF_v2, _accessorLoader: AccessorLoader, _bufferViewLoader: BufferViewLoader, _materialLoader: MaterialLoader, _dracoModule: any); get materialVariantsData(): MaterialVariantsData; loadMesh(meshId: number, weights?: number[]): GeometryData[]; /** * Check if the material has maps defined and if so, if there are texture coordinates available. If not, remove all maps from the material. * Otherwise, return the material as is. * * @param attributes * @param material * @returns */ private cleanMaterial; private loadPrimitive; /** * Clean up resources to free memory after loading is complete */ cleanup(): void; } //# sourceMappingURL=GeometryLoader.d.ts.map