Examples¶
Each example builds the input, runs an engine, shows the result in compas_viewer, and writes the
placed geometry to data/output/ as JSON (full result) and OBJ (outlines + holes).
- Collision — physics/relaxation engine, default viewer.
- NFP + GA — NFP + genetic-algorithm engine.
- Live animation (NFP) — watch the GA layout evolve.
- Clearance offset — add gaps with
offset_geo/offset_sheets. - Attributes — carry geometry (a centroid point) through placement.
- Pack (array) — fixed number of elements per row with
pack. - Pack (distance) — wrap by row width with
pack(max_width=...). - Text (font) — single-stroke text with
text_to_polylines.