brepjs API Reference
    Preparing search index...

    Interface MeshCacheContext

    An isolated mesh cache context for per-viewer or per-worker use.

    Provides the same get/set interface as the global cache but with independent state, so multiple viewers can cache independently.

    interface MeshCacheContext {
        clear(): void;
        getEdgeMesh(shape: any, key: string): EdgeMesh | undefined;
        getMesh(shape: any, key: string): ShapeMesh | undefined;
        setEdgeMesh(shape: any, key: string, value: EdgeMesh): void;
        setMesh(shape: any, key: string, value: ShapeMesh): void;
    }
    Index

    Methods