brepjs API Reference
    Preparing search index...

    Function meshLODs

    • Mesh a shape at several levels of detail, coarse → fine.

      Tolerances are scale-relative by default: the finest level is a fraction (relativeTolerance) of the shape's bounding-box diagonal and each coarser level steps up by spacing×, so the same call gives sensible detail whether the part is millimetres or metres. Pass tolerances for absolute control. Each level goes through mesh, so levels are cached individually.

      Parameters

      Returns LODMesh[]

      LOD levels ordered coarsest → finest.

      toLODGeometryLevels — convert to THREE.LOD geometry data