API¶
Model and geometry¶
Mesh¶
Helpers¶
- print_hierarchy(model: Model) NoneSource¶
Print the assembly/part hierarchy of a model as an indented tree.
- load_material_metadata(attrs_path: str) dict[str, dict]Source¶
Load a v6 _attrs.json sidecar and return {material_slug: body_record}.
Each returned record merges the body-specific fields (centroid, body_name, body_index) with all component-level fields (path, db_part_name, attributes, etc.) so the caller sees a flat dict per body – same shape as the former v5 API.