OptionalonProgress?: (p: LoaderProgress) => voidOptional progress callback fired between phases and at
intervals during the per-object loops. Same LoaderProgress
shape the SDK's loaders use.
SceneModel to strip materials from.
Optionalsignal?: AbortSignalOptional AbortSignal. When aborted, the function throws
AbortError from the next yieldToHost checkpoint.
{ok: true} when the rebuild completes — the SceneModel now
carries colour-only meshes again and the _attached_*
materials and textures are gone.
{ok: false} propagating the first SceneModel failure
encountered (mesh-create / mesh-destroy / addMesh).
Inverse of applyIFCMaterials: detaches every SceneMesh from the SceneModel's
_attached_*materials, destroys those materials and the textures they own, and rebuilds the meshes with their original per-meshcolorrestored.Same detach + destroy + recreate + reattach pattern as
applyIFCMaterials, run in reverse:applyIFCMaterialssnapshotscolorthrough its round-trip so the original mesh colour survives the apply, and this function pulls that colour out of each live SceneMesh on its way back through. A pristine reload of the model isn't required to recover the loaded look.Idempotent: a SceneModel that never had
applyIFCMaterialsrun over it is left untouched (no_attached_*resources to find).