MLightCAD
    Preparing search index...

    Remaps layer metadata and material bindings when block contents inherit an INSERT layer.

    AutoCAD requires entities authored on layer "0" inside a block to inherit the INSERT's layer for ByLayer traits. This mapper mutates drawable userData.layerName and rebinds materials via the renderer style cache so subsequent layer-level style edits target the correct material instances.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Remaps materials for objects in a layer bucket after INSERT decomposition.

      Parameters

      • objects: Object3D<Object3DEventMap>[]

        Root objects in the current layer bucket to traverse and remap.

      • sourceLayerName: string

        Layer name found in the block definition before inheritance.

      • effectiveLayerName: string

        Final layer name used by rendering and style updates.

      Returns void