|
KiCad PCB EDA Suite
|
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). | |
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".
| bool MODEL_SUBSTITUTION::IsWrlExtension | ( | const wxString & | aFilename | ) |
True iff aFilename ends in .wrl or .wrz (case-insensitive).
Definition at line 188 of file model_substitution_helpers.cpp.
Referenced by DIALOG_MIGRATE_3D_MODELS::AutoMigrateByFilename(), DIALOG_MIGRATE_3D_MODELS::BoardHasUnresolvedWrlReferences(), DIALOG_MIGRATE_3D_MODELS::collectMissingModels(), DIALOG_MIGRATE_3D_MODELS::CountUnresolvedWrlReferences(), MODEL_SUBSTITUTION::STEP_CATALOG::FindMatchFor(), and S3D_CACHE::load().