KiCad PCB EDA Suite
Loading...
Searching...
No Matches
MODEL_SUBSTITUTION Namespace Reference

Shared helpers for matching obsolete .wrl/.wrz 3D model references against current STEP-family replacements. More...

Classes

class  STEP_CATALOG
 An index of STEP-family model files keyed by normalised filename stem. More...
 

Functions

bool IsWrlExtension (const wxString &aFilename)
 True iff aFilename ends in .wrl or .wrz (case-insensitive).
 

Detailed Description

Shared helpers for matching obsolete .wrl/.wrz 3D model references against current STEP-family replacements.

Used both by the interactive migration dialog (which rewrites board-state references) and by the 3D cache (which substitutes on-the-fly in CLI/scripting contexts). Keeping the matcher in one place guarantees both code paths agree on "same name".

Function Documentation

◆ IsWrlExtension()

bool MODEL_SUBSTITUTION::IsWrlExtension ( const wxString & aFilename)

True iff aFilename ends in .wrl or .wrz (case-insensitive).

Definition at line 186 of file model_substitution_helpers.cpp.

Referenced by DIALOG_MIGRATE_3D_MODELS::collectMissingWrlModels(), MODEL_SUBSTITUTION::STEP_CATALOG::FindMatchFor(), and S3D_CACHE::load().