import { ConwayGeometry, GeometryObject, ResultsGltf } from "../../dependencies/conway-geom/index.js"; import { AggregatedNativeGeometry } from "./geometry_aggregator.js"; import { NativeVectorGeometryCollection, NativeVectorMaterial } from "./native_types.js"; /** * Converts geometry using the native wasm module. */ export default class GeometryConvertor { private readonly wasmModule; /** * Construct this given a wasm module. * * @param wasmModule The wasm module. */ constructor(wasmModule: ConwayGeometry); /** * @param geometry - GeometryObject to convert to OBJ * @return {string} - Obj string or blank string */ toObj(geometry: GeometryObject): string; /** * Convert chunked geometry to one or more GLTF/GLBs * * @param geometry - GeometryObject to convert to GLTF / GLB * @param isGlb boolean - Should the output be a single GLB file? * @param outputDraco boolean - Should the output be Draco compressed? * @param fileUri string - base filenames for GLTF / GLB files * @yields {ResultsGltf} - Structure containing GLTF / GLB filenames + data vectors * corresponding to each chunk. */ toGltfs(geometry: AggregatedNativeGeometry, isGlb: boolean, outputDraco: boolean, fileUri: string): IterableIterator; /** * Convert geometry to a GLTF/GLB * * @param geometry - GeometryObject to convert to GLTF / GLB * @param materials * @param isGlb boolean - Should the output be a single GLB file? * @param outputDraco boolean - Should the output be Draco compressed? * @param fileUri string - base filenames for GLTF / GLB files * @param geometryOffset The starting offset of the geometry span to convert (default 0). * @param geometryCount The number of items to convert (default ) * @return {ResultsGltf} - Structure containing GLTF / GLB filenames + data vectors */ toGltf(geometry: NativeVectorGeometryCollection, materials: NativeVectorMaterial, isGlb: boolean, outputDraco: boolean, fileUri: string, geometryOffset?: number, geometryCount?: number): ResultsGltf; } //# sourceMappingURL=geometry_convertor.d.ts.map