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.
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; passmeshLevelto offload finer levels (e.g. to a worker). An abortedsignalstops refinement and resolves with the levels produced so far.