brepjs API Reference
    Preparing search index...

    Function meshLODsProgressive

    • Mesh a shape at several levels of detail, delivering them over time coarse → fine instead of all at once — so a viewer paints the coarse preview first and refines as finer levels land.

      The coarsest level is meshed first and reported via onLevel; control then yields to the event loop before each finer (heavier) level so the UI stays responsive. Each level is meshed synchronously on the calling thread by default; pass meshLevel to offload finer levels (e.g. to a worker). An aborted signal stops refinement and resolves with the levels produced so far.

      Parameters

      Returns Promise<LODMesh[]>

      the delivered LOD levels, coarsest → finest.

      meshLODs — the synchronous, all-at-once variant