Skip to content

FemoraPartRegistry

FemoraPartRegistry

FemoraPartRegistry()

Private model-owned registry for VTK cell source metadata.

FemoraPartTag is a consecutive display tag used in cell data. FemoraPartKind is a small numeric enum used in cell data. The full tag-to-name/kind mapping is exported as VTK field data and JSON.

Attributes

_parts instance-attribute

_parts: dict[tuple[str, str, int | None], FemoraPart] = {}

_next_tag instance-attribute

_next_tag = 1

Methods:

kind_id staticmethod

kind_id(kind: str) -> int

clear

clear() -> None

get_or_create

get_or_create(*, kind: str, name: str, source_tag: int | None = None) -> FemoraPart

get_all

get_all(used_tags: Iterable[int] | None = None) -> list[dict]

build_snapshot

build_snapshot(used_tags: Iterable[int] | None = None) -> dict

attach_field_data

attach_field_data(mesh, used_tags: Iterable[int] | None = None) -> None