write_mesh_info#

brainglobe_atlasapi.atlas_generation.mesh_utils.write_mesh_info(mesh_dir: Path, vertex_quantization_bits: int = 16, transform: List[int] = None, lod_scale_multiplier: float = 1.0) dict[source]#

Write the mesh-directory metadata file.

Parameters:
  • mesh_dir (Path) – Path to the mesh directory where the info file will be written.

  • vertex_quantization_bits (int, optional) – Number of bits used for vertex quantization (default is 16).

  • transform (List[int], optional) – A 4x3 transformation matrix in row-major order (default is identity).

  • lod_scale_multiplier (float, optional) – Scale multiplier for level-of-detail (LOD) (default is 1.0).

Returns:

The metadata dictionary that was written to the info file.

Return type:

dict