|
WoWs Model Exported
World of Warships 3D model Exporter
|
Functions | |
| std::string | wows_stitch_path_basename (const std::string &p) |
Return the basename component of a path (everything after the last /). | |
| std::string | wows_stitch_path_dirname (const std::string &p) |
Return the directory component of a path (everything up to and including the last /). | |
| std::string | wows_stitch_stem (const std::string &filename) |
| Return the stem of a filename (basename without the final extension). | |
| std::string | wows_stitch_normalize_slashes (std::string s) |
Replace all backslashes in s with forward slashes and return the result. | |
| bool | wows_stitch_file_exists (const std::string &p) |
Return true if the file at p exists and is readable. | |
| std::string | wows_stitch_model_to_geom_path (const std::string &model, const std::string &game_dir) |
Resolve a .visual model path to the corresponding .geometry file path. | |
| std::string | wows_stitch_geom_to_visual_suffix (const std::string &geom_path) |
Convert a .geometry filesystem path to its .visual suffix form. | |
| std::vector< std::string > | wows_stitch_find_hull_geoms (const std::string &hull_model, const std::string &game_dir) |
Find all .geometry files belonging to a hull model. | |
| std::vector< std::string > | wows_stitch_find_propeller_geoms (const std::string &hull_model, const std::string &game_dir) |
Find propeller/screw .geometry files for a ship. | |
| std::string | wows_stitch_find_game_file (const std::string &game_dir, const std::string &filename) |
Search for a game asset file by name under game_dir. | |
| bool wows_stitch_file_exists | ( | const std::string & | p | ) |
Return true if the file at p exists and is readable.
| std::string wows_stitch_find_game_file | ( | const std::string & | game_dir, |
| const std::string & | filename | ||
| ) |
Search for a game asset file by name under game_dir.
| game_dir | Root resource directory. |
| filename | Filename (not a path) to search for. |
| std::vector< std::string > wows_stitch_find_hull_geoms | ( | const std::string & | hull_model, |
| const std::string & | game_dir | ||
| ) |
Find all .geometry files belonging to a hull model.
A single hull is often split into multiple part files (_Bow, _MidFront, etc.); this function enumerates them all.
| hull_model | Path to the hull .visual model. |
| game_dir | Root resource directory. |
.geometry files. | std::vector< std::string > wows_stitch_find_propeller_geoms | ( | const std::string & | hull_model, |
| const std::string & | game_dir | ||
| ) |
Find propeller/screw .geometry files for a ship.
Scans the same directory as the hull geometry for files whose names contain "prop" or "screw" (case-insensitive) and end in .geometry. These are the propeller meshes that the game animates at runtime.
| hull_model | Path to the hull .visual or .model file. |
| game_dir | Root resource directory. |
.geometry files. | std::string wows_stitch_geom_to_visual_suffix | ( | const std::string & | geom_path | ) |
Convert a .geometry filesystem path to its .visual suffix form.
The suffix is suitable as the visual_suffix argument to wows_assets_bin_get_visual_info.
| geom_path | Filesystem path to a .geometry file. |
"ShipDir/ShipDir.visual"). | std::string wows_stitch_model_to_geom_path | ( | const std::string & | model, |
| const std::string & | game_dir | ||
| ) |
Resolve a .visual model path to the corresponding .geometry file path.
| model | Path to the .visual model within the game tree. |
| game_dir | Root resource directory. |
.geometry file, or empty string if not found. | std::string wows_stitch_normalize_slashes | ( | std::string | s | ) |
Replace all backslashes in s with forward slashes and return the result.
| std::string wows_stitch_path_basename | ( | const std::string & | p | ) |
Return the basename component of a path (everything after the last /).
| std::string wows_stitch_path_dirname | ( | const std::string & | p | ) |
Return the directory component of a path (everything up to and including the last /).
| std::string wows_stitch_stem | ( | const std::string & | filename | ) |
Return the stem of a filename (basename without the final extension).