WoWs Model Exported
World of Warships 3D model Exporter
Loading...
Searching...
No Matches
Geometry I/O

Functions

bool wows_stitch_geom_to_model (const std::string &geom_path, tinygltf::Model &model_out)
 Load a .geometry file and convert it to a tinygltf model.
 
bool wows_stitch_geom_to_model_from_memory (const uint8_t *data, size_t size, tinygltf::Model &model_out)
 Load a .geometry file from a memory buffer and convert it to a tinygltf model.
 
tinygltf::Model wows_stitch_merge_parts (std::vector< wows_glb_part > &parts)
 Merge a list of wows_glb_part objects into a single tinygltf scene.
 

Detailed Description

Function Documentation

◆ wows_stitch_geom_to_model()

bool wows_stitch_geom_to_model ( const std::string &  geom_path,
tinygltf::Model &  model_out 
)

Load a .geometry file and convert it to a tinygltf model.

Parameters
geom_pathFilesystem path to the .geometry file.
model_outOutput parameter filled with the parsed glTF model.
Returns
true on success.

◆ wows_stitch_geom_to_model_from_memory()

bool wows_stitch_geom_to_model_from_memory ( const uint8_t *  data,
size_t  size,
tinygltf::Model &  model_out 
)

Load a .geometry file from a memory buffer and convert it to a tinygltf model.

Parameters
dataPointer to the raw .geometry file data in memory.
sizeSize of the data buffer in bytes.
model_outOutput parameter filled with the parsed glTF model.
Returns
true on success.

◆ wows_stitch_merge_parts()

tinygltf::Model wows_stitch_merge_parts ( std::vector< wows_glb_part > &  parts)

Merge a list of wows_glb_part objects into a single tinygltf scene.

Each part's mesh nodes are added under a root node and transformed by the part's matrix field.

Parameters
partsParts to merge; modified in-place (meshes are moved out).
Returns
A merged tinygltf::Model containing all parts in one scene.