Converts geometry using the native wasm module.

Constructors

Methods

Constructors

Methods

  • Convert geometry to a GLTF/GLB

    Parameters

    • geometry: NativeVectorGeometryCollection

      GeometryObject to convert to GLTF / GLB

    • materials: NativeVectorMaterial
    • isGlb: boolean

      boolean - Should the output be a single GLB file?

    • outputDraco: boolean

      boolean - Should the output be Draco compressed?

    • fileUri: string

      string - base filenames for GLTF / GLB files

    • geometryOffset: number = 0

      The starting offset of the geometry span to convert (default 0).

    • geometryCount: number = ...

      The number of items to convert (default )

    Returns ResultsGltf

    • Structure containing GLTF / GLB filenames + data vectors
  • Convert chunked geometry to one or more GLTF/GLBs

    Parameters

    • geometry: AggregatedNativeGeometry

      GeometryObject to convert to GLTF / GLB

    • isGlb: boolean

      boolean - Should the output be a single GLB file?

    • outputDraco: boolean

      boolean - Should the output be Draco compressed?

    • fileUri: string

      string - base filenames for GLTF / GLB files

    Returns IterableIterator<ResultsGltf>

    • Structure containing GLTF / GLB filenames + data vectors corresponding to each chunk.
  • Parameters

    • geometry: GeometryObject

      GeometryObject to convert to OBJ

    Returns string

    • Obj string or blank string