brepjs API Reference
    Preparing search index...

    Type Alias MeshLevelFn

    MeshLevelFn: (
        shape: AnyShape<Dimension>,
        tolerance: number,
        angularTolerance: number,
    ) => ShapeMesh | Promise<ShapeMesh>

    Mesh one LOD level. Defaults to the synchronous main-thread mesh; pass an async implementation (e.g. one that serializes the shape with toBREP and meshes it on a worker) to refine finer levels off the main thread.

    Type Declaration