@pixi/3d
    Preparing search index...

    Class GeometryThumbnailGeneratorAdvanced

    Draws and caches small shaded previews of Geometry3Ds, keyed by uid

    Each preview is drawn in one colour, whatever the material, on the CPU into a 2D canvas, so it needs no renderer.

    Index
    defaultOptions: GeometryThumbnailGeneratorOptions = ...

    Defaults for every new GeometryThumbnailGenerator; an option passed as undefined keeps its default

    GeometryThumbnailGenerator.defaultOptions.size = 96;
    
    • Empties the thumbnail cache

      Returns void

    • Returns the cached result for a geometry uid, ready or unsupported, or undefined when none is cached

      Parameters

      • geometryId: number

        The geometry uid to look up

      Returns GeometryThumbnailResult | undefined

    • Drops cached thumbnails for geometries no longer in use

      Parameters

      • retainedGeometryIds: ReadonlySet<number>

        Geometry uids to keep; the rest are dropped

      Returns void