omnimesh

OMNIMESH file format.

This module implements support for reading and writing of OMNIMESH mesh files.

class omnimesh.Mesh(metadata_path: Path, metadata: dict)

OMNIMESH

property bounding_max: List[float]

The maximum coordinates of a bounding box.

property bounding_min: List[float]

The minimum coordinates of a bounding box.

property format: str

The format of this file: OMNIMESH-1.0

property groups: List[MeshGroup]

The mesh groups.

static load(metadata_path: Path) Mesh

Load metadata from file.

save_metadata()

Save the metadata to a file.

property size_mm: List[float] | None

The physical size of the coordinates in millimeters.

class omnimesh.MeshGroup(metadata: dict = None, name: str = None, color: str = None, files: List[Dict[str, Any]] = None)

OMNIMESH group

property color: str | None

#RRGGBB hex color string.

property files: List[Dict[str, Any]]

List of file references.

property name: str

The name of the group.