Skip to content

compas_wood.datasets ¤

Named JSON datasets shipped with wood_nano, converted to compas geometry.

Functions:¤

list_datasets ¤

list_datasets() -> list[str]

Sorted names of the datasets shipped with wood_nano (JSON file stems).

load_dataset ¤

load_dataset(name: str) -> tuple[list[Polyline], list[Polyline], dict]

Load a named dataset → (bottom_polylines, top_polylines, params).

Plate outlines in the shipped data are already closed (first == last point); loops of 3+ points are closed here if not. 2-point polylines (beam-axis datasets) are segments and stay open. params is the raw dict from wood_nano.datasets.load_dataset, passed through unchanged.