API

Model and geometry

Model

model

ModelItem

Model entity

Entity

Assembly

Model assembly

Part

Model part

Region

Model region

Face

Model face

Edge

Model edge

Vertex

Model vertex

Mesh

MeshCase(model)

Mesh attributes

Mesh()

Mesh attributes

SurfaceMesh()

Surface Mesh

VolumeMesh()

Volume 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.